opal-rails 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +12 -4
  3. data/.powder +1 -0
  4. data/.travis.yml +7 -3
  5. data/Appraisals +11 -0
  6. data/CHANGELOG.md +113 -50
  7. data/Gemfile +0 -16
  8. data/README.md +34 -52
  9. data/Rakefile +1 -5
  10. data/app/helpers/opal_helper.rb +2 -2
  11. data/config.ru +10 -0
  12. data/lib/opal/rails.rb +0 -2
  13. data/lib/opal/rails/engine.rb +2 -21
  14. data/lib/opal/rails/version.rb +1 -1
  15. data/opal-rails.gemspec +11 -5
  16. data/spec/spec_helper.rb +1 -14
  17. data/spec/support/test_app.rb +6 -0
  18. data/test_apps/application_controller.rb +52 -0
  19. data/{test_app/app → test_apps}/assets/javascripts/application.js.rb +0 -0
  20. data/{test_app/app → test_apps}/assets/javascripts/bar.rb +0 -0
  21. data/{test_app/app → test_apps}/assets/javascripts/foo.js.rb +0 -0
  22. data/{test_app/app → test_apps}/assets/javascripts/source_map_example.js.rb +0 -0
  23. data/test_apps/rails4.rb +43 -0
  24. data/test_apps/rails5.rb +42 -0
  25. metadata +83 -83
  26. data/app/controllers/opal_spec_controller.rb +0 -38
  27. data/app/views/layouts/opal_spec.html.erb +0 -13
  28. data/app/views/opal_spec/run.html.erb +0 -40
  29. data/lib/opal/rails/spec_builder.rb +0 -92
  30. data/lib/opal/rails/sprockets_cache_key_fix.rb +0 -19
  31. data/lib/tasks/opal-rails_tasks.rake +0 -26
  32. data/spec/integration/in_browser_specs_spec.rb +0 -21
  33. data/test_app/.gitignore +0 -15
  34. data/test_app/Rakefile +0 -7
  35. data/test_app/app/assets/images/rails.png +0 -0
  36. data/test_app/app/assets/stylesheets/application.css +0 -13
  37. data/test_app/app/controllers/application_controller.rb +0 -21
  38. data/test_app/app/views/application/index.html.erb +0 -3
  39. data/test_app/app/views/application/with_assignments.js.opal +0 -8
  40. data/test_app/app/views/layouts/application.html.erb +0 -14
  41. data/test_app/config.ru +0 -4
  42. data/test_app/config/application.rb +0 -75
  43. data/test_app/config/boot.rb +0 -6
  44. data/test_app/config/environment.rb +0 -5
  45. data/test_app/config/environments/development.rb +0 -33
  46. data/test_app/config/environments/production.rb +0 -65
  47. data/test_app/config/environments/test.rb +0 -42
  48. data/test_app/config/initializers/backtrace_silencers.rb +0 -7
  49. data/test_app/config/initializers/inflections.rb +0 -15
  50. data/test_app/config/initializers/mime_types.rb +0 -5
  51. data/test_app/config/initializers/secret_token.rb +0 -8
  52. data/test_app/config/initializers/session_store.rb +0 -8
  53. data/test_app/config/initializers/wrap_parameters.rb +0 -10
  54. data/test_app/config/locales/en.yml +0 -5
  55. data/test_app/config/routes.rb +0 -4
  56. data/test_app/lib/assets/.gitkeep +0 -0
  57. data/test_app/lib/tasks/.gitkeep +0 -0
  58. data/test_app/log/.gitkeep +0 -0
  59. data/test_app/public/404.html +0 -26
  60. data/test_app/public/422.html +0 -26
  61. data/test_app/public/500.html +0 -25
  62. data/test_app/public/favicon.ico +0 -0
  63. data/test_app/public/robots.txt +0 -5
  64. data/test_app/script/rails +0 -6
  65. data/test_app/spec-opal/example_spec.js.rb +0 -7
  66. data/test_app/spec-opal/requires_opal_spec.js.rb +0 -8
  67. data/test_app/spec-opal/spec_helper.rb +0 -3
  68. data/test_app/spec-opal/subdirectory/other_spec.js.rb +0 -7
@@ -1,7 +1,7 @@
1
1
  module OpalHelper
2
2
  def opal_tag(opal_code = nil, &block)
3
3
  opal_code ||= capture(&block)
4
- compiler_options = Opal::Processor.compiler_options.merge(requirable: false)
4
+ compiler_options = Opal::Config.compiler_options.merge(requirable: false)
5
5
  compiler = Opal::Compiler.new(opal_code, compiler_options)
6
6
  js_code = compiler.compile
7
7
  javascript_tag js_code
@@ -16,7 +16,7 @@ module OpalHelper
16
16
  return script_tags if skip_loader
17
17
 
18
18
  sources.each do |source|
19
- loading_code = Opal::Processor.load_asset_code(sprockets, source)
19
+ loading_code = Opal::Sprockets.load_asset(source, sprockets)
20
20
  script_tags << javascript_tag(loading_code) if loading_code.present?
21
21
  end
22
22
 
@@ -0,0 +1,10 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require 'bundler/setup'
4
+ require 'rails'
5
+ rails_version = Rails::VERSION::MAJOR
6
+ ENV["RAILS_ENV"] = "test"
7
+ ENV['DATABASE_URL'] = 'sqlite3::memory:'
8
+ require_relative "test_apps/rails#{rails_version}"
9
+
10
+ run RailsApp::Application
@@ -1,11 +1,9 @@
1
1
  require 'opal'
2
2
  require 'opal-jquery'
3
3
  require 'opal-activesupport'
4
- require 'opal-rspec'
5
4
 
6
5
  require 'opal/rails/engine'
7
6
  require 'opal/rails/template_handler'
8
- require 'opal/rails/sprockets_cache_key_fix'
9
7
  require 'opal/rails/version'
10
8
 
11
9
  require 'jquery-rails'
@@ -1,7 +1,6 @@
1
1
  require 'rails'
2
2
  require 'opal/sprockets/server'
3
3
  require 'opal/sprockets/processor'
4
- require 'opal/rails/spec_builder'
5
4
 
6
5
  module Opal
7
6
  module Rails
@@ -10,11 +9,6 @@ module Opal
10
9
 
11
10
  config.opal = ActiveSupport::OrderedOptions.new
12
11
 
13
- config.opal.enable_specs = ::Rails.env.development? || ::Rails.env.test?
14
-
15
- # new default location, override-able in a Rails initializer
16
- config.opal.spec_location = 'spec-opal'
17
-
18
12
  config.opal.dynamic_require_severity = :ignore
19
13
 
20
14
  # Cache eager_load_paths now, otherwise the assets dir is added
@@ -26,15 +20,6 @@ module Opal
26
20
  end
27
21
 
28
22
  initializer 'opal.asset_paths', :after => 'sprockets.environment', :group => :all do |app|
29
- if app.config.opal.enable_specs
30
- spec_location = app.root.join(app.config.opal.spec_location).to_s
31
- runner_dir = ::Opal::Rails::SpecBuilder.runner_dir(app.root)
32
- runner_dir.mkpath
33
-
34
- app.assets.append_path runner_dir.to_s
35
- app.assets.append_path spec_location
36
- end
37
-
38
23
  Opal.paths.each do |path|
39
24
  app.assets.append_path path
40
25
  end
@@ -47,11 +32,11 @@ module Opal
47
32
  config = app.config
48
33
  config.opal.each_pair do |key, value|
49
34
  key = "#{key}="
50
- Opal::Processor.send(key, value) if Opal::Processor.respond_to? key
35
+ Opal::Config.send(key, value) if Opal::Config.respond_to? key
51
36
  end
52
37
 
53
38
  app.routes.prepend do
54
- if Opal::Processor.source_map_enabled && config.assets.compile && config.assets.debug
39
+ if Opal::Config.source_map_enabled && config.assets.compile && config.assets.debug
55
40
  maps_prefix = '/__OPAL_SOURCE_MAPS__'
56
41
  maps_app = Opal::SourceMapServer.new(app.assets, maps_prefix)
57
42
 
@@ -59,10 +44,6 @@ module Opal
59
44
 
60
45
  mount maps_app => maps_prefix
61
46
  end
62
-
63
- if app.config.opal.enable_specs
64
- get '/opal_spec' => 'opal_spec#run', as: :opal_spec
65
- end
66
47
  end
67
48
  end
68
49
 
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Rails
3
- VERSION = '0.8.1'
3
+ VERSION = '0.9.0'
4
4
  end
5
5
  end
@@ -11,6 +11,10 @@ Gem::Specification.new do |s|
11
11
  s.summary = %q{Rails bindings for opal JS engine}
12
12
  s.description = %q{Rails bindings for opal JS engine}
13
13
  s.license = 'MIT-LICENSE'
14
+ s.post_install_message = [
15
+ "BEWARE: Spec support is being extracted from `opal-rails` into `opal-rspec-rails`",
16
+ " Please use `opal-rspec-rails` or the 0-8-stable branch."
17
+ ].join("\n")
14
18
 
15
19
  s.rubyforge_project = 'opal-rails'
16
20
 
@@ -21,16 +25,18 @@ Gem::Specification.new do |s|
21
25
 
22
26
  required_ruby_version = '>= 1.9.3'
23
27
 
24
- s.add_dependency 'rails', '>= 3.2', '< 5.0'
25
- s.add_dependency 'opal', '~> 0.8.0'
28
+ s.add_dependency 'rails', '>= 4.0', '< 6.0'
29
+ s.add_dependency 'sprockets-rails', '< 3.0'
30
+ s.add_dependency 'opal', '>= 0.8.0', '< 0.11'
26
31
  s.add_dependency 'opal-jquery', '~> 0.4.0'
27
- s.add_dependency 'opal-rspec', '~> 0.4.3'
28
32
  s.add_dependency 'jquery-rails'
29
33
  s.add_dependency 'opal-activesupport', '>= 0.0.5'
30
- s.add_dependency 'sprockets-rails', '< 3.0'
31
34
 
32
35
  s.add_development_dependency 'execjs'
33
36
  s.add_development_dependency 'launchy'
34
- s.add_development_dependency 'capybara', '~> 2.3'
37
+ s.add_development_dependency 'capybara', '~> 2.3'
35
38
  s.add_development_dependency 'rspec-rails', '~> 3.0'
39
+ s.add_development_dependency 'appraisal', '~> 2.1'
40
+ s.add_development_dependency 'sqlite3'
41
+ s.add_development_dependency 'capybara-webkit'
36
42
  end
@@ -1,19 +1,6 @@
1
1
  root_dir = File.expand_path('../../', __FILE__)
2
2
 
3
-
4
- # OPAL-RAILS
5
-
6
- $:.unshift File.expand_path('lib', root_dir)
7
- require 'opal-rails'
8
-
9
-
10
- # RAILS
11
-
12
- # Configure Rails Environment
13
- ENV['RAILS_ENV'] = 'test'
14
-
15
- require File.expand_path('test_app/config/environment.rb', root_dir)
16
-
3
+ require 'support/test_app'
17
4
  require 'rspec/rails'
18
5
  require 'support/capybara'
19
6
  require 'support/reset_assets_cache'
@@ -0,0 +1,6 @@
1
+ require 'rails'
2
+ rails_version = Rails::VERSION::MAJOR
3
+ ENV["RAILS_ENV"] = "test"
4
+ ENV['DATABASE_URL'] = 'sqlite3::memory:'
5
+ require_relative "../../test_apps/rails#{rails_version}"
6
+
@@ -0,0 +1,52 @@
1
+ LAYOUT = <<-HTML
2
+ <!DOCTYPE html>
3
+ <html>
4
+ <head><%= javascript_include_tag "application" %></head>
5
+ <body><%= yield %></body>
6
+ </html>
7
+ HTML
8
+
9
+ INDEX = <<-HTML
10
+ <script type="text/ruby">
11
+ raise 'pippo'
12
+ </script>
13
+ HTML
14
+
15
+ WITH_ASSIGNMENTS = <<-RUBY
16
+ return {
17
+ number_var: @number_var,
18
+ string_var: @string_var,
19
+ array_var: @array_var,
20
+ hash_var: @hash_var,
21
+ object_var: @object_var,
22
+ local_var: local_var
23
+ }.to_n
24
+ RUBY
25
+
26
+ class ApplicationController < ActionController::Base
27
+ include Rails.application.routes.url_helpers
28
+ layout 'application'
29
+ self.view_paths = [ActionView::FixtureResolver.new(
30
+ 'layouts/application.html.erb' => LAYOUT,
31
+ 'application/index.html.erb' => INDEX,
32
+ 'application/with_assignments.js.opal' => WITH_ASSIGNMENTS,
33
+ )]
34
+
35
+ def index
36
+ end
37
+
38
+ def with_assignments
39
+ object = Object.new
40
+ def object.as_json options = {}
41
+ {contents: 'json representation'}
42
+ end
43
+
44
+ @number_var = 1234
45
+ @string_var = 'hello'
46
+ @array_var = [1,'a']
47
+ @hash_var = {a: 1, b: 2}
48
+ @object_var = object
49
+
50
+ render type: :js, locals: { local_var: 'i am local' }
51
+ end
52
+ end
@@ -0,0 +1,43 @@
1
+ # FROM: http://www.rubytutorial.io/how-to-test-your-gem-against-multiple-rails/
2
+
3
+ # test/apps/rails4.rb
4
+ require 'rails'
5
+ require 'rails/all'
6
+ require 'action_view/testing/resolvers'
7
+
8
+ require 'opal-rails' # our gem
9
+
10
+ module RailsApp
11
+ class Application < Rails::Application
12
+ config.root = __dir__
13
+ config.cache_classes = true
14
+ config.eager_load = false
15
+ config.serve_static_files = true
16
+ config.static_cache_control = 'public, max-age=3600'
17
+ config.consider_all_requests_local = true
18
+ config.action_controller.perform_caching = false
19
+ config.action_dispatch.show_exceptions = false
20
+ config.action_controller.allow_forgery_protection = false
21
+ config.active_support.deprecation = :stderr
22
+ config.secret_key_base = '49837489qkuweoiuoqwe'
23
+
24
+ config.middleware.delete 'Rack::Lock'
25
+ config.middleware.delete 'ActionDispatch::Flash'
26
+ config.middleware.delete 'ActionDispatch::BestStandardsSupport'
27
+
28
+ routes.append do
29
+ get '/' => 'application#index'
30
+ get '/application/with_assignments' => 'application#with_assignments'
31
+ end
32
+
33
+ config.assets.paths << File.join(__dir__, 'assets/javascripts')
34
+ config.assets.debug = true
35
+ config.assets.digest = true
36
+
37
+ # Opal specific:
38
+ config.opal.source_map_enabled = true
39
+ end
40
+ end
41
+
42
+ require_relative './application_controller'
43
+ RailsApp::Application.initialize!
@@ -0,0 +1,42 @@
1
+ # FROM: http://www.rubytutorial.io/how-to-test-your-gem-against-multiple-rails/
2
+
3
+ # test/apps/rails5.rb
4
+ require 'rails'
5
+ require 'rails/all'
6
+ require 'action_view/testing/resolvers'
7
+
8
+ require 'opal-rails' # our gem
9
+
10
+ module RailsApp
11
+ class Application < Rails::Application
12
+ config.root = __dir__
13
+ config.cache_classes = true
14
+ config.eager_load = false
15
+ config.serve_static_files = true
16
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
17
+ config.consider_all_requests_local = true
18
+ config.action_controller.perform_caching = false
19
+ config.action_dispatch.show_exceptions = false
20
+ config.action_controller.allow_forgery_protection = false
21
+ config.active_support.deprecation = :stderr
22
+ config.secret_key_base = '49837489qkuweoiuoqwe'
23
+
24
+ config.middleware.delete Rack::Lock
25
+ config.middleware.delete ActionDispatch::Flash
26
+
27
+ routes.append do
28
+ get '/' => 'application#index'
29
+ get '/application/with_assignments' => 'application#with_assignments'
30
+ end
31
+
32
+ config.assets.paths << File.join(__dir__, 'assets/javascripts')
33
+ config.assets.debug = true
34
+ config.assets.digest = true
35
+
36
+ # Opal specific:
37
+ config.opal.source_map_enabled = true
38
+ end
39
+ end
40
+
41
+ require_relative './application_controller'
42
+ RailsApp::Application.initialize!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-18 00:00:00.000000000 Z
11
+ date: 2016-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,62 +16,68 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '4.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.0'
22
+ version: '6.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '3.2'
29
+ version: '4.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.0'
32
+ version: '6.0'
33
33
  - !ruby/object:Gem::Dependency
34
- name: opal
34
+ name: sprockets-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - "<"
38
38
  - !ruby/object:Gem::Version
39
- version: 0.8.0
39
+ version: '3.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.8.0
46
+ version: '3.0'
47
47
  - !ruby/object:Gem::Dependency
48
- name: opal-jquery
48
+ name: opal
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 0.4.0
53
+ version: 0.8.0
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '0.11'
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
57
60
  requirements:
58
- - - "~>"
61
+ - - ">="
59
62
  - !ruby/object:Gem::Version
60
- version: 0.4.0
63
+ version: 0.8.0
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '0.11'
61
67
  - !ruby/object:Gem::Dependency
62
- name: opal-rspec
68
+ name: opal-jquery
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: 0.4.3
73
+ version: 0.4.0
68
74
  type: :runtime
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: 0.4.3
80
+ version: 0.4.0
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: jquery-rails
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -100,20 +106,6 @@ dependencies:
100
106
  - - ">="
101
107
  - !ruby/object:Gem::Version
102
108
  version: 0.0.5
103
- - !ruby/object:Gem::Dependency
104
- name: sprockets-rails
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "<"
108
- - !ruby/object:Gem::Version
109
- version: '3.0'
110
- type: :runtime
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "<"
115
- - !ruby/object:Gem::Version
116
- version: '3.0'
117
109
  - !ruby/object:Gem::Dependency
118
110
  name: execjs
119
111
  requirement: !ruby/object:Gem::Requirement
@@ -170,6 +162,48 @@ dependencies:
170
162
  - - "~>"
171
163
  - !ruby/object:Gem::Version
172
164
  version: '3.0'
165
+ - !ruby/object:Gem::Dependency
166
+ name: appraisal
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - "~>"
170
+ - !ruby/object:Gem::Version
171
+ version: '2.1'
172
+ type: :development
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - "~>"
177
+ - !ruby/object:Gem::Version
178
+ version: '2.1'
179
+ - !ruby/object:Gem::Dependency
180
+ name: sqlite3
181
+ requirement: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ type: :development
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ - !ruby/object:Gem::Dependency
194
+ name: capybara-webkit
195
+ requirement: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - ">="
198
+ - !ruby/object:Gem::Version
199
+ version: '0'
200
+ type: :development
201
+ prerelease: false
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
173
207
  description: Rails bindings for opal JS engine
174
208
  email:
175
209
  - elia@schito.me
@@ -178,84 +212,50 @@ extensions: []
178
212
  extra_rdoc_files: []
179
213
  files:
180
214
  - ".gitignore"
215
+ - ".powder"
181
216
  - ".rspec"
182
217
  - ".spectator.rb"
183
218
  - ".travis.yml"
219
+ - Appraisals
184
220
  - CHANGELOG.md
185
221
  - Gemfile
186
222
  - README.md
187
223
  - Rakefile
188
- - app/controllers/opal_spec_controller.rb
189
224
  - app/helpers/opal_helper.rb
190
- - app/views/layouts/opal_spec.html.erb
191
- - app/views/opal_spec/run.html.erb
225
+ - config.ru
192
226
  - lib/assets/javascripts/opal_ujs.js.rb
193
227
  - lib/opal-rails.rb
194
228
  - lib/opal/rails.rb
195
229
  - lib/opal/rails/engine.rb
196
230
  - lib/opal/rails/haml_filter.rb
197
231
  - lib/opal/rails/slim_filter.rb
198
- - lib/opal/rails/spec_builder.rb
199
- - lib/opal/rails/sprockets_cache_key_fix.rb
200
232
  - lib/opal/rails/template_handler.rb
201
233
  - lib/opal/rails/version.rb
202
234
  - lib/rails/generators/opal/assets/assets_generator.rb
203
235
  - lib/rails/generators/opal/assets/templates/javascript.js.rb
