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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7634675e1eaa90f8ef3b85f64b6d2f7fc057b6d3
|
4
|
+
data.tar.gz: 79f604659c251390f7e55addd9f5edc72c199747
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f129fdfb6df4eb1d1df9a80fa99f2ad709fb0a4e73c79e69a372f08625a2ceb2fcac41ef23378d2b1c74afce677110b2fa317199287048242306196af43fd77
|
7
|
+
data.tar.gz: 04cbd1666aaff72afaeb4caf3df1fa4bb52a5e8e0f56694a5548fc1dd2c3b02583f01647a0fd91ef9d1592ff3bec32abef2bc848f42dbdc159074f40e8f7ad6b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
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.
|
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.
|
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-
|
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
|
-
|
27
|
-
|
26
|
+
create :<%= singular_name %>
|
27
|
+
create :<%= singular_name %>
|
28
28
|
<% else -%>
|
29
|
-
<%=
|
30
|
-
<%=
|
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.
|
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-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|