rspec_rails_scaffold_templates 1.0.8 → 1.0.9

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: ffb4fae5fdbaa457cb47a0332c2f3c86f678a46c
4
- data.tar.gz: 65813cf867467749f143b7f62f0d2bec6015f446
3
+ metadata.gz: bf17493993334c02acb2d452598d6e5e236ee699
4
+ data.tar.gz: 97ac74060f4ecc9b74bf1bc471ce9084cc8e54b6
5
5
  SHA512:
6
- metadata.gz: 3f11b3cf92859d0825ffb866db3ae7897321448d91e11a637d24b853576937f897af626fb67c572d6d0c8bc9543c2c47ff3ebe869bc50adc2c405fba8e09ffc3
7
- data.tar.gz: 0876d94af444e23c056d0c1159b7d626b0136b8525f65a1e2666c79789be6ca9a430fc0c9f5aa715f80203f18c4af0e3c1cf86f44ad0a676c0d937a47545b659
6
+ metadata.gz: 7c2c64c45e25ff350ac586cf2865a330e4121081cef9c0f13f6c6d5b4c583e576fb48d1aa8d15814efd102ca6b68745df881b4696a3307fb5c27fd35cf52a4c9
7
+ data.tar.gz: 4b7f7c4561fa3b34aaa8e4d9990c85c7fb5b287474db8100f3713797218fdcece869643d63be566fd488497ed5a8561431a1603abcdbfa20d2078b2c5be69226
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.8
1
+ 1.0.9
@@ -16,10 +16,10 @@ describe <%= controller_class_name %>Controller, type: :controller do
16
16
  # This should return the minimal set of attributes required to create a valid
17
17
  # <%= class_name %>. As you add validations to <%= class_name %>, be sure to
18
18
  # adjust the attributes here as well. The list could not be empty.
19
- <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
20
- <% factory_girl = true -%>
21
19
  <% attribute = attributes.detect{|a| attributes.detect{|a| a.name == 'name'} || attributes.detect{|a| a.name == 'title'} || attributes.first} -%>
22
20
  <% attribute_name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name -%>
21
+ <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
22
+ <% factory_girl = true -%>
23
23
  let(:valid_attributes) {FactoryGirl.build(:<%=file_name%>).attributes.slice *%w[<%= attribute_name %>]}
24
24
  <% else -%>
25
25
  <% factory_girl = false -%>
@@ -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: rspec_rails_scaffold_templates 1.0.8 ruby lib
5
+ # stub: rspec_rails_scaffold_templates 1.0.9 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rspec_rails_scaffold_templates"
9
- s.version = "1.0.8"
9
+ s.version = "1.0.9"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_rails_scaffold_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff