factory_girl_sequences 4.0.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,15 +1,24 @@
1
+ language: ruby
1
2
  rvm:
2
- - 1.9.2
3
3
  - 1.9.3
4
+ - 2.0.0
5
+ - ruby-head
4
6
  - jruby-19mode
7
+ - jruby-head
8
+ bundler_args: []
5
9
  before_install:
6
10
  - gem update --system
7
11
  - gem install turn --version 0.8.2
8
12
  - gem install turn --version 0.8.3
9
13
  jdk:
10
- - openjdk6
14
+ - openjdk7
11
15
  gemfile:
12
16
  - gemfiles/rails3.2.gemfile
13
17
  branches:
14
18
  only:
15
19
  - master
20
+ matrix:
21
+ allow_failures:
22
+ - rvm: ruby-head
23
+ - rvm: jruby-19mode
24
+ - rvm: jruby-head
data/Appraisals CHANGED
@@ -1,11 +1,4 @@
1
- appraise "rails3.2" do
2
- gem "rails", "3.2.12"
3
- gem "sass-rails"
4
- gem "coffee-rails"
5
- gem "uglifier"
6
- gem "sqlite3", ">= 1.3.4", platforms: :mri
7
- gem "activerecord-jdbcsqlite3-adapter", "~> 1.2.5", platforms: :jruby
8
- gem "therubyrhino"
9
- gem "jquery-rails"
1
+ appraise "rails4.0" do
2
+ gem "rails", "4.0"
10
3
  gem "factory_girl_rails"
11
4
  end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 4.1.0 / 2013-11-14
2
+
3
+ * added port and token sequences [Andrew Kulakov]
4
+ * aliased body as text / content [Andrew Kulakov]
5
+
1
6
  ## 4.0.0 / 2013-02-22
2
7
 
3
8
  * updated factory_girl version
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Anton Kalyaev
1
+ Copyright (c) 2012 - 2013 Anton Kalyaev
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # FactoryGirlSequences [![Build Status](https://secure.travis-ci.org/akalyaev/factory_girl_sequences.png "Build Status")](http://travis-ci.org/akalyaev/factory_girl_sequences)
1
+ # FactoryGirlSequences [![Build Status](https://secure.travis-ci.org/akalyaev/factory_girl_sequences.png "Build Status")](http://travis-ci.org/akalyaev/factory_girl_sequences) [![Gem Version](https://badge.fury.io/rb/factory_girl_sequences.png)](http://badge.fury.io/rb/factory_girl_sequences) [![Dependency Status](https://gemnasium.com/akalyaev/factory_girl_sequences.png)](https://gemnasium.com/akalyaev/factory_girl_sequences)
2
2
 
3
3
  Collection of useful [FactoryGirl](http://github.com/thoughtbot/factory_girl)
4
4
  sequences.
@@ -75,6 +75,12 @@ Or install it yourself as:
75
75
  <td>String</td>
76
76
  <td>person1@example.com</td>
77
77
  </tr>
78
+ <tr>
79
+ <td>port</td>
80
+ <td>-</td>
81
+ <td>Integer</td>
82
+ <td>1025</td>
83
+ </tr>
78
84
  <tr>
79
85
  <td>ip_address</td>
80
86
  <td>-</td>
@@ -101,7 +107,7 @@ Or install it yourself as:
101
107
  </tr>
102
108
  <tr>
103
109
  <td>body</td>
104
- <td>description</td>
110
+ <td>description, text, content</td>
105
111
  <td>String</td>
106
112
  <td>body-1</td>
107
113
  </tr>
@@ -135,6 +141,18 @@ Or install it yourself as:
135
141
  <td>String</td>
136
142
  <td>333333</td>
137
143
  </tr>
144
+ <tr>
145
+ <td>timestamp</td>
146
+ <td>-</td>
147
+ <td>Fixnum</td>
148
+ <td>1374582311</td>
149
+ </tr>
150
+ <tr>
151
+ <td>token</td>
152
+ <td>-</td>
153
+ <td>String</td>
154
+ <td>JS74sef41ZosXek1ndvY</td>
155
+ </tr>
138
156
  </table>
139
157
 
140
158
  ## Usage
@@ -9,6 +9,7 @@ Gem::Specification.new do |gem|
9
9
  gem.description = %q{factory_girl_sequences provides a collection of useful FactoryGirl sequences}
10
10
  gem.summary = %q{Collection of useful FactoryGirl sequences}
11
11
  gem.homepage = "http://github.com/akalyaev/factory_girl_sequences"
12
+ gem.license = "MIT"
12
13
 
13
14
  gem.files = `git ls-files`.split($\)
14
15
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -2,7 +2,7 @@ Feature:
2
2
  I would like Factory Girl Sequences gem to automatically register sequences
3
3
 
4
4
  Background:
5
- Given I successfully run `bundle exec rails new testapp --skip-bundle`
5
+ Given I successfully run `bundle exec rails new testapp --skip-bundle --skip-sprockets --skip-javascript`
6
6
  And I cd to "testapp"
7
7
  And I add "factory_girl_rails" as a dependency
8
8
  And I add "factory_girl_sequences" from this project as a dependency
@@ -0,0 +1,12 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rake"
6
+ gem "appraisal", "~> 0.5.0"
7
+ gem "cucumber", "~> 1.2.1"
8
+ gem "aruba", "~> 0.5.1"
9
+ gem "rails", "4.0"
10
+ gem "factory_girl_rails"
11
+
12
+ gemspec :path=>"../"
@@ -0,0 +1,118 @@
1
+ PATH
2
+ remote: /projects/fun-box/factory_girl_sequences
3
+ specs:
4
+ factory_girl_sequences (4.0.0)
5
+ activesupport (>= 3.0.0)
6
+ factory_girl (~> 4.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.0.0)
12
+ actionpack (= 4.0.0)
13
+ mail (~> 2.5.3)
14
+ actionpack (4.0.0)
15
+ activesupport (= 4.0.0)
16
+ builder (~> 3.1.0)
17
+ erubis (~> 2.7.0)
18
+ rack (~> 1.5.2)
19
+ rack-test (~> 0.6.2)
20
+ activemodel (4.0.0)
21
+ activesupport (= 4.0.0)
22
+ builder (~> 3.1.0)
23
+ activerecord (4.0.0)
24
+ activemodel (= 4.0.0)
25
+ activerecord-deprecated_finders (~> 1.0.2)
26
+ activesupport (= 4.0.0)
27
+ arel (~> 4.0.0)
28
+ activerecord-deprecated_finders (1.0.3)
29
+ activesupport (4.0.0)
30
+ i18n (~> 0.6, >= 0.6.4)
31
+ minitest (~> 4.2)
32
+ multi_json (~> 1.3)
33
+ thread_safe (~> 0.1)
34
+ tzinfo (~> 0.3.37)
35
+ appraisal (0.5.2)
36
+ bundler
37
+ rake
38
+ arel (4.0.1)
39
+ aruba (0.5.3)
40
+ childprocess (>= 0.3.6)
41
+ cucumber (>= 1.1.1)
42
+ rspec-expectations (>= 2.7.0)
43
+ atomic (1.1.14)
44
+ builder (3.1.4)
45
+ childprocess (0.3.9)
46
+ ffi (~> 1.0, >= 1.0.11)
47
+ cucumber (1.2.5)
48
+ builder (>= 2.1.2)
49
+ diff-lcs (>= 1.1.3)
50
+ gherkin (~> 2.11.7)
51
+ multi_json (~> 1.3)
52
+ diff-lcs (1.2.5)
53
+ erubis (2.7.0)
54
+ factory_girl (4.3.0)
55
+ activesupport (>= 3.0.0)
56
+ factory_girl_rails (4.3.0)
57
+ factory_girl (~> 4.3.0)
58
+ railties (>= 3.0.0)
59
+ ffi (1.9.3)
60
+ gherkin (2.11.8)
61
+ multi_json (~> 1.3)
62
+ hike (1.2.3)
63
+ i18n (0.6.5)
64
+ mail (2.5.4)
65
+ mime-types (~> 1.16)
66
+ treetop (~> 1.4.8)
67
+ mime-types (1.25)
68
+ minitest (4.7.5)
69
+ multi_json (1.8.2)
70
+ polyglot (0.3.3)
71
+ rack (1.5.2)
72
+ rack-test (0.6.2)
73
+ rack (>= 1.0)
74
+ rails (4.0.0)
75
+ actionmailer (= 4.0.0)
76
+ actionpack (= 4.0.0)
77
+ activerecord (= 4.0.0)
78
+ activesupport (= 4.0.0)
79
+ bundler (>= 1.3.0, < 2.0)
80
+ railties (= 4.0.0)
81
+ sprockets-rails (~> 2.0.0)
82
+ railties (4.0.0)
83
+ actionpack (= 4.0.0)
84
+ activesupport (= 4.0.0)
85
+ rake (>= 0.8.7)
86
+ thor (>= 0.18.1, < 2.0)
87
+ rake (10.1.0)
88
+ rspec-expectations (2.14.4)
89
+ diff-lcs (>= 1.1.3, < 2.0)
90
+ sprockets (2.10.0)
91
+ hike (~> 1.2)
92
+ multi_json (~> 1.0)
93
+ rack (~> 1.0)
94
+ tilt (~> 1.1, != 1.3.0)
95
+ sprockets-rails (2.0.1)
96
+ actionpack (>= 3.0)
97
+ activesupport (>= 3.0)
98
+ sprockets (~> 2.8)
99
+ thor (0.18.1)
100
+ thread_safe (0.1.3)
101
+ atomic
102
+ tilt (1.4.1)
103
+ treetop (1.4.15)
104
+ polyglot
105
+ polyglot (>= 0.3.1)
106
+ tzinfo (0.3.38)
107
+
108
+ PLATFORMS
109
+ ruby
110
+
111
+ DEPENDENCIES
112
+ appraisal (~> 0.5.0)
113
+ aruba (~> 0.5.1)
114
+ cucumber (~> 1.2.1)
115
+ factory_girl_rails
116
+ factory_girl_sequences!
117
+ rails (= 4.0)
118
+ rake
@@ -14,13 +14,14 @@ module FactoryGirl
14
14
  register_sequence(Sequence.new(:email) { |n| "person#{n}@example.com" })
15
15
 
16
16
  # network
17
+ register_sequence(Sequence.new(:port) { |n| (1024 + n % 49151) })
17
18
  register_sequence(Sequence.new(:ip_address) { |n| "192.168.0.#{n%256}" })
18
19
  register_sequence(Sequence.new(:ip_subnet) { |n| "192.168.#{n%256}.0" })
19
20
  register_sequence(Sequence.new(:mac_address) { |n| "01:23:45:67:89:" + ("%02x" % "#{n%256}") })
20
21
 
21
22
  # post (or article)
22
23
  register_sequence(Sequence.new(:title) { |n| "Title #{n}" })
23
- register_sequence(Sequence.new(:body, :aliases => [:description]) { |n| "body-#{n}" })
24
+ register_sequence(Sequence.new(:body, :aliases => [:description, :text, :content]) { |n| "body-#{n}" })
24
25
  register_sequence(Sequence.new(:slug) { |n| "slug_#{n}" })
25
26
 
26
27
  # other
@@ -28,6 +29,8 @@ module FactoryGirl
28
29
  register_sequence(Sequence.new(:domain) { |n| "example#{n}.com" })
29
30
  register_sequence(Sequence.new(:subdomain) { |n| "blog#{n}" })
30
31
  register_sequence(Sequence.new(:color) { |n| "%06d" % n })
32
+ register_sequence(Sequence.new(:timestamp) { Time.current.to_i })
33
+ register_sequence(Sequence.new(:token) { |n| SecureRandom.base64(15).tr('+/=lIO0', "token#{n}") })
31
34
  end
32
35
  end
33
36
 
@@ -1,3 +1,3 @@
1
1
  module FactoryGirlSequences
2
- VERSION = "4.0.0"
2
+ VERSION = "4.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factory_girl_sequences
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-22 00:00:00.000000000 Z
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: factory_girl
@@ -67,14 +67,15 @@ files:
67
67
  - features/step_definitions/appraisal.rb
68
68
  - features/step_definitions/rails_steps.rb
69
69
  - features/support/env.rb
70
- - gemfiles/rails3.2.gemfile
71
- - gemfiles/rails3.2.gemfile.lock
70
+ - gemfiles/rails4.0.gemfile
71
+ - gemfiles/rails4.0.gemfile.lock
72
72
  - lib/factory_girl_sequences.rb
73
73
  - lib/factory_girl_sequences/reload.rb
74
74
  - lib/factory_girl_sequences/sequences.rb
75
75
  - lib/factory_girl_sequences/version.rb
76
76
  homepage: http://github.com/akalyaev/factory_girl_sequences
77
- licenses: []
77
+ licenses:
78
+ - MIT
78
79
  post_install_message:
79
80
  rdoc_options:
80
81
  - --line-numbers
@@ -93,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
94
  version: '0'
94
95
  segments:
95
96
  - 0
96
- hash: 2845564833420658873
97
+ hash: 736351186404686867
97
98
  required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  none: false
99
100
  requirements:
@@ -102,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
103
  version: '0'
103
104
  segments:
104
105
  - 0
105
- hash: 2845564833420658873
106
+ hash: 736351186404686867
106
107
  requirements: []
107
108
  rubyforge_project:
108
109
  rubygems_version: 1.8.24
@@ -1,19 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake"
6
- gem "appraisal", "~> 0.5.0"
7
- gem "cucumber", "~> 1.2.1"
8
- gem "aruba", "~> 0.5.1"
9
- gem "rails", "3.2.12"
10
- gem "sass-rails"
11
- gem "coffee-rails"
12
- gem "uglifier"
13
- gem "sqlite3", ">= 1.3.4", :platforms=>:mri
14
- gem "activerecord-jdbcsqlite3-adapter", "~> 1.2.5", :platforms=>:jruby
15
- gem "therubyrhino"
16
- gem "jquery-rails"
17
- gem "factory_girl_rails"
18
-
19
- gemspec :path=>"../"
@@ -1,155 +0,0 @@
1
- PATH
2
- remote: /home/vagrant/projects/funbox/factory_girl_sequences
3
- specs:
4
- factory_girl_sequences (0.1.1)
5
- activesupport (>= 3.0.0)
6
- factory_girl (~> 4.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (3.2.12)
12
- actionpack (= 3.2.12)
13
- mail (~> 2.4.4)
14
- actionpack (3.2.12)
15
- activemodel (= 3.2.12)
16
- activesupport (= 3.2.12)
17
- builder (~> 3.0.0)
18
- erubis (~> 2.7.0)
19
- journey (~> 1.0.4)
20
- rack (~> 1.4.5)
21
- rack-cache (~> 1.2)
22
- rack-test (~> 0.6.1)
23
- sprockets (~> 2.2.1)
24
- activemodel (3.2.12)
25
- activesupport (= 3.2.12)
26
- builder (~> 3.0.0)
27
- activerecord (3.2.12)
28
- activemodel (= 3.2.12)
29
- activesupport (= 3.2.12)
30
- arel (~> 3.0.2)
31
- tzinfo (~> 0.3.29)
32
- activeresource (3.2.12)
33
- activemodel (= 3.2.12)
34
- activesupport (= 3.2.12)
35
- activesupport (3.2.12)
36
- i18n (~> 0.6)
37
- multi_json (~> 1.0)
38
- appraisal (0.5.1)
39
- bundler
40
- rake
41
- arel (3.0.2)
42
- aruba (0.5.1)
43
- childprocess (~> 0.3.6)
44
- cucumber (>= 1.1.1)
45
- rspec-expectations (>= 2.7.0)
46
- builder (3.0.4)
47
- childprocess (0.3.8)
48
- ffi (~> 1.0, >= 1.0.11)
49
- coffee-rails (3.2.2)
50
- coffee-script (>= 2.2.0)
51
- railties (~> 3.2.0)
52
- coffee-script (2.2.0)
53
- coffee-script-source
54
- execjs
55
- coffee-script-source (1.4.0)
56
- cucumber (1.2.1)
57
- builder (>= 2.1.2)
58
- diff-lcs (>= 1.1.3)
59
- gherkin (~> 2.11.0)
60
- json (>= 1.4.6)
61
- diff-lcs (1.1.3)
62
- erubis (2.7.0)
63
- execjs (1.4.0)
64
- multi_json (~> 1.0)
65
- factory_girl (4.2.0)
66
- activesupport (>= 3.0.0)
67
- factory_girl_rails (4.2.1)
68
- factory_girl (~> 4.2.0)
69
- railties (>= 3.0.0)
70
- ffi (1.4.0)
71
- gherkin (2.11.6)
72
- json (>= 1.7.6)
73
- hike (1.2.1)
74
- i18n (0.6.1)
75
- journey (1.0.4)
76
- jquery-rails (2.2.1)
77
- railties (>= 3.0, < 5.0)
78
- thor (>= 0.14, < 2.0)
79
- json (1.7.7)
80
- mail (2.4.4)
81
- i18n (>= 0.4.0)
82
- mime-types (~> 1.16)
83
- treetop (~> 1.4.8)
84
- mime-types (1.21)
85
- multi_json (1.6.1)
86
- polyglot (0.3.3)
87
- rack (1.4.5)
88
- rack-cache (1.2)
89
- rack (>= 0.4)
90
- rack-ssl (1.3.3)
91
- rack
92
- rack-test (0.6.2)
93
- rack (>= 1.0)
94
- rails (3.2.12)
95
- actionmailer (= 3.2.12)
96
- actionpack (= 3.2.12)
97
- activerecord (= 3.2.12)
98
- activeresource (= 3.2.12)
99
- activesupport (= 3.2.12)
100
- bundler (~> 1.0)
101
- railties (= 3.2.12)
102
- railties (3.2.12)
103
- actionpack (= 3.2.12)
104
- activesupport (= 3.2.12)
105
- rack-ssl (~> 1.3.2)
106
- rake (>= 0.8.7)
107
- rdoc (~> 3.4)
108
- thor (>= 0.14.6, < 2.0)
109
- rake (10.0.3)
110
- rdoc (3.12.1)
111
- json (~> 1.4)
112
- rspec-expectations (2.12.1)
113
- diff-lcs (~> 1.1.3)
114
- sass (3.2.5)
115
- sass-rails (3.2.6)
116
- railties (~> 3.2.0)
117
- sass (>= 3.1.10)
118
- tilt (~> 1.3)
119
- sprockets (2.2.2)
120
- hike (~> 1.2)
121
- multi_json (~> 1.0)
122
- rack (~> 1.0)
123
- tilt (~> 1.1, != 1.3.0)
124
- sqlite3 (1.3.7)
125
- therubyrhino (2.0.2)
126
- therubyrhino_jar (>= 1.7.3)
127
- therubyrhino_jar (1.7.4)
128
- thor (0.17.0)
129
- tilt (1.3.3)
130
- treetop (1.4.12)
131
- polyglot
132
- polyglot (>= 0.3.1)
133
- tzinfo (0.3.35)
134
- uglifier (1.3.0)
135
- execjs (>= 0.3.0)
136
- multi_json (~> 1.0, >= 1.0.2)
137
-
138
- PLATFORMS
139
- ruby
140
-
141
- DEPENDENCIES
142
- activerecord-jdbcsqlite3-adapter (~> 1.2.5)
143
- appraisal (~> 0.5.0)
144
- aruba (~> 0.5.1)
145
- coffee-rails
146
- cucumber (~> 1.2.1)
147
- factory_girl_rails
148
- factory_girl_sequences!
149
- jquery-rails
150
- rails (= 3.2.12)
151
- rake
152
- sass-rails
153
- sqlite3 (>= 1.3.4)
154
- therubyrhino
155
- uglifier