Permalink
Browse files

Fix dependency to point to Parslet instead of RKelly.

  • Loading branch information...
1 parent 651329f commit 52bd50e81dc57d69cfd8e4f1c6991aa44a1bc906 @matthewd committed Jan 15, 2011
Showing with 17 additions and 17 deletions.
  1. +1 −1 capuchin.gemspec
  2. +16 −16 lib/capuchin/generator.rb
View
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
s.summary = %q{JavaScript on Rubinius}
s.description = %q{A JavaScript implemention on the Rubinus VM.}
- s.add_dependency "rkelly", "~> 1.0.1"
+ s.add_dependency "parslet", "~> 1.0"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
View
@@ -3,29 +3,29 @@ class Capuchin::Generator < Rubinius::Generator
# Nodes that are guaranteed to leave a VM true or false (or nil) on
# the stack, meaning we don't need to do a full truthiness check.
BoolSafeNodes = %w(
- RKelly::Nodes::TrueNode
- RKelly::Nodes::FalseNode
- RKelly::Nodes::NullNode
- RKelly::Nodes::LogicalNotNode
- RKelly::Nodes::EqualNode
- RKelly::Nodes::StrictEqualNode
- RKelly::Nodes::NotEqualNode
- RKelly::Nodes::NotStrictEqualNode
- RKelly::Nodes::InstanceOfNode
- RKelly::Nodes::InNode
- RKelly::Nodes::GreaterNode
- RKelly::Nodes::GreaterOrEqualNode
- RKelly::Nodes::LessNode
- RKelly::Nodes::LessOrEqualNode
- RKelly::Nodes::VoidNode
+ Capuchin::Nodes::TrueNode
+ Capuchin::Nodes::FalseNode
+ Capuchin::Nodes::NullNode
+ Capuchin::Nodes::LogicalNotNode
+ Capuchin::Nodes::EqualNode
+ Capuchin::Nodes::StrictEqualNode
+ Capuchin::Nodes::NotEqualNode
+ Capuchin::Nodes::NotStrictEqualNode
+ Capuchin::Nodes::InstanceOfNode
+ Capuchin::Nodes::InNode
+ Capuchin::Nodes::GreaterNode
+ Capuchin::Nodes::GreaterOrEqualNode
+ Capuchin::Nodes::LessNode
+ Capuchin::Nodes::LessOrEqualNode
+ Capuchin::Nodes::VoidNode
)
def bool_safe?(o)
if BoolSafeNodes.include?(o.class.name)
return true
end
- if RKelly::Nodes::LogicalAndNode === o || RKelly::Nodes::LogicalOrNode === o
+ if Capuchin::Nodes::LogicalAndNode === o || Capuchin::Nodes::LogicalOrNode === o
bool_safe?(o.left) && bool_safe?(o.value)
end

0 comments on commit 52bd50e

Please sign in to comment.