opal-rails 0.9.1 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36eac0db3f7ca54d4e90348a784fc39719be3524
4
- data.tar.gz: db4a917040f7c9869303fa76131dde1f297135d3
3
+ metadata.gz: d45a6c9723969146b15e0ad972edf6404c9be369
4
+ data.tar.gz: bb9b728766323da3fecfc62055798e56d73edcd2
5
5
  SHA512:
6
- metadata.gz: c79a5503e7c54e39c83f71349e053a5cb5c3eca1d6d1cc93847813b560f14fb05396fa885562ea088b36db64a573b6f788adf82096413a53926f5f4d6aa17722
7
- data.tar.gz: 78332734b60237a4e77a6797d76c659bf6b9e5b3013098973c93c33d53bff27dd3a2127d87d37f3945887e2ff40ebe59ac577b865f0d229f4459fe83e35ff237
6
+ metadata.gz: 0eb449a56a0939671ead5111a45afcdfd60535aa20b50277d1b9ba79b43251d1b7b60b9e11614588bb3608ec12b7163a52928945c8dd65d02e1c883018fa7213
7
+ data.tar.gz: 0b1acc765c5abf1d3f286990ec792a2caff104b01d9e260facfbd62b93e234f46ec0644ffe2e49c1c8b30c4869eae307e82f22904bf59e5f039fe4f047f474d1
@@ -6,14 +6,14 @@ cache:
6
6
  bundler: true
7
7
 
8
8
  rvm:
9
+ - 2.4.0
9
10
  - 2.3.3
10
11
  - 2.2.4
11
12
  - 2.1.10
12
- - 2.0.0
13
13
 
14
14
  before_script:
15
- - "export DISPLAY=:99.0"
16
- - "sh -e /etc/init.d/xvfb start"
15
+ # - "export DISPLAY=:99.0"
16
+ # - "sh -e /etc/init.d/xvfb start"
17
17
  - "gem install appraisal"
18
18
  - "appraisal install"
19
19
 
data/Appraisals CHANGED
@@ -1,11 +1,20 @@
1
+ current_ruby = Gem::Version.new(RUBY_VERSION)
2
+ ruby_2_2_2 = Gem::Version.new('2.2.2')
3
+ ruby_2_4_0 = Gem::Version.new('2.4.0')
4
+
1
5
  appraise "rails-4-1" do
2
- gem "rails", "~> 4.1.14"
3
- end
6
+ gem "rails", "~> 4.1.16"
7
+ gem "sprockets-rails", "< 3"
8
+ end if current_ruby < ruby_2_4_0
4
9
 
5
10
  appraise "rails-4-2" do
6
- gem "rails", "~> 4.2.5"
11
+ gem "rails", "~> 4.2.7"
7
12
  end
8
13
 
9
- appraise "rails-5" do
14
+ appraise "rails-5-0" do
10
15
  gem "rails", "~> 5.0.0"
11
- end if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.2.2')
16
+ end if current_ruby >= ruby_2_2_2
17
+
18
+ appraise "rails-5-1" do
19
+ gem "rails", "~> 5.1.0"
20
+ end if current_ruby >= ruby_2_2_2
@@ -15,13 +15,38 @@ Changes are grouped as follows:
15
15
  Whitespace conventions:
16
16
  - 4 spaces before ## titles
17
17
  - 2 spaces before ### titles
18
- - 2 spaces before ### titles
19
18
  - 1 spaces before normal text
20
19
  -->
21
20
 
22
21
 
23
22
 
24
23
 
24
+ ## [0.9.3] - 2017-05-08
25
+
26
+
27
+ ### Added
28
+
29
+ - Support for async in `javascript_include_tag` by attaching Opal bootstrap code in the `onload` attribute instead of using a separate tag (the previous behaviour is still available by passing `force_opal_loader_tag: true` to `javascript_include_tag`).
30
+
31
+
32
+ ### Changed
33
+
34
+ - `javascript_include_tag` no longer adds an extra javascript tag for the Opal bootstrapping code by default (See *Added* above).
35
+
36
+
37
+
38
+
39
+ ## ~~[0.9.2] - 2017-04-22~~
40
+
41
+ *yanked: due to an error that prevented the generation of the loading code only in production*
42
+
43
+ ### Added
44
+
45
+ - Added support for `sprockets-rails` v3
46
+
47
+
48
+
49
+
25
50
  ## [0.9.1] - 2016-11-30
26
51
 
27
52
 
@@ -37,6 +62,7 @@ Whitespace conventions:
37
62
 
38
63
 
39
64
 
65
+
40
66
  ## [0.9.0] - 2016-06-16
41
67
 
42
68
 
@@ -75,6 +101,8 @@ Whitespace conventions:
75
101
  - All specs now need to `require "opal"` and `require "opal-rspec"` explicitly
76
102
 
77
103
 
104
+
105
+
78
106
  ## [0.7.0] - 2015-02-02
79
107
 
80
108
  - Opal v0.7
@@ -84,6 +112,8 @@ Whitespace conventions:
84
112
  - Add a view rails generator `rails g opal:assets` to generate example view classes.
85
113
 
86
114
 
115
+
116
+
87
117
  ## [0.6.3] - 2014-03-07
88
118
 
89
119
  - Add `opal_tag` helper, similar to `javascript_tag`
@@ -91,6 +121,8 @@ Whitespace conventions:
91
121
  - Updated to Opal v0.6
92
122
 
93
123
 
124
+
125
+
94
126
  ## [0.6.2] - 2013-12-13
95
127
 
96
128
  - Added fun
@@ -98,11 +130,15 @@ Whitespace conventions:
98
130
  - Rely on `Opal::Processor` to know if source maps are enabled
99
131
 
100
132
 
133
+
134
+
101
135
  ## [0.6.1] - 2013-11-05
102
136
 
103
137
  - Fix the rake task, now uses `opal-rspec` too
104
138
 
105
139
 
140
+
141
+
106
142
  ## [0.6.0] - 2013-11-05
107
143
 
108
144
  - Don't load source maps if they're not enabled via `config.opal.source_map_enabled`
@@ -110,6 +146,8 @@ Whitespace conventions:
110
146
  - Run in-browser specs with `opal-rspec`
111
147
 
112
148
 
149
+
150
+
113
151
  ## [0.5.2] - 2013-09-05
114
152
 
115
153
  - Add `opal-activesupport` as a dependency
@@ -117,11 +155,15 @@ Whitespace conventions:
117
155
  - Add the `rake opal:spec` task to run browser specs from the terminal (requires phantomjs)
118
156
 
119
157
 
158
+
159
+
120
160
  ## [0.5.1] - 2013-07-02
121
161
 
122
162
  - `.js` suffix is now optional for in-browser specs
123
163
 
124
164
 
165
+
166
+
125
167
  ## [0.5.0] - 2013-06-30
126
168
 
127
169
  - Add support for source-maps
@@ -129,6 +171,8 @@ Whitespace conventions:
129
171
  - migrate `#to_native` to the new signature: `#to_n`
130
172
 
131
173
 
174
+
175
+
132
176
  ## [0.4.0] - 2013-06-03
133
177
 
134
178
  - Add `Rails.application.config.opal` which accepts:
@@ -140,11 +184,15 @@ Whitespace conventions:
140
184
  - Add the Changelog
141
185
 
142
186
 
187
+
188
+
143
189
  ## [0.3.8] - 2013-05-07
144
190
 
145
191
  - Add `opal/rails` alongside to `opal-rails` for older bundlers autorequire
146
192
 
147
193
 
194
+
195
+
148
196
  ## [0.3.7] - 2013-05-04
149
197
 
150
198
  - Rails 4.0.0 support
@@ -154,7 +202,8 @@ Whitespace conventions:
154
202
 
155
203
 
156
204
 
157
- [Unreleased]: https://github.com/opal/opal-rails/compare/v0.9.1...HEAD
205
+ [Unreleased]: https://github.com/opal/opal-rails/compare/v0.9.2...HEAD
206
+ [0.9.2]: https://github.com/opal/opal-rails/compare/v0.9.1...v0.9.2
158
207
  [0.9.1]: https://github.com/opal/opal-rails/compare/v0.9.0...v0.9.1
159
208
  [0.9.0]: https://github.com/opal/opal-rails/compare/v0.8.1...v0.9.0
160
209
  [0.8.1]: https://github.com/opal/opal-rails/compare/v0.8.0...v0.8.1
@@ -9,17 +9,23 @@ module OpalHelper
9
9
 
10
10
  def javascript_include_tag(*sources)
11
11
  options = sources.extract_options!
12
- sprockets = Rails.application.assets
13
12
  skip_loader = options.delete(:skip_opal_loader)
