Skip to content
This repository has been archived by the owner on Aug 18, 2018. It is now read-only.

parse number literals #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .gemtest
Empty file.
2 changes: 1 addition & 1 deletion ext/spidermonkey/immutable_node.c.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
120 changes: 120 additions & 0 deletions johnson.gemspec
Original file line number Diff line number Diff line change
@@ -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:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
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: []