railsbuilder 0.1.21 → 0.1.22

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c78cc57d3f08d6b09f920163e8aa5a11acd34f46
4
- data.tar.gz: bd728be7d7f5af4cfd78fd76087cdef86a38ac49
3
+ metadata.gz: c18d6ba0744b5e956aae81100b3ff503569fd2bf
4
+ data.tar.gz: e347744160dfb7f6d0b5cabf1092cf2c7b8b4d3e
5
5
  SHA512:
6
- metadata.gz: 7e9ff7a40a74a4f89771776b3376a9eb9694b8551ae31359094f55b0f42a5623dbc78256273d8f44f6558c7bc2f1978087fad794f1828862021f248910037364
7
- data.tar.gz: 4d9b022ba547927708552f1fb776f6e9be603c9e4e42ce4a0619e7b87b9dfe08e820ff686b4fa613fda71728b868f353d767e2820eb9339b1ee41789103c8962
6
+ metadata.gz: 55fc4e60d59a8d6aa6e1daed7a28a4190f5a37d3c905d21bf73544ce43bb004498e9d8abe1794a3df827a5eb2c01d892267b1d239b4d02f3c456eafcc32096ce
7
+ data.tar.gz: 3ca691399be170dc92661d17abb982d9da05a2057c533867782197ff5092c48ac7fde728dd1de2053d7ef8d3fa7453fc12869e4fa1f9da2553a6662f276f5d48
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/railsbuilder.rb CHANGED
@@ -167,7 +167,7 @@ class RailsBuilder
167
167
  next if attributes.empty?
168
168
 
169
169
  s = class_name + ' ' + attributes\
170
- .map{|h| "%s: %s" % [h[:name], h[:type]]}.join(' ')
170
+ .map{|h| "%s:%s" % [h[:name], h[:type].to_s]}.join(' ')
171
171
 
172
172
  command = "rails generate model %s" % s
173
173
  puts ":: preparing to execute shell command: `#{command}`"
@@ -194,7 +194,7 @@ class RailsBuilder
194
194
  next if attributes.empty?
195
195
 
196
196
  s = class_name + ' ' + attributes\
197
- .map{|h| "%s: %s" % [h[:name], h[:type]]}.join(' ')
197
+ .map{|h| "%s: %s" % [h[:name], h[:type].to_s]}.join(' ')
198
198
 
199
199
  command = "rails generate scaffold %s" % s
200
200
  puts ":: preparing to execute shell command: `#{command}`"
@@ -400,7 +400,7 @@ class RailsBuilder
400
400
 
401
401
  h = {
402
402
  name: e.attributes[:name],
403
- type: e.attributes[:type],
403
+ type: e.attributes[:type].to_sym,
404
404
  }
405
405
  raw_opt = e.attributes[:options]
406
406
  if raw_opt.length > 0 then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ed2e�=��κy���C��e:[R�d��Q���0����/᮫B����޼������������0���H�����܌ �R��BR�2C�Ã�ʏ�N�)�c)sV}���F�y,��9�'�ȋ�`
2
- [��eͅ��=R&Fz��O�����[;^0a�����'�ƅ�kY�(N�<��˦�C��$"��]d{��ݴ�*�|l7�G}B�C2��+oiw������(+��O
3
- �t��?�Ge�r��
1
+ X~��I�M�����\-�i�ł/.ܒ����ylkFj(UkHs
2
+ ZV5��1ݵ=u�␤��(&��$���