browserify-rails 0.0.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +1 -0
  4. data/LICENSE.txt +2 -2
  5. data/README.md +83 -15
  6. data/Rakefile +26 -0
  7. data/browserify-rails.gemspec +21 -16
  8. data/lib/browserify-rails.rb +8 -0
  9. data/lib/browserify-rails/browserify_error.rb +5 -0
  10. data/lib/browserify-rails/browserify_processor.rb +109 -0
  11. data/lib/browserify-rails/railtie.rb +20 -0
  12. data/lib/browserify-rails/tasks/npm.rake +20 -0
  13. data/lib/browserify-rails/version.rb +3 -0
  14. data/test/browserify_processor_test.rb +46 -0
  15. data/test/compilation_test.rb +82 -0
  16. data/test/dummy/Rakefile +7 -0
  17. data/test/dummy/app/assets/javascripts/application.js.example +1 -0
  18. data/test/dummy/app/assets/javascripts/foo.js.example +2 -0
  19. data/test/dummy/app/assets/javascripts/nested/index.js.example +1 -0
  20. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  21. data/test/dummy/app/controllers/application_controller.rb +3 -0
  22. data/test/dummy/app/controllers/home_controller.rb +5 -0
  23. data/test/dummy/app/helpers/application_helper.rb +2 -0
  24. data/test/dummy/app/helpers/home_helper.rb +2 -0
  25. data/test/dummy/app/mailers/.gitkeep +0 -0
  26. data/test/dummy/app/models/.gitkeep +0 -0
  27. data/test/dummy/app/views/home/index.html.erb +2 -0
  28. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/config/application.rb +44 -0
  31. data/test/dummy/config/boot.rb +10 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +27 -0
  35. data/test/dummy/config/environments/production.rb +54 -0
  36. data/test/dummy/config/environments/test.rb +39 -0
  37. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/test/dummy/config/initializers/inflections.rb +10 -0
  39. data/test/dummy/config/initializers/mime_types.rb +5 -0
  40. data/test/dummy/config/initializers/secret_token.rb +7 -0
  41. data/test/dummy/config/initializers/session_store.rb +8 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +12 -0
  43. data/test/dummy/config/locales/en.yml +5 -0
  44. data/test/dummy/config/routes.rb +60 -0
  45. data/test/dummy/package.json +12 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +26 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/script/rails +6 -0
  51. data/test/fixtures/application.changed.out.js +12 -0
  52. data/test/fixtures/application.foo_changed.out.js +11 -0
  53. data/test/fixtures/application.out.js +11 -0
  54. data/test/fixtures/empty_module.js +2 -0
  55. data/test/fixtures/foo.out.js +9 -0
  56. data/test/test_helper.rb +20 -0
  57. metadata +151 -29
  58. data/.rspec +0 -2
  59. data/spec/browserify/rails_spec.rb +0 -11
  60. data/spec/spec_helper.rb +0 -2
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,11 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Browserify::Rails do
4
- it 'should have a version number' do
5
- Browserify::Rails::VERSION.should_not be_nil
6
- end
7
-
8
- it 'should do something useful' do
9
- false.should be_true
10
- end
11
- end
data/spec/spec_helper.rb DELETED
@@ -1,2 +0,0 @@
1
- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
- require 'browserify/rails'