From 7841ec97429fb080d9efba23d66a9679ba11b2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= Date: Thu, 12 May 2011 01:30:11 +0200 Subject: [PATCH 1/2] fix data_pn_dval. I'm not sure if I do it right, though. --- .gemtest | 0 ext/spidermonkey/immutable_node.c.erb | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .gemtest diff --git a/.gemtest b/.gemtest new file mode 100644 index 0000000..e69de29 diff --git a/ext/spidermonkey/immutable_node.c.erb b/ext/spidermonkey/immutable_node.c.erb index 01fc349..ca84e43 100644 --- a/ext/spidermonkey/immutable_node.c.erb +++ b/ext/spidermonkey/immutable_node.c.erb @@ -271,7 +271,7 @@ static VALUE data_pn_dval(VALUE self) { ImmutableNodeContext * ctx; Data_Get_Struct(self, ImmutableNodeContext, ctx); - if(JSVAL_IS_NUMBER(ATOM_KEY(ctx->node->pn_atom))) { + if(ctx->node->pn_type == TOK_NUMBER) { return rb_float_new(ctx->node->pn_dval); } else { return INT2NUM((long)(ctx->node->pn_dval)); From 4cfeea34e044b6ea1795cf0c8e6108bd56aa3224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Panzenb=C3=B6ck?= Date: Thu, 19 Jan 2012 21:47:40 +0100 Subject: [PATCH 2/2] added gemspec so it will work with bundler --- johnson.gemspec | 120 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 johnson.gemspec diff --git a/johnson.gemspec b/johnson.gemspec new file mode 100644 index 0000000..cbd9ea9 --- /dev/null +++ b/johnson.gemspec @@ -0,0 +1,120 @@ +--- !ruby/object:Gem::Specification +name: johnson +version: !ruby/object:Gem::Version + hash: 31 + segments: + - 1 + - 2 + - 0 + version: 1.2.0 +platform: ruby +authors: +- John Barnette +- Aaron Patterson +- Yehuda Katz +- Matthew Draper +autorequire: +bindir: bin +cert_chain: [] + +date: !timestamp + at: "2010-01-25 09:00:00 +01:00" + "@marshal_with_utc_coercion": false +default_executable: +dependencies: +- !ruby/object:Gem::Dependency + name: gemcutter + requirement: &id001 !ruby/object:Gem::Requirement + requirements: + - - ">=" + - !ruby/object:Gem::Version + hash: 21 + segments: + - 0 + - 2 + - 1 + version: 0.2.1 + type: :development + version_requirement: + version_requirements: *id001 +- !ruby/object:Gem::Dependency + name: rake-compiler + requirement: &id002 !ruby/object:Gem::Requirement + requirements: + - - ~> + - !ruby/object:Gem::Version + hash: 7 + segments: + - 0 + - 6 + version: "0.6" + type: :development + version_requirement: + version_requirements: *id002 +- !ruby/object:Gem::Dependency + name: hoe + requirement: &id003 !ruby/object:Gem::Requirement + requirements: + - - ">=" + - !ruby/object:Gem::Version + hash: 27 + segments: + - 2 + - 5 + - 0 + version: 2.5.0 + type: :development + version_requirement: + version_requirements: *id003 +description: |- + Johnson wraps JavaScript in a loving Ruby embrace. It embeds the + Mozilla SpiderMonkey JavaScript runtime as a C extension. +email: +- jbarnette@rubyforge.org +- aaron.patterson@gmail.com +- wycats@gmail.com +- matthew@trebex.net +executables: [] + +extensions: [] + +extra_rdoc_files: [] + +files: [] + +has_rdoc: true +homepage: http://github.com/jbarnette/johnson +licenses: [] + +post_install_message: +rdoc_options: [] + +require_paths: +- lib +required_ruby_version: !ruby/object:Gem::Requirement + requirements: + - - ">=" + - !ruby/object:Gem::Version + hash: 3 + segments: + - 0 + version: "0" +required_rubygems_version: !ruby/object:Gem::Requirement + requirements: + - - ">=" + - !ruby/object:Gem::Version + hash: 3 + segments: + - 0 + version: "0" +requirements: [] + +rubyforge_project: johnson +rubygems_version: 1.3.7 +signing_key: +specification_version: 3 +summary: Johnson wraps JavaScript in a loving Ruby embrace +test_files: [] + + +