codependency 1.0.0 → 2.0.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.
Files changed (77) hide show
  1. data/Guardfile +4 -4
  2. data/README.md +7 -4
  3. data/codependency.gemspec +6 -4
  4. data/lib/codependency.rb +1 -0
  5. data/lib/codependency/graph.rb +27 -34
  6. data/lib/codependency/parser.rb +11 -15
  7. data/lib/codependency/path.rb +53 -0
  8. data/lib/codependency/version.rb +1 -1
  9. data/spec/codependency/graph_spec.rb +89 -51
  10. data/spec/codependency/graph_spec/codependency_graph/files/assets/application.txt +6 -0
  11. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_account.txt +3 -0
  12. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_history.txt +3 -0
  13. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_user.txt +5 -0
  14. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/butter.txt +3 -0
  15. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/egg.txt +4 -0
  16. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/sandwich.txt +6 -0
  17. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/toast.txt +4 -0
  18. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/body.txt +3 -0
  19. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/earth.txt +5 -0
  20. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/mars.txt +5 -0
  21. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/phobos.txt +6 -0
  22. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/planet.txt +4 -0
  23. data/spec/codependency/graph_spec/codependency_graph/require/assets/application.txt +11 -0
  24. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_account.txt +3 -0
  25. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_history.txt +3 -0
  26. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_user.txt +8 -0
  27. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/butter.txt +3 -0
  28. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/egg.txt +6 -0
  29. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/sandwich.txt +13 -0
  30. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/toast.txt +6 -0
  31. data/spec/codependency/graph_spec/codependency_graph/require/lox/money.txt +11 -0
  32. data/spec/codependency/graph_spec/codependency_graph/require/lox/power.txt +11 -0
  33. data/spec/codependency/graph_spec/codependency_graph/require/lox/respect.txt +11 -0
  34. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/body.txt +3 -0
  35. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/earth.txt +9 -0
  36. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/mars.txt +9 -0
  37. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/phobos.txt +13 -0
  38. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/planet.txt +6 -0
  39. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/application.txt +6 -0
  40. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_account.txt +3 -0
  41. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_history.txt +3 -0
  42. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_user.txt +5 -0
  43. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/butter.txt +3 -0
  44. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/egg.txt +4 -0
  45. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/sandwich.txt +6 -0
  46. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/toast.txt +4 -0
  47. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/body.txt +3 -0
  48. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/earth.txt +5 -0
  49. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/mars.txt +5 -0
  50. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/phobos.txt +6 -0
  51. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/planet.txt +4 -0
  52. data/spec/codependency/parser_spec.rb +48 -40
  53. data/spec/codependency/path_spec.rb +55 -0
  54. data/spec/fixtures/assets/application.js +1 -0
  55. data/spec/fixtures/assets/templates/account.js +1 -0
  56. data/spec/fixtures/assets/templates/history.js +1 -0
  57. data/spec/fixtures/assets/templates/user.js +4 -0
  58. data/spec/fixtures/breakfast/butter.js +1 -0
  59. data/spec/fixtures/breakfast/egg.js +3 -0
  60. data/spec/fixtures/breakfast/sandwich.js +4 -0
  61. data/spec/fixtures/breakfast/toast.js +3 -0
  62. data/spec/fixtures/lox/money.rb +4 -0
  63. data/spec/fixtures/lox/power.rb +4 -0
  64. data/spec/fixtures/lox/respect.rb +4 -0
  65. data/spec/fixtures/solar_system/body.rb +2 -0
  66. data/spec/fixtures/solar_system/earth.rb +4 -0
  67. data/spec/fixtures/solar_system/mars.rb +4 -0
  68. data/spec/fixtures/solar_system/phobos.rb +5 -0
  69. data/spec/fixtures/solar_system/planet.rb +4 -0
  70. data/spec/spec_helper.rb +5 -2
  71. data/spec/support/approvals.rb +1 -0
  72. metadata +146 -17
  73. data/spec/support/breakfasts_context.rb +0 -24
  74. data/spec/support/circular_context.rb +0 -25
  75. data/spec/support/file_system_stubs.rb +0 -10
  76. data/spec/support/planets_context.rb +0 -38
  77. data/spec/support/subdirectories_context.rb +0 -21
@@ -0,0 +1 @@
1
+ var Account = { };
@@ -0,0 +1 @@
1
+ var History = { };
@@ -0,0 +1,4 @@
1
+ //= require assets/templates/history
2
+ //= require assets/templates/account
3
+
4
+ var User = { };
@@ -0,0 +1 @@
1
+ var Butter = { };
@@ -0,0 +1,3 @@
1
+ //= require breakfast/butter
2
+
3
+ var Egg = { };
@@ -0,0 +1,4 @@
1
+ //= require breakfast/egg
2
+ //= require breakfast/toast
3
+
4
+ var Sandwich = { };
@@ -0,0 +1,3 @@
1
+ //= require breakfast/butter
2
+
3
+ var Toast = { };
@@ -0,0 +1,4 @@
1
+ #= require lox/power
2
+
3
+ class Money
4
+ end
@@ -0,0 +1,4 @@
1
+ #= require lox/respect
2
+
3
+ class Power
4
+ end
@@ -0,0 +1,4 @@
1
+ #= require lox/money
2
+
3
+ class Respect
4
+ end
@@ -0,0 +1,2 @@
1
+ class Body
2
+ end
@@ -0,0 +1,4 @@
1
+ #= require solar_system/planet
2
+
3
+ class Earth
4
+ end
@@ -0,0 +1,4 @@
1
+ #= require solar_system/planet
2
+
3
+ class Mars
4
+ end
@@ -0,0 +1,5 @@
1
+ #= require solar_system/body
2
+ #= require solar_system/mars
3
+
4
+ class Phobos
5
+ end
@@ -0,0 +1,4 @@
1
+ #= require solar_system/body
2
+
3
+ class Planet
4
+ end
@@ -3,6 +3,9 @@ require 'codependency'
3
3
  Dir[ './spec/support/*.rb' ].each { |f| require f }
4
4
 
5
5
  RSpec.configure do |config|
6
- config.color_enabled = true
7
- config.include FileSystemStubs
6
+ config.color_enabled = true
7
+ config.fail_fast = false
8
+ config.run_all_when_everything_filtered = true
9
+ config.filter_run_including :focus => true
10
+ config.filter_run_excluding :broken => true
8
11
  end
@@ -0,0 +1 @@
1
+ require 'rspec/approvals'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codependency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-24 00:00:00.000000000 Z
12
+ date: 2013-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.11.0
21
+ version: 2.12.0
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.11.0
29
+ version: 2.12.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: guard-rspec
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.9.1
62
+ - !ruby/object:Gem::Dependency
63
+ name: git-approvals
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.2.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.2.0
62
78
  description: A pure ruby, comment-based dependency graph
63
79
  email:
64
80
  - jeremy.ruppel@gmail.com
@@ -76,17 +92,74 @@ files:
76
92
  - lib/codependency.rb
77
93
  - lib/codependency/graph.rb
78
94
  - lib/codependency/parser.rb
95
+ - lib/codependency/path.rb
79
96
  - lib/codependency/version.rb
80
97
  - spec/codependency/graph_spec.rb
98
+ - spec/codependency/graph_spec/codependency_graph/files/assets/application.txt
99
+ - spec/codependency/graph_spec/codependency_graph/files/assets/templates_account.txt
100
+ - spec/codependency/graph_spec/codependency_graph/files/assets/templates_history.txt
101
+ - spec/codependency/graph_spec/codependency_graph/files/assets/templates_user.txt
102
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/butter.txt
103
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/egg.txt
104
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/sandwich.txt
105
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/toast.txt
106
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/body.txt
107
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/earth.txt
108
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/mars.txt
109
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/phobos.txt
110
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/planet.txt
111
+ - spec/codependency/graph_spec/codependency_graph/require/assets/application.txt
112
+ - spec/codependency/graph_spec/codependency_graph/require/assets/templates_account.txt
113
+ - spec/codependency/graph_spec/codependency_graph/require/assets/templates_history.txt
114
+ - spec/codependency/graph_spec/codependency_graph/require/assets/templates_user.txt
115
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/butter.txt
116
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/egg.txt
117
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/sandwich.txt
118
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/toast.txt
119
+ - spec/codependency/graph_spec/codependency_graph/require/lox/money.txt
120
+ - spec/codependency/graph_spec/codependency_graph/require/lox/power.txt
121
+ - spec/codependency/graph_spec/codependency_graph/require/lox/respect.txt
122
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/body.txt
123
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/earth.txt
124
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/mars.txt
125
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/phobos.txt
126
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/planet.txt
127
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/application.txt
128
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_account.txt
129
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_history.txt
130
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_user.txt
131
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/butter.txt
132
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/egg.txt
133
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/sandwich.txt
134
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/toast.txt
135
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/body.txt
136
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/earth.txt
137
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/mars.txt
138
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/phobos.txt
139
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/planet.txt
81
140
  - spec/codependency/parser_spec.rb
