sprockets_fs 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/.document +5 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +28 -0
  4. data/Gemfile.lock +113 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +19 -0
  7. data/Rakefile +59 -0
  8. data/VERSION +1 -0
  9. data/bin/mount_sprockets_rails +27 -0
  10. data/bin/sprockets_fs +17 -0
  11. data/lib/sprockets_fs/log.rb +184 -0
  12. data/lib/sprockets_fs.rb +135 -0
  13. data/spec/data/parent/double.js.coffee +1 -0
  14. data/spec/data/parent/main.js +1 -0
  15. data/spec/spec_helper.rb +33 -0
  16. data/spec/sprockets_fs_spec.rb +173 -0
  17. data/spec/support/setup_dir.rb +12 -0
  18. data/spec/support/spec_forks.rb +45 -0
  19. data/sprockets_fs.gemspec +163 -0
  20. data/vol/env_explore.rb +30 -0
  21. data/vol/mongo_test.rb +24 -0
  22. data/vol/mount_app/.gitignore +15 -0
  23. data/vol/mount_app/Gemfile +55 -0
  24. data/vol/mount_app/Gemfile.lock +174 -0
  25. data/vol/mount_app/README.rdoc +261 -0
  26. data/vol/mount_app/Rakefile +7 -0
  27. data/vol/mount_app/app/assets/images/rails.png +0 -0
  28. data/vol/mount_app/app/assets/javascripts/application.js +15 -0
  29. data/vol/mount_app/app/assets/javascripts/main.js +1 -0
  30. data/vol/mount_app/app/assets/javascripts/widgets.js.coffee +1 -0
  31. data/vol/mount_app/app/assets/stylesheets/application.css +13 -0
  32. data/vol/mount_app/app/assets/stylesheets/widgets.css.scss +3 -0
  33. data/vol/mount_app/app/controllers/application_controller.rb +3 -0
  34. data/vol/mount_app/app/controllers/widgets_controller.rb +2 -0
  35. data/vol/mount_app/app/helpers/application_helper.rb +2 -0
  36. data/vol/mount_app/app/helpers/widgets_helper.rb +2 -0
  37. data/vol/mount_app/app/mailers/.gitkeep +0 -0
  38. data/vol/mount_app/app/models/.gitkeep +0 -0
  39. data/vol/mount_app/app/models/widget.rb +3 -0
  40. data/vol/mount_app/app/views/layouts/application.html.erb +14 -0
  41. data/vol/mount_app/config/application.rb +62 -0
  42. data/vol/mount_app/config/boot.rb +6 -0
  43. data/vol/mount_app/config/database.yml +25 -0
  44. data/vol/mount_app/config/environment.rb +5 -0
  45. data/vol/mount_app/config/environments/development.rb +37 -0
  46. data/vol/mount_app/config/environments/production.rb +67 -0
  47. data/vol/mount_app/config/environments/test.rb +37 -0
  48. data/vol/mount_app/config/initializers/backtrace_silencers.rb +7 -0
  49. data/vol/mount_app/config/initializers/inflections.rb +15 -0
  50. data/vol/mount_app/config/initializers/mime_types.rb +5 -0
  51. data/vol/mount_app/config/initializers/secret_token.rb +7 -0
  52. data/vol/mount_app/config/initializers/session_store.rb +8 -0
  53. data/vol/mount_app/config/initializers/wrap_parameters.rb +14 -0
  54. data/vol/mount_app/config/locales/en.yml +5 -0
  55. data/vol/mount_app/config/routes.rb +61 -0
  56. data/vol/mount_app/config.ru +4 -0
  57. data/vol/mount_app/db/migrate/20130429140835_create_widgets.rb +8 -0
  58. data/vol/mount_app/db/seeds.rb +7 -0
  59. data/vol/mount_app/lib/assets/.gitkeep +0 -0
  60. data/vol/mount_app/lib/tasks/.gitkeep +0 -0
  61. data/vol/mount_app/log/.gitkeep +0 -0
  62. data/vol/mount_app/public/404.html +26 -0
  63. data/vol/mount_app/public/422.html +26 -0
  64. data/vol/mount_app/public/500.html +25 -0
  65. data/vol/mount_app/public/favicon.ico +0 -0
  66. data/vol/mount_app/public/index.html +241 -0
  67. data/vol/mount_app/public/robots.txt +5 -0
  68. data/vol/mount_app/script/rails +6 -0
  69. data/vol/mount_app/test/fixtures/.gitkeep +0 -0
  70. data/vol/mount_app/test/fixtures/widgets.yml +11 -0
  71. data/vol/mount_app/test/functional/.gitkeep +0 -0
  72. data/vol/mount_app/test/functional/widgets_controller_test.rb +7 -0
  73. data/vol/mount_app/test/integration/.gitkeep +0 -0
  74. data/vol/mount_app/test/performance/browsing_test.rb +12 -0
  75. data/vol/mount_app/test/test_helper.rb +13 -0
  76. data/vol/mount_app/test/unit/.gitkeep +0 -0
  77. data/vol/mount_app/test/unit/helpers/widgets_helper_test.rb +4 -0
  78. data/vol/mount_app/test/unit/widget_test.rb +7 -0
  79. data/vol/mount_app/traces.txt +120 -0
  80. data/vol/mount_app/vendor/assets/javascripts/.gitkeep +0 -0
  81. data/vol/mount_app/vendor/assets/stylesheets/.gitkeep +0 -0
  82. data/vol/mount_app/vendor/plugins/.gitkeep +0 -0
  83. data/vol/mount_app_runner.rb +12 -0
  84. data/vol/mount_rails.rb +16 -0
  85. metadata +290 -0
@@ -0,0 +1,16 @@
1
+ load File.dirname(__FILE__) + "/../lib/sprockets_fs.rb"
2
+ load "~/code/orig/sprockets_fs/vol/mount_app/config/environment.rb"
3
+
4
+ parent_dir = "~/code/orig/sprockets_fs/vol/mount_app/app/assets"
5
+ mount_dir = "/tmp/mount_rails"
6
+
7
+
8
+ env = MountApp::Application.config.assets
9
+
10
+ require 'pp'
11
+ puts env.class
12
+ pp env
13
+ raise 'foo'
14
+ dir = SprocketsFS::SprocketsDir.new(:parent_dir => parent_dir, :env => env, :mount_dir => mount_dir)
15
+
16
+ FuseFS.start(dir,mount_dir)
metadata ADDED
@@ -0,0 +1,290 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sprockets_fs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mike Harris
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: mharris_ext
16
+ requirement: &22732160 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *22732160
25
+ - !ruby/object:Gem::Dependency
26
+ name: lre
27
+ requirement: &22730460 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *22730460
36
+ - !ruby/object:Gem::Dependency
37
+ name: guard
38
+ requirement: &22729000 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *22729000
47
+ - !ruby/object:Gem::Dependency
48
+ name: activesupport
49
+ requirement: &22747080 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *22747080
58
+ - !ruby/object:Gem::Dependency
59
+ name: rfusefs
60
+ requirement: &22744500 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *22744500
69
+ - !ruby/object:Gem::Dependency
70
+ name: coffee-script
71
+ requirement: &22743760 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *22743760
80
+ - !ruby/object:Gem::Dependency
81
+ name: therubyracer
82
+ requirement: &22742520 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *22742520
91
+ - !ruby/object:Gem::Dependency
92
+ name: mongo
93
+ requirement: &22741660 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :runtime
100
+ prerelease: false
101
+ version_requirements: *22741660
102
+ - !ruby/object:Gem::Dependency
103
+ name: bson_ext
104
+ requirement: &22882880 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: *22882880
113
+ - !ruby/object:Gem::Dependency
114
+ name: sprockets
115
+ requirement: &22882000 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - =
119
+ - !ruby/object:Gem::Version
120
+ version: 2.2.2
121
+ type: :runtime
122
+ prerelease: false
123
+ version_requirements: *22882000
124
+ - !ruby/object:Gem::Dependency
125
+ name: rspec
126
+ requirement: &22881280 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ~>
130
+ - !ruby/object:Gem::Version
131
+ version: 2.8.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *22881280
135
+ - !ruby/object:Gem::Dependency
136
+ name: rdoc
137
+ requirement: &22880560 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ~>
141
+ - !ruby/object:Gem::Version
142
+ version: '3.12'
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: *22880560
146
+ - !ruby/object:Gem::Dependency
147
+ name: bundler
148
+ requirement: &22879740 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: 1.0.0
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: *22879740
157
+ - !ruby/object:Gem::Dependency
158
+ name: jeweler
159
+ requirement: &22878680 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ~>
163
+ - !ruby/object:Gem::Version
164
+ version: 1.8.4
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: *22878680
168
+ description: sprockets_fs
169
+ email: mharris717@gmail.com
170
+ executables:
171
+ - mount_sprockets_rails
172
+ - sprockets_fs
173
+ extensions: []
174
+ extra_rdoc_files:
175
+ - LICENSE.txt
176
+ - README.rdoc
177
+ files:
178
+ - .document
179
+ - .rspec
180
+ - Gemfile
181
+ - Gemfile.lock
182
+ - LICENSE.txt
183
+ - README.rdoc
184
+ - Rakefile
185
+ - VERSION
186
+ - bin/mount_sprockets_rails
187
+ - bin/sprockets_fs
188
+ - lib/sprockets_fs.rb
189
+ - lib/sprockets_fs/log.rb
190
+ - spec/data/parent/double.js.coffee
191
+ - spec/data/parent/main.js
192
+ - spec/spec_helper.rb
193
+ - spec/sprockets_fs_spec.rb
194
+ - spec/support/setup_dir.rb
195
+ - spec/support/spec_forks.rb
196
+ - sprockets_fs.gemspec
197
+ - vol/env_explore.rb
198
+ - vol/mongo_test.rb
199
+ - vol/mount_app/.gitignore
200
+ - vol/mount_app/Gemfile
201
+ - vol/mount_app/Gemfile.lock
202
+ - vol/mount_app/README.rdoc
203
+ - vol/mount_app/Rakefile
204
+ - vol/mount_app/app/assets/images/rails.png
205
+ - vol/mount_app/app/assets/javascripts/application.js
206
+ - vol/mount_app/app/assets/javascripts/main.js
207
+ - vol/mount_app/app/assets/javascripts/widgets.js.coffee
208
+ - vol/mount_app/app/assets/stylesheets/application.css
209
+ - vol/mount_app/app/assets/stylesheets/widgets.css.scss
210
+ - vol/mount_app/app/controllers/application_controller.rb
211
+ - vol/mount_app/app/controllers/widgets_controller.rb
212
+ - vol/mount_app/app/helpers/application_helper.rb
213
+ - vol/mount_app/app/helpers/widgets_helper.rb
214
+ - vol/mount_app/app/mailers/.gitkeep
215
+ - vol/mount_app/app/models/.gitkeep
216
+ - vol/mount_app/app/models/widget.rb
217
+ - vol/mount_app/app/views/layouts/application.html.erb
218
+ - vol/mount_app/config.ru
219
+ - vol/mount_app/config/application.rb
220
+ - vol/mount_app/config/boot.rb
221
+ - vol/mount_app/config/database.yml
222
+ - vol/mount_app/config/environment.rb
223
+ - vol/mount_app/config/environments/development.rb
224
+ - vol/mount_app/config/environments/production.rb
225
+ - vol/mount_app/config/environments/test.rb
226
+ - vol/mount_app/config/initializers/backtrace_silencers.rb
227
+ - vol/mount_app/config/initializers/inflections.rb
228
+ - vol/mount_app/config/initializers/mime_types.rb
229
+ - vol/mount_app/config/initializers/secret_token.rb
230
+ - vol/mount_app/config/initializers/session_store.rb
231
+ - vol/mount_app/config/initializers/wrap_parameters.rb
232
+ - vol/mount_app/config/locales/en.yml
233
+ - vol/mount_app/config/routes.rb
234
+ - vol/mount_app/db/migrate/20130429140835_create_widgets.rb
235
+ - vol/mount_app/db/seeds.rb
236
+ - vol/mount_app/lib/assets/.gitkeep
237
+ - vol/mount_app/lib/tasks/.gitkeep
238
+ - vol/mount_app/log/.gitkeep
239
+ - vol/mount_app/public/404.html
240
+ - vol/mount_app/public/422.html
241
+ - vol/mount_app/public/500.html
242
+ - vol/mount_app/public/favicon.ico
243
+ - vol/mount_app/public/index.html
244
+ - vol/mount_app/public/robots.txt
245
+ - vol/mount_app/script/rails
246
+ - vol/mount_app/test/fixtures/.gitkeep
247
+ - vol/mount_app/test/fixtures/widgets.yml
248
+ - vol/mount_app/test/functional/.gitkeep
249
+ - vol/mount_app/test/functional/widgets_controller_test.rb
250
+ - vol/mount_app/test/integration/.gitkeep
251
+ - vol/mount_app/test/performance/browsing_test.rb
252
+ - vol/mount_app/test/test_helper.rb
253
+ - vol/mount_app/test/unit/.gitkeep
254
+ - vol/mount_app/test/unit/helpers/widgets_helper_test.rb
255
+ - vol/mount_app/test/unit/widget_test.rb
256
+ - vol/mount_app/traces.txt
257
+ - vol/mount_app/vendor/assets/javascripts/.gitkeep
258
+ - vol/mount_app/vendor/assets/stylesheets/.gitkeep
259
+ - vol/mount_app/vendor/plugins/.gitkeep
260
+ - vol/mount_app_runner.rb
261
+ - vol/mount_rails.rb
262
+ homepage: http://github.com/mharris717/sprockets_fs
263
+ licenses:
264
+ - MIT
265
+ post_install_message:
266
+ rdoc_options: []
267
+ require_paths:
268
+ - lib
269
+ required_ruby_version: !ruby/object:Gem::Requirement
270
+ none: false
271
+ requirements:
272
+ - - ! '>='
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ segments:
276
+ - 0
277
+ hash: 328831379487975768
278
+ required_rubygems_version: !ruby/object:Gem::Requirement
279
+ none: false
280
+ requirements:
281
+ - - ! '>='
282
+ - !ruby/object:Gem::Version
283
+ version: '0'
284
+ requirements: []
285
+ rubyforge_project:
286
+ rubygems_version: 1.8.11
287
+ signing_key:
288
+ specification_version: 3
289
+ summary: sprockets_fs
290
+ test_files: []