railsbuilder 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/railsbuilder.rb +3 -3
- metadata +1 -1
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18d6ba0744b5e956aae81100b3ff503569fd2bf
|
4
|
+
data.tar.gz: e347744160dfb7f6d0b5cabf1092cf2c7b8b4d3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
�
|
3
|
-
�t��?�Ge�r��
|
1
|
+
X~��I�M�����\-�i�ł/.ܒ����yl�kFj(UkH�s�
|
2
|
+
ZV�5��1ݵ=u���(&��$���
|