jbuilder_rspec_generator 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b950f7c524fad22f56605af7dee4bf313b6d53a
|
4
|
+
data.tar.gz: a7dcb94c18ba1581a64ce65761f8e387d76f2e49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f207426438154c4669561903fad9f4746d2f4fd4cb1b578a0ee16c72035c149391c359312f0412c5aac8bfc0a24608480788022c54c18dd9df9c830f4b1fcc49
|
7
|
+
data.tar.gz: 504a0a60ad624d4086f80386496086111c38eeff8ac3a54dc81569b6204af30bc51f57ae7654ee8ad8efcc2f59aab48d187e3ded81388fdc47b7f1c1ce8c93be
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: jbuilder_rspec_generator 1.0
|
5
|
+
# stub: jbuilder_rspec_generator 1.1.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "jbuilder_rspec_generator"
|
9
|
-
s.version = "1.0
|
9
|
+
s.version = "1.1.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -15,7 +15,7 @@ describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
|
|
15
15
|
<% else -%>
|
16
16
|
@<%= ns_file_name %> = <%= class_name %>.create(<%= open_attributes.empty? ? ')' : '' %>
|
17
17
|
<% open_attributes.each_with_index do |attribute, attribute_index| -%>
|
18
|
-
|
18
|
+
<%= attribute.name %>: <%= value_for(attribute) %><%= attribute_index == open_attributes.length - 1 ? '' : ','%>
|
19
19
|
<% end -%>
|
20
20
|
)
|
21
21
|
<% end -%>
|
@@ -15,7 +15,7 @@ describe "<%= ns_table_name %>/show.json.jbuilder", type: :view do
|
|
15
15
|
<% else -%>
|
16
16
|
@<%= ns_file_name %> = assign(:<%= ns_file_name %>, <%= class_name %>.create(<%= open_attributes.empty? ? '))' : '' %>
|
17
17
|
<% open_attributes.each_with_index do |attribute, attribute_index| -%>
|
18
|
-
|
18
|
+
<%= attribute.name %>: <%= value_for(attribute) %><%= attribute_index == open_attributes.length - 1 ? '' : ','%>
|
19
19
|
<% end -%>
|
20
20
|
<% if !open_attributes.empty? -%>
|
21
21
|
))
|