wagons 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/generators/wagon/templates/bin/rails.tt +2 -2
- data/lib/tasks/wagons.rake +23 -22
- data/lib/wagons/version.rb +1 -1
- data/test/dummy/Gemfile.lock +48 -52
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1015 -1528
- data/test/dummy/log/test.log +6518 -11795
- data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/vendor/wagons/superliner/Gemfile.lock +49 -53
- metadata +69 -83
- data/test/ci/rails3.gemfile.lock +0 -108
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTg0ZDk4Y2Q1NDMzZDkwYzRmZmI1MThlZjdjNDIwZjU4ZGQxZWZiMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTM2ODY5MDJmMzg1NzdkM2MxNDE4MDE2MWI2YTY3NmY5Y2JiMDc5Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTBlZDhkOTAzNDQxOWNjMGMwOWYzMTU4ODZkZDQ5NjczMTE1NGNmMzk0MTA0
|
10
|
+
Y2ZiNDY1ODcxMzgyNTI5Y2M1NjNkMmI4Zjg2Nzc2YTU2OWM5NWY0MDNkOGE2
|
11
|
+
ZTZhYWYzMjAyMjVmMjM1Y2I4MzAwZjIxMGIxMDZhNzA4MDBkN2M=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTNiODA1NzRkZTEwMWZkZjRiMDZlMjkwNDgwZDQ0OTU5OTUwZTY1MmE2YWM5
|
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 %>/
|
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('
|
12
|
+
load File.expand_path('bin/rails', ENV['APP_ROOT'])
|
data/lib/tasks/wagons.rake
CHANGED
@@ -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
|
-
|
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
|
data/lib/wagons/version.rb
CHANGED
data/test/dummy/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote: /
|
2
|
+
remote: /home/pzumkehr/src/ruby/wagons
|
3
3
|
specs:
|
4
|
-
wagons (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.
|
23
|
-
actionpack (= 4.
|
24
|
-
actionview (= 4.1.1)
|
22
|
+
actionmailer (4.0.3)
|
23
|
+
actionpack (= 4.0.3)
|
25
24
|
mail (~> 2.5.4)
|
26
|
-
actionpack (4.
|
27
|
-
|
28
|
-
|
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
|
-
|
32
|
-
activesupport (= 4.
|
33
|
-
builder (~> 3.1)
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
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 (~>
|
48
|
-
arel (
|
49
|
-
|
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 (
|
57
|
+
minitest (4.7.5)
|
60
58
|
mocha (0.14.0)
|
61
59
|
metaclass (~> 0.0.1)
|
62
|
-
multi_json (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.
|
68
|
-
actionmailer (= 4.
|
69
|
-
actionpack (= 4.
|
70
|
-
|
71
|
-
|
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.
|
76
|
-
sprockets-rails (~> 2.0)
|
77
|
-
railties (4.
|
78
|
-
actionpack (= 4.
|
79
|
-
activesupport (= 4.
|
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.
|
83
|
-
seed-fu (2.3.
|
84
|
-
activerecord (>= 3.1, < 4.
|
85
|
-
activesupport (>= 3.1, < 4.
|
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.
|
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
|
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.
|
98
|
-
thor (0.
|
99
|
-
thread_safe (0.
|
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 (
|
105
|
-
thread_safe (~> 0.1)
|
101
|
+
tzinfo (0.3.38)
|
106
102
|
|
107
103
|
PLATFORMS
|
108
104
|
ruby
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|