factory_girl_fixtures_template 1.0.3 → 1.0.4
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 +1 -1
- 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: 64c03b69c8ccf72637b5d44ab7175d5c7dbd57a1
|
4
|
+
data.tar.gz: bfd44f66b808b6a6c559b108380bbe06f0b41c42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d5aa52fa8188461a30950eadb0916ffe23799b24732f0240ca593588b695f7e3940f08dfa58e28ace3dc855988ce72b8ade7bb41d0a9302805463ded3af8093
|
7
|
+
data.tar.gz: a642385acdde9365ab075acf1f252b5971b5b9e75ae383e51496af274fc70e86c7ad68dc57c162310df637049feffda1835247dc46272ca4f6159a71cc5bb79f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -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.4 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.4"
|
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-02-
|
14
|
+
s.date = "2015-02-26"
|
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,7 +5,7 @@ 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
|
8
|
+
<% elsif I18n.available_locales.include? /\A.*?_([a-z]{2}(_[A-Z]{2})?)\z/.match(attribute.name).try(:[], 1).try(:to_sym) -%>
|
9
9
|
sequence(:<%= attribute.name %>) {|n| "<%= class_name %>_<%= $1 %>#{n}" }
|
10
10
|
<% elsif %[name title].include? attribute.name -%>
|
11
11
|
sequence(:<%= attribute.name %>) {|n| "<%= class_name %> ##{n}" }
|
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.4
|
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-02-
|
11
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|