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,173 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ if true
4
+ describe "SprocketsFs" do
5
+
6
+ let(:dir) do
7
+ SprocketsFS::SprocketsDir.new(:parent_dir => parent_dir)
8
+ end
9
+ let(:parent_dir) do
10
+ setup_dir file_hash
11
+ end
12
+ def parent_file(path)
13
+ File.read("#{parent_dir}/#{path}")
14
+ end
15
+
16
+ describe "Unit" do
17
+ let(:file_hash) do
18
+ {"main.js" => "var abc = 42;", "widgets/stuff.js" => "var widget = 'Green'"}
19
+ end
20
+
21
+ it 'read file' do
22
+ dir.read_file("/main.js").should == parent_file("main.js")
23
+ end
24
+ it 'has files' do
25
+ dir.files.size.should == file_hash.size
26
+ end
27
+ it 'has dirs' do
28
+ dir.dirs.should == ["widgets"]
29
+ end
30
+
31
+ it 'contents has dirs' do
32
+ dir.contents("/").sort.should == ["main.js","widgets"]
33
+ end
34
+ it 'sub contents' do
35
+ dir.contents("/widgets").should == ["stuff.js"]
36
+ end
37
+ end
38
+
39
+ describe "coffee" do
40
+
41
+ let(:file_hash) do
42
+ {"double.js.coffee" => "double = (x) -> x * 2"}
43
+ end
44
+
45
+ it 'converts to js' do
46
+ dir.read_file("/double.js").should == CoffeeScript.compile(file_hash["double.js.coffee"]).strip
47
+ end
48
+ it 'coffee read is raw' do
49
+ dir.read_file("/double.js.coffee").should == file_hash["double.js.coffee"]
50
+ end
51
+ it 'js version is file' do
52
+ dir.should be_file("/double.js")
53
+ end
54
+
55
+ it 'contents has js' do
56
+ dir.contents("/").should include("double.js")
57
+ end
58
+ end
59
+
60
+ describe "write" do
61
+ let(:file_hash) do
62
+ {"zzz.js" => "abc = 42;"}
63
+ end
64
+
65
+ describe "raw" do
66
+ before do
67
+ dir.write_to "/abc.js","var abc = 42;"
68
+ end
69
+
70
+ it 'read back' do
71
+ dir.read_file("/abc.js").strip.should == 'var abc = 42;'
72
+ end
73
+ end
74
+
75
+ describe "coffee" do
76
+ before do
77
+ dir.write_to "/double.js.coffee","double = (x) -> x * 2"
78
+ end
79
+
80
+ it 'read coffee' do
81
+ dir.read_file("/double.js.coffee").strip.should == "double = (x) -> x * 2"
82
+ end
83
+
84
+ it 'read js' do
85
+ dir.read_file("/double.js").should =~ /double = function/
86
+ end
87
+
88
+ it 'write to js fails' do
89
+ dir.can_write?("/double.js").should_not be
90
+ end
91
+ end
92
+ end
93
+
94
+ describe "erb" do
95
+ let(:file_hash) do
96
+ {"index.html.erb" => "<% if true %> abc <% end %>"}
97
+ end
98
+
99
+ it 'read parsed' do
100
+ dir.read_file("/index.html").strip.should == "abc"
101
+ end
102
+ end
103
+
104
+ if false
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
116
+ end
117
+
118
+ describe 'Rails' do
119
+ include_context "fork"
120
+
121
+ let(:cmds) do
122
+ puts 'cmds call'
123
+ rails = File.expand_path(File.dirname(__FILE__)+"/../vol/mount_app")
124
+ file = File.expand_path(File.dirname(__FILE__)+"/../vol/mount_app_runner.rb")
125
+
126
+ "cd #{rails} && rails runner #{file}"
127
+ end
128
+
129
+ def wait_until_mounted
130
+ (0...150).each do
131
+ return if Dir["/tmp/mount_rails/*"].size > 0
132
+ sleep(0.1)
133
+ end
134
+ raise 'not mounted'
135
+ end
136
+
137
+ before do
138
+ wait_until_mounted
139
+ end
140
+
141
+ it 'smoke' do
142
+ puts "rails smoke"
143
+ #sleep(100000)
144
+ 2.should == 2
145
+ end
146
+
147
+ it 'read root' do
148
+ Dir["/tmp/mount_rails/*"].sort.should == %w(images javascripts stylesheets).map { |x| "/tmp/mount_rails/#{x}" }
149
+ end
150
+
151
+ it 'read js folder' do
152
+ exp = %w(application.js widgets.js widgets.js.coffee main.js).map { |x| "/tmp/mount_rails/javascripts/#{x}" }.sort
153
+ Dir["/tmp/mount_rails/javascripts/*"].sort.should == exp
154
+ end
155
+
156
+ it 'read coffee' do
157
+ File.read("/tmp/mount_rails/javascripts/widgets.js.coffee").strip.should == "double = (x) -> x * 2"
158
+ end
159
+
160
+ it 'read js' do
161
+ File.read("/tmp/mount_rails/javascripts/widgets.js").strip.size.should > 0
162
+ #File.read("/tmp/mount_rails/javascripts/widgets.js").strip.should =~ /double = function/
163
+ end
164
+
165
+ it 'read js basic' do
166
+ File.read("/tmp/mount_rails/javascripts/main.js").strip.should == "var abc = 42;"
167
+ #File.read("/tmp/mount_rails/javascripts/widgets.js").strip.should =~ /double = function/
168
+ end
169
+
170
+
171
+
172
+
173
+ end
@@ -0,0 +1,12 @@
1
+ def setup_dir(files)
2
+ FileUtils.mkdir("/tmp/test_dirs") unless FileTest.exist?("/tmp/test_dirs")
3
+ path = "/tmp/test_dirs/test_dir_#{rand(100000000000000)}"
4
+ FileUtils.mkdir(path)
5
+ files.each do |f,body|
6
+ dir = "#{path}/#{File.dirname(f)}"
7
+ FileUtils.mkdir_p(dir) unless FileTest.exist?(dir)
8
+
9
+ File.create "#{path}/#{f}",body
10
+ end
11
+ path
12
+ end
@@ -0,0 +1,45 @@
1
+ class SpecForks
2
+ class << self
3
+ fattr(:instance) { new }
4
+ def method_missing(sym,*args,&b)
5
+ instance.send(sym,*args,&b)
6
+ end
7
+ end
8
+
9
+ fattr(:commands) { [] }
10
+ fattr(:pids) { {} }
11
+ def add(cmd)
12
+ #puts "adding #{cmd}"
13
+ self.commands << cmd
14
+ end
15
+
16
+ def start!
17
+ commands.uniq.each do |cmd|
18
+ Bundler.with_clean_env do
19
+ pids[cmd] = fork { exec cmd }
20
+ end
21
+ sleep(0.1)
22
+ end
23
+ end
24
+
25
+ def kill!
26
+ #puts "killing"
27
+ pids.values.each do |pid|
28
+ ec "pkill -TERM -P #{pid}", :silent => true
29
+ end
30
+ end
31
+ end
32
+
33
+ shared_context "fork" do
34
+ let(:forks) do
35
+ res = SpecForks.new
36
+ [cmds].flatten.each { |x| res.add(x) }
37
+ res
38
+ end
39
+ before(:all) do
40
+ forks.start!
41
+ end
42
+ after(:all) do
43
+ forks.kill!
44
+ end
45
+ end
@@ -0,0 +1,163 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "sprockets_fs"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Mike Harris"]
12
+ s.date = "2013-05-01"
13
+ s.description = "sprockets_fs"
14
+ s.email = "mharris717@gmail.com"
15
+ s.executables = ["mount_sprockets_rails", "sprockets_fs"]
16
+ s.extra_rdoc_files = [
17
+ "LICENSE.txt",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".rspec",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "bin/mount_sprockets_rails",
30
+ "bin/sprockets_fs",
31
+ "lib/sprockets_fs.rb",
32
+ "lib/sprockets_fs/log.rb",
33
+ "spec/data/parent/double.js.coffee",
34
+ "spec/data/parent/main.js",
35
+ "spec/spec_helper.rb",
36
+ "spec/sprockets_fs_spec.rb",
37
+ "spec/support/setup_dir.rb",
38
+ "spec/support/spec_forks.rb",
39
+ "sprockets_fs.gemspec",
40
+ "vol/env_explore.rb",
41
+ "vol/mongo_test.rb",
42
+ "vol/mount_app/.gitignore",
43
+ "vol/mount_app/Gemfile",
44
+ "vol/mount_app/Gemfile.lock",
45
+ "vol/mount_app/README.rdoc",
46
+ "vol/mount_app/Rakefile",
47
+ "vol/mount_app/app/assets/images/rails.png",
48
+ "vol/mount_app/app/assets/javascripts/application.js",
49
+ "vol/mount_app/app/assets/javascripts/main.js",
50
+ "vol/mount_app/app/assets/javascripts/widgets.js.coffee",
51
+ "vol/mount_app/app/assets/stylesheets/application.css",
52
+ "vol/mount_app/app/assets/stylesheets/widgets.css.scss",
53
+ "vol/mount_app/app/controllers/application_controller.rb",
54
+ "vol/mount_app/app/controllers/widgets_controller.rb",
55
+ "vol/mount_app/app/helpers/application_helper.rb",
56
+ "vol/mount_app/app/helpers/widgets_helper.rb",
57
+ "vol/mount_app/app/mailers/.gitkeep",
58
+ "vol/mount_app/app/models/.gitkeep",
59
+ "vol/mount_app/app/models/widget.rb",
60
+ "vol/mount_app/app/views/layouts/application.html.erb",
61
+ "vol/mount_app/config.ru",
62
+ "vol/mount_app/config/application.rb",
63
+ "vol/mount_app/config/boot.rb",
64
+ "vol/mount_app/config/database.yml",
65
+ "vol/mount_app/config/environment.rb",
66
+ "vol/mount_app/config/environments/development.rb",
67
+ "vol/mount_app/config/environments/production.rb",
68
+ "vol/mount_app/config/environments/test.rb",
69
+ "vol/mount_app/config/initializers/backtrace_silencers.rb",
70
+ "vol/mount_app/config/initializers/inflections.rb",
71
+ "vol/mount_app/config/initializers/mime_types.rb",
72
+ "vol/mount_app/config/initializers/secret_token.rb",
73
+ "vol/mount_app/config/initializers/session_store.rb",
74
+ "vol/mount_app/config/initializers/wrap_parameters.rb",
75
+ "vol/mount_app/config/locales/en.yml",
76
+ "vol/mount_app/config/routes.rb",
77
+ "vol/mount_app/db/migrate/20130429140835_create_widgets.rb",
78
+ "vol/mount_app/db/seeds.rb",
79
+ "vol/mount_app/lib/assets/.gitkeep",
80
+ "vol/mount_app/lib/tasks/.gitkeep",
81
+ "vol/mount_app/log/.gitkeep",
82
+ "vol/mount_app/public/404.html",
83
+ "vol/mount_app/public/422.html",
84
+ "vol/mount_app/public/500.html",
85
+ "vol/mount_app/public/favicon.ico",
86
+ "vol/mount_app/public/index.html",
87
+ "vol/mount_app/public/robots.txt",
88
+ "vol/mount_app/script/rails",
89
+ "vol/mount_app/test/fixtures/.gitkeep",
90
+ "vol/mount_app/test/fixtures/widgets.yml",
91
+ "vol/mount_app/test/functional/.gitkeep",
92
+ "vol/mount_app/test/functional/widgets_controller_test.rb",
93
+ "vol/mount_app/test/integration/.gitkeep",
94
+ "vol/mount_app/test/performance/browsing_test.rb",
95
+ "vol/mount_app/test/test_helper.rb",
96
+ "vol/mount_app/test/unit/.gitkeep",
97
+ "vol/mount_app/test/unit/helpers/widgets_helper_test.rb",
98
+ "vol/mount_app/test/unit/widget_test.rb",
99
+ "vol/mount_app/traces.txt",
100
+ "vol/mount_app/vendor/assets/javascripts/.gitkeep",
101
+ "vol/mount_app/vendor/assets/stylesheets/.gitkeep",
102
+ "vol/mount_app/vendor/plugins/.gitkeep",
103
+ "vol/mount_app_runner.rb",
104
+ "vol/mount_rails.rb"
105
+ ]
106
+ s.homepage = "http://github.com/mharris717/sprockets_fs"
107
+ s.licenses = ["MIT"]
108
+ s.require_paths = ["lib"]
109
+ s.rubygems_version = "1.8.11"
110
+ s.summary = "sprockets_fs"
111
+
112
+ if s.respond_to? :specification_version then
113
+ s.specification_version = 3
114
+
115
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
116
+ s.add_runtime_dependency(%q<mharris_ext>, [">= 0"])
117
+ s.add_runtime_dependency(%q<lre>, [">= 0"])
118
+ s.add_runtime_dependency(%q<guard>, [">= 0"])
119
+ s.add_runtime_dependency(%q<activesupport>, [">= 0"])
120
+ s.add_runtime_dependency(%q<rfusefs>, [">= 0"])
121
+ s.add_runtime_dependency(%q<coffee-script>, [">= 0"])
122
+ s.add_runtime_dependency(%q<therubyracer>, [">= 0"])
123
+ s.add_runtime_dependency(%q<mongo>, [">= 0"])
124
+ s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
125
+ s.add_runtime_dependency(%q<sprockets>, ["= 2.2.2"])
126
+ s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
127
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
128
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
129
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
130
+ else
131
+ s.add_dependency(%q<mharris_ext>, [">= 0"])
132
+ s.add_dependency(%q<lre>, [">= 0"])
133
+ s.add_dependency(%q<guard>, [">= 0"])
134
+ s.add_dependency(%q<activesupport>, [">= 0"])
135
+ s.add_dependency(%q<rfusefs>, [">= 0"])
136
+ s.add_dependency(%q<coffee-script>, [">= 0"])
137
+ s.add_dependency(%q<therubyracer>, [">= 0"])
138
+ s.add_dependency(%q<mongo>, [">= 0"])
139
+ s.add_dependency(%q<bson_ext>, [">= 0"])
140
+ s.add_dependency(%q<sprockets>, ["= 2.2.2"])
141
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
142
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
143
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
144
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
145
+ end
146
+ else
147
+ s.add_dependency(%q<mharris_ext>, [">= 0"])
148
+ s.add_dependency(%q<lre>, [">= 0"])
149
+ s.add_dependency(%q<guard>, [">= 0"])
150
+ s.add_dependency(%q<activesupport>, [">= 0"])
151
+ s.add_dependency(%q<rfusefs>, [">= 0"])
152
+ s.add_dependency(%q<coffee-script>, [">= 0"])
153
+ s.add_dependency(%q<therubyracer>, [">= 0"])
154
+ s.add_dependency(%q<mongo>, [">= 0"])
155
+ s.add_dependency(%q<bson_ext>, [">= 0"])
156
+ s.add_dependency(%q<sprockets>, ["= 2.2.2"])
157
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
158
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
159
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
160
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
161
+ end
162
+ end
163
+
@@ -0,0 +1,30 @@
1
+ load File.dirname(__FILE__) + "/../lib/sprockets_fs.rb"
2
+
3
+ parent_dir = File.dirname(__FILE__) + "/../spec/data/parent"
4
+ dir = SprocketsFS::SprocketsDir.new(:parent_dir => parent_dir)
5
+ $env = dir.env
6
+
7
+ def env
8
+ $env
9
+ end
10
+
11
+ class Object
12
+ def pretty_methods
13
+ res = local_methods.map do |m|
14
+ m = m.to_s
15
+ m = m[0..-2] if m[-1..-1] == '='
16
+ m
17
+ end
18
+ res.uniq.each { |x| puts x.to_sym }
19
+ end
20
+
21
+
22
+ end
23
+
24
+ env.each_entry do |f|
25
+ puts f
26
+ end
27
+
28
+ str = "each_entry
29
+ each_file
30
+ each_logical_path"
data/vol/mongo_test.rb ADDED
@@ -0,0 +1,24 @@
1
+ require 'rubygems'
2
+ require 'mongo'
3
+ require 'mharris_ext'
4
+
5
+ class MongoLog
6
+
7
+ fattr(:db) do
8
+ Mongo::Connection.new("192.168.1.109").db('mongo_log')
9
+ end
10
+ fattr(:coll) do
11
+ db.collection('entries')
12
+ end
13
+
14
+ def make(ops)
15
+ coll.save(ops)
16
+ end
17
+
18
+ class << self
19
+ fattr(:instance) { new }
20
+ end
21
+ end
22
+
23
+
24
+ puts MongoLog.new.coll.count
@@ -0,0 +1,15 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile ~/.gitignore_global
6
+
7
+ # Ignore bundler config
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+
13
+ # Ignore all logfiles and tempfiles.
14
+ /log/*.log
15
+ /tmp
@@ -0,0 +1,55 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rails', '3.2.13'
4
+
5
+ # Bundle edge Rails instead:
6
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
+
8
+ gem 'sqlite3'
9
+
10
+
11
+ # Gems used only for assets and not required
12
+ # in production environments by default.
13
+ group :assets do
14
+ gem 'sass-rails', '~> 3.2.3'
15
+ gem 'coffee-rails', '~> 3.2.1'
16
+
17
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
18
+ # gem 'therubyracer', :platforms => :ruby
19
+
20
+ gem 'uglifier', '>= 1.0.3'
21
+ end
22
+
23
+ gem 'jquery-rails'
24
+
25
+ # To use ActiveModel has_secure_password
26
+ # gem 'bcrypt-ruby', '~> 3.0.0'
27
+
28
+ # To use Jbuilder templates for JSON
29
+ # gem 'jbuilder'
30
+
31
+ # Use unicorn as the app server
32
+ # gem 'unicorn'
33
+
34
+ # Deploy with Capistrano
35
+ # gem 'capistrano'
36
+
37
+ # To use debugger
38
+ # gem 'debugger'
39
+
40
+ gem 'therubyracer'
41
+
42
+
43
+ gem 'mharris_ext'
44
+ gem 'lre'
45
+ gem 'guard'
46
+ gem 'activesupport'
47
+ gem 'rfusefs'
48
+
49
+ gem 'coffee-script'
50
+ gem 'therubyracer'
51
+
52
+ gem 'sprockets','2.2.2', :path => '/mnt/hgfs/Code/read/sprockets'
53
+
54
+ gem 'mongo'
55
+ gem 'bson_ext'
@@ -0,0 +1,174 @@
1
+ PATH
2
+ remote: /mnt/hgfs/Code/read/sprockets
3
+ specs:
4
+ sprockets (2.2.2)
5
+ hike (~> 1.2)
6
+ multi_json (~> 1.0)
7
+ rack (~> 1.0)
8
+ tilt (~> 1.1, != 1.3.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionmailer (3.2.13)
14
+ actionpack (= 3.2.13)
15
+ mail (~> 2.5.3)
16
+ actionpack (3.2.13)
17
+ activemodel (= 3.2.13)
18
+ activesupport (= 3.2.13)
19
+ builder (~> 3.0.0)
20
+ erubis (~> 2.7.0)
21
+ journey (~> 1.0.4)
22
+ rack (~> 1.4.5)
23
+ rack-cache (~> 1.2)
24
+ rack-test (~> 0.6.1)
25
+ sprockets (~> 2.2.1)
26
+ activemodel (3.2.13)
27
+ activesupport (= 3.2.13)
28
+ builder (~> 3.0.0)
29
+ activerecord (3.2.13)
30
+ activemodel (= 3.2.13)
31
+ activesupport (= 3.2.13)
32
+ arel (~> 3.0.2)
33
+ tzinfo (~> 0.3.29)
34
+ activeresource (3.2.13)
35
+ activemodel (= 3.2.13)
36
+ activesupport (= 3.2.13)
37
+ activesupport (3.2.13)
38
+ i18n (= 0.6.1)
39
+ multi_json (~> 1.0)
40
+ arel (3.0.2)
41
+ bson (1.8.5)
42
+ bson_ext (1.8.5)
43
+ bson (~> 1.8.5)
44
+ builder (3.0.4)
45
+ coderay (1.0.9)
46
+ coffee-rails (3.2.2)
47
+ coffee-script (>= 2.2.0)
48
+ railties (~> 3.2.0)
49
+ coffee-script (2.2.0)
50
+ coffee-script-source
51
+ execjs
52
+ coffee-script-source (1.6.2)
53
+ erubis (2.7.0)
54
+ execjs (1.4.0)
55
+ multi_json (~> 1.0)
56
+ facets (2.9.3)
57
+ fattr (2.2.1)
58
+ ffi (1.8.1)
59
+ formatador (0.2.4)
60
+ guard (1.8.0)
61
+ formatador (>= 0.2.4)
62
+ listen (>= 1.0.0)
63
+ lumberjack (>= 1.0.2)
64
+ pry (>= 0.9.10)
65
+ thor (>= 0.14.6)
66
+ hike (1.2.2)
67
+ i18n (0.6.1)
68
+ journey (1.0.4)
69
+ jquery-rails (2.2.1)
70
+ railties (>= 3.0, < 5.0)
71
+ thor (>= 0.14, < 2.0)
72
+ json (1.7.7)
73
+ libv8 (3.11.8.17)
74
+ listen (1.0.3)
75
+ rb-fsevent (>= 0.9.3)
76
+ rb-inotify (>= 0.9)
77
+ rb-kqueue (>= 0.2)
78
+ lre (0.3.0)
79
+ fattr
80
+ mharris_ext
81
+ watchr
82
+ lumberjack (1.0.3)
83
+ mail (2.5.3)
84
+ i18n (>= 0.4.0)
85
+ mime-types (~> 1.16)
86
+ treetop (~> 1.4.8)
87
+ method_source (0.8.1)
88
+ mharris_ext (1.7.0)
89
+ facets
90
+ fattr
91
+ mime-types (1.23)
92
+ mongo (1.8.5)
93
+ bson (~> 1.8.5)
94
+ multi_json (1.7.2)
95
+ polyglot (0.3.3)
96
+ pry (0.9.12.1)
97
+ coderay (~> 1.0.5)
98
+ method_source (~> 0.8)
99
+ slop (~> 3.4)
100
+ rack (1.4.5)
101
+ rack-cache (1.2)
102
+ rack (>= 0.4)
103
+ rack-ssl (1.3.3)
104
+ rack
105
+ rack-test (0.6.2)
106
+ rack (>= 1.0)
107
+ rails (3.2.13)
108
+ actionmailer (= 3.2.13)
109
+ actionpack (= 3.2.13)
110
+ activerecord (= 3.2.13)
111
+ activeresource (= 3.2.13)
112
+ activesupport (= 3.2.13)
113
+ bundler (~> 1.0)
114
+ railties (= 3.2.13)
115
+ railties (3.2.13)
116
+ actionpack (= 3.2.13)
117
+ activesupport (= 3.2.13)
118
+ rack-ssl (~> 1.3.2)
119
+ rake (>= 0.8.7)
120
+ rdoc (~> 3.4)
121
+ thor (>= 0.14.6, < 2.0)
122
+ rake (10.0.4)
123
+ rb-fsevent (0.9.3)
124
+ rb-inotify (0.9.0)
125
+ ffi (>= 0.5.0)
126
+ rb-kqueue (0.2.0)
127
+ ffi (>= 0.5.0)
128
+ rdoc (3.12.2)
129
+ json (~> 1.4)
130
+ ref (1.0.4)
131
+ rfuse (1.0.3)
132
+ rfusefs (1.0.0)
133
+ rfuse (~> 1.0)
134
+ sass (3.2.8)
135
+ sass-rails (3.2.6)
136
+ railties (~> 3.2.0)
137
+ sass (>= 3.1.10)
138
+ tilt (~> 1.3)
139
+ slop (3.4.4)
140
+ sqlite3 (1.3.7)
141
+ therubyracer (0.11.4)
142
+ libv8 (~> 3.11.8.12)
143
+ ref
144
+ thor (0.18.1)
145
+ tilt (1.3.7)
146
+ treetop (1.4.12)
147
+ polyglot
148
+ polyglot (>= 0.3.1)
149
+ tzinfo (0.3.37)
150
+ uglifier (2.0.1)
151
+ execjs (>= 0.3.0)
152
+ multi_json (~> 1.0, >= 1.0.2)
153
+ watchr (0.7)
154
+
155
+ PLATFORMS
156
+ ruby
157
+
158
+ DEPENDENCIES
159
+ activesupport
160
+ bson_ext
161
+ coffee-rails (~> 3.2.1)
162
+ coffee-script
163
+ guard
164
+ jquery-rails
165
+ lre
166
+ mharris_ext
167
+ mongo
168
+ rails (= 3.2.13)
169
+ rfusefs
170
+ sass-rails (~> 3.2.3)
171
+ sprockets (= 2.2.2)!
172
+ sqlite3
173
+ therubyracer
174
+ uglifier (>= 1.0.3)