opal-rails 0.5.0 → 0.5.1

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: 8c0a2716b3f5474a97084934951a8d3b78947950
4
- data.tar.gz: a15c52f779f38d779e6f3e992272845af57b664d
3
+ metadata.gz: 3e4e22e42bad47905efede272346b44c20522672
4
+ data.tar.gz: 2c79c966946f47be5bfe0be5a1869845b87ede70
5
5
  SHA512:
6
- metadata.gz: db4bd79ea4616b36d10224aa7294c6c473c994da5380b6b60cab3253451db2285c7c9b98aa2f2cc0ce34a8a3614ea864e9ca342bdb4a7b04a2673f66e254531d
7
- data.tar.gz: 2e8e07b4043a1eb2c93b669b9dd409b1c907e42128eee9cf972bcd49a131edd74435f22143e9d61cf7b206fb125cbdc8ca9ac3c7e3aaee16ef108b60d30217f5
6
+ metadata.gz: cd7bd281198581a9eadfda4d66cb5aef18c07d4bfee9bed6774371d2064866bdba486acdcc1ab2d87af8084b63acda30abdbccbf51adde9fd40f491ec2358e89
7
+ data.tar.gz: 5dbe16bdbebb834fc3465958dca91ba2d3f49dc77ddc7ac07f02aa62910fbc36c1580969249a5360fdbf5f64e35bdaa9c57e4908b9bd784ed299c7f8de7d06dd
data/Gemfile CHANGED
@@ -7,4 +7,5 @@ gem 'opal-jquery', :github => 'opal/opal-jquery'
7
7
 
8
8
  if RUBY_VERSION.to_f == 1.8
9
9
  gem 'nokogiri', '< 1.6'
10
+ gem 'rails', '< 4.0'
10
11
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Rails
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
@@ -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.js.rb')
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
@@ -61,4 +61,5 @@ TestApp::Application.configure do
61
61
  # Send deprecation notices to registered listeners
62
62
  config.active_support.deprecation = :notify
63
63
 
64
+ config.eager_load = true if Rails.version.to_i == 4
64
65
  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.0
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-06-29 00:00:00.000000000 Z
11
+ date: 2013-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal