active_record_model_and_rspec_enhanced_templates 1.1.1 → 1.1.2

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: aa655377d29f8e5d90b4fe6dca60153c9897076f
4
- data.tar.gz: cfcdea086ae54b76b973c663bffeb4771b0cb978
3
+ metadata.gz: 19ba7981b6abd9635bbc4d0ad45cf26f66c6fd45
4
+ data.tar.gz: deb13461ff84ddf9d4f8b4c703cc4cc9beea4ea7
5
5
  SHA512:
6
- metadata.gz: 33900573bb80ffc10bab7cbba5bdaa62017f32b8271ba484c7ad6aec3b534118d94be814e8d31dfbd79eff9f96eb1daf3444f1ecd18ff9db5d29ee8cc2e2e444
7
- data.tar.gz: c87d196a7cf49c31e5396796fa48f16bdc9d1afcd427ebd17b5b18e4386d53a7d87041d0fcc7dcee8d8f42a1c1c38b2fc71ff4b03c95d490a4b48f860288e95c
6
+ metadata.gz: 4013d40e3709944d5b3a1a91966d4ae71b6325ce0e8aa7bf21f434319dcd1805b465729430e86c5f6ed110da43e5b2ed1d257eadd66bc3cec6723fd1eb234c0e
7
+ data.tar.gz: c68b1e3c36e8463b93f794c626c4c2ed5a0c749501750eb52c57bab3a83cbdd5e6dec913fdca3c9484d16eb153dab0fe5cf9bd1e0129233b606655464d798b01
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ source "http://rubygems.org"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
+ gem 'rake', '~> 11.0'
9
10
  gem "rspec", "~> 3.1"
10
11
  gem "rdoc", "~> 4.1"
11
12
  gem "bundler", "~> 1.6"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -2,18 +2,18 @@
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: active_record_model_and_rspec_enhanced_templates 1.1.1 ruby lib
5
+ # stub: active_record_model_and_rspec_enhanced_templates 1.1.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "active_record_model_and_rspec_enhanced_templates"
9
- s.version = "1.1.1"
8
+ s.name = "active_record_model_and_rspec_enhanced_templates".freeze
9
+ s.version = "1.1.2"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Dmitri Koulikoff"]
14
- s.date = "2016-10-04"
15
- s.description = "ActiveRecord generator and RSpec templates that add some basic functionality to the model and its spec"
16
- s.email = "dima@koulikoff.ru"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Dmitri Koulikoff".freeze]
14
+ s.date = "2017-03-29"
15
+ s.description = "ActiveRecord generator and RSpec templates that add some basic functionality to the model and its spec".freeze
16
+ s.email = "dima@koulikoff.ru".freeze
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.rdoc"
@@ -33,33 +33,36 @@ Gem::Specification.new do |s|
33
33
  "spec/active_record_model_and_rspec_enhanced_templates_spec.rb",
34
34
  "spec/spec_helper.rb"
35
35
  ]
36
- s.homepage = "http://github.com/dima4p/active_record_model_and_rspec_enhanced_templates"
37
- s.licenses = ["MIT"]
38
- s.rubygems_version = "2.5.1"
39
- s.summary = "ActiveRecord generator and RSpec templates that add some basic functionality"
36
+ s.homepage = "http://github.com/dima4p/active_record_model_and_rspec_enhanced_templates".freeze
37
+ s.licenses = ["MIT".freeze]
38
+ s.rubygems_version = "2.6.10".freeze
39
+ s.summary = "ActiveRecord generator and RSpec templates that add some basic functionality".freeze
40
40
 
41
41
  if s.respond_to? :specification_version then
42
42
  s.specification_version = 4
43
43
 
44
44
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
45
- s.add_development_dependency(%q<rspec>, ["~> 3.1"])
46
- s.add_development_dependency(%q<rdoc>, ["~> 4.1"])
47
- s.add_development_dependency(%q<bundler>, ["~> 1.6"])
48
- s.add_development_dependency(%q<jeweler>, ["~> 2.0"])
49
- s.add_development_dependency(%q<simplecov>, ["~> 0.0"])
45
+ s.add_development_dependency(%q<rake>.freeze, ["~> 11.0"])
46
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
47
+ s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
48
+ s.add_development_dependency(%q<bundler>.freeze, ["~> 1.6"])
49
+ s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
50
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.0"])
50
51
  else
51
- s.add_dependency(%q<rspec>, ["~> 3.1"])
52
- s.add_dependency(%q<rdoc>, ["~> 4.1"])
53
- s.add_dependency(%q<bundler>, ["~> 1.6"])
54
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
55
- s.add_dependency(%q<simplecov>, ["~> 0.0"])
52
+ s.add_dependency(%q<rake>.freeze, ["~> 11.0"])
53
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
54
+ s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
55
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
56
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
57
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
56
58
  end
57
59
  else
58
- s.add_dependency(%q<rspec>, ["~> 3.1"])
59
- s.add_dependency(%q<rdoc>, ["~> 4.1"])
60
- s.add_dependency(%q<bundler>, ["~> 1.6"])
61
- s.add_dependency(%q<jeweler>, ["~> 2.0"])
62
- s.add_dependency(%q<simplecov>, ["~> 0.0"])
60
+ s.add_dependency(%q<rake>.freeze, ["~> 11.0"])
61
+ s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
62
+ s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
63
+ s.add_dependency(%q<bundler>.freeze, ["~> 1.6"])
64
+ s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
65
+ s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
63
66
  end
64
67
  end
65
68
 
@@ -8,7 +8,7 @@ class <%= class_name %> < <%= parent_class_name.classify %>
8
8
  belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %><%= ', required: true' if attribute.required? %>
9
9
  <% end -%>
10
10
  <% end -%>
11
- <% if attributes.any?(&:token?) -%>
11
+ <% if attributes.first.respond_to?(:token) and attributes.any?(&:token?) -%>
12
12
 
13
13
  <% attributes.select(&:token?).each do |attribute| -%>
14
14
  has_secure_token<% if attribute.name != "token" %> :<%= attribute.name %><% end %>
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_model_and_rspec_enhanced_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
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-10-04 00:00:00.000000000 Z
11
+ date: 2017-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '11.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '11.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rspec
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
136
  version: '0'
123
137
  requirements: []
124
138
  rubyforge_project:
125
- rubygems_version: 2.5.1
139
+ rubygems_version: 2.6.10
126
140
  signing_key:
127
141
  specification_version: 4
128
142
  summary: ActiveRecord generator and RSpec templates that add some basic functionality