active_record_model_and_rspec_enhanced_templates 1.0.6 → 1.0.8
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: ea4ce550a8fe8146ae4bf8f14ac4026b716d3605
|
4
|
+
data.tar.gz: 3af9f1320991f164550859ce4dac6dff1a909b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97e29df749a3935c0fddf2141d3a1c955ed18d53c211bfeab044cab2a027c7e7eb5bb66245473abfa8fac30da2e221ee94488999ba87923a6530e93c51e1936a
|
7
|
+
data.tar.gz: 8eeeae227b244ae542d66bcc8c4a3dd2f633f2d8a131c01355c2cd175ac72f0d930b015fd3f1df8f5985dd1c162799428aab9511f98c02e6c1df54e2b0dd9bcf
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
@@ -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: active_record_model_and_rspec_enhanced_templates 1.0.
|
5
|
+
# stub: active_record_model_and_rspec_enhanced_templates 1.0.8 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "active_record_model_and_rspec_enhanced_templates"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.8"
|
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 = "
|
14
|
+
s.date = "2016-03-24"
|
15
15
|
s.description = "ActiveRecord generator and RSpec templates that add some basic functionality to the model and its spec"
|
16
16
|
s.email = "dima@koulikoff.ru"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
]
|
36
36
|
s.homepage = "http://github.com/dima4p/active_record_model_and_rspec_enhanced_templates"
|
37
37
|
s.licenses = ["MIT"]
|
38
|
-
s.rubygems_version = "2.
|
38
|
+
s.rubygems_version = "2.5.1"
|
39
39
|
s.summary = "ActiveRecord generator and RSpec templates that add some basic functionality"
|
40
40
|
|
41
41
|
if s.respond_to? :specification_version then
|
@@ -22,9 +22,9 @@ describe <%= class_name %>, type: :model do
|
|
22
22
|
|
23
23
|
<% if attribute = attributes.detect{|a| a.name == 'position'} || attributes.detect{|a| a.name == 'name'} || attributes.detect{|a| a.name == 'title'} || attributes.first -%>
|
24
24
|
describe :class do
|
25
|
-
describe :
|
25
|
+
describe :scopes do
|
26
26
|
describe '.ordered' do
|
27
|
-
it '
|
27
|
+
it 'orders the records of <%= class_name %> by :<%=attribute.name %>' do
|
28
28
|
<% if options[:fixture_replacement] == :factory_girl -%>
|
29
29
|
create :<%= singular_name %>
|
30
30
|
create :<%= singular_name %>
|
@@ -34,9 +34,9 @@ describe <%= class_name %>, type: :model do
|
|
34
34
|
<% end -%>
|
35
35
|
expect(<%= class_name %>.ordered).to eq <%= class_name %>.order(:<%=attribute.name %>)
|
36
36
|
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
37
|
+
end # .ordered
|
38
|
+
end # scopes
|
39
|
+
end # class
|
40
40
|
|
41
41
|
<% end -%>
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.0.
|
4
|
+
version: 1.0.8
|
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: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.5.1
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: ActiveRecord generator and RSpec templates that add some basic functionality
|