jcompiler 0.1.111 → 0.1.112

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 +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b99049bac8507c7ebf655231979b933859cc4bb8
4
- data.tar.gz: b953562ad4e0e8e34f5b20e826aa744aa8087efc
3
+ metadata.gz: 674fb7118ea848b3da4fd54a536e0240220e8e08
4
+ data.tar.gz: be22fdf617b3e88d030363717ad2f0ecdbcefc32
5
5
  SHA512:
6
- metadata.gz: 6d56fa865ead5e1335b26e0d0921d75679486479b1d9e675b558b795e3c01ca212492314e87f1292dfd96dd7a33fda2a3b30b530d11c1141f70b896c8ad0d551
7
- data.tar.gz: ea900b01bdbcd855486923d6e05d180bffefa8bc02c6856e6e348b900746ddb32bf5a91b3a399897ba2f26720da92d317b7e3871ed39559d698dbfbb7f6fd8c8
6
+ metadata.gz: b195f437459ab0c1559863014ee8417c9f4ebaa89840626ce3f334c33e19e946b9e927c40b77b48a58ab36d80b0f355d464dcbd40d45ccb4ab8c10eeba15add8
7
+ data.tar.gz: f5a4a04a08fedaf23789d5a6a124cbc28bf63e9a5629828e160bd4fdb969b21bca7fa522201d4215ac157c0159dcb85cc5809d5910e288d474cda6cc8876e943
data/build CHANGED
@@ -1 +1 @@
1
- 112
1
+ 113
@@ -4,14 +4,14 @@ class Jcompiler::Provider
4
4
  end
5
5
 
6
6
  def object!(arg_name = nil, &block)
7
- pre_context = context
8
- context = []
7
+ pre_context = @context
8
+ @context = []
9
9
  srcs, subst_src = if arg_name
10
10
  [block.call(nil), "#{block.parameters[0][1]}=#{arg_name};"]
11
11
  else
12
12
  [block.call, '']
13
13
  end
14
- context = pre_context
14
+ @context = pre_context
15
15
  %{"{\#{#{subst_src}[#{srcs.join(',')}].join(',')}}"}
16
16
  end
17
17
 
@@ -26,7 +26,7 @@ class Jcompiler::Provider
26
26
  end
27
27
 
28
28
  def method_missing(name, *args, &block)
29
- context << %{"\\"#{name}\\":3"}
29
+ @context << %{"\\"#{name}\\":3"}
30
30
  end
31
31
 
32
32
  private
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.111
4
+ version: 0.1.112
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya