opal-rails 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/app/controllers/opal_spec_controller.rb +2 -2
- data/lib/opal/rails/version.rb +1 -1
- data/spec/integration/in_browser_specs_spec.rb +1 -1
- data/test_app/config/application.rb +1 -1
- data/test_app/config/environments/development.rb +3 -1
- data/test_app/config/environments/production.rb +1 -0
- data/test_app/config/environments/test.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e4e22e42bad47905efede272346b44c20522672
|
|
4
|
+
data.tar.gz: 2c79c966946f47be5bfe0be5a1869845b87ede70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd7bd281198581a9eadfda4d66cb5aef18c07d4bfee9bed6774371d2064866bdba486acdcc1ab2d87af8084b63acda30abdbccbf51adde9fd40f491ec2358e89
|
|
7
|
+
data.tar.gz: 5dbe16bdbebb834fc3465958dca91ba2d3f49dc77ddc7ac07f02aa62910fbc36c1580969249a5360fdbf5f64e35bdaa9c57e4908b9bd784ed299c7f8de7d06dd
|
data/Gemfile
CHANGED
|
@@ -25,8 +25,8 @@ class OpalSpecController < ActionController::Base
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def spec_files_for_glob glob = '**'
|
|
28
|
-
Dir[Rails.root.join("{app,lib}/assets/javascripts/spec/#{glob}{,_spec.js.{rb,opal}}")].map do |path|
|
|
29
|
-
path.split('assets/javascripts/spec/').last
|
|
28
|
+
Dir[Rails.root.join("{app,lib}/assets/javascripts/spec/#{glob}{,_spec{.js,}.{rb,opal}}")].map do |path|
|
|
29
|
+
path.split('assets/javascripts/spec/').flatten.last.gsub(/(\.rb|\.opal)/, '')
|
|
30
30
|
end.uniq
|
|
31
31
|
end
|
|
32
32
|
end
|
data/lib/opal/rails/version.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
|
3
3
|
describe 'In-browser specs runner' do
|
|
4
4
|
it 'runs all specs', :js do
|
|
5
5
|
visit '/opal_spec'
|
|
6
|
-
page.should have_content('Running: example_spec
|
|
6
|
+
page.should have_content('Running: example_spec')
|
|
7
7
|
page.should have_content('1 examples, 0 failures')
|
|
8
8
|
end
|
|
9
9
|
end
|
|
@@ -8,7 +8,7 @@ require File.expand_path('../boot', __FILE__)
|
|
|
8
8
|
# require "active_record/railtie"
|
|
9
9
|
require "action_controller/railtie"
|
|
10
10
|
require "action_mailer/railtie"
|
|
11
|
-
require "active_resource/railtie"
|
|
11
|
+
require "active_resource/railtie" unless Rails.version.to_i == 4
|
|
12
12
|
require "sprockets/railtie"
|
|
13
13
|
require "rails/test_unit/railtie"
|
|
14
14
|
|
|
@@ -7,7 +7,7 @@ TestApp::Application.configure do
|
|
|
7
7
|
config.cache_classes = false
|
|
8
8
|
|
|
9
9
|
# Log error messages when you accidentally call methods on nil.
|
|
10
|
-
config.whiny_nils = true
|
|
10
|
+
config.whiny_nils = true unless Rails.version.to_i == 4
|
|
11
11
|
|
|
12
12
|
# Show full error reports and disable caching
|
|
13
13
|
config.consider_all_requests_local = true
|
|
@@ -28,4 +28,6 @@ TestApp::Application.configure do
|
|
|
28
28
|
|
|
29
29
|
# Expands the lines which load the assets
|
|
30
30
|
config.assets.debug = true
|
|
31
|
+
|
|
32
|
+
config.eager_load = false if Rails.version.to_i == 4
|
|
31
33
|
end
|
|
@@ -12,7 +12,7 @@ TestApp::Application.configure do
|
|
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
|
13
13
|
|
|
14
14
|
# Log error messages when you accidentally call methods on nil
|
|
15
|
-
config.whiny_nils = true
|
|
15
|
+
config.whiny_nils = true unless Rails.version.to_i == 4
|
|
16
16
|
|
|
17
17
|
# Show full error reports and disable caching
|
|
18
18
|
config.consider_all_requests_local = true
|
|
@@ -32,4 +32,6 @@ TestApp::Application.configure do
|
|
|
32
32
|
|
|
33
33
|
# Print deprecation notices to the stderr
|
|
34
34
|
config.active_support.deprecation = :stderr
|
|
35
|
+
|
|
36
|
+
config.eager_load = false if Rails.version.to_i == 4
|
|
35
37
|
end
|
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.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Elia Schito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-07-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opal
|