wagons 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(false) { sh cmd }
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
@@ -1,3 +1,3 @@
1
1
  module Wagons
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -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
- folders.collect do |folder|
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
 
@@ -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.0.9)
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.8)
23
- actionpack (= 3.2.8)
22
+ actionmailer (3.2.9)
23
+ actionpack (= 3.2.9)
24
24
  mail (~> 2.4.4)
25
- actionpack (3.2.8)
26
- activemodel (= 3.2.8)
27
- activesupport (= 3.2.8)
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.3)
35
- activemodel (3.2.8)
36
- activesupport (= 3.2.8)
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.8)
39
- activemodel (= 3.2.8)
40
- activesupport (= 3.2.8)
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.8)
44
- activemodel (= 3.2.8)
45
- activesupport (= 3.2.8)
46
- activesupport (3.2.8)
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.8)
74
- actionmailer (= 3.2.8)
75
- actionpack (= 3.2.8)
76
- activerecord (= 3.2.8)
77
- activeresource (= 3.2.8)
78
- activesupport (= 3.2.8)
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.8)
81
- railties (3.2.8)
82
- actionpack (= 3.2.8)
83
- activesupport (= 3.2.8)
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.9.2.2)
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.1.3)
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.34)
107
+ tzinfo (0.3.35)
107
108
 
108
109
  PLATFORMS
109
110
  ruby
@@ -0,0 +1 @@
1
+ Main Details
@@ -1,5 +1,7 @@
1
1
  <h1>People</h1>
2
2
 
3
+ <%= render 'details' %>
4
+
3
5
  <%= render_extensions :list, :locals => {:test => 42} %>
4
6
 
5
7
 
Binary file
Binary file