jskit_rails 0.0.3 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -201
  3. data/README.md +54 -1
  4. data/{spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af → app/assets/javascripts/jskit.js} +0 -0
  5. data/app/assets/javascripts/jskit.min.js +2 -0
  6. data/app/assets/javascripts/jskit_rails.js.erb +3 -0
  7. data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/jskit_rails}/application.css +0 -0
  8. data/app/decorators/controllers/jskit_rails/application_controller_decorator.rb +37 -0
  9. data/lib/jskit_rails.rb +13 -1
  10. data/lib/jskit_rails/configuration.rb +9 -0
  11. data/lib/jskit_rails/engine.rb +7 -3
  12. data/lib/jskit_rails/version.rb +2 -2
  13. data/spec/controllers/application_controller_spec.rb +37 -0
  14. data/spec/lib/configuration_spec.rb +12 -0
  15. data/spec/lib/jskit_rails_spec.rb +12 -0
  16. data/spec/lib/version_spec.rb +7 -0
  17. metadata +40 -227
  18. data/lib/tasks/jskit_rails_tasks.rake +0 -4
  19. data/spec/dummy/README.rdoc +0 -28
  20. data/spec/dummy/Rakefile +0 -6
  21. data/spec/dummy/app/assets/javascripts/application.js +0 -1
  22. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  23. data/spec/dummy/app/controllers/pages_controller.rb +0 -5
  24. data/spec/dummy/app/views/layouts/application.html.erb +0 -16
  25. data/spec/dummy/app/views/pages/index.html.erb +0 -1
  26. data/spec/dummy/bin/bundle +0 -3
  27. data/spec/dummy/bin/rails +0 -4
  28. data/spec/dummy/bin/rake +0 -4
  29. data/spec/dummy/config.ru +0 -4
  30. data/spec/dummy/config/application.rb +0 -29
  31. data/spec/dummy/config/boot.rb +0 -5
  32. data/spec/dummy/config/database.yml +0 -25
  33. data/spec/dummy/config/environment.rb +0 -5
  34. data/spec/dummy/config/environments/development.rb +0 -37
  35. data/spec/dummy/config/environments/production.rb +0 -82
  36. data/spec/dummy/config/environments/test.rb +0 -39
  37. data/spec/dummy/config/initializers/assets.rb +0 -8
  38. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  39. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  40. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  41. data/spec/dummy/config/initializers/inflections.rb +0 -16
  42. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  43. data/spec/dummy/config/initializers/session_store.rb +0 -3
  44. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  45. data/spec/dummy/config/locales/en.yml +0 -23
  46. data/spec/dummy/config/routes.rb +0 -3
  47. data/spec/dummy/config/secrets.yml +0 -22
  48. data/spec/dummy/db/development.sqlite3 +0 -0
  49. data/spec/dummy/db/schema.rb +0 -16
  50. data/spec/dummy/db/test.sqlite3 +0 -0
  51. data/spec/dummy/log/development.log +0 -440
  52. data/spec/dummy/log/test.log +0 -133
  53. data/spec/dummy/public/404.html +0 -67
  54. data/spec/dummy/public/422.html +0 -67
  55. data/spec/dummy/public/500.html +0 -66
  56. data/spec/dummy/public/favicon.ico +0 -0
  57. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  58. data/spec/dummy/tmp/cache/assets/development/sprockets/17638b36dd2d326da8bbe19e3187b4aa +0 -0
  59. data/spec/dummy/tmp/cache/assets/development/sprockets/1b3ab54570489ef40fe6bcfcb75732a4 +0 -0
  60. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  61. data/spec/dummy/tmp/cache/assets/development/sprockets/3951bba7f7c83ef217caf196767a87b4 +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/7716514c24387d3b649c2d1db2fb57cf +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/8f2db0e64688316c3e652e3f7cfec01f +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/aa59802eb5ce4da01106d1b80af0b061 +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/b472917185e15a1cc040f2665247d7fe +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/c5012fc346216a5b77cf508656d4be05 +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/cc6d6668e906cadd9045f8059626e51f +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/cf750916991c005f72c5986edb1c5e34 +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/cfd1216ad7ba24f298bc865c6b92d581 +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  74. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  75. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  76. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  77. data/spec/dummy/tmp/cache/assets/test/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af +0 -0
  78. data/spec/dummy/tmp/cache/assets/test/sprockets/cf750916991c005f72c5986edb1c5e34 +0 -0
  79. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  80. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  81. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  82. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-33-19.355.png +0 -0
  83. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-31.074.png +0 -0
  84. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.html +0 -14
  85. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.png +0 -0
  86. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-50.695.png +0 -0
  87. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.html +0 -14
  88. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.png +0 -0
  89. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.html +0 -14
  90. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.png +0 -0
  91. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.html +0 -14
  92. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.png +0 -0
  93. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.html +0 -14
  94. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.png +0 -0
  95. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.html +0 -14
  96. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.png +0 -0
  97. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.html +0 -14
  98. data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.png +0 -0
  99. data/spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.html +0 -12
  100. data/spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.png +0 -0
  101. data/spec/rails_helper.rb +0 -50
  102. data/spec/spec_helper.rb +0 -78
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html><html><head>
2
- <title>Dummy</title>
3
- <link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
4
- <script data-turbolinks-track="true" src="/assets/application.js"></script>
5
-
6
- </head>
7
- <body>
8
-
9
- Hello
10
-
11
-
12
-
13
-
14
- </body></html>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html><html><head>
2
- <title>Dummy</title>
3
- <link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
4
- <script data-turbolinks-track="true" src="/assets/application.js"></script>
5
-
6
- </head>
7
- <body>
8
-
9
- Hello
10
-
11
-
12
-
13
-
14
- </body></html>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html><html><head>
2
- <title>Dummy</title>
3
- <link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
4
- <script data-turbolinks-track="true" src="/assets/application.js"></script>
5
-
6
- </head>
7
- <body>
8
-
9
- Hello
10
-
11
-
12
-
13
-
14
- </body></html>
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html><html><head>
2
- <title>Dummy</title>
3
- <link data-turbolinks-track="true" href="/assets/application.css" media="all" rel="stylesheet">
4
- <script data-turbolinks-track="true" src="/assets/application.js"></script>
5
-
6
- </head>
7
- <body>
8
-
9
- Hello
10
-
11
-
12
-
13
-
14
- </body></html>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0//EN"><html><head><title>Internal Server Error</title></head>
2
- <body>
3
- <h1>Internal Server Error</h1>
4
- undefined local variable or method `jskit_payload' for #&lt;PagesController:0x007fc81d3e67e0&gt;
5
- <hr>
6
- <address>
7
- WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24) at
8
- 127.0.0.1:61151
9
- </address>
10
-
11
-
12
- </body></html>
data/spec/rails_helper.rb DELETED
@@ -1,50 +0,0 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
- ENV["RAILS_ENV"] ||= "test"
3
- require "spec_helper"
4
- require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
- require "rspec/rails"
6
- require "capybara/rails"
7
- require "capybara-screenshot"
8
- require "capybara-screenshot/rspec"
9
- require "capybara/poltergeist"
10
-
11
- Capybara.javascript_driver = :poltergeist
12
-
13
- # Requires supporting ruby files with custom matchers and macros, etc, in
14
- # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
15
- # run as spec files by default. This means that files in spec/support that end
16
- # in _spec.rb will both be required and run as specs, causing the specs to be
17
- # run twice. It is recommended that you do not name files matching this glob to
18
- # end with _spec.rb. You can configure this pattern with the --pattern
19
- # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
20
- Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
21
-
22
- # Checks for pending migrations before tests are run.
23
- # If you are not using ActiveRecord, you can remove this line.
24
- ActiveRecord::Migration.maintain_test_schema!
25
- RSpec.configure do |config|
26
- config.include Capybara::DSL
27
- config.infer_base_class_for_anonymous_controllers = false
28
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
29
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
30
-
31
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
32
- # examples within a transaction, remove the following line or assign false
33
- # instead of true.
34
- config.use_transactional_fixtures = true
35
-
36
- # RSpec Rails can automatically mix in different behaviours to your tests
37
- # based on their file location, for example enabling you to call `get` and
38
- # `post` in specs under `spec/controllers`.
39
- #
40
- # You can disable this behaviour by removing the line below, and instead
41
- # explicitly tag your specs with their type, e.g.:
42
- #
43
- # RSpec.describe UsersController, :type => :controller do
44
- # # ...
45
- # end
46
- #
47
- # The different available types are documented in the features, such as in
48
- # https://relishapp.com/rspec/rspec-rails/docs
49
- config.infer_spec_type_from_file_location!
50
- end
data/spec/spec_helper.rb DELETED
@@ -1,78 +0,0 @@
1
- # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
- # file to always be loaded, without a need to explicitly require it in any files.
5
- #
6
- # Given that it is always loaded, you are encouraged to keep this file as
7
- # light-weight as possible. Requiring heavyweight dependencies from this file
8
- # will add to the boot time of your test suite on EVERY test run, even for an
9
- # individual file that may not need all of that loaded. Instead, make a
10
- # separate helper file that requires this one and then use it only in the specs
11
- # that actually need it.
12
- #
13
- # The `.rspec` file also contains a few flags that are not defaults but that
14
- # users commonly want.
15
- #
16
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
- RSpec.configure do |config|
18
- # The settings below are suggested to provide a good initial experience
19
- # with RSpec, but feel free to customize to your heart's content.
20
- =begin
21
- # These two settings work together to allow you to limit a spec run
22
- # to individual examples or groups you care about by tagging them with
23
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
24
- # get run.
25
- config.filter_run :focus
26
- config.run_all_when_everything_filtered = true
27
-
28
- # Many RSpec users commonly either run the entire suite or an individual
29
- # file, and it's useful to allow more verbose output when running an
30
- # individual spec file.
31
- if config.files_to_run.one?
32
- # Use the documentation formatter for detailed output,
33
- # unless a formatter has already been configured
34
- # (e.g. via a command-line flag).
35
- config.default_formatter = 'doc'
36
- end
37
-
38
- # Print the 10 slowest examples and example groups at the
39
- # end of the spec run, to help surface which specs are running
40
- # particularly slow.
41
- config.profile_examples = 10
42
-
43
- # Run specs in random order to surface order dependencies. If you find an
44
- # order dependency and want to debug it, you can fix the order by providing
45
- # the seed, which is printed after each run.
46
- # --seed 1234
47
- config.order = :random
48
-
49
- # Seed global randomization in this process using the `--seed` CLI option.
50
- # Setting this allows you to use `--seed` to deterministically reproduce
51
- # test failures related to randomization by passing the same `--seed` value
52
- # as the one that triggered the failure.
53
- Kernel.srand config.seed
54
-
55
- # rspec-expectations config goes here. You can use an alternate
56
- # assertion/expectation library such as wrong or the stdlib/minitest
57
- # assertions if you prefer.
58
- config.expect_with :rspec do |expectations|
59
- # Enable only the newer, non-monkey-patching expect syntax.
60
- # For more details, see:
61
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
62
- expectations.syntax = :expect
63
- end
64
-
65
- # rspec-mocks config goes here. You can use an alternate test double
66
- # library (such as bogus or mocha) by changing the `mock_with` option here.
67
- config.mock_with :rspec do |mocks|
68
- # Enable only the newer, non-monkey-patching expect syntax.
69
- # For more details, see:
70
- # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
71
- mocks.syntax = :expect
72
-
73
- # Prevents you from mocking or stubbing a method that does not exist on
74
- # a real object. This is generally recommended.
75
- mocks.verify_partial_doubles = true
76
- end
77
- =end
78
- end