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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e1d328d8f8b9027789f4094e791a927191abebe
4
- data.tar.gz: 86620ea32dd8e25c18eb859f5d2e51eba3ac2397
3
+ metadata.gz: 64c03b69c8ccf72637b5d44ab7175d5c7dbd57a1
4
+ data.tar.gz: bfd44f66b808b6a6c559b108380bbe06f0b41c42
5
5
  SHA512:
6
- metadata.gz: 5ff8b009819e01e6d9ba70b217a45d79764db197b7ff3c801367b506e5600a7e8a72f795770e14edd3825c99fae23b77eb31ec118a5ff23338cf402056c0b644
7
- data.tar.gz: 62de9abde2036d1fbf7d6153f149fab2dbf7a0b7715099742eb286b68633afbf7fe944ed7695d88e000356637477477ab4697e3e6af835eb52e582b915564630
6
+ metadata.gz: 8d5aa52fa8188461a30950eadb0916ffe23799b24732f0240ca593588b695f7e3940f08dfa58e28ace3dc855988ce72b8ade7bb41d0a9302805463ded3af8093
7
+ data.tar.gz: a642385acdde9365ab075acf1f252b5971b5b9e75ae383e51496af274fc70e86c7ad68dc57c162310df637049feffda1835247dc46272ca4f6159a71cc5bb79f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
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.3 ruby lib
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.3"
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-24"
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.*_([a-z]{2}(_[a-z]{2})?)\z/.match attribute.name -%>
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.3
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-24 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec