jcompiler 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jcompiler.rb +7 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b43916883c15f57896bdac48727b6502e3367b34
4
- data.tar.gz: 199e6127fcd35be94848ef26545cd62e3116a3ff
3
+ metadata.gz: 8649a61fdfcfd783a0ab64e9cdb4908803feb14e
4
+ data.tar.gz: 1f340025da928e2e2f5b7d20a66d1cb016d0e681
5
5
  SHA512:
6
- metadata.gz: 67ad23a272843b5c4c7fd0def941bae7afb02a4edef3ebb2555491c16f8bd327032f74ca5e3133e30a4851a7854f72af6abb6bf39111252e80cd7a2c2c10cc6c
7
- data.tar.gz: 1e7f79ca398b756005a8c4b55fc74626301af3d187defc7221c2675827955cef2c4becad755810947c4a248b8aeddd6ad3e1263e0f9ea1c3ac3a794533715a47
6
+ metadata.gz: 9a176568e658ccd399076a94eb182152c8d050360059588c6567753df672b95c2016f802b8b3ed304bb37713137fda177c0f1ef8b586bbd8ed354251f4bdec39
7
+ data.tar.gz: 8ee39108452cb26c108421d0d4bc3f4e2498213ba5ff769d1b2976c0b7b309cc6e540350b23f815005a915f8a49d9bd0ccdb9757d05daca87156f90fac6ec855
data/lib/jcompiler.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  class Jcompiler
2
- def self.code
3
- "{\"a\":\"b\"}"
2
+ def self.a
3
+
4
+ end
5
+
6
+ def self.code(brands)
7
+ "{\"a\":#{brands.length}}"
4
8
  end
5
9
  end
6
10
 
@@ -9,7 +13,7 @@ class JcompilerHandler
9
13
  self.default_format = Mime::JSON
10
14
 
11
15
  def self.call(template)
12
- %{Jcompiler.code}
16
+ "Jcompiler.code(@brands)"
13
17
  end
14
18
  end
15
19
 
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.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya