Skip to content

Instantly share code, notes, and snippets.

View aledalgrande's full-sized avatar

Alessandro Dal Grande aledalgrande

View GitHub Profile
ruby-1.9.1-p378 > tree = parser.parse "field :ciccio, 'integer'"
=> SyntaxNode+Field1+Field0 offset=0, "...d :ciccio, 'integer'" (construct,sp,name,s1,s2,interpretation):
SyntaxNode offset=0, "field"
SyntaxNode offset=5, " ":
SyntaxNode offset=5, " "
SyntaxNode offset=6, ":"
SyntaxNode offset=7, "ciccio":
SyntaxNode offset=7, "c"
SyntaxNode offset=8, "i"
SyntaxNode offset=9, "c"
ruby-1.9.1-p378 > tree = parser.parse "field :ciccio, 'integer'"
=> SyntaxNode+Field1+Field0 offset=0, "...d :ciccio, 'integer'" (construct,sp,name,s1,s2,interpretation):
SyntaxNode offset=0, "field"
SyntaxNode offset=5, " ":
SyntaxNode offset=5, " "
SyntaxNode offset=6, ":"
SyntaxNode offset=7, "ciccio":
SyntaxNode offset=7, "c"
SyntaxNode offset=8, "i"
SyntaxNode offset=9, "c"
namespace :release do
task :js => :environment do
puts "Compiling coffeescript to javascript..."
[...]
File.open("#{release_dir}/example.js", 'w') do |file|
file.write CoffeeScript.compile(File.read("#{dev_dir}/example.coffee"))
end
puts "Coffeescript compiled"
puts "Closure Compiler: minifying"
test = (input) ->
alert input
test 'hello'
%div.example
foo
:coffeescript
alert "I have #{@count} posts"
require 'usb'
require 'betabrite'
###
# Get a betabrite sign:
#
# http://www.betabrite.com/
# http://www.amazon.com/Brite-Prism-Moving-Message-Display/dp/B000MQAI72
#
# Install gems:
[debug]: Finding <feature> - steps, step definitions, and step transforms
rake aborted!
no marshal_dump is defined for class class gherkin.I18n
org/jruby/java/proxies/JavaProxy.java:369:in `marshal_dump'
org/jruby/RubyMarshal.java:101:in `dump'
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/serializers/yardoc_serializer.rb:86:in `dump'
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/serializers/yardoc_serializer.rb:65:in `serialize'
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/registry_store.rb:143:in `save'
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/registry.rb:157:in `save'
<home_folder>/.rvm/gems/jruby-1.6.4@pips-jruby/gems/yard-0.7.2/lib/yard/cli/yardoc.rb:216:in `run'
$ bundle
Fetching source index for http://rubygems.org/
Using rake (0.9.2) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/rake-0.9.2.gemspec
Using multi_json (1.0.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/multi_json-1.0.3.gemspec
Using activesupport (3.1.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/activesupport-3.1.0.gemspec
Using bouncy-castle-java (1.5.0146.1) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/bouncy-castle-java-1.5.0146.1.gemspec
Using builder (3.0.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/builder-3.0.0.gemspec
Using columnize (0.3.4) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/columnize-0.3.4.gemspec
Using diff-lcs (1.1.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/diff-lcs-1.1.3.gemspec
Installing json (1.6.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/ale/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for re.h... yes
checking for ruby/st.h... yes
creating Makefile
$ bundle
Fetching source index for http://rubygems.org/
Using rake (0.9.2) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/rake-0.9.2.gemspec
Using multi_json (1.0.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/multi_json-1.0.3.gemspec
Using activesupport (3.1.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/activesupport-3.1.0.gemspec
Using bouncy-castle-java (1.5.0146.1) from /Users/ale/.rvm/gems/jruby-1.6.4@global/specifications/bouncy-castle-java-1.5.0146.1.gemspec
Using builder (3.0.0) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/builder-3.0.0.gemspec
Using columnize (0.3.4) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/columnize-0.3.4.gemspec
Using diff-lcs (1.1.3) from /Users/ale/.rvm/gems/jruby-1.6.4@pips-jruby/specifications/diff-lcs-1.1.3.gemspec
Installing json (1.6.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.