204
- - lib/tasks/opal-rails_tasks.rake
205
236
  - opal-rails.gemspec
206
237
  - script/rails
207
238
  - spec/helpers/opal_helper_spec.rb
208
239
  - spec/integration/assigns_spec.rb
209
- - spec/integration/in_browser_specs_spec.rb
210
240
  - spec/integration/source_map_spec.rb
211
241
  - spec/spec_helper.rb
212
242
  - spec/support/capybara.rb
213
243
  - spec/support/reset_assets_cache.rb
214
- - test_app/.gitignore
215
- - test_app/Rakefile
216
- - test_app/app/assets/images/rails.png
217
- - test_app/app/assets/javascripts/application.js.rb
218
- - test_app/app/assets/javascripts/bar.rb
219
- - test_app/app/assets/javascripts/foo.js.rb
220
- - test_app/app/assets/javascripts/source_map_example.js.rb
221
- - test_app/app/assets/stylesheets/application.css
222
- - test_app/app/controllers/application_controller.rb
223
- - test_app/app/views/application/index.html.erb
224
- - test_app/app/views/application/with_assignments.js.opal
225
- - test_app/app/views/layouts/application.html.erb
226
- - test_app/config.ru
227
- - test_app/config/application.rb
228
- - test_app/config/boot.rb
229
- - test_app/config/environment.rb
230
- - test_app/config/environments/development.rb
231
- - test_app/config/environments/production.rb
232
- - test_app/config/environments/test.rb
233
- - test_app/config/initializers/backtrace_silencers.rb
234
- - test_app/config/initializers/inflections.rb
235
- - test_app/config/initializers/mime_types.rb
236
- - test_app/config/initializers/secret_token.rb
237
- - test_app/config/initializers/session_store.rb
238
- - test_app/config/initializers/wrap_parameters.rb
239
- - test_app/config/locales/en.yml
240
- - test_app/config/routes.rb
241
- - test_app/lib/assets/.gitkeep
242
- - test_app/lib/tasks/.gitkeep
243
- - test_app/log/.gitkeep
244
- - test_app/public/404.html
245
- - test_app/public/422.html
246
- - test_app/public/500.html
247
- - test_app/public/favicon.ico
248
- - test_app/public/robots.txt
249
- - test_app/script/rails
250
- - test_app/spec-opal/example_spec.js.rb
251
- - test_app/spec-opal/requires_opal_spec.js.rb
252
- - test_app/spec-opal/spec_helper.rb
253
- - test_app/spec-opal/subdirectory/other_spec.js.rb
244
+ - spec/support/test_app.rb
245
+ - test_apps/application_controller.rb
246
+ - test_apps/assets/javascripts/application.js.rb
247
+ - test_apps/assets/javascripts/bar.rb
248
+ - test_apps/assets/javascripts/foo.js.rb
249
+ - test_apps/assets/javascripts/source_map_example.js.rb
250
+ - test_apps/rails4.rb
251
+ - test_apps/rails5.rb
254
252
  homepage: http://elia.github.com/opal-rails
255
253
  licenses:
256
254
  - MIT-LICENSE
257
255
  metadata: {}
258
- post_install_message:
256
+ post_install_message: |-
257
+ BEWARE: Spec support is being extracted from `opal-rails` into `opal-rspec-rails`
258
+ Please use `opal-rspec-rails` or the 0-8-stable branch.
259
259
  rdoc_options: []
260
260
  require_paths:
261
261
  - lib
@@ -271,15 +271,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  version: '0'
272
272
  requirements: []
273
273
  rubyforge_project: opal-rails
274
- rubygems_version: 2.4.8
274
+ rubygems_version: 2.6.4
275
275
  signing_key:
276
276
  specification_version: 4
277
277
  summary: Rails bindings for opal JS engine
278
278
  test_files:
279
279
  - spec/helpers/opal_helper_spec.rb
280
280
  - spec/integration/assigns_spec.rb
281
- - spec/integration/in_browser_specs_spec.rb
282
281
  - spec/integration/source_map_spec.rb
283
282
  - spec/spec_helper.rb
284
283
  - spec/support/capybara.rb
285
284
  - spec/support/reset_assets_cache.rb
285
+ - spec/support/test_app.rb