factory_girl_fixtures_template 1.0.1 → 1.0.2
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 +4 -4
- data/lib/templates/factory_girl/model/fixtures.erb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 285986148fc0b4ab1a79fb3a41a6671811726b75
|
4
|
+
data.tar.gz: ab0807f1eb5aff58ca14eb4225db4b29a25328ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216c49ebe4fe2e8c62abe5797eb6f34035ed962be4ce0173eff088ea5160584edfd2deacc35af645272af278ec0d6ea8f36893829e335aaf8cd57bcbae71d274
|
7
|
+
data.tar.gz: 36daa18a7d02e8e856fd9b9a47b8ed69df05242928c18054c42ca471ee6d6ea0d1720e39e684bcb21716780c94356825398390285b255d083b86d38e024b84f6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.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: factory_girl_fixtures_template 1.0.
|
5
|
+
# stub: factory_girl_fixtures_template 1.0.2 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.2"
|
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 = "
|
14
|
+
s.date = "2015-02-24"
|
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 = [
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
]
|
35
35
|
s.homepage = "http://github.com/dima4p/factory_girl_fixtures_template"
|
36
36
|
s.licenses = ["MIT"]
|
37
|
-
s.rubygems_version = "2.
|
37
|
+
s.rubygems_version = "2.4.5"
|
38
38
|
s.summary = "Better FactoryGirl template"
|
39
39
|
|
40
40
|
if s.respond_to? :specification_version then
|
@@ -9,8 +9,12 @@ FactoryGirl.define do
|
|
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}" }
|
12
|
+
<% elsif attribute.name == 'email' -%>
|
13
|
+
sequence(:<%= attribute.name %>) {|n| "email#{n}@gmail.com" }
|
12
14
|
<% elsif attribute.name == 'position' -%>
|
13
15
|
sequence(:<%= attribute.name %>) {|n| n }
|
16
|
+
<% elsif attribute.name == 'password' -%>
|
17
|
+
password 'password'
|
14
18
|
<% else -%>
|
15
19
|
<%= attribute.name %> <%= attribute.default.inspect %>
|
16
20
|
<% end -%>
|
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.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: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.4.5
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Better FactoryGirl template
|