jcompiler 0.1.19 → 0.1.20

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 +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 911c7d2789af9e18f604a0e43d91389d270bf1c0
4
- data.tar.gz: 391a507fc03471ecd43ef5c2cebc0db78c5126b8
3
+ metadata.gz: bc738f59cfae7cd6a2b0018b8dea05931988195c
4
+ data.tar.gz: 4ed682253103af4bf4b502323f8358bed62e1487
5
5
  SHA512:
6
- metadata.gz: 0b44565d49eea340e2587b1fadf9cd73a7c3c8757f87c9bbb9bf072979790452242f2fc36e70d836a2eff256a0d1c998a944f9365d443dbfabfcfcfcfa02080b
7
- data.tar.gz: f1fce79d749391e3a43a44f5c04919234bef90d69e055ecfad894214329c296e62c83025b0c5d5daddf77b9a0923074da27373fdc50d17e2d8a432380496ee64
6
+ metadata.gz: 67b87f48adb01c7044625bbf6d62493392b2eba027b8a0492aa6a6dc804d5e9c53fe2b3f0bd26f5fe3aaa7da7f61f3f956cf49eb4c9a94bc9fc28631ddf7ec38
7
+ data.tar.gz: 66d4da337a5c55472ee25452615ed9b2fe59f2ccc937cbf0228af71ba8ca93353201847705b3e4892847816ba40cd486319602238beb8a471da3c57e7f404ef9
data/lib/jcompiler.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  class Jcompiler
2
2
  def self.b(brand)
3
- %i(id, name, description).map do |sym|
4
- v = eval("brand.#{sym}")
5
- "\"#{sym}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
3
+ %w(id name description).map do |attr|
4
+ v = eval("brand.#{attr}")
5
+ "\"#{attr}\":#{v.is_a?(String) ? ActiveSupport::JSON.encode(v) : v ? v.to_s : 'null'}"
6
6
  end
7
7
  end
8
8
 
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.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tetsuri Moriya