141
+ - spec/codependency/path_spec.rb
142
+ - spec/fixtures/assets/application.js
143
+ - spec/fixtures/assets/templates/account.js
144
+ - spec/fixtures/assets/templates/history.js
145
+ - spec/fixtures/assets/templates/user.js
146
+ - spec/fixtures/breakfast/butter.js
147
+ - spec/fixtures/breakfast/egg.js
148
+ - spec/fixtures/breakfast/sandwich.js
149
+ - spec/fixtures/breakfast/toast.js
150
+ - spec/fixtures/lox/money.rb
151
+ - spec/fixtures/lox/power.rb
152
+ - spec/fixtures/lox/respect.rb
153
+ - spec/fixtures/solar_system/body.rb
154
+ - spec/fixtures/solar_system/earth.rb
155
+ - spec/fixtures/solar_system/mars.rb
156
+ - spec/fixtures/solar_system/phobos.rb
157
+ - spec/fixtures/solar_system/planet.rb
82
158
  - spec/spec_helper.rb
83
- - spec/support/breakfasts_context.rb
84
- - spec/support/circular_context.rb
85
- - spec/support/file_system_stubs.rb
86
- - spec/support/planets_context.rb
87
- - spec/support/subdirectories_context.rb
88
- homepage: ''
89
- licenses: []
159
+ - spec/support/approvals.rb
160
+ homepage: https://github.com/jeremyruppel/codependency
161
+ licenses:
162
+ - MIT
90
163
  post_install_message:
91
164
  rdoc_options: []
92
165
  require_paths:
@@ -105,16 +178,72 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
178
  version: '0'
106
179
  requirements: []
107
180
  rubyforge_project:
108
- rubygems_version: 1.8.19
181
+ rubygems_version: 1.8.23
109
182
  signing_key:
110
183
  specification_version: 3
111
184
  summary: A pure ruby, comment-based dependency graph
112
185
  test_files:
113
186
  - spec/codependency/graph_spec.rb
187
+ - spec/codependency/graph_spec/codependency_graph/files/assets/application.txt
188
+ - spec/codependency/graph_spec/codependency_graph/files/assets/templates_account.txt
189
+ - spec/codependency/graph_spec/codependency_graph/files/assets/templates_history.txt
190
+ - spec/codependency/graph_spec/codependency_graph/files/assets/templates_user.txt
191
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/butter.txt
192
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/egg.txt
193
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/sandwich.txt
194
+ - spec/codependency/graph_spec/codependency_graph/files/breakfast/toast.txt
195
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/body.txt
196
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/earth.txt
197
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/mars.txt
198
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/phobos.txt
199
+ - spec/codependency/graph_spec/codependency_graph/files/solar_system/planet.txt
200
+ - spec/codependency/graph_spec/codependency_graph/require/assets/application.txt
201
+ - spec/codependency/graph_spec/codependency_graph/require/assets/templates_account.txt
202
+ - spec/codependency/graph_spec/codependency_graph/require/assets/templates_history.txt
203
+ - spec/codependency/graph_spec/codependency_graph/require/assets/templates_user.txt
204
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/butter.txt
205
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/egg.txt
206
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/sandwich.txt
207
+ - spec/codependency/graph_spec/codependency_graph/require/breakfast/toast.txt
208
+ - spec/codependency/graph_spec/codependency_graph/require/lox/money.txt
209
+ - spec/codependency/graph_spec/codependency_graph/require/lox/power.txt
210
+ - spec/codependency/graph_spec/codependency_graph/require/lox/respect.txt
211
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/body.txt
212
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/earth.txt
213
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/mars.txt
214
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/phobos.txt
215
+ - spec/codependency/graph_spec/codependency_graph/require/solar_system/planet.txt
216
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/application.txt
217
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_account.txt
218
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_history.txt
219
+ - spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_user.txt
220
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/butter.txt
221
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/egg.txt
222
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/sandwich.txt
223
+ - spec/codependency/graph_spec/codependency_graph/tsort/breakfast/toast.txt
224
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/body.txt
225
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/earth.txt
226
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/mars.txt
227
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/phobos.txt
228
+ - spec/codependency/graph_spec/codependency_graph/tsort/solar_system/planet.txt
114
229
  - spec/codependency/parser_spec.rb
