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 +4 -4
- data/Gemfile +1 -0
- data/VERSION +1 -1
- data/active_record_model_and_rspec_enhanced_templates.gemspec +31 -28
- data/lib/templates/active_record/model/model.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19ba7981b6abd9635bbc4d0ad45cf26f66c6fd45
|
4
|
+
data.tar.gz: deb13461ff84ddf9d4f8b4c703cc4cc9beea4ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4013d40e3709944d5b3a1a91966d4ae71b6325ce0e8aa7bf21f434319dcd1805b465729430e86c5f6ed110da43e5b2ed1d257eadd66bc3cec6723fd1eb234c0e
|
7
|
+
data.tar.gz: c68b1e3c36e8463b93f794c626c4c2ed5a0c749501750eb52c57bab3a83cbdd5e6dec913fdca3c9484d16eb153dab0fe5cf9bd1e0129233b606655464d798b01
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -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.
|
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.
|
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 = "
|
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.
|
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<
|
46
|
-
s.add_development_dependency(%q<
|
47
|
-
s.add_development_dependency(%q<
|
48
|
-
s.add_development_dependency(%q<
|
49
|
-
s.add_development_dependency(%q<
|
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<
|
52
|
-
s.add_dependency(%q<
|
53
|
-
s.add_dependency(%q<
|
54
|
-
s.add_dependency(%q<
|
55
|
-
s.add_dependency(%q<
|
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<
|
59
|
-
s.add_dependency(%q<
|
60
|
-
s.add_dependency(%q<
|
61
|
-
s.add_dependency(%q<
|
62
|
-
s.add_dependency(%q<
|
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.
|
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:
|
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.
|
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
|