wagons 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +8 -8
  2. data/lib/generators/wagon/templates/bin/rails.tt +2 -2
  3. data/lib/tasks/wagons.rake +23 -22
  4. data/lib/wagons/version.rb +1 -1
  5. data/test/dummy/Gemfile.lock +48 -52
  6. data/test/dummy/db/development.sqlite3 +0 -0
  7. data/test/dummy/db/test.sqlite3 +0 -0
  8. data/test/dummy/log/development.log +1015 -1528
  9. data/test/dummy/log/test.log +6518 -11795
  10. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  11. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  12. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  16. data/test/dummy/vendor/wagons/superliner/Gemfile.lock +49 -53
  17. metadata +69 -83
  18. data/test/ci/rails3.gemfile.lock +0 -108
  19. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  20. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  21. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  22. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  23. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  24. data/test/dummy/tmp/cache/assets/E04/890/s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MDZlMjkwNDgwZDQ0OTU5OTUwZTY1MmE2YWM5
14
+ ZGFhYjYzOWY5OWU0NjEwNmYyMTMzNzE5MDg5MWQ5MTc5MTY4MDMzNTQyMzc0
15
+ MTk2MzA0ZGQ0MmU3MWUxMTcwMzg0MGE3YjY2MDk2ZDczMmQ3MjY=
@@ -5,8 +5,8 @@
5
5
  ENGINE_ROOT = File.expand_path('../..', __FILE__)
6
6
 
7
7
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('Gemfile', ENGINE_ROOT)
8
- ENGINE_PATH = File.expand_path('lib/<%= singular_name %>/engine', ENGINE_ROOT)
8
+ ENGINE_PATH = File.expand_path('lib/<%= singular_name %>/wagon', ENGINE_ROOT)
9
9
 
10
10
  load File.expand_path('../../app_root.rb', __FILE__)
11
11
 
