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: 8541301cdf9f1e80fbb04d371092b33da54c74a9
4
- data.tar.gz: 79874adf7c5d371e663df882b653c20788407b48
3
+ metadata.gz: ea4ce550a8fe8146ae4bf8f14ac4026b716d3605
4
+ data.tar.gz: 3af9f1320991f164550859ce4dac6dff1a909b14
5
5
  SHA512:
6
- metadata.gz: eb987085fb3e138aa2840eaed56423318779e831b906f2b3bee87a321b3bb89099b581ca0f0e4f75bdddafed1e3d6e0c9232535697a062f7cec7b9cb61a5c970
7
- data.tar.gz: e971eed383994e6b4d7f4e4a2431430375838f82c8eb3a90e641bc8028869274e3b9906c1fc46778498e28f09cd296908c13d51e35605ab4a1fec5e27adab025
6
+ metadata.gz: 97e29df749a3935c0fddf2141d3a1c955ed18d53c211bfeab044cab2a027c7e7eb5bb66245473abfa8fac30da2e221ee94488999ba87923a6530e93c51e1936a
7
+ data.tar.gz: 8eeeae227b244ae542d66bcc8c4a3dd2f633f2d8a131c01355c2cd175ac72f0d930b015fd3f1df8f5985dd1c162799428aab9511f98c02e6c1df54e2b0dd9bcf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
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.6 ruby lib
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.6"
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 = "2015-06-15"
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.2.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 :scope do
25
+ describe :scopes do
26
26
  describe '.ordered' do
27
- it 'sort <%= class_name %> by :ordered' do
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.6
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: 2015-06-15 00:00:00.000000000 Z
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.2.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