14
- script_tags = super(*sources, options)
13
+ skip_onload = options.delete(:force_opal_loader_tag)
14
+ debug = options["debug"] != false && request_debug_assets? # taken from spro
15
15
 
16
- return script_tags if skip_loader
16
+ return super(*sources, options) if skip_loader
17
17
 
18
+ script_tags = "".html_safe
18
19
  sources.each do |source|
19
- loading_code = Opal::Sprockets.load_asset(source, sprockets)
20
- script_tags << javascript_tag(loading_code) if loading_code.present?
21
- end
20
+ loading_code = Opal::Sprockets.load_asset(source)
22
21
 
22
+ if skip_onload
23
+ script_tags << super(source, options)
24
+ script_tags << javascript_tag(loading_code)
25
+ else
26
+ script_tags << super(source, options.merge(onload: loading_code))
27
+ end
28
+ end
23
29
  script_tags
24
30
  end
25
31
  end
@@ -20,10 +20,8 @@ module Opal
20
20
  app.config.eager_load_paths = app.config.eager_load_paths.dup - Dir["#{app.root}/app/{assets,views}"]
21
21
  end
22
22
 
23
- initializer 'opal.asset_paths', :after => 'sprockets.environment', :group => :all do |app|
24
- Opal.paths.each do |path|
25
- app.assets.append_path path
26
- end
23
+ initializer 'opal.append_assets_path', after: :append_assets_path, group: :all do |app|
24
+ app.config.assets.paths.unshift(*Opal.paths)
27
25
  end
28
26
 
29
27
  config.after_initialize do |app|
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Rails
3
- VERSION = '0.9.1'
3
+ VERSION = '0.9.3'
4
4
  end
5
5
  end
@@ -30,10 +30,12 @@ class <%= class_name %>View
30
30
 
31
31
  attr_reader :selector, :element
32
32
 
33
- # Look for elements in the scope of the base selector
34
- def find(selector)
35
- Element.find("#{@selector} #{selector}")
36
- end
33
+ # Uncomment the following method to look for elements in the scope of the
34
+ # base selector:
35
+ #
36
+ # def find(selector)
37
+ # Element.find("#{@selector} #{selector}")
38
+ # end
37
39
 
38
40
  # Register events on document to save memory and be friends to Turbolinks
39
41
  def on(event, selector = nil, &block)
@@ -11,10 +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
+ # 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")
18
18
 
19
19
  s.rubyforge_project = 'opal-rails'
20
20
 
@@ -23,22 +23,24 @@ Gem::Specification.new do |s|
23
23
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
24
  s.require_paths = ['lib']
25
25
 
26
- required_ruby_version = '>= 1.9.3'
26
+ required_ruby_version = '>= 2.1'
27
27
 
28
- s.add_dependency 'rails', '>= 4.0', '< 6.0'
29
- s.add_dependency 'sprockets-rails', '< 3.0'
28
+ s.add_dependency 'rails', '>= 4.1', '< 6.0'
29
+ s.add_dependency 'sprockets-rails', '>= 2.3.3', '< 4.0'
30
30
  s.add_dependency 'jquery-rails'
31
31
 
32
32
  s.add_dependency 'opal', '>= 0.8.0', '< 0.11'
33
33
  s.add_dependency 'opal-jquery', '~> 0.4.0'
34
- s.add_dependency 'opal-sprockets', '~> 0.4.0'
34
+ s.add_dependency 'opal-sprockets', '~> 0.4.1'
35
35
  s.add_dependency 'opal-activesupport', '>= 0.0.5'
36
36
 
37
37
  s.add_development_dependency 'execjs'
38
38
  s.add_development_dependency 'launchy'
39
39
  s.add_development_dependency 'capybara', '~> 2.3'
40
+ s.add_development_dependency 'poltergeist', '~> 1.15.0'
40
41
  s.add_development_dependency 'rspec-rails', '~> 3.0'
41
42
  s.add_development_dependency 'appraisal', '~> 2.1'
42
43
  s.add_development_dependency 'sqlite3'
43
44
  s.add_development_dependency 'capybara-webkit'
45
+ s.add_development_dependency 'puma'
44
46
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe OpalHelper do
4
- subject(:helper) { double.extend described_class }
3
+ describe OpalHelper, type: :helper do
4
+ # subject(:helper) { double(javascript_include_tag: '<super>').extend described_class }
5
5
 
6
6
  describe '#opal_tag' do
7
7
  it 'compiles to js' do
@@ -12,7 +12,25 @@ describe OpalHelper do
12
12
  .with(ruby_code, hash_including(requirable: false))
13
13
  .and_call_original
14
14
 
15
- expect(helper.opal_tag(ruby_code)).to include('.$puts(')
15
+ expect(helper.opal_tag(ruby_code)).to include('self.$puts(5)')
16
16
  end
17
17
  end
18
+
19
+ specify '#javascript_include_tag' do
20
+ # sprockets-rails v3 sets Rails.application.assets to nil in production mode
21
+ allow(Rails.application).to receive(:assets).and_return(nil)
22
+
23
+ loading_code = %Q{Opal.load("application");}
24
+ escaped_loading_code = ERB::Util.h loading_code
25
+
26
+ expect(helper.javascript_include_tag('application', debug: true)).to include(escaped_loading_code)
27
+ expect(helper.javascript_include_tag('application', debug: false)).to include(escaped_loading_code)
28
+ expect(helper.javascript_include_tag('application', skip_opal_loader: true)).not_to include(escaped_loading_code)
29
+ expect(helper.javascript_include_tag('application', skip_opal_loader: true)).not_to include(escaped_loading_code)
30
+
31
+ expect(helper.javascript_include_tag('application', force_opal_loader_tag: true, debug: true)).to include(loading_code)
32
+ expect(helper.javascript_include_tag('application', force_opal_loader_tag: true, debug: false)).to include(loading_code)
33
+ expect(helper.javascript_include_tag('application', force_opal_loader_tag: true, skip_opal_loader: true)).not_to include(loading_code)
34
+ expect(helper.javascript_include_tag('application', force_opal_loader_tag: true, skip_opal_loader: true)).not_to include(loading_code)
35
+ end
18
36
  end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+ require 'support/capybara'
3
+
4
+ RSpec.describe 'The example app', type: :feature, js: true do
5
+ it 'loads Opal' do
6
+ visit '/'
7
+ expect(page.evaluate_script('window.opal_loaded === true')).to eq(true)
8
+ end
9
+ end
@@ -7,6 +7,7 @@ describe Opal::SourceMap do
7
7
  before do
8
8
  expect(Rails.application.config.opal.source_map_enabled).to be_truthy
9
9
  expect(Rails.application.config.assets.compile).to be_truthy
10
+ expect(Rails.application.assets).to be_present
10
11
  expect(Rails.application.config.assets.debug).to be_truthy
11
12
  get js_asset_path
12
13
  end
@@ -1,4 +1,16 @@
1
1
  require 'capybara/rspec'
2
2
 
3
- require 'capybara-webkit'
4
- Capybara.javascript_driver = :webkit
3
+ require 'capybara/poltergeist'
4
+
5
+
6
+ PoltergeistConsole = StringIO.new
7
+
8
+ RSpec.configure do |config|
9
+ config.before { PoltergeistConsole.reopen }
10
+ end
11
+
12
+ Capybara.register_driver :poltergeist do |app|
13
+ Capybara::Poltergeist::Driver.new(app, phantomjs_logger: PoltergeistConsole)
14
+ end
15
+
16
+ Capybara.javascript_driver = :poltergeist
@@ -8,14 +8,17 @@ HTML
8
8
 
9
9
  INDEX = <<-HTML
10
10
  <script type="text/ruby">
11
- raise 'pippo'
11
+ puts 'hello from a script tag!'
12
12
  </script>
13
13
  HTML
14
14
 
15
15
  WITH_ASSIGNMENTS = File.read "#{__dir__}/assets/javascripts/with_assignments.js.rb"
16
16
 
17
+ require_relative '../app/helpers/opal_helper'
18
+
17
19
  class ApplicationController < ActionController::Base
18
20
  include Rails.application.routes.url_helpers
21
+ helper OpalHelper
19
22
  layout 'application'
20
23
  self.view_paths = [ActionView::FixtureResolver.new(
21
24
  'layouts/application.html.erb' => LAYOUT,
@@ -3,3 +3,4 @@ require 'opal_ujs'
3
3
  require 'opal-parser'
4
4
 
5
5
  require_tree '.'
6
+ `window.opal_loaded = true`
@@ -12,7 +12,7 @@ module RailsApp
12
12
  config.root = __dir__
13
13
  config.cache_classes = true
14
14
  config.eager_load = false
15
- config.serve_static_files = true
15
+ config.public_file_server.enabled = true
16
16
  config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
17
17
  config.consider_all_requests_local = true
18
18
  config.action_controller.perform_caching = false
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.9.1
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2017-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '4.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '6.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.0'
29
+ version: '4.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '6.0'
@@ -34,16 +34,22 @@ dependencies:
34
34
  name: sprockets-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 2.3.3
37
40
  - - "<"
38
41
  - !ruby/object:Gem::Version
39
- version: '3.0'
42
+ version: '4.0'
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.3.3
44
50
  - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: '3.0'
52
+ version: '4.0'
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: jquery-rails
49
55
  requirement: !ruby/object:Gem::Requirement
@@ -98,14 +104,14 @@ dependencies:
98
104
  requirements:
99
105
  - - "~>"
100
106
  - !ruby/object:Gem::Version
101
- version: 0.4.0
107
+ version: 0.4.1
102
108
  type: :runtime
103
109
  prerelease: false
104
110
  version_requirements: !ruby/object:Gem::Requirement
105
111
  requirements:
106
112
  - - "~>"
107
113
  - !ruby/object:Gem::Version
108
- version: 0.4.0
114
+ version: 0.4.1
109
115
  - !ruby/object:Gem::Dependency
110
116
  name: opal-activesupport
111
117
  requirement: !ruby/object:Gem::Requirement
@@ -162,6 +168,20 @@ dependencies:
162
168
  - - "~>"
163
169
  - !ruby/object:Gem::Version
164
170
  version: '2.3'
171
+ - !ruby/object:Gem::Dependency
172
+ name: poltergeist
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: 1.15.0
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - "~>"
183
+ - !ruby/object:Gem::Version
184
+ version: 1.15.0
165
185
  - !ruby/object:Gem::Dependency
166
186
  name: rspec-rails
167
187
  requirement: !ruby/object:Gem::Requirement
@@ -218,6 +238,20 @@ dependencies:
218
238
  - - ">="
219
239
  - !ruby/object:Gem::Version
220
240
  version: '0'
241
+ - !ruby/object:Gem::Dependency
242
+ name: puma
243
+ requirement: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - ">="
246
+ - !ruby/object:Gem::Version
247
+ version: '0'
248
+ type: :development
249
+ prerelease: false
250
+ version_requirements: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - ">="
253
+ - !ruby/object:Gem::Version
254
+ version: '0'
221
255
  description: Rails bindings for opal JS engine
222
256
  email:
223
257
  - elia@schito.me
@@ -247,9 +281,9 @@ files:
247
281
  - lib/rails/generators/opal/assets/assets_generator.rb
248
282
  - lib/rails/generators/opal/assets/templates/javascript.js.rb
249
283
  - opal-rails.gemspec
250
- - script/rails
251
284
  - spec/helpers/opal_helper_spec.rb
252
285
  - spec/integration/assigns_spec.rb
286
+ - spec/integration/js_spec.rb
253
287
  - spec/integration/source_map_spec.rb
254
288
  - spec/integration/template_spec.rb
255
289
  - spec/spec_helper.rb
@@ -269,9 +303,7 @@ homepage: https://github.com/opal/opal-rails#readme
269
303
  licenses:
270
304
  - MIT-LICENSE
271
305
  metadata: {}
272
- post_install_message: |-
273
- BEWARE: Spec support is being extracted from `opal-rails` into `opal-rspec-rails`
274
- Please use `opal-rspec-rails` or the 0-8-stable branch.
306
+ post_install_message:
275
307
  rdoc_options: []
276
308
  require_paths:
277
309
  - lib
@@ -287,13 +319,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
319
  version: '0'
288
320
  requirements: []
289
321
  rubyforge_project: opal-rails
290
- rubygems_version: 2.5.1
322
+ rubygems_version: 2.6.8
291
323
  signing_key:
292
324
  specification_version: 4
293
325
  summary: Rails bindings for opal JS engine
294
326
  test_files:
295
327
  - spec/helpers/opal_helper_spec.rb
296
328
  - spec/integration/assigns_spec.rb
329
+ - spec/integration/js_spec.rb
297
330
  - spec/integration/source_map_spec.rb
298
331
  - spec/integration/template_spec.rb
299
332
  - spec/spec_helper.rb
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
- ENGINE_PATH = File.expand_path('../../lib/opal/rails/engine', __FILE__)
6
-
7
- require 'rails/all'
8
- require 'rails/engine/commands'