jcompiler 0.1.63 → 0.1.65

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: 54707c92024ec8f310f9f588a84965fc6014a4f5
4
- data.tar.gz: dbd0a0679696a65220f7e040977b7afc64d85bb1
3
+ metadata.gz: f0de26bd09f083206445a5d9d47c02ac4afee79a
4
+ data.tar.gz: 7c63232c19871ac4961fa593ca202f0fa691f279
5
5
  SHA512:
6
- metadata.gz: c99218210bc058f9944f049a82d7c86c2381afe79e610dc9a772e205f6a115751eb7abc7f2b69c0269c6fe1e6af8316b27501f9c4a01373b4d32618ed987a36e
7
- data.tar.gz: 144e992ba298c32d01385d503be50798b3830c3427d8647dc0b0d8f6903e6921bae2943f5c05a69e9290aacefce07af8ead74ba29b540420794821400c69b5b8
6
+ metadata.gz: 3e6954e229413db30cc063bc121e5322e1a9aa09ae72b20b64617ab8a395bb87151c2c90059a4b45e9dab0ddf0606092e4400fee0f3127498248faca3d51792f
7
+ data.tar.gz: bca3add7ba6d1fb2dfb2cc5c353251293fba9247c611887b2147959d8cf6d99c5efffcc9c5cc34471a829c08cbd43bcf6bfcf77473a5d0b9170557d66927d666
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
+
5
+ gem 'ParseTree'
6
+ gem 'sourcify'
data/Gemfile.lock CHANGED
@@ -1,14 +1,36 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jcompiler (0.1.1)
4
+ jcompiler (0.1.64)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ ParseTree (3.0.8)
10
+ RubyInline (>= 3.7.0)
11
+ sexp_processor (>= 3.0.0)
12
+ RubyInline (3.12.3)
13
+ ZenTest (~> 4.3)
14
+ ZenTest (4.10.0)
15
+ file-tail (1.0.12)
16
+ tins (~> 0.5)
17
+ ruby2ruby (2.1.0)
18
+ ruby_parser (~> 3.1)
19
+ sexp_processor (~> 4.0)
20
+ ruby_parser (3.6.1)
21
+ sexp_processor (~> 4.1)
22
+ sexp_processor (4.4.3)
23
+ sourcify (0.5.0)
24
+ file-tail (>= 1.0.5)
25
+ ruby2ruby (>= 1.2.5)
26
+ ruby_parser (>= 2.0.5)
27
+ sexp_processor (>= 3.0.5)
28
+ tins (0.13.2)
9
29
 
10
30
  PLATFORMS
11
31
  ruby
12
32
 
13
33
  DEPENDENCIES
34
+ ParseTree
14
35
  jcompiler!
36
+ sourcify
data/build CHANGED
@@ -1 +1 @@
1
- 64
1
+ 66
@@ -5,7 +5,7 @@ class Jcompiler::Compiler
5
5
  end
6
6
 
7
7
  def compile
8
- bind.local_variable_set(:json, Jcompiler::Provider.new)
8
+ bind.local_variable_set(:json, Jcompiler::Provider.new(bind))
9
9
  bind.eval(source)
10
10
  end
11
11
 
@@ -1,5 +1,13 @@
1
1
  class Jcompiler::Provider
2
+ def initialize(bind)
3
+ @bind = bind
4
+ end
5
+
2
6
  def array!(*args)
3
7
  '[]'
4
8
  end
9
+
10
+ private
11
+
12
+ attr_reader :bind
5
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jcompiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.63
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya