jcompiler 0.1.120 → 0.1.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/build +1 -1
  3. data/lib/jcompiler/provider.rb +5 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8a51608fbc917ee8c1ff3a03bd7734d1c2b2a38
4
- data.tar.gz: c647b9a194c327889205ad7c504ff3b3ddac8e54
3
+ metadata.gz: 9838540b8757bb886af161fa1ced15d1a808b74e
4
+ data.tar.gz: 896a7753d1d270b7d66499dbf08db1c2649e70ba
5
5
  SHA512:
6
- metadata.gz: 579bc24feec52227b92e3cf183cf08b4e06e2a9fdb7504e7b0cebe2d365f3937868647e2a629fe5abd86b511df4485eb0081b738f090ec6f883cdcbbe8875854
7
- data.tar.gz: cecc97a241b4eebc04a926f2cdf2e0c334c4a960ecff6053ffc3eba7f0a8bb71283f748209908925938f6c855ec241d8def66b9d033b3fbee074ac0da1ff9c11
6
+ metadata.gz: 679ee69d980f4c0096d95645f5a0a0dc1dabe00d908859a869d7c928fab59c3a87de054415c3e96af66174003e93100ccceb1eecb150eb59ba7570df175b6ad9
7
+ data.tar.gz: cc8cdfc2ce1ab7c73176e16c6a2c7b8554b5ba291bd23a7d4716109bd1053dd477d47dacce911ec3f3d9856bfd2f0ed5c08145dfda35934a13648979ad38c43f
data/build CHANGED
@@ -1 +1 @@
1
- 121
1
+ 122
@@ -36,12 +36,11 @@ class Jcompiler::Provider
36
36
  end
37
37
 
38
38
  def method_missing(name, *args, &block)
39
- src = if block
40
- block.call
41
- else
42
- args[0]
43
- end
44
- @context << %{"\\"#{name}\\":\#{(#{src}).to_json}"}
39
+ if block
40
+ @context << %{"\\"#{name}\\":\#{#{block.call}}"}
41
+ else
42
+ @context << %{"\\"#{name}\\":\#{(#{args[0]}).to_json}"}
43
+ end
45
44
  end
46
45
 
47
46
  protected
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.120
4
+ version: 0.1.121
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya