wagons 0.0.9 → 0.1.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.
- data/lib/tasks/wagons.rake +2 -1
- data/lib/wagons/version.rb +1 -1
- data/lib/wagons/view_helper.rb +13 -7
- data/test/dummy/Gemfile.lock +31 -30
- data/test/dummy/app/views/people/_details.html.erb +1 -0
- data/test/dummy/app/views/people/index.html.erb +2 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +541 -1419
- data/test/dummy/log/test.log +2104 -5778
- data/test/dummy/vendor/wagons/superliner/Gemfile.lock +31 -30
- data/test/dummy/vendor/wagons/superliner/app/views/people/_details.html.erb +1 -0
- data/test/dummy/vendor/wagons/superliner/test/functionals/people_controller_test.rb +2 -0
- metadata +232 -237
- 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/pids/server.pid +0 -1
data/lib/tasks/wagons.rake
CHANGED
@@ -124,9 +124,10 @@ eval(File.read(wagonfile)) if File.exist?(wagonfile)"
|
|
124
124
|
rel_dir = w.root.to_s.sub(Rails.root.to_s + File::SEPARATOR, '')
|
125
125
|
cmd = "cd #{rel_dir} && #{ENV['CMD']}"
|
126
126
|
Bundler.with_clean_env do
|
127
|
-
verbose(
|
127
|
+
verbose(Rake.application.options.trace) { sh cmd }
|
128
128
|
end
|
129
129
|
end
|
130
|
+
Rake::Task['wagon:exec'].reenable
|
130
131
|
end
|
131
132
|
|
132
133
|
namespace :bundle do
|
data/lib/wagons/version.rb
CHANGED
data/lib/wagons/view_helper.rb
CHANGED
@@ -34,14 +34,12 @@ module Wagons
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def find_extension_files(key, folders)
|
37
|
+
folder_pattern = glob_pattern(folders)
|
38
|
+
formats = glob_pattern(lookup_context.formats)
|
39
|
+
handlers = glob_pattern(lookup_context.handlers)
|
40
|
+
|
37
41
|
view_paths.collect do |path|
|
38
|
-
|
39
|
-
lookup_context.formats.collect do |format|
|
40
|
-
lookup_context.handlers.collect do |handler|
|
41
|
-
Dir.glob(File.join(path, folder, "_#{key}_*.#{format}.#{handler}"))
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
42
|
+
Dir.glob(File.join(path, folder_pattern, "_#{key}_*.#{formats}.#{handlers}"))
|
45
43
|
end.flatten
|
46
44
|
end
|
47
45
|
|
@@ -52,6 +50,14 @@ module Wagons
|
|
52
50
|
end
|
53
51
|
end
|
54
52
|
|
53
|
+
def glob_pattern(list)
|
54
|
+
if list.size == 1
|
55
|
+
list.first
|
56
|
+
else
|
57
|
+
"{#{list.join(',')}}"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
55
61
|
end
|
56
62
|
end
|
57
63
|
|
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.0
|
4
|
+
wagons (0.1.0)
|
5
5
|
bundler (>= 1.1)
|
6
6
|
rails (>= 3.2)
|
7
7
|
seed-fu-ndo (>= 0.0.2)
|
@@ -19,31 +19,31 @@ PATH
|
|
19
19
|
GEM
|
20
20
|
remote: http://rubygems.org/
|
21
21
|
specs:
|
22
|
-
actionmailer (3.2.
|
23
|
-
actionpack (= 3.2.
|
22
|
+
actionmailer (3.2.9)
|
23
|
+
actionpack (= 3.2.9)
|
24
24
|
mail (~> 2.4.4)
|
25
|
-
actionpack (3.2.
|
26
|
-
activemodel (= 3.2.
|
27
|
-
activesupport (= 3.2.
|
25
|
+
actionpack (3.2.9)
|
26
|
+
activemodel (= 3.2.9)
|
27
|
+
activesupport (= 3.2.9)
|
28
28
|
builder (~> 3.0.0)
|
29
29
|
erubis (~> 2.7.0)
|
30
30
|
journey (~> 1.0.4)
|
31
31
|
rack (~> 1.4.0)
|
32
32
|
rack-cache (~> 1.2)
|
33
33
|
rack-test (~> 0.6.1)
|
34
|
-
sprockets (~> 2.1
|
35
|
-
activemodel (3.2.
|
36
|
-
activesupport (= 3.2.
|
34
|
+
sprockets (~> 2.2.1)
|
35
|
+
activemodel (3.2.9)
|
36
|
+
activesupport (= 3.2.9)
|
37
37
|
builder (~> 3.0.0)
|
38
|
-
activerecord (3.2.
|
39
|
-
activemodel (= 3.2.
|
40
|
-
activesupport (= 3.2.
|
38
|
+
activerecord (3.2.9)
|
39
|
+
activemodel (= 3.2.9)
|
40
|
+
activesupport (= 3.2.9)
|
41
41
|
arel (~> 3.0.2)
|
42
42
|
tzinfo (~> 0.3.29)
|
43
|
-
activeresource (3.2.
|
44
|
-
activemodel (= 3.2.
|
45
|
-
activesupport (= 3.2.
|
46
|
-
activesupport (3.2.
|
43
|
+
activeresource (3.2.9)
|
44
|
+
activemodel (= 3.2.9)
|
45
|
+
activesupport (= 3.2.9)
|
46
|
+
activesupport (3.2.9)
|
47
47
|
i18n (~> 0.6)
|
48
48
|
multi_json (~> 1.0)
|
49
49
|
arel (3.0.2)
|
@@ -70,22 +70,22 @@ GEM
|
|
70
70
|
rack
|
71
71
|
rack-test (0.6.2)
|
72
72
|
rack (>= 1.0)
|
73
|
-
rails (3.2.
|
74
|
-
actionmailer (= 3.2.
|
75
|
-
actionpack (= 3.2.
|
76
|
-
activerecord (= 3.2.
|
77
|
-
activeresource (= 3.2.
|
78
|
-
activesupport (= 3.2.
|
73
|
+
rails (3.2.9)
|
74
|
+
actionmailer (= 3.2.9)
|
75
|
+
actionpack (= 3.2.9)
|
76
|
+
activerecord (= 3.2.9)
|
77
|
+
activeresource (= 3.2.9)
|
78
|
+
activesupport (= 3.2.9)
|
79
79
|
bundler (~> 1.0)
|
80
|
-
railties (= 3.2.
|
81
|
-
railties (3.2.
|
82
|
-
actionpack (= 3.2.
|
83
|
-
activesupport (= 3.2.
|
80
|
+
railties (= 3.2.9)
|
81
|
+
railties (3.2.9)
|
82
|
+
actionpack (= 3.2.9)
|
83
|
+
activesupport (= 3.2.9)
|
84
84
|
rack-ssl (~> 1.3.2)
|
85
85
|
rake (>= 0.8.7)
|
86
86
|
rdoc (~> 3.4)
|
87
87
|
thor (>= 0.14.6, < 2.0)
|
88
|
-
rake (0.
|
88
|
+
rake (10.0.2)
|
89
89
|
rdoc (3.12)
|
90
90
|
json (~> 1.4)
|
91
91
|
seed-fu (2.2.0)
|
@@ -93,8 +93,9 @@ GEM
|
|
93
93
|
activesupport (~> 3.1)
|
94
94
|
seed-fu-ndo (0.0.2)
|
95
95
|
seed-fu (>= 2.2.0)
|
96
|
-
sprockets (2.
|
96
|
+
sprockets (2.2.2)
|
97
97
|
hike (~> 1.2)
|
98
|
+
multi_json (~> 1.0)
|
98
99
|
rack (~> 1.0)
|
99
100
|
tilt (~> 1.1, != 1.3.0)
|
100
101
|
sqlite3 (1.3.6)
|
@@ -103,7 +104,7 @@ GEM
|
|
103
104
|
treetop (1.4.12)
|
104
105
|
polyglot
|
105
106
|
polyglot (>= 0.3.1)
|
106
|
-
tzinfo (0.3.
|
107
|
+
tzinfo (0.3.35)
|
107
108
|
|
108
109
|
PLATFORMS
|
109
110
|
ruby
|
@@ -0,0 +1 @@
|
|
1
|
+
Main Details
|
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|