active_record_model_and_rspec_enhanced_templates 1.1.3 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/active_record_model_and_rspec_enhanced_templates.gemspec +4 -4
- data/lib/templates/rspec/model/model_spec.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f46f5a74e60856a1999b6a00635f1bab3a013c192afa73cc8a6b2205853362b
|
4
|
+
data.tar.gz: 13f6cf0b2e5fb038b3f63cec832b09ffbedc2bf25c53897edfbf2ec234848524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e50eca499d7a8a159c2478ec93eda684f07be6dd5b81915ed09944bfab0d6062235a807287925398ada065cb526a06a0e9c60f85f45a0d30e75f598d9a420f96
|
7
|
+
data.tar.gz: a625741e86ede184aa41f56487d0623440488954ac7529a31e79447083cacf584e3c48b633b6ca2e10ce66b37df5ab0b678d53f58d32e172912fdbb45f745394
|
data/Rakefile
CHANGED
@@ -21,6 +21,7 @@ Jeweler::Tasks.new do |gem|
|
|
21
21
|
gem.description = %Q{ActiveRecord generator and RSpec templates that add some basic functionality to the model and its spec}
|
22
22
|
gem.email = "dima@koulikoff.ru"
|
23
23
|
gem.authors = ["Dmitri Koulikoff"]
|
24
|
+
gem.version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
24
25
|
# dependencies defined in Gemfile
|
25
26
|
end
|
26
27
|
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2
|
@@ -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.
|
5
|
+
# stub: active_record_model_and_rspec_enhanced_templates 1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "active_record_model_and_rspec_enhanced_templates".freeze
|
9
|
-
s.version = "1.
|
9
|
+
s.version = "1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Dmitri Koulikoff".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2019-05-22"
|
15
15
|
s.description = "ActiveRecord generator and RSpec templates that add some basic functionality to the model and its spec".freeze
|
16
16
|
s.email = "dima@koulikoff.ru".freeze
|
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".freeze
|
37
37
|
s.licenses = ["MIT".freeze]
|
38
|
-
s.rubygems_version = "
|
38
|
+
s.rubygems_version = "3.0.3".freeze
|
39
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
|
@@ -7,7 +7,7 @@ require 'spec_helper'
|
|
7
7
|
<% module_namespacing do -%>
|
8
8
|
describe <%= class_name %>, type: :model do
|
9
9
|
|
10
|
-
<% if options[:fixture_replacement] == :
|
10
|
+
<% if options[:fixture_replacement] == :factory_bot -%>
|
11
11
|
subject { create :<%= singular_name %> }
|
12
12
|
<% else -%>
|
13
13
|
before :each do
|
@@ -27,7 +27,7 @@ describe <%= class_name %>, type: :model do
|
|
27
27
|
describe 'scopes' do
|
28
28
|
describe '.ordered' do
|
29
29
|
it 'orders the records of <%= class_name %> by :<%=attribute.name %>' do
|
30
|
-
<% if options[:fixture_replacement] == :
|
30
|
+
<% if options[:fixture_replacement] == :factory_bot -%>
|
31
31
|
create :<%= singular_name %>
|
32
32
|
create :<%= singular_name %>
|
33
33
|
<% else -%>
|
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.
|
4
|
+
version: '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: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -135,8 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
|
139
|
-
rubygems_version: 2.6.10
|
138
|
+
rubygems_version: 3.0.3
|
140
139
|
signing_key:
|
141
140
|
specification_version: 4
|
142
141
|
summary: ActiveRecord generator and RSpec templates that add some basic functionality
|