goodguide-gibbon 0.6.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26638ccdac2b7fd84c9e103ae7943f2c7f9db804
4
- data.tar.gz: 46759bac41cb0d02ef3d080e4bf22d9b0d0ea034
3
+ metadata.gz: 4966b52198fc8a5bb23039bb67ac3201b286d98a
4
+ data.tar.gz: 1e7f3acdbe0d171ade9781032d19e65fd8f73fa4
5
5
  SHA512:
6
- metadata.gz: 84699372110c0383dab2c46d753e29abe7f02e1385952b3fadb07182439828333057ad1bbbce838ee3d391f80aadf9fa1bfc39e78fe3d9d85108036daeca0fd5
7
- data.tar.gz: c52e4ebea106a7194bd4e445da5521e6ff062f8bbfb1c40f2af9661786d1acf509a8191274acdc7b2baebbb9f2896070a2d1daa4a129f41a5ce057ba65cd46e6
6
+ metadata.gz: 0c02143ccb73b5d76b63542699b23ea2c562a455ad95ed898ae1213f4ff91a8c281703ae4baac5c9f119332bc913059c06d94f20b267843378c86c78df151283
7
+ data.tar.gz: 3d28da0abe05c5c963de5b619028562bba9397aa50cda106ad0f4328c0c5e1683ab60f72443082b4be6f35e3a757285c666b2f2313849cc54e781efd07112eb7
data/Gemfile CHANGED
@@ -8,6 +8,11 @@ gem 'pry'
8
8
 
9
9
  platforms :ruby do
10
10
  gem 'pry-debugger'
11
+ gem 'therubyracer', '= 0.12.1'
12
+ end
13
+
14
+ platforms :jruby do
15
+ gem 'therubyrhino', '= 2.0.2'
11
16
  end
12
17
 
13
18
  gem 'rake'
data/ext/mkrf_conf.rb ADDED
@@ -0,0 +1,26 @@
1
+ # adapted from http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using
2
+
3
+ require 'rubygems'
4
+ require 'rubygems/command.rb'
5
+ require 'rubygems/dependency_installer.rb'
6
+
7
+ begin
8
+ Gem::Command.build_args = ARGV
9
+ rescue NoMethodError
10
+ end
11
+
12
+ inst = Gem::DependencyInstaller.new
13
+ begin
14
+ if defined?(JRUBY_VERSION)
15
+ inst.install "therubyrhino", "= 2.0.2"
16
+ else
17
+ inst.install "therubyracer", "= 0.12.1"
18
+ end
19
+ rescue
20
+ exit(1)
21
+ end
22
+
23
+ # create dummy rakefile to indicate success
24
+ File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") do |f|
25
+ f.write("task :default\n")
26
+ end
@@ -21,9 +21,6 @@ Gem::Specification.new do |s|
21
21
  'vendor/gibbon/lib/gibbon.browser.dev.js',
22
22
  ]
23
23
 
24
- if defined?(JRUBY_VERSION)
25
- s.add_dependency 'therubyrhino'
26
- else
27
- s.add_dependency 'therubyracer'
28
- end
24
+ # see ext/mkrf_conf.rb for therubyracer/therubyrhino dependency
25
+ s.extensions = 'ext/mkrf_conf.rb'
29
26
  end
@@ -1,7 +1,7 @@
1
1
  module GoodGuide
2
2
  module Gibbon
3
3
  def self.version
4
- '0.6.4'
4
+ '0.7.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,34 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goodguide-gibbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Adkisson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: therubyracer
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
+ dependencies: []
27
13
  description: Run and analyze gibbon code from ruby or a browser (via a ruby app).
28
14
  email:
29
15
  - jjmadkisson@gmail.com
30
16
  executables: []
31
- extensions: []
17
+ extensions:
18
+ - ext/mkrf_conf.rb
32
19
  extra_rdoc_files: []
33
20
  files:
34
21
  - Gemfile
@@ -38,10 +25,11 @@ files:
38
25
  - vendor/gibbon/package.json
39
26
  - vendor/gibbon/lib/gibbon.browser.js
40
27
  - vendor/gibbon/lib/gibbon.browser.dev.js
28
+ - ext/mkrf_conf.rb
41
29
  homepage: http://github.com/GoodGuide/goodguide-gibbon
42
30
  licenses: []
43
31
  metadata: {}
44
- post_install_message:
32
+ post_install_message:
45
33
  rdoc_options: []
46
34
  require_paths:
47
35
  - lib
@@ -57,9 +45,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
45
  version: '0'
58
46
  requirements: []
59
47
  rubyforge_project: goodguide-gibbon
60
- rubygems_version: 2.0.14
61
- signing_key:
48
+ rubygems_version: 2.1.9
49
+ signing_key:
62
50
  specification_version: 4
63
51
  summary: Ruby bindings for the gibbon data language
64
52
  test_files: []
65
- has_rdoc: