seed-fu 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a81ab728565bc259847adcfcfbbd1784be3723b8
4
- data.tar.gz: 817dcff023424e4845223428ae574598bca730b4
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NzBjMTJiMTdlZDQ2ZWZkOTFhNWZhOWQ3OTlkYjgwZWI4YTJlNjFmMw==
5
+ data.tar.gz: !binary |-
6
+ ODg4MmNiZDEwZDM0MmZmNDhhOWRhZWMxNTBmNzFlNjVmNjM1ZGI2MQ==
5
7
  SHA512:
6
- metadata.gz: 89be546101985d21ac6da8be588849fb06cfd581e0e6803d98d1f7044ba97f2672a0d5d69073ce296d1fc4d3ed3f29f0334516587b5087da6522d4ffa2aca5d0
7
- data.tar.gz: dd2ace6aa209be1cbddf4d9a366f5a61149ab7cc886d0054555148d86938b532013dbf28794c48ccea1c1ef9d65e290bd0dd4e269c10d327c2b6e38770254b1f
8
+ metadata.gz: !binary |-
9
+ NDM4NTI2YTIxNDg4YmQyMGQ5YzA1YmFkYmZhZWQ4ZTViY2JjYjRiZTBmODc5
10
+ MjA0YjkxZjE4MDkzZTc5NjgyMmE3YWJiMTE2NjlkZjhjN2U1NmU5Nzc3OTBl
11
+ OGRkMTQ4ZTA0OGVlNDU5MzcxYTM5N2NmMjk5NjMxYWU4ZWQ1OTg=
12
+ data.tar.gz: !binary |-
13
+ MzI0YzEyZjQ3YWRhYWNkZmFlYWI5NGMzZmI4YzQ5MjIxYzM4YjMyYmMyYzYy
14
+ YjFlYjU4NjlhOWJmZGEzNTlhODg0Yjk0MDQ5OGM4MDEwYzk4YjA5YTI4MzBk
15
+ ZmZmMjAyM2JkZDJmMTkyMzlhODI5ODQyMzNiNDg4NGViM2UyNjk=
data/README.md CHANGED
@@ -39,13 +39,6 @@ Basic Example
39
39
  Installation
40
40
  ------------
41
41
 
42
- ### Rails 4.0
43
-
44
- The current latest version isn't compatible with Rails 4.0.
45
- You will have to use the HEAD of this repo.
46
-
47
- gem 'seed-fu', github: 'mbleigh/seed-fu'
48
-
49
42
  ### Rails 3.1
50
43
 
51
44
  Just add `gem 'seed-fu', '~> 2.1.0'` to your `Gemfile`
@@ -141,7 +134,20 @@ Seed files can be huge. To handle large files (over a million rows), try these
141
134
  Generating seed files
142
135
  ---------------------
143
136
 
144
- If you need to programmatically generate seed files, for example to convert a CSV file into a seed file, then you can use [`SeedFu::Writer`](../SeedFu/Writer).
137
+ If you need to programmatically generate seed files, for example to convert a CSV file into a seed file, then you can use [`SeedFu::Writer`](lib/seed-fu/writer.rb).
138
+
139
+ Capistrano deployment
140
+ ---------------------
141
+
142
+ SeedFu has included Capistrano [deploy script](lib/seed-fu/capistrano.rb), you just need require that
143
+ in `config/deploy.rb`:
144
+
145
+ ```ruby
146
+ require 'seed-fu/capistrano'
147
+
148
+ # Trigger the task after update_code
149
+ after 'deploy:update_code', 'db:seed_fu'
150
+ ```
145
151
 
146
152
  Bugs / Feature requests
147
153
  -----------------------
@@ -0,0 +1,8 @@
1
+ Capistrano::Configuration.instance.load do
2
+ namespace :db do
3
+ desc "Load seed data into database"
4
+ task :seed_fu, :roles => :db, :only => { :primary => true } do
5
+ run "cd #{release_path} && bundle exec rake RAILS_ENV=#{rails_env} db:seed_fu"
6
+ end
7
+ end
8
+ end
@@ -1,4 +1,4 @@
1
1
  module SeedFu
2
2
  # The current version of Seed Fu
3
- VERSION = '2.3.0'
3
+ VERSION = '2.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seed-fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -9,48 +9,48 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-22 00:00:00.000000000 Z
12
+ date: 2014-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.1'
21
21
  - - <
22
22
  - !ruby/object:Gem::Version
23
- version: '4.1'
23
+ version: '4.2'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - '>='
28
+ - - ! '>='
29
29
  - !ruby/object:Gem::Version
30
30
  version: '3.1'
31
31
  - - <
32
32
  - !ruby/object:Gem::Version
33
- version: '4.1'
33
+ version: '4.2'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activesupport
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.1'
41
41
  - - <
42
42
  - !ruby/object:Gem::Version
43
- version: '4.1'
43
+ version: '4.2'
44
44
  type: :runtime
45
45
  prerelease: false
46
46
  version_requirements: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - '>='
48
+ - - ! '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: '3.1'
51
51
  - - <
52
52
  - !ruby/object:Gem::Version
53
- version: '4.1'
53
+ version: '4.2'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: rspec
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -69,42 +69,42 @@ dependencies:
69
69
  name: pg
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - '>='
72
+ - - ! '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  type: :development
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ! '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: mysql2
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ! '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  type: :development
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - '>='
93
+ - - ! '>='
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: sqlite3
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ! '>='
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  description: Seed Fu is an attempt to once and for all solve the problem of inserting
@@ -118,18 +118,19 @@ executables: []
118
118
  extensions: []
119
119
  extra_rdoc_files: []
120
120
  files:
121
+ - CHANGELOG.md
122
+ - LICENSE
123
+ - README.md
124
+ - lib/seed-fu.rb
121
125
  - lib/seed-fu/active_record_extension.rb
122
- - lib/seed-fu/writer.rb
123
- - lib/seed-fu/version.rb
126
+ - lib/seed-fu/block_hash.rb
127
+ - lib/seed-fu/capistrano.rb
124
128
  - lib/seed-fu/railtie.rb
125
129
  - lib/seed-fu/runner.rb
126
130
  - lib/seed-fu/seeder.rb
127
- - lib/seed-fu/block_hash.rb
128
- - lib/seed-fu.rb
131
+ - lib/seed-fu/version.rb
132
+ - lib/seed-fu/writer.rb
129
133
  - lib/tasks/seed_fu.rake
130
- - LICENSE
131
- - README.md
132
- - CHANGELOG.md
133
134
  homepage: http://github.com/mbleigh/seed-fu
134
135
  licenses: []
135
136
  metadata: {}
@@ -139,17 +140,17 @@ require_paths:
139
140
  - lib
140
141
  required_ruby_version: !ruby/object:Gem::Requirement
141
142
  requirements:
142
- - - '>='
143
+ - - ! '>='
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0'
145
146
  required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  requirements:
147
- - - '>='
148
+ - - ! '>='
148
149
  - !ruby/object:Gem::Version
149
150
  version: '0'
150
151
  requirements: []
151
152
  rubyforge_project:
152
- rubygems_version: 2.1.9
153
+ rubygems_version: 2.2.2
153
154
  signing_key:
154
155
  specification_version: 4
155
156
  summary: Easily manage seed data in your Active Record application