-
Update bat file to do something nicer.
-
New Release
- update versions
- generate artifacts (gem, zip, jars)
- test artifacts (gem, zip, mvn clean install, jars)
- push artifacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class A | |
| def initialize x | |
| puts x | |
| end | |
| end | |
| class B < A | |
| def initialize y, z | |
| super | |
| end |
Plans
- 1.9 support check.
- Done It was fixed by @headius on master a while ago, but isn't in the released version. https://github.com/mirah/mirah/commit/02b5c48b998c8a66690099ba69532e485b5bcc00
- maven maybe
- maven yes. 0.0.12-SNAPSHOT FTW! Finally. Gah.
didn't get to
- REPL-ification
- PEG parser pausing?
- Maven Matriculation -- push mirah to sonatype
reading https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
-DpushChanges=false
so I don't screw up git.
put some settings in ~/.m2/conf/settings.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Some of my thoughts | |
| # | |
| # this one's easy | |
| addListener do |event| | |
| self # < outer scope self | |
| end | |
| # but what about | |
| addListener do | |
| def respond event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mirahc --java Macros.mirah | |
| Parsing... | |
| Macros.mirah | |
| Inferring types... | |
| Compiling... | |
| Macros.mirah | |
| Macros.mirah:15: undefined method `block' for nil:NilClass | |
| attr_reader :foo | |
| ^^^^^^^^^^^^^^^^^^ | |
| Mirah::InternalCompilerError: undefined method `block' for nil:NilClass |
https://github.com/mirah/mirah/commit/e00ab4bc6a3df6853eb3b951955660f378ef3a35
cherry picking 97cee78, a little tricky. Figured it out--and tests pass fail are the same. https://github.com/mirah/mirah/commit/34af825a1bc3f93568f9380bc9a1cc1562c1395b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Mirah REPL -- hacked to bits | |
| # | |
| # assuming your ruby is jruby, | |
| # $ gem install mirah | |
| # $ ruby -rubygems repl.rb | |
| # m> class Foo | |
| # m> def bar | |
| # m> 12 | |
| # m> end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #imports go here | |
| class TimerContainer | |
| def initialize | |
| @list = ArrayList.new | |
| end | |
| def add_task timer:TimerTask | |
| @list.add timer | |
| end | |
| end |
