wagons 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/Rakefile +4 -6
- data/lib/generators/wagon/templates/%singular_name%.gemspec.tt +12 -11
- data/lib/generators/wagon/templates/{script → bin}/rails.tt +3 -2
- data/lib/generators/wagon/templates/config/routes.rb +1 -1
- data/lib/generators/wagon/templates/lib/%singular_name%/version.rb.tt +2 -2
- data/lib/generators/wagon/templates/lib/%singular_name%.rb.tt +0 -1
- data/lib/generators/wagon/wagon_generator.rb +4 -6
- data/lib/wagons/extensions/application.rb +2 -4
- data/lib/wagons/extensions/require_optional.rb +2 -2
- data/lib/wagons/extensions/test_case.rb +5 -7
- data/lib/wagons/installer.rb +52 -56
- data/lib/wagons/railtie.rb +2 -2
- data/lib/wagons/version.rb +1 -1
- data/lib/wagons/view_helper.rb +14 -16
- data/lib/wagons/wagon.rb +6 -8
- data/lib/wagons.rb +8 -10
- data/test/ci/rails3.gemfile.lock +108 -0
- data/test/dummy/Gemfile.lock +52 -48
- data/test/dummy/app/controllers/people_controller.rb +1 -3
- data/test/dummy/app/models/person.rb +1 -1
- data/test/dummy/config/application.rb +3 -4
- data/test/dummy/config/boot.rb +1 -1
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/dummy/config/environments/production.rb +1 -1
- data/test/dummy/config/environments/test.rb +2 -2
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/dummy/config/initializers/wagon_app_version.rb +1 -1
- data/test/dummy/config/initializers/wrap_parameters.rb +1 -1
- data/test/dummy/config/routes.rb +3 -3
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/fixtures/development/people.rb +3 -3
- data/test/dummy/db/fixtures/test/people.rb +3 -3
- data/test/dummy/db/schema.rb +5 -5
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1528 -1015
- data/test/dummy/log/test.log +11807 -6530
- data/test/dummy/test/models/person_test.rb +5 -5
- data/test/dummy/test/test_helper.rb +1 -1
- 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
- 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 +53 -49
- data/test/dummy/vendor/wagons/superliner/app/controllers/cities_controller.rb +1 -2
- data/test/dummy/vendor/wagons/superliner/app/models/city.rb +2 -2
- data/test/dummy/vendor/wagons/superliner/db/fixtures/cities.rb +1 -1
- data/test/dummy/vendor/wagons/superliner/db/migrate/20120606125058_create_cities.rb +1 -1
- data/test/dummy/vendor/wagons/superliner/dummy_superliner.gemspec +11 -11
- data/test/dummy/vendor/wagons/superliner/lib/dummy_superliner/version.rb +2 -2
- data/test/dummy/vendor/wagons/superliner/lib/dummy_superliner/wagon.rb +3 -4
- data/test/dummy/vendor/wagons/superliner/lib/dummy_superliner.rb +1 -1
- data/test/dummy/vendor/wagons/superliner/script/rails +1 -1
- data/test/dummy/vendor/wagons/superliner/test/controllers/cities_controller_test.rb +5 -7
- data/test/dummy/vendor/wagons/superliner/test/controllers/people_controller_test.rb +2 -4
- data/test/dummy/vendor/wagons/superliner/test/models/city_test.rb +3 -3
- data/test/dummy/vendor/wagons/superliner/test/models/person_test.rb +5 -7
- data/test/dummy/vendor/wagons/superliner/test/test_helper.rb +1 -2
- data/test/dummy/vendor/wagons/superliner/test/wagon_test.rb +23 -24
- data/test/test_helper.rb +5 -5
- data/test/wagons_installer_test.rb +72 -75
- data/test/wagons_test.rb +1 -1
- metadata +174 -160
@@ -0,0 +1,108 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/pascal/Code/ruby/wagons
|
3
|
+
specs:
|
4
|
+
wagons (0.1.1)
|
5
|
+
bundler (>= 1.1)
|
6
|
+
rails (>= 3.2)
|
7
|
+
seed-fu-ndo (>= 0.0.2)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionmailer (3.2.16)
|
13
|
+
actionpack (= 3.2.16)
|
14
|
+
mail (~> 2.5.4)
|
15
|
+
actionpack (3.2.16)
|
16
|
+
activemodel (= 3.2.16)
|
17
|
+
activesupport (= 3.2.16)
|
18
|
+
builder (~> 3.0.0)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
journey (~> 1.0.4)
|
21
|
+
rack (~> 1.4.5)
|
22
|
+
rack-cache (~> 1.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.2.1)
|
25
|
+
activemodel (3.2.16)
|
26
|
+
activesupport (= 3.2.16)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
activerecord (3.2.16)
|
29
|
+
activemodel (= 3.2.16)
|
30
|
+
activesupport (= 3.2.16)
|
31
|
+
arel (~> 3.0.2)
|
32
|
+
tzinfo (~> 0.3.29)
|
33
|
+
activeresource (3.2.16)
|
34
|
+
activemodel (= 3.2.16)
|
35
|
+
activesupport (= 3.2.16)
|
36
|
+
activesupport (3.2.16)
|
37
|
+
i18n (~> 0.6, >= 0.6.4)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
arel (3.0.3)
|
40
|
+
builder (3.0.4)
|
41
|
+
erubis (2.7.0)
|
42
|
+
hike (1.2.3)
|
43
|
+
i18n (0.6.9)
|
44
|
+
journey (1.0.4)
|
45
|
+
json (1.8.1)
|
46
|
+
mail (2.5.4)
|
47
|
+
mime-types (~> 1.16)
|
48
|
+
treetop (~> 1.4.8)
|
49
|
+
metaclass (0.0.1)
|
50
|
+
mime-types (1.25.1)
|
51
|
+
mocha (0.14.0)
|
52
|
+
metaclass (~> 0.0.1)
|
53
|
+
multi_json (1.8.2)
|
54
|
+
open4 (1.3.0)
|
55
|
+
polyglot (0.3.3)
|
56
|
+
rack (1.4.5)
|
57
|
+
rack-cache (1.2)
|
58
|
+
rack (>= 0.4)
|
59
|
+
rack-ssl (1.3.3)
|
60
|
+
rack
|
61
|
+
rack-test (0.6.2)
|
62
|
+
rack (>= 1.0)
|
63
|
+
rails (3.2.16)
|
64
|
+
actionmailer (= 3.2.16)
|
65
|
+
actionpack (= 3.2.16)
|
66
|
+
activerecord (= 3.2.16)
|
67
|
+
activeresource (= 3.2.16)
|
68
|
+
activesupport (= 3.2.16)
|
69
|
+
bundler (~> 1.0)
|
70
|
+
railties (= 3.2.16)
|
71
|
+
railties (3.2.16)
|
72
|
+
actionpack (= 3.2.16)
|
73
|
+
activesupport (= 3.2.16)
|
74
|
+
rack-ssl (~> 1.3.2)
|
75
|
+
rake (>= 0.8.7)
|
76
|
+
rdoc (~> 3.4)
|
77
|
+
thor (>= 0.14.6, < 2.0)
|
78
|
+
rake (10.1.0)
|
79
|
+
rdoc (3.12.2)
|
80
|
+
json (~> 1.4)
|
81
|
+
seed-fu (2.3.0)
|
82
|
+
activerecord (>= 3.1, < 4.1)
|
83
|
+
activesupport (>= 3.1, < 4.1)
|
84
|
+
seed-fu-ndo (0.0.2)
|
85
|
+
seed-fu (>= 2.2.0)
|
86
|
+
sprockets (2.2.2)
|
87
|
+
hike (~> 1.2)
|
88
|
+
multi_json (~> 1.0)
|
89
|
+
rack (~> 1.0)
|
90
|
+
tilt (~> 1.1, != 1.3.0)
|
91
|
+
sqlite3 (1.3.8)
|
92
|
+
thor (0.18.1)
|
93
|
+
tilt (1.4.1)
|
94
|
+
treetop (1.4.15)
|
95
|
+
polyglot
|
96
|
+
polyglot (>= 0.3.1)
|
97
|
+
tzinfo (0.3.38)
|
98
|
+
|
99
|
+
PLATFORMS
|
100
|
+
ruby
|
101
|
+
|
102
|
+
DEPENDENCIES
|
103
|
+
mocha
|
104
|
+
open4
|
105
|
+
rails (~> 3.2)
|
106
|
+
seed-fu-ndo (>= 0.0.2)
|
107
|
+
sqlite3
|
108
|
+
wagons!
|
data/test/dummy/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
|
-
remote: /
|
2
|
+
remote: /Users/pascal/Code/ruby/wagons
|
3
3
|
specs:
|
4
|
-
wagons (0.
|
4
|
+
wagons (0.3.0)
|
5
5
|
bundler (>= 1.1)
|
6
6
|
rails (>= 3.2)
|
7
7
|
seed-fu-ndo (>= 0.0.2)
|
@@ -19,86 +19,90 @@ PATH
|
|
19
19
|
GEM
|
20
20
|
remote: https://rubygems.org/
|
21
21
|
specs:
|
22
|
-
actionmailer (4.
|
23
|
-
actionpack (= 4.
|
22
|
+
actionmailer (4.1.1)
|
23
|
+
actionpack (= 4.1.1)
|
24
|
+
actionview (= 4.1.1)
|
24
25
|
mail (~> 2.5.4)
|
25
|
-
actionpack (4.
|
26
|
-
|
27
|
-
|
28
|
-
erubis (~> 2.7.0)
|
26
|
+
actionpack (4.1.1)
|
27
|
+
actionview (= 4.1.1)
|
28
|
+
activesupport (= 4.1.1)
|
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
|
-
|
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)
|
44
46
|
thread_safe (~> 0.1)
|
45
|
-
tzinfo (~>
|
46
|
-
arel (
|
47
|
-
|
48
|
-
builder (3.1.4)
|
47
|
+
tzinfo (~> 1.1)
|
48
|
+
arel (5.0.1.20140414130214)
|
49
|
+
builder (3.2.2)
|
49
50
|
erubis (2.7.0)
|
50
51
|
hike (1.2.3)
|
51
52
|
i18n (0.6.9)
|
53
|
+
json (1.8.1)
|
52
54
|
mail (2.5.4)
|
53
55
|
mime-types (~> 1.16)
|
54
56
|
treetop (~> 1.4.8)
|
55
57
|
metaclass (0.0.1)
|
56
58
|
mime-types (1.25.1)
|
57
|
-
minitest (
|
59
|
+
minitest (5.3.4)
|
58
60
|
mocha (0.14.0)
|
59
61
|
metaclass (~> 0.0.1)
|
60
|
-
multi_json (1.
|
62
|
+
multi_json (1.10.1)
|
61
63
|
polyglot (0.3.4)
|
62
64
|
rack (1.5.2)
|
63
65
|
rack-test (0.6.2)
|
64
66
|
rack (>= 1.0)
|
65
|
-
rails (4.
|
66
|
-
actionmailer (= 4.
|
67
|
-
actionpack (= 4.
|
68
|
-
|
69
|
-
|
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)
|
70
74
|
bundler (>= 1.3.0, < 2.0)
|
71
|
-
railties (= 4.
|
72
|
-
sprockets-rails (~> 2.0
|
73
|
-
railties (4.
|
74
|
-
actionpack (= 4.
|
75
|
-
activesupport (= 4.
|
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)
|
76
80
|
rake (>= 0.8.7)
|
77
81
|
thor (>= 0.18.1, < 2.0)
|
78
|
-
rake (10.
|
79
|
-
seed-fu (2.3.
|
80
|
-
activerecord (>= 3.1, < 4.
|
81
|
-
activesupport (>= 3.1, < 4.
|
82
|
+
rake (10.3.2)
|
83
|
+
seed-fu (2.3.1)
|
84
|
+
activerecord (>= 3.1, < 4.2)
|
85
|
+
activesupport (>= 3.1, < 4.2)
|
82
86
|
seed-fu-ndo (0.0.2)
|
83
87
|
seed-fu (>= 2.2.0)
|
84
|
-
sprockets (2.
|
88
|
+
sprockets (2.12.1)
|
85
89
|
hike (~> 1.2)
|
86
90
|
multi_json (~> 1.0)
|
87
91
|
rack (~> 1.0)
|
88
92
|
tilt (~> 1.1, != 1.3.0)
|
89
|
-
sprockets-rails (2.
|
93
|
+
sprockets-rails (2.1.3)
|
90
94
|
actionpack (>= 3.0)
|
91
95
|
activesupport (>= 3.0)
|
92
96
|
sprockets (~> 2.8)
|
93
|
-
sqlite3 (1.3.
|
94
|
-
thor (0.
|
95
|
-
thread_safe (0.
|
96
|
-
atomic (>= 1.1.7, < 2)
|
97
|
+
sqlite3 (1.3.8)
|
98
|
+
thor (0.19.1)
|
99
|
+
thread_safe (0.3.3)
|
97
100
|
tilt (1.4.1)
|
98
101
|
treetop (1.4.15)
|
99
102
|
polyglot
|
100
103
|
polyglot (>= 0.3.1)
|
101
|
-
tzinfo (
|
104
|
+
tzinfo (1.2.0)
|
105
|
+
thread_safe (~> 0.1)
|
102
106
|
|
103
107
|
PLATFORMS
|
104
108
|
ruby
|
@@ -4,9 +4,9 @@ require 'rails/all'
|
|
4
4
|
|
5
5
|
if defined?(Bundler)
|
6
6
|
# If you precompile assets before deploying to production, use this line
|
7
|
-
Bundler.require(*Rails.groups(:
|
7
|
+
Bundler.require(*Rails.groups(assets: %w(development test)))
|
8
8
|
# If you want your assets lazily compiled in production, use this line
|
9
|
-
#Bundler.require(:default, :assets, Rails.env)
|
9
|
+
# Bundler.require(:default, :assets, Rails.env)
|
10
10
|
end
|
11
11
|
|
12
12
|
module Dummy
|
@@ -35,7 +35,7 @@ module Dummy
|
|
35
35
|
config.i18n.enforce_available_locales = true
|
36
36
|
|
37
37
|
# Configure the default encoding used in templates for Ruby 1.9.
|
38
|
-
config.encoding =
|
38
|
+
config.encoding = 'utf-8'
|
39
39
|
|
40
40
|
# Configure sensitive parameters which will be filtered from the log file.
|
41
41
|
config.filter_parameters += [:password]
|
@@ -60,4 +60,3 @@ module Dummy
|
|
60
60
|
config.assets.version = '1.0'
|
61
61
|
end
|
62
62
|
end
|
63
|
-
|
data/test/dummy/config/boot.rb
CHANGED
@@ -5,7 +5,7 @@ Dummy::Application.configure do
|
|
5
5
|
# every request. This slows down response time but is perfect for development
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
|
-
|
8
|
+
|
9
9
|
config.eager_load = false
|
10
10
|
|
11
11
|
# Show full error reports and disable caching
|
@@ -8,10 +8,10 @@ Dummy::Application.configure do
|
|
8
8
|
config.cache_classes = true
|
9
9
|
|
10
10
|
config.eager_load = false
|
11
|
-
|
11
|
+
|
12
12
|
# Configure static asset server for tests with Cache-Control for performance
|
13
13
|
config.serve_static_assets = true
|
14
|
-
config.static_cache_control =
|
14
|
+
config.static_cache_control = 'public, max-age=3600'
|
15
15
|
|
16
16
|
# Show full error reports and disable caching
|
17
17
|
config.consider_all_requests_local = true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
Dummy::Application.config.session_store :cookie_store, :
|
3
|
+
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
|
4
4
|
|
5
5
|
# Use the database for sessions instead of the cookie-based default,
|
6
6
|
# which shouldn't be used to store highly confidential information
|
@@ -2,6 +2,6 @@ Wagons.app_version = '1.0.0'
|
|
2
2
|
|
3
3
|
Wagons.all.each do |wagon|
|
4
4
|
unless wagon.app_requirement.satisfied_by?(Wagons.app_version)
|
5
|
-
|
5
|
+
fail "#{wagon.gem_name} requires application version #{wagon.app_requirement}; got #{Wagons.app_version}"
|
6
6
|
end
|
7
7
|
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
7
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters :
|
8
|
+
wrap_parameters format: [:json]
|
9
9
|
end
|
10
10
|
|
11
11
|
# Disable root element in JSON by default.
|
data/test/dummy/config/routes.rb
CHANGED
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Person.seed(:name,
|
2
|
-
|
3
|
-
|
1
|
+
Person.seed(:name,
|
2
|
+
name: 'Pascal',
|
3
|
+
birthday: '1980-21-08'
|
4
4
|
)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Person.seed(:name,
|
2
|
-
|
3
|
-
|
1
|
+
Person.seed(:name,
|
2
|
+
name: 'Pascal',
|
3
|
+
birthday: '1980-21-08'
|
4
4
|
)
|
data/test/dummy/db/schema.rb
CHANGED
@@ -9,15 +9,15 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 20120606125104) do
|
15
15
|
|
16
|
-
create_table "people", :
|
16
|
+
create_table "people", force: true do |t|
|
17
17
|
t.string "name"
|
18
18
|
t.date "birthday"
|
19
|
-
t.datetime "created_at", :
|
20
|
-
t.datetime "updated_at", :
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.datetime "updated_at", null: false
|
21
21
|
end
|
22
22
|
|
23
23
|
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|