230
+ - spec/codependency/path_spec.rb
231
+ - spec/fixtures/assets/application.js
232
+ - spec/fixtures/assets/templates/account.js
233
+ - spec/fixtures/assets/templates/history.js
234
+ - spec/fixtures/assets/templates/user.js
235
+ - spec/fixtures/breakfast/butter.js
236
+ - spec/fixtures/breakfast/egg.js
237
+ - spec/fixtures/breakfast/sandwich.js
238
+ - spec/fixtures/breakfast/toast.js
239
+ - spec/fixtures/lox/money.rb
240
+ - spec/fixtures/lox/power.rb
241
+ - spec/fixtures/lox/respect.rb
242
+ - spec/fixtures/solar_system/body.rb
243
+ - spec/fixtures/solar_system/earth.rb
244
+ - spec/fixtures/solar_system/mars.rb
245
+ - spec/fixtures/solar_system/phobos.rb
246
+ - spec/fixtures/solar_system/planet.rb
115
247
  - spec/spec_helper.rb
116
- - spec/support/breakfasts_context.rb
117
- - spec/support/circular_context.rb
118
- - spec/support/file_system_stubs.rb
119
- - spec/support/planets_context.rb
120
- - spec/support/subdirectories_context.rb
248
+ - spec/support/approvals.rb
249
+ has_rdoc:
@@ -1,24 +0,0 @@
1
- shared_context 'breakfast foods', :files => :breakfasts do
2
-
3
- before do
4
- file './butter.js', <<-EOS
5
- var Butter = { }
6
- EOS
7
-
8
- file './egg.js', <<-EOS
9
- // require butter
10
- var Egg = { }
11
- EOS
12
-
13
- file './toast.js', <<-EOS
14
- // require butter
15
- var Toast = { }
16
- EOS
17
-
18
- file './sandwich.js', <<-EOS
19
- // require egg
20
- // require toast
21
- var Sandwich = { }
22
- EOS
23
- end
24
- end
@@ -1,25 +0,0 @@
1
- shared_context 'circular dependencies', :files => :circular do
2
-
3
- before do
4
- file './money.rb', <<-EOS
5
- # require power
6
-
7
- class Money
8
- end
9
- EOS
10
-
11
- file './power.rb', <<-EOS
12
- # require respect
13
-
14
- class Power
15
- end
16
- EOS
17
-
18
- file './respect.rb', <<-EOS
19
- # require money
20
-
21
- class Respect
22
- end
23
- EOS
24
- end
25
- end
@@ -1,10 +0,0 @@
1
- module FileSystemStubs
2
-
3
- ##
4
- # stubs the filesystem methods that codependency
5
- # uses to retrieve file contents
6
- def file( filename, contents )
7
- File.stub( :exist? ).with( filename ){ true }
8
- IO.stub( :readlines ).with( filename ){ contents.strip.split( /^\s+/ ) }
9
- end
10
- end
@@ -1,38 +0,0 @@
1
- shared_context 'solar system', :files => :planets do
2
-
3
- before do
4
- file './body.rb', <<-EOS
5
- class Body
6
- end
7
- EOS
8
-
9
- file './earth.rb', <<-EOS
10
- # require planet
11
-
12
- class Earth
13
- end
14
- EOS
15
-
16
- file './mars.rb', <<-EOS
17
- # require planet
18
-
19
- class Mars
20
- end
21
- EOS
22
-
23
- file './phobos.rb', <<-EOS
24
- # require body
25
- # require mars
26
-
27
- class Phobos
28
- end
29
- EOS
30
-
31
- file './planet.rb', <<-EOS
32
- # require body
33
-
34
- class Planet
35
- end
36
- EOS
37
- end
38
- end
@@ -1,21 +0,0 @@
1
- shared_context 'subdirectories', :files => :subdirectories do
2
-
3
- before do
4
- file 'assets/application.js', <<-EOS
5
- // require templates/user
6
- EOS
7
-
8
- file 'assets/templates/user.js', <<-EOS
9
- // require templates/user/history
10
- // require templates/user/account
11
- EOS
12
-
13
- file 'assets/templates/user/history.js', <<-EOS
14
- var History = { }
15
- EOS
16
-
17
- file 'assets/templates/user/account.js', <<-EOS
18
- var Account = { }
19
- EOS
20
- end
21
- end