jcompiler 0.1.18 → 0.1.19

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