12
- load File.expand_path('script/rails', ENV['APP_ROOT'])
12
+ load File.expand_path('bin/rails', ENV['APP_ROOT'])
@@ -8,7 +8,7 @@ namespace :wagon do
8
8
  wagon.migrate(ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
9
9
  end
10
10
  end
11
-
11
+
12
12
  desc "Revert wagon migrations (options: WAGON=abc, VERBOSE=false)"
13
13
  task :revert => [:environment, :'db:load_config'] do
14
14
  ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
@@ -16,20 +16,20 @@ namespace :wagon do
16
16
  wagon.revert
17
17
  end
18
18
  end
19
-
19
+
20
20
  desc "Seed wagon data (options: WAGON=abc)"
21
- task :seed => :abort_if_pending_migrations do
21
+ task :seed => :abort_if_pending_migrations do
22
22
  wagons.each { |wagon| wagon.load_seed }
23
23
  end
24
-
24
+
25
25
  desc "Unseed wagon data (options: WAGON=abc)"
26
26
  task :unseed do
27
27
  wagons.reverse.each { |wagon| wagon.unload_seed }
28
28
  end
29
-
29
+
30
30
  desc "Migrate and seed wagons"
31
31
  task :setup => [:migrate, :seed]
32
-
32
+
33
33
  desc "Remove the specified wagon"
34
34
  task :remove => :environment do
35
35
  if wagons.size == 0 || (wagons.size > 1 && ENV['WAGON'].blank?)
@@ -44,7 +44,7 @@ namespace :wagon do
44
44
  end
45
45
  end
46
46
  end
47
-
47
+
48
48
  desc "Generate an initializer to set the application version"
49
49
  task :app_version do
50
50
  file = Rails.root.join('config', 'initializers', 'wagon_app_version.rb')
@@ -62,7 +62,7 @@ FIN
62
62
  end
63
63
  end
64
64
  end
65
-
65
+
66
66
  desc "Creates a Wagonfile for development"
67
67
  task :file do
68
68
  file = Rails.root.join('Wagonfile')
@@ -84,7 +84,7 @@ FIN
84
84
  File.open(gemfile, 'w') do |f|
85
85
  f.puts content
86
86
  f.puts "\n\n"
87
- f.puts "# Include the wagon gems you want attached in Wagonfile.
87
+ f.puts "# Include the wagon gems you want attached in Wagonfile.
88
88
  # Do not check Wagonfile into source control.
89
89
  #
90
90
  # To create a Wagonfile suitable for development, run 'rake wagon:file'
@@ -93,7 +93,7 @@ eval(File.read(wagonfile)) if File.exist?(wagonfile)"
93
93
  end
94
94
  end
95
95
  end
96
-
96
+
97
97
  namespace :file do
98
98
  desc "Create a Wagonfile for production"
99
99
  task :prod => :environment do
@@ -105,18 +105,18 @@ eval(File.read(wagonfile)) if File.exist?(wagonfile)"
105
105
  end
106
106
  end
107
107
  end
108
-
108
+
109
109
  desc "List the loaded wagons"
110
110
  task :list => :environment do # depend on environment to get correct order
111
111
  wagons.each {|p| puts p.wagon_name }
112
112
  end
113
-
113
+
114
114
  desc "Run the tests of WAGON"
115
115
  task :test do
116
116
  ENV['CMD'] = "bundle exec rake #{'-t' if Rake.application.options.trace}"
117
117
  Rake::Task['wagon:exec'].invoke
118
118
  end
119
-
119
+
120
120
  desc "Execute CMD in WAGON's base directory"
121
121
  task :exec do
122
122
  wagons.each do |w|
@@ -129,7 +129,7 @@ eval(File.read(wagonfile)) if File.exist?(wagonfile)"
129
129
  end
130
130
  Rake::Task['wagon:exec'].reenable
131
131
  end
132
-
132
+
133
133
  namespace :bundle do
134
134
  desc "Run bundle update for all WAGONs"
135
135
  task :update do
@@ -137,11 +137,12 @@ eval(File.read(wagonfile)) if File.exist?(wagonfile)"
137
137
  Rake::Task['wagon:exec'].invoke
138
138
  end
139
139
  end
140
-
141
-
140
+
141
+
142
142
  # desc "Raises an error if there are pending wagon migrations"
143
143
  task :abort_if_pending_migrations => :environment do
144
- pending_migrations = ActiveRecord::Migrator.new(:up, wagons.collect(&:migrations_paths).flatten).pending_migrations
144
+ files = ActiveRecord::Migrator.migrations(wagons.collect(&:migrations_paths).flatten)
145
+ pending_migrations = ActiveRecord::Migrator.new(:up, files).pending_migrations
145
146
 
146
147
  if pending_migrations.any?
147
148
  puts "You have #{pending_migrations.size} pending migrations:"
@@ -164,17 +165,17 @@ namespace :db do
164
165
  desc "Load core and wagon seeds into the current environment's database."
165
166
  task :all => ['db:seed', 'wagon:seed']
166
167
  end
167
-
168
+
168
169
  namespace :setup do
169
170
  desc "Create the database, load the schema, initialize with the seed data for core and wagons"
170
171
  task :all => ['db:setup', 'wagon:setup']
171
172
  end
172
-
173
+
173
174
  namespace :reset do
174
175
  desc "Recreate the database, load the schema, initialize with the seed data for core and wagons"
175
176
  task :all => ['db:reset', 'wagon:setup']
176
177
  end
177
-
178
+
178
179
  # DB schema should not be dumped if wagon migrations are loaded
179
180
  Rake::Task[:'db:_dump'].clear_actions
180
181
 
@@ -187,10 +188,10 @@ namespace :db do
187
188
  else
188
189
  Rake::Task[:'db:_dump_rails'].invoke
189
190
  end
190
-
191
+
191
192
  Rake::Task[:'db:_dump'].reenable
192
193
  end
193
-
194
+
194
195
  task :_dump_rails do
195
196
  case ActiveRecord::Base.schema_format
196
197
  when :ruby then Rake::Task["db:schema:dump"].invoke
@@ -1,3 +1,3 @@
1
1
  module Wagons
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /Users/pascal/Code/ruby/wagons
2
+ remote: /home/pzumkehr/src/ruby/wagons
3
3
  specs:
4
- wagons (0.3.0)
4
+ wagons (0.2.2)
5
5
  bundler (>= 1.1)
6
6
  rails (>= 3.2)
7
7
  seed-fu-ndo (>= 0.0.2)
@@ -19,90 +19,86 @@ PATH
19
19
  GEM
20
20
  remote: https://rubygems.org/
21
21
  specs:
22
- actionmailer (4.1.1)
23
- actionpack (= 4.1.1)
24
- actionview (= 4.1.1)
22
+ actionmailer (4.0.3)
23
+ actionpack (= 4.0.3)
25
24
  mail (~> 2.5.4)
26
- actionpack (4.1.1)
27
- actionview (= 4.1.1)
28
- activesupport (= 4.1.1)
25
+ actionpack (4.0.3)
26
+ activesupport (= 4.0.3)
27
+ builder (~> 3.1.0)
28
+ erubis (~> 2.7.0)
29
29
  rack (~> 1.5.2)
30
30
  rack-test (~> 0.6.2)
31
- actionview (4.1.1)
32
- activesupport (= 4.1.1)
33
- builder (~> 3.1)
34
- erubis (~> 2.7.0)
35
- activemodel (4.1.1)
36
- activesupport (= 4.1.1)
37
- builder (~> 3.1)
38
- activerecord (4.1.1)
39
- activemodel (= 4.1.1)
40
- activesupport (= 4.1.1)
41
- arel (~> 5.0.0)
42
- activesupport (4.1.1)
43
- i18n (~> 0.6, >= 0.6.9)
44
- json (~> 1.7, >= 1.7.7)
45
- minitest (~> 5.1)
31
+ activemodel (4.0.3)
32
+ activesupport (= 4.0.3)
33
+ builder (~> 3.1.0)
34
+ activerecord (4.0.3)
35
+ activemodel (= 4.0.3)
36
+ activerecord-deprecated_finders (~> 1.0.2)
37
+ activesupport (= 4.0.3)
38
+ arel (~> 4.0.0)
39
+ activerecord-deprecated_finders (1.0.3)
40
+ activesupport (4.0.3)
41
+ i18n (~> 0.6, >= 0.6.4)
42
+ minitest (~> 4.2)
43
+ multi_json (~> 1.3)
46
44
  thread_safe (~> 0.1)
47
- tzinfo (~> 1.1)
48
- arel (5.0.1.20140414130214)
49
- builder (3.2.2)
45
+ tzinfo (~> 0.3.37)
46
+ arel (4.0.2)
47
+ atomic (1.1.15)
48
+ builder (3.1.4)
50
49
  erubis (2.7.0)
51
50
  hike (1.2.3)
52
51
  i18n (0.6.9)
53
- json (1.8.1)
54
52
  mail (2.5.4)
55
53
  mime-types (~> 1.16)
56
54
  treetop (~> 1.4.8)
57
55
  metaclass (0.0.1)
58
56
  mime-types (1.25.1)
59
- minitest (5.3.4)
57
+ minitest (4.7.5)
60
58
  mocha (0.14.0)
61
59
  metaclass (~> 0.0.1)
62
- multi_json (1.10.1)
60
+ multi_json (1.8.4)
63
61
  polyglot (0.3.4)
64
62
  rack (1.5.2)
65
63
  rack-test (0.6.2)
66
64
  rack (>= 1.0)
67
- rails (4.1.1)
68
- actionmailer (= 4.1.1)
69
- actionpack (= 4.1.1)
70
- actionview (= 4.1.1)
71
- activemodel (= 4.1.1)
72
- activerecord (= 4.1.1)
73
- activesupport (= 4.1.1)
65
+ rails (4.0.3)
66
+ actionmailer (= 4.0.3)
67
+ actionpack (= 4.0.3)
68
+ activerecord (= 4.0.3)
69
+ activesupport (= 4.0.3)
74
70
  bundler (>= 1.3.0, < 2.0)
75
- railties (= 4.1.1)
76
- sprockets-rails (~> 2.0)
77
- railties (4.1.1)
78
- actionpack (= 4.1.1)
79
- activesupport (= 4.1.1)
71
+ railties (= 4.0.3)
72
+ sprockets-rails (~> 2.0.0)
73
+ railties (4.0.3)
74
+ actionpack (= 4.0.3)
75
+ activesupport (= 4.0.3)
80
76
  rake (>= 0.8.7)
81
77
  thor (>= 0.18.1, < 2.0)
82
- rake (10.3.2)
83
- seed-fu (2.3.1)
84
- activerecord (>= 3.1, < 4.2)
85
- activesupport (>= 3.1, < 4.2)
78
+ rake (10.1.1)
79
+ seed-fu (2.3.0)
80
+ activerecord (>= 3.1, < 4.1)
81
+ activesupport (>= 3.1, < 4.1)
86
82
  seed-fu-ndo (0.0.2)
87
83
  seed-fu (>= 2.2.0)
88
- sprockets (2.12.1)
84
+ sprockets (2.11.0)
89
85
  hike (~> 1.2)
90
86
  multi_json (~> 1.0)
91
87
  rack (~> 1.0)
92
88
  tilt (~> 1.1, != 1.3.0)
93
- sprockets-rails (2.1.3)
89
+ sprockets-rails (2.0.1)
94
90
  actionpack (>= 3.0)
95
91
  activesupport (>= 3.0)
96
92
  sprockets (~> 2.8)
97
- sqlite3 (1.3.8)
98
- thor (0.19.1)
99
- thread_safe (0.3.3)
93
+ sqlite3 (1.3.7)
94
+ thor (0.18.1)
95
+ thread_safe (0.2.0)
96
+ atomic (>= 1.1.7, < 2)
100
97
  tilt (1.4.1)
101
98
  treetop (1.4.15)
102
99
  polyglot
103
100
  polyglot (>= 0.3.1)
104
- tzinfo (1.2.0)
105
- thread_safe (~> 0.1)
101
+ tzinfo (0.3.38)
106
102
 
107
103
  PLATFORMS
108
104
  ruby
Binary file
Binary file