jcompiler 0.1.39 → 0.1.40

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jcompiler.rb +11 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32b6cede5b722b3990c0ecd47631b8d04a732d21
4
- data.tar.gz: 4606729e5b28c75244ad288662b52b17e22f2517
3
+ metadata.gz: db879266010474abd2454e3e068fc493f8c2e253
4
+ data.tar.gz: bc75ce9a4da00987e9aad31d74559ba6deee031a
5
5
  SHA512:
6
- metadata.gz: 121c67a3ab3a04bc5d2e3d8d955be29ffc4a50f07e25b1d05c05ae9bc2cf0696960fce4ddb4bafffc7cc66fa3f15c55b3184484d887a1a295015e2bdc20c9e75
7
- data.tar.gz: 6d345921282de0e8d915404317188c085f6b464da9a79a8c2e551aba053248ba806c8ae5dabed9155c8fad1059ffa5bceda6f8ba369394675ccfc8d820b8c507
6
+ metadata.gz: 64987aef6d2b0f34a3f73a0108f3b7ed444730e76b045fd3567f6033bf90dde442516cd65a01447cab22b7a304e33294fb16b18a1fcfff68d58688c644f66149
7
+ data.tar.gz: d98d6f1020516a5f711bd4c50cdaebe8aef5b90dd590c4c61f3c2b4fce53d8ae1a47af120d411a2125f5664173cf10b6a113fe8e56a81cd639d099bb01a83238
data/lib/jcompiler.rb CHANGED
@@ -1,4 +1,12 @@
1
1
  class Jcompiler
2
+ def initialize
3
+ @ids = {}
4
+ end
5
+
6
+ private
7
+
8
+ attr_accessor :ids
9
+
2
10
  def b(brand, bind)
3
11
  bind.local_variable_set(:brand, brand)
4
12
  {
@@ -24,9 +32,8 @@ class Jcompiler
24
32
  end
25
33
  end
26
34
 
27
- def code(brands, bind)
28
- bind.local_variable_set(:brands, brands)
29
- "[#{a(brands, bind).join(',')}]"
35
+ def code(bind)
36
+ debugger
30
37
  end
31
38
  end
32
39
 
@@ -37,7 +44,7 @@ class JcompilerHandler
37
44
  @@jcompiler = Jcompiler.new
38
45
 
39
46
  def self.call(template)
40
- "@@jcompiler.code(@brands, binding)"
47
+ "@@jcompiler.code(template.identifier, template.source, binding)"
41
48
  end
42
49
  end
43
50
 
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.39
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya