rspec_rails_scaffold_templates 1.2.2 → 1.2.3

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: 32a24975cf7f9ce930437cc715fced0ba9780fa5
4
- data.tar.gz: 5c1f8e9200cd4298881aa27a57632139291e8021
3
+ metadata.gz: e5d873aeace06c11183c8f8c2cef471c0b48e637
4
+ data.tar.gz: 6674d5589c1e55338ebdf67b463a9625be4b1362
5
5
  SHA512:
6
- metadata.gz: 9c052902ae1416a7171ae03b0c86a2cefe0c663e0df7bdc32192ffb58b7a6f27333a59f2e908ca87f966331addc48508df71339707d3647bc94d8196441d238d
7
- data.tar.gz: 06847d466aa2681ff7c463cba667c192a231686c11d0c88546fc21d546cf02492239b4bb8083b70d11a73bcadb13dbc8666a7a271d038014d050832f741e678c
6
+ metadata.gz: 44e3e4e37f23c5bcd07a9097842071a0071a385dbfe4bc17ce1788147e81766d77186ab8cff38e62180b1a7e0b0a03adb4bb13102937790a1f7d3bad43f189fd
7
+ data.tar.gz: 0e796b3673803efb2b386cd9abcce268074867d74d33ed8d7cc611bd650422937a024eae8d4e88314e0f17017be5a7733eab477992a4cd90e0964a2a53e2d93d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -17,7 +17,7 @@ describe <%= controller_class_name %>Controller, type: :controller do
17
17
  # This should return the minimal set of attributes required to create a valid
18
18
  # <%= class_name %>. As you add validations to <%= class_name %>, be sure to
19
19
  # adjust the attributes here as well. The list could not be empty.
20
- <% attribute = attributes.detect{|a| attributes.detect{|a| a.name == 'name'} || attributes.detect{|a| a.name == 'title'} || attributes.first} -%>
20
+ <% attribute = attributes.detect{|a| a.name == 'name' || a.name == 'title' || a.name == 'code' || a.name =~ /name/ || a.name =~ /title/ || attributes.first} -%>
21
21
  <% attribute_name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name -%>
22
22
  <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
23
23
  <% factory_girl = true -%>
@@ -30,6 +30,7 @@ describe <%= controller_class_name %>Controller, type: :controller do
30
30
  <% end -%>
31
31
 
32
32
  let(:invalid_attributes) do
33
+ # {<%= attribute_name %>: ''}
33
34
  skip("Add a hash of attributes invalid for your model")
34
35
  end
35
36
 
@@ -2,16 +2,16 @@
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.2.2 ruby lib
5
+ # stub: rspec_rails_scaffold_templates 1.2.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rspec_rails_scaffold_templates"
9
- s.version = "1.2.2"
9
+ s.version = "1.2.3"
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"]
13
13
  s.authors = ["Dmitri Koulikoff"]
14
- s.date = "2016-03-02"
14
+ s.date = "2016-03-22"
15
15
  s.description = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid"
16
16
  s.email = "dima@koulikoff.ru"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_rails_scaffold_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec