sprockets_fs 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,10 @@
1
+ # SprocketsFS
2
+
3
+ SprocketsFS will mount your Sprockets Environment in the filesystem using FUSE.
4
+
5
+ All of your assets (and their compiled versions) will be accessible at ./asset_fs
6
+
7
+ To use:
8
+
9
+ * Install with ```gem install sprockets_fs```
10
+ * Run ```sprockets_fs``` in the root directory of your Rails app.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -16,21 +16,44 @@ end
16
16
  module SprocketsFS
17
17
  class SprocketsDir
18
18
  include FromHash
19
- attr_accessor :parent_dir, :mount_dir
19
+ attr_accessor :parent_dirs, :mount_dir
20
+ def parent_dir=(dir)
21
+ self.parent_dirs = [dir]
22
+ end
23
+
20
24
  fattr(:env) do
21
25
  ML.log "Made Env"
22
26
  res = Sprockets::Environment.new
23
- res.append_path parent_dir
27
+ parent_dirs.each do |dir|
28
+ res.append_path dir
29
+ end
24
30
  res
25
31
  end
32
+ def convert_to_relative(file)
33
+ file = file.to_s if file
34
+ parent_dirs.each do |dir|
35
+ if file.starts_with?(dir)
36
+ return file.gsub("#{dir}/","")
37
+ end
38
+ end
39
+ raise "can't convert #{file} to relative, dirs are\n"+parent_dirs.join("\n")
40
+ nil
41
+ end
42
+ def convert_to_absolute(file,safe=true)
43
+ file = file.to_s if file
44
+ parent_dirs.each do |dir|
45
+ base = "#{dir}/#{file}"
46
+ return base if FileTest.exist?(base)
47
+ end
48
+ raise "can't convert #{file} to absolute" if safe
49
+ nil
50
+ end
26
51
  def files
27
52
  res = []
28
53
  env.each_file do |f|
29
- res << f.to_s.gsub("#{parent_dir}/","")
54
+ res << convert_to_relative(f)
30
55
  end
31
- # puts "got files #{res.size}"
32
- #puts res.inspect
33
- res
56
+ res - ["rails.png"]
34
57
  end
35
58
  def dirs
36
59
  res = []
@@ -57,8 +80,6 @@ module SprocketsFS
57
80
  end
58
81
 
59
82
  def contents(path)
60
- # puts "contents for #{path} #{env.class}"
61
- #puts env.inspect
62
83
  all = files
63
84
  res = if path == '/'
64
85
  all.select { |x| x.split("/").size == 1 } + dirs.select { |x| x.split("/").size == 1 }
@@ -83,31 +104,23 @@ module SprocketsFS
83
104
  res
84
105
  end
85
106
 
107
+ def unprocessed_parent_relative_file(file)
108
+ files.each do |possible_parent|
109
+ if possible_parent.starts_with?(file) && possible_parent.length > file.length
110
+ return possible_parent
111
+ end
112
+ end
113
+ nil
114
+ end
115
+
86
116
  def read_file(path)
87
117
  ML.log("path #{path}") do
88
- base = "#{parent_dir}#{path}"
89
- res = if FileTest.exist?(base)
90
- puts "Read_file #{path} exists"
118
+ base = convert_to_absolute(path[1..-1],false)
119
+ if base
91
120
  File.read(base).strip
92
-
93
121
  else
94
- asset = env.find_asset(path[1..-1])
95
- # ML.log "asset type: #{asset.content_type} #{asset.inspect}"
96
- text = asset.to_s.strip
97
-
98
- if text.blank?
99
- self.env!
100
- p = path[1..-1]+".coffee"
101
- puts "finding #{path} #{p} with coffee added"
102
- text = env.find_asset(p).to_s.strip
103
- puts "got text #{text}"
104
- end
105
-
106
- text
107
-
122
+ env.find_asset(path[1..-1]).to_s.strip
108
123
  end
109
- #puts "Read_file #{path} #{res}"
110
- res
111
124
  end
112
125
  end
113
126
  def size(path)
@@ -115,8 +128,9 @@ module SprocketsFS
115
128
  end
116
129
 
117
130
  def can_write?(path)
118
- base = "#{parent_dir}#{path}.coffee"
119
- if FileTest.exist?(base)
131
+ #base = convert_to_absolute("#{path[1..-1]}.coffee",false) || convert_to_absolute("#{path[1..-1]}.erb",false)
132
+ base = unprocessed_parent_relative_file(path[1..-1])
133
+ if base
120
134
  false
121
135
  else
122
136
  true
@@ -124,7 +138,15 @@ module SprocketsFS
124
138
  end
125
139
 
126
140
  def write_to(path,contents)
127
- full = "#{parent_dir}#{path}"
141
+ full = convert_to_absolute(path[1..-1],false)
142
+ if !full
143
+ if parent_dirs.size == 1
144
+ full = "#{parent_dirs.first}#{path}"
145
+ else
146
+ raise "can't write"
147
+ end
148
+ end
149
+
128
150
  File.create full, contents
129
151
  end
130
152
  end
@@ -31,12 +31,16 @@ module SprocketsFS
31
31
  end
32
32
 
33
33
  def mount_rails!
34
- FileUtils.mkdir(mount_dir) unless FileTest.exist?(mount_dir)
34
+ if FileTest.exist?(mount_dir)
35
+ ec "rm -r #{mount_dir}/*" if Dir["#{mount_dir}/*"].size > 0
36
+ else
37
+ FileUtils.mkdir(mount_dir)
38
+ end
35
39
 
36
40
  load "#{parent_dir}/config/environment.rb"
37
41
 
38
42
  env = app_obj.assets
39
- dir = SprocketsFS::SprocketsDir.new(:parent_dir => "#{parent_dir}/app/assets", :env => env, :mount_dir => mount_dir)
43
+ dir = SprocketsFS::SprocketsDir.new(:parent_dirs => env.paths, :env => env, :mount_dir => mount_dir)
40
44
 
41
45
  FuseFS.start(dir,mount_dir)
42
46
  end
@@ -0,0 +1,41 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Integration" do
4
+ include_context "with setup dir"
5
+ include_context "fork"
6
+
7
+ let(:file_hash) do
8
+ {"main.js" => "var abc = 42;", "widgets/stuff.js" => "var widget = 'Green'"}
9
+ end
10
+
11
+ let(:mount_dir) do
12
+ res = "/tmp/test_dirs/mounted_#{rand(100000000000000)}"
13
+ FileUtils.mkdir res
14
+ res
15
+ end
16
+
17
+ let(:cmds) do
18
+ gem_name = "sprockets_fs"
19
+ "ruby ~/code/orig/#{gem_name}/bin/#{gem_name} -p #{parent_dir} -m #{mount_dir}"
20
+ end
21
+
22
+ def wait_until_mounted
23
+ (0...100).each do
24
+ return if Dir["#{mount_dir}/*"].size > 0
25
+ sleep(0.03)
26
+ end
27
+ raise 'not mounted'
28
+ end
29
+
30
+ before do
31
+ wait_until_mounted
32
+ end
33
+
34
+ it "smoke" do
35
+ 2.should == 2
36
+ end
37
+
38
+ it 'read' do
39
+ File.read("#{mount_dir}/main.js").should == "var abc = 42;"
40
+ end
41
+ end
@@ -0,0 +1,94 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe 'Rails' do
4
+ include_context "fork"
5
+
6
+ let(:cmds) do
7
+ file = File.expand_path(File.dirname(__FILE__)+"/../bin/sprockets_fs")
8
+
9
+ "cd #{app_path} && ruby #{file}"
10
+ end
11
+
12
+ let(:app_path) do
13
+ File.expand_path(File.dirname(__FILE__)+"/../vol/mount_app")
14
+ end
15
+ let(:mount_dir) do
16
+ "#{app_path}/asset_fs"
17
+ end
18
+
19
+ def wait_until_mounted
20
+ (0...150).each do
21
+ return if Dir["#{app_path}/asset_fs/*"].size > 0
22
+ sleep(0.1)
23
+ end
24
+ raise 'not mounted'
25
+ end
26
+
27
+ before do
28
+ wait_until_mounted
29
+ end
30
+
31
+ it 'smoke' do
32
+ puts "rails smoke"
33
+ #sleep(100000)
34
+ 2.should == 2
35
+ a = Dir["#{mount_dir}/*"].map { |x| x.gsub("/mnt/hgfs/Code/orig/sprockets_fs/vol/mount_app/asset_fs/","") }
36
+ #raise a.inspect
37
+ end
38
+
39
+ it 'read root' do
40
+ exp = ["application.js", "main.js", "widgets.js.coffee", "widgets.js", "application.css", "widgets.css.scss"]
41
+ exp += %w(foo.js foo.js.erb)
42
+ exp += ["jquery-ui.js", "jquery-ui.min.js", "jquery.js", "jquery.min.js", "jquery.min.map", "jquery_ujs.js", "coffee-script.js.erb", "coffee-script.js"]
43
+ Dir["#{mount_dir}/*"].sort.should == exp.sort.map { |x| "#{mount_dir}/#{x}" }
44
+ end
45
+
46
+ it 'read js folder' do
47
+ exp = %w(application.js widgets.js widgets.js.coffee main.js)
48
+ exp += %w(foo.js foo.js.erb)
49
+ exp += %w(coffee-script.js coffee-script.js.erb jquery-ui.js jquery-ui.min.js jquery.js jquery.min.js jquery_ujs.js)
50
+ exp = exp.map { |x| "#{mount_dir}/#{x}" }.sort
51
+ Dir["#{mount_dir}/*"].select { |x| x =~ /\.js/ }.sort.should == exp
52
+ end
53
+
54
+ it 'read coffee' do
55
+ File.read("#{mount_dir}/widgets.js.coffee").strip.should == "double = (x) -> x * 2"
56
+ end
57
+
58
+ it 'read js' do
59
+ File.read("#{mount_dir}/widgets.js").strip.size.should > 0
60
+ #File.read("/tmp/mount_rails/javascripts/widgets.js").strip.should =~ /double = function/
61
+ end
62
+
63
+ it 'read js basic' do
64
+ File.read("#{mount_dir}/main.js").strip.should == "var abc = 42;"
65
+ #File.read("/tmp/mount_rails/javascripts/widgets.js").strip.should =~ /double = function/
66
+ end
67
+
68
+ describe 'erb' do
69
+
70
+ it 'read js erb' do
71
+ File.read("#{mount_dir}/foo.js.erb").should == File.read("vol/mount_app/app/assets/javascripts/foo.js.erb")
72
+ end
73
+
74
+ it 'read js erb as js' do
75
+ File.read("#{mount_dir}/foo.js").strip.should == "var abc = 42;"
76
+ end
77
+
78
+ it 'write to js erb' do
79
+ lambda do
80
+ File.create "#{mount_dir}/foo.js.erb",File.read("vol/mount_app/app/assets/javascripts/foo.js.erb")
81
+ end.should_not raise_error
82
+ FileTest.should_not be_exist("vol/mount_app/app/assets/images/foo.js.erb")
83
+ FileTest.should_not be_exist("vol/mount_app/app/assets/images/foo.js")
84
+ end
85
+
86
+ it 'write to js erb as js' do
87
+ lambda do
88
+ File.create "#{mount_dir}/foo.js","123"
89
+ end.should raise_error
90
+ end
91
+ end
92
+
93
+
94
+ end
@@ -10,24 +10,12 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f }
10
10
 
11
11
  RSpec.configure do |config|
12
12
  config.fail_fast = true
13
- files = {"main.js" => "var abc = 42;", "widgets/stuff.js" => "var widget = 'Green'"}
14
- parent_dir = setup_dir(files)
15
-
16
- mount_dir = "/tmp/test_sp9"
17
- gem_name = "sprockets_fs"
18
-
19
- SpecForks.add "ruby ~/code/orig/#{gem_name}/bin/#{gem_name} -p #{parent_dir} -m #{mount_dir}"
20
-
13
+
21
14
  config.before(:all) do
22
15
  File.create("log_special.log","Make #{Time.now}\n")
23
16
  #MongoLog.instance.coll.remove
24
17
 
25
- FileUtils.rm_r mount_dir if FileTest.exist?(mount_dir)
26
- `mkdir #{mount_dir}`
27
-
28
- SpecForks.start!
29
- end
30
- config.after(:all) do
31
- SpecForks.kill!
18
+
32
19
  end
20
+
33
21
  end
@@ -1,14 +1,10 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- if true
4
3
  describe "SprocketsFs" do
5
-
4
+ include_context "with setup dir"
6
5
  let(:dir) do
7
6
  SprocketsFS::SprocketsDir.new(:parent_dir => parent_dir)
8
7
  end
9
- let(:parent_dir) do
10
- setup_dir file_hash
11
- end
12
8
  def parent_file(path)
13
9
  File.read("#{parent_dir}/#{path}")
14
10
  end
@@ -36,8 +32,7 @@ describe "SprocketsFs" do
36
32
  end
37
33
  end
38
34
 
39
- describe "coffee" do
40
-
35
+ describe "Coffee" do
41
36
  let(:file_hash) do
42
37
  {"double.js.coffee" => "double = (x) -> x * 2"}
43
38
  end
@@ -57,7 +52,7 @@ describe "SprocketsFs" do
57
52
  end
58
53
  end
59
54
 
60
- describe "write" do
55
+ describe "Write" do
61
56
  let(:file_hash) do
62
57
  {"zzz.js" => "abc = 42;"}
63
58
  end
@@ -101,78 +96,8 @@ describe "SprocketsFs" do
101
96
  end
102
97
  end
103
98
 
104
- if true
105
- describe "Integration" do
106
- it "smoke" do
107
- 2.should == 2
108
- end
109
-
110
- it 'read' do
111
- File.read("/tmp/test_sp9/main.js").should == "var abc = 42;"
112
- end
113
- end
114
- end
115
- end
99
+
116
100
  end
117
101
 
118
- describe 'Rails' do
119
- include_context "fork"
120
102
 
121
- let(:cmds) do
122
- file = File.expand_path(File.dirname(__FILE__)+"/../bin/sprockets_fs")
123
103
 
124
- "cd #{app_path} && ruby #{file}"
125
- end
126
-
127
- let(:app_path) do
128
- File.expand_path(File.dirname(__FILE__)+"/../vol/mount_app")
129
- end
130
- let(:mount_dir) do
131
- "#{app_path}/asset_fs"
132
- end
133
-
134
- def wait_until_mounted
135
- (0...150).each do
136
- return if Dir["#{app_path}/asset_fs/*"].size > 0
137
- sleep(0.1)
138
- end
139
- raise 'not mounted'
140
- end
141
-
142
- before do
143
- wait_until_mounted
144
- end
145
-
146
- it 'smoke' do
147
- puts "rails smoke"
148
- #sleep(100000)
149
- 2.should == 2
150
- end
151
-
152
- it 'read root' do
153
- Dir["#{mount_dir}/*"].sort.should == %w(images javascripts stylesheets).map { |x| "#{mount_dir}/#{x}" }
154
- end
155
-
156
- it 'read js folder' do
157
- exp = %w(application.js widgets.js widgets.js.coffee main.js).map { |x| "#{mount_dir}/javascripts/#{x}" }.sort
158
- Dir["#{mount_dir}/javascripts/*"].sort.should == exp
159
- end
160
-
161
- it 'read coffee' do
162
- File.read("#{mount_dir}/javascripts/widgets.js.coffee").strip.should == "double = (x) -> x * 2"
163
- end
164
-
165
- it 'read js' do
166
- File.read("#{mount_dir}/javascripts/widgets.js").strip.size.should > 0
167
- #File.read("/tmp/mount_rails/javascripts/widgets.js").strip.should =~ /double = function/
168
- end
169
-
170
- it 'read js basic' do
171
- File.read("#{mount_dir}/javascripts/main.js").strip.should == "var abc = 42;"
172
- #File.read("/tmp/mount_rails/javascripts/widgets.js").strip.should =~ /double = function/
173
- end
174
-
175
-
176
-
177
-
178
- end
@@ -9,4 +9,13 @@ def setup_dir(files)
9
9
  File.create "#{path}/#{f}",body
10
10
  end
11
11
  path
12
+ end
13
+
14
+ shared_context "with setup dir" do
15
+ let(:parent_dir) do
16
+ setup_dir file_hash
17
+ end
18
+ before do
19
+ parent_dir
20
+ end
12
21
  end
@@ -15,15 +15,15 @@ class SpecForks
15
15
 
16
16
  def start!
17
17
  commands.uniq.each do |cmd|
18
+ puts "Starting #{cmd}"
18
19
  Bundler.with_clean_env do
19
20
  pids[cmd] = fork { exec cmd }
20
21
  end
21
- sleep(0.1)
22
+ sleep(0.05)
22
23
  end
23
24
  end
24
25
 
25
26
  def kill!
26
- #puts "killing"
27
27
  pids.values.each do |pid|
28
28
  ec "pkill -TERM -P #{pid}", :silent => true
29
29
  end
@@ -5,17 +5,17 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "sprockets_fs"
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Harris"]
12
- s.date = "2013-05-02"
12
+ s.date = "2013-05-03"
13
13
  s.description = "sprockets_fs"
14
14
  s.email = "mharris717@gmail.com"
15
15
  s.executables = ["sprockets_fs"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
- "README.rdoc"
18
+ "README.md"
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  "Gemfile",
24
24
  "Gemfile.lock",
25
25
  "LICENSE.txt",
26
- "README.rdoc",
26
+ "README.md",
27
27
  "Rakefile",
28
28
  "VERSION",
29
29
  "bin/sprockets_fs",
@@ -32,6 +32,8 @@ Gem::Specification.new do |s|
32
32
  "lib/sprockets_fs/rails.rb",
33
33
  "spec/data/parent/double.js.coffee",
34
34
  "spec/data/parent/main.js",
35
+ "spec/integration_spec.rb",
36
+ "spec/rails_spec.rb",
35
37
  "spec/spec_helper.rb",
36
38
  "spec/sprockets_fs_spec.rb",
37
39
  "spec/support/setup_dir.rb",
@@ -46,6 +48,7 @@ Gem::Specification.new do |s|
46
48
  "vol/mount_app/Rakefile",
47
49
  "vol/mount_app/app/assets/images/rails.png",
48
50
  "vol/mount_app/app/assets/javascripts/application.js",
51
+ "vol/mount_app/app/assets/javascripts/foo.js.erb",
49
52
  "vol/mount_app/app/assets/javascripts/main.js",
50
53
  "vol/mount_app/app/assets/javascripts/widgets.js.coffee",
51
54
  "vol/mount_app/app/assets/stylesheets/application.css",
@@ -58,6 +61,7 @@ Gem::Specification.new do |s|
58
61
  "vol/mount_app/app/models/.gitkeep",
59
62
  "vol/mount_app/app/models/widget.rb",
60
63
  "vol/mount_app/app/views/layouts/application.html.erb",
64
+ "vol/mount_app/app/views/widgets/index.html.erb",
61
65
  "vol/mount_app/config.ru",
62
66
  "vol/mount_app/config/application.rb",
63
67
  "vol/mount_app/config/boot.rb",
@@ -101,7 +105,8 @@ Gem::Specification.new do |s|
101
105
  "vol/mount_app/vendor/assets/stylesheets/.gitkeep",
102
106
  "vol/mount_app/vendor/plugins/.gitkeep",
103
107
  "vol/mount_app_runner.rb",
104
- "vol/mount_rails.rb"
108
+ "vol/mount_rails.rb",
109
+ "vol/sprockets_explore.rb"
105
110
  ]
106
111
  s.homepage = "http://github.com/mharris717/sprockets_fs"
107
112
  s.licenses = ["MIT"]
@@ -1,14 +1,12 @@
1
1
  PATH
2
2
  remote: /code/orig/sprockets_fs
3
3
  specs:
4
- sprockets_fs (0.1.2)
4
+ sprockets_fs (0.2.0)
5
5
  activesupport
6
- bson_ext
7
6
  coffee-script
8
7
  guard
9
8
  lre
10
9
  mharris_ext
11
- mongo
12
10
  rfusefs
13
11
  sprockets
14
12
  therubyracer
@@ -44,9 +42,6 @@ GEM
44
42
  i18n (= 0.6.1)
45
43
  multi_json (~> 1.0)
46
44
  arel (3.0.2)
47
- bson (1.8.5)
48
- bson_ext (1.8.5)
49
- bson (~> 1.8.5)
50
45
  builder (3.0.4)
51
46
  coderay (1.0.9)
52
47
  coffee-rails (3.2.2)
@@ -95,8 +90,6 @@ GEM
95
90
  facets
96
91
  fattr
97
92
  mime-types (1.23)
98
- mongo (1.8.5)
99
- bson (~> 1.8.5)
100
93
  multi_json (1.7.2)
101
94
  polyglot (0.3.3)
102
95
  pry (0.9.12.1)
@@ -0,0 +1,3 @@
1
+ <% if true %>
2
+ var abc = 42;
3
+ <% end %>
@@ -1,2 +1,4 @@
1
1
  class WidgetsController < ApplicationController
2
+ def index
3
+ end
2
4
  end
@@ -0,0 +1,27 @@
1
+ env = MountApp::Application.assets
2
+
3
+ puts "env root: #{env.root}"
4
+
5
+ puts "each_file"
6
+ env.each_file do |f|
7
+ puts f.inspect
8
+ end
9
+ puts "\n\n\n"
10
+
11
+ puts "each_entry /"
12
+ env.each_entry(env.root) do |f|
13
+ puts f.inspect
14
+ end
15
+ puts "\n\n\n"
16
+
17
+ puts "each_logical_path"
18
+ env.each_logical_path do |f|
19
+ puts f.inspect
20
+ end
21
+ puts "\n\n\n"
22
+
23
+ puts "paths"
24
+ env.paths.each do |f|
25
+ puts f.inspect
26
+ end
27
+ puts "\n\n\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets_fs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-02 00:00:00.000000000 Z
12
+ date: 2013-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mharris_ext
16
- requirement: &19261620 !ruby/object:Gem::Requirement
16
+ requirement: &19829460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19261620
24
+ version_requirements: *19829460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: lre
27
- requirement: &19260720 !ruby/object:Gem::Requirement
27
+ requirement: &19828180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *19260720
35
+ version_requirements: *19828180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: guard
38
- requirement: &19259820 !ruby/object:Gem::Requirement
38
+ requirement: &19826560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *19259820
46
+ version_requirements: *19826560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: activesupport
49
- requirement: &19258960 !ruby/object:Gem::Requirement
49
+ requirement: &19838200 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *19258960
57
+ version_requirements: *19838200
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rfusefs
60
- requirement: &19258220 !ruby/object:Gem::Requirement
60
+ requirement: &19836780 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *19258220
68
+ version_requirements: *19836780
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: coffee-script
71
- requirement: &19257360 !ruby/object:Gem::Requirement
71
+ requirement: &19834480 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *19257360
79
+ version_requirements: *19834480
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: therubyracer
82
- requirement: &19255620 !ruby/object:Gem::Requirement
82
+ requirement: &19894480 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *19255620
90
+ version_requirements: *19894480
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: sprockets
93
- requirement: &19289780 !ruby/object:Gem::Requirement
93
+ requirement: &19891080 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *19289780
101
+ version_requirements: *19891080
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rspec
104
- requirement: &19286420 !ruby/object:Gem::Requirement
104
+ requirement: &20000020 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 2.8.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *19286420
112
+ version_requirements: *20000020
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rdoc
115
- requirement: &19285360 !ruby/object:Gem::Requirement
115
+ requirement: &19997520 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '3.12'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *19285360
123
+ version_requirements: *19997520
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: bundler
126
- requirement: &21549460 !ruby/object:Gem::Requirement
126
+ requirement: &19993820 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 1.0.0
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *21549460
134
+ version_requirements: *19993820
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: jeweler
137
- requirement: &21548560 !ruby/object:Gem::Requirement
137
+ requirement: &20005760 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ~>
@@ -142,7 +142,7 @@ dependencies:
142
142
  version: 1.8.4
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *21548560
145
+ version_requirements: *20005760
146
146
  description: sprockets_fs
147
147
  email: mharris717@gmail.com
148
148
  executables:
@@ -150,14 +150,14 @@ executables:
150
150
  extensions: []
151
151
  extra_rdoc_files:
152
152
  - LICENSE.txt
153
- - README.rdoc
153
+ - README.md
154
154
  files:
155
155
  - .document
156
156
  - .rspec
157
157
  - Gemfile
158
158
  - Gemfile.lock
159
159
  - LICENSE.txt
160
- - README.rdoc
160
+ - README.md
161
161
  - Rakefile
162
162
  - VERSION
163
163
  - bin/sprockets_fs
@@ -166,6 +166,8 @@ files:
166
166
  - lib/sprockets_fs/rails.rb
167
167
  - spec/data/parent/double.js.coffee
168
168
  - spec/data/parent/main.js
169
+ - spec/integration_spec.rb
170
+ - spec/rails_spec.rb
169
171
  - spec/spec_helper.rb
170
172
  - spec/sprockets_fs_spec.rb
171
173
  - spec/support/setup_dir.rb
@@ -180,6 +182,7 @@ files:
180
182
  - vol/mount_app/Rakefile
181
183
  - vol/mount_app/app/assets/images/rails.png
182
184
  - vol/mount_app/app/assets/javascripts/application.js
185
+ - vol/mount_app/app/assets/javascripts/foo.js.erb
183
186
  - vol/mount_app/app/assets/javascripts/main.js
184
187
  - vol/mount_app/app/assets/javascripts/widgets.js.coffee
185
188
  - vol/mount_app/app/assets/stylesheets/application.css
@@ -192,6 +195,7 @@ files:
192
195
  - vol/mount_app/app/models/.gitkeep
193
196
  - vol/mount_app/app/models/widget.rb
194
197
  - vol/mount_app/app/views/layouts/application.html.erb
198
+ - vol/mount_app/app/views/widgets/index.html.erb
195
199
  - vol/mount_app/config.ru
196
200
  - vol/mount_app/config/application.rb
197
201
  - vol/mount_app/config/boot.rb
@@ -236,6 +240,7 @@ files:
236
240
  - vol/mount_app/vendor/plugins/.gitkeep
237
241
  - vol/mount_app_runner.rb
238
242
  - vol/mount_rails.rb
243
+ - vol/sprockets_explore.rb
239
244
  homepage: http://github.com/mharris717/sprockets_fs
240
245
  licenses:
241
246
  - MIT
@@ -251,7 +256,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
251
256
  version: '0'
252
257
  segments:
253
258
  - 0
254
- hash: 1303914371441600252
259
+ hash: -1026940195473342782
255
260
  required_rubygems_version: !ruby/object:Gem::Requirement
256
261
  none: false
257
262
  requirements:
@@ -1,19 +0,0 @@
1
- = sprockets_fs
2
-
3
- Description goes here.
4
-
5
- == Contributing to sprockets_fs
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
-
15
- == Copyright
16
-
17
- Copyright (c) 2013 Mike Harris. See LICENSE.txt for
18
- further details.
19
-