factory_girl_fixtures_template 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/factory_girl_fixtures_template.gemspec +3 -3
- data/lib/templates/factory_girl/model/fixtures.erb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fe3e559a312c8c7cd043a9aad7f254dd6f64ddf
|
4
|
+
data.tar.gz: f34405c918d953b3fbee46d79b312de9d2a681d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44dd407b536812d51dfdd912cccffef519a1f519f81907ec2bb13d76a723ba95f52cc3176bb83868f30bede0c246ff2a3eeca51775648886c2e6f3c319f5d32d
|
7
|
+
data.tar.gz: 7cc207935c1048344070af4a983c8b66548dca899b523a8368e991a38601910afafe765134df78588f2b213a9a09547e77206c2834d2cc4e2cb46915afff737a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -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: factory_girl_fixtures_template 1.0.
|
5
|
+
# stub: factory_girl_fixtures_template 1.0.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "factory_girl_fixtures_template"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.1"
|
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-
|
14
|
+
s.date = "2014-09-18"
|
15
15
|
s.description = "FactoryGirl template that behave more smart than standard one"
|
16
16
|
s.email = "dima@koulikoff.ru"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -5,6 +5,8 @@ FactoryGirl.define do
|
|
5
5
|
<%= attribute.name %> { create :<%= attribute.name %> }
|
6
6
|
<% elsif /\A(.*)_name\z/.match attribute.name -%>
|
7
7
|
sequence(:<%= attribute.name %>) {|n| "<%= class_name %>_<%= $1.try :capitalize %>#{n}" }
|
8
|
+
<% elsif /\A.*_([a-z]{2}(_[a-z]{2})?)\z/.match attribute.name -%>
|
9
|
+
sequence(:<%= attribute.name %>) {|n| "<%= class_name %>_<%= $1 %>#{n}" }
|
8
10
|
<% elsif %[name title].include? attribute.name -%>
|
9
11
|
sequence(:<%= attribute.name %>) {|n| "<%= class_name %> ##{n}" }
|
10
12
|
<% elsif attribute.name == 'position' -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_girl_fixtures_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|