active_record_model_and_rspec_enhanced_templates 1.0.2 → 1.0.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: 6ba52578dbf0192861968faf89a7c9c92458a0d3
4
- data.tar.gz: 4f73b3a012ea8baa2b26dd6921e5b42bde17eae9
3
+ metadata.gz: 7634675e1eaa90f8ef3b85f64b6d2f7fc057b6d3
4
+ data.tar.gz: 79f604659c251390f7e55addd9f5edc72c199747
5
5
  SHA512:
6
- metadata.gz: a92c8f3c74d93dac1c5509b3d0044bd1b44adb1039ce83da02a2497ab4390e43b33b71c4b7613aeeda18c9f6b6b3ed62b6d0ec35fe57e14ef2d6e7c8e89fb633
7
- data.tar.gz: 4382f27fcaf7d15e274c133cad77f818009d9d755f1dd6d751e904481931a73322f4a9406bca038f60d8f298222730229b3a4d0cb4e1fec87ebdca7d2cc43802
6
+ metadata.gz: 7f129fdfb6df4eb1d1df9a80fa99f2ad709fb0a4e73c79e69a372f08625a2ceb2fcac41ef23378d2b1c74afce677110b2fa317199287048242306196af43fd77
7
+ data.tar.gz: 04cbd1666aaff72afaeb4caf3df1fa4bb52a5e8e0f56694a5548fc1dd2c3b02583f01647a0fd91ef9d1592ff3bec32abef2bc848f42dbdc159074f40e8f7ad6b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -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.2 ruby lib
5
+ # stub: active_record_model_and_rspec_enhanced_templates 1.0.3 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.2"
9
+ s.version = "1.0.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 = "2014-09-15"
14
+ s.date = "2014-10-06"
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 = [
@@ -23,11 +23,11 @@ describe <%= class_name %>, type: :model do
23
23
  describe :class do
24
24
  it 'should respond to :ordered' do
25
25
  <% if options[:fixture_replacement] == :factory_girl -%>
26
- <%= singular_name %>1 = create :<%= singular_name %>
27
- <%= singular_name %>2 = create :<%= singular_name %>
26
+ create :<%= singular_name %>
27
+ create :<%= singular_name %>
28
28
  <% else -%>
29
- <%= singular_name %>1 = <%= class_name %>.create @valid_attrs
30
- <%= singular_name %>2 = <%= class_name %>.create @valid_attrs
29
+ <%= class_name %>.create @valid_attrs
30
+ <%= class_name %>.create @valid_attrs
31
31
  <% end -%>
32
32
  <% attribute = attributes.detect{|a| a.name == 'position'} || attributes.detect{|a| a.name == 'name'} || attributes.detect{|a| a.name == 'title'} || attributes.first -%>
33
33
  expect(<%= class_name %>.ordered).to eq <%= class_name %>.order(:<%=attribute.name %>)
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.2
4
+ version: 1.0.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: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec