jcompiler 0.1.61 → 0.1.62

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: 3093728ee8bab0b800c33e0978cd2ccd6794af7f
4
- data.tar.gz: 07a7c4de24610345e871afe5e3fe9877bd60b0cb
3
+ metadata.gz: dbf850df72a89471071a15c63963138e056353e4
4
+ data.tar.gz: 02c61e1efcbdd329b2123f33ac5d495f621b32b6
5
5
  SHA512:
6
- metadata.gz: f9707408153a0f162278e0832def667f01cf479aaa6999e4e634c5a64defd6fc080a0e10479dffc72a095c95c825fee3206039ec0b34b127f0e5ae578c68b4b6
7
- data.tar.gz: 97d140bd62ad2ed680b09bf7dcd0005a4f7f6efc97fe0f76a9143c59842912de480b76ecdf6b7202e590a4d85c4556518980935f5e68a6b8b642c0d873d64fa0
6
+ metadata.gz: 0b4c1e8589179856a955382d7865dfe69244ba9cda9c01b72f948ba801e97e2b822d35f9cf233b83025360c887656eda0cb8ba261f26ff6ca87b2335a2ee2de9
7
+ data.tar.gz: 919c4f2a90a5691f03bde0b24f7a6763a18a9185ef6e4bab1224f57bbfc208d24c7cf18a348e54c28925f748a6a56ce661cc639563a80092e8ea901649ce7d90
data/build CHANGED
@@ -1 +1 @@
1
- 62
1
+ 63
@@ -5,11 +5,11 @@ class Jcompiler::Compiler
5
5
  end
6
6
 
7
7
  def compile
8
- bind.local_variable_set(:abcdefg, 33)
9
- bind.eval('"[#{abcdefg}]"')
8
+ bind.local_variable_set(:json, Jcompiler::Provider.new)
9
+ bind.eval(source)
10
10
  end
11
11
 
12
- protected
12
+ private
13
13
 
14
14
  attr_reader :source, :bind
15
15
  end
@@ -0,0 +1,5 @@
1
+ class Jcompiler::Provider
2
+ def array!(*args)
3
+ '[]'
4
+ end
5
+ 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.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya
@@ -29,6 +29,7 @@ files:
29
29
  - lib/jcompiler/cache.rb
30
30
  - lib/jcompiler/compiler.rb
31
31
  - lib/jcompiler/handler.rb
32
+ - lib/jcompiler/provider.rb
32
33
  - tmp/.gitignore
33
34
  homepage: https://bitbucket.org/pandora2000/jcompiler
34
35
  licenses: