opal-rails 0.5.0.pre → 0.5.0.pre.2

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: 06be2a87140ad5dd193bf6e7cf4c604bd73b967b
4
- data.tar.gz: a1a79d8e9ec0bdc5d9d4affa4f264307be2eeb3c
3
+ metadata.gz: cd6d0b4a0f3b1290520b5011856f7a44513b1ce2
4
+ data.tar.gz: 2ce094cf39af275af5860247f7e766a53323f863
5
5
  SHA512:
6
- metadata.gz: 0db0ad35ce410a22e4a334c88fc6b108a380a7ebbbb4fe30df4fa418cae41b8457d5ea4dc1e10900f4c2ad5d1098fd7c37f6f7292f991138f29bc7ad607284ea
7
- data.tar.gz: 541662e0f82e1852246544e7347a5f566c61c2983fca85060fb401410912d7e2bc04a842fd6c1cf029a364768c56fc802637ac0d8407c240cab16ec8557fc136
6
+ metadata.gz: 2c44bea6b79783246c7201490b7fe05205a4ce45ac5b33109c7ff06e506e4dee65a1ca3032fe45a725bc8ba64831316a2a4182effbde28a27a0169dded76f798
7
+ data.tar.gz: 30d57b755d32fe990e8b2eecd5d39254b76082bb7f33fa773f5c3c594418aad8a4eea88e874ed6f02aa6a4505acf8b158d0da1e8fa69330ed30ddd6ebe857025
data/Gemfile CHANGED
@@ -4,3 +4,7 @@ gemspec
4
4
  gem 'capybara-webkit' unless ENV['CI']
5
5
  gem 'opal', :github => 'opal/opal'
6
6
  gem 'opal-jquery', :github => 'opal/opal-jquery'
7
+
8
+ if RUBY_VERSION.to_f == 1.8
9
+ gem 'nokogiri', '< 1.6'
10
+ end
data/lib/opal/rails.rb CHANGED
@@ -8,4 +8,3 @@ require 'opal/rails/version'
8
8
  require 'opal/rails/haml_filter' if defined?(Haml)
9
9
 
10
10
  require 'jquery-rails'
11
- require 'opal/sprockets_source_map_header'
@@ -1,6 +1,6 @@
1
1
  require 'rails'
2
- require 'opal/server'
3
- require 'opal/processor'
2
+ require 'opal/sprockets/server'
3
+ require 'opal/sprockets/processor'
4
4
 
5
5
  module Opal
6
6
  module Rails
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Rails
3
- VERSION = '0.5.0.pre'
3
+ VERSION = '0.5.0.pre.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.pre
4
+ version: 0.5.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
@@ -181,7 +181,6 @@ files:
181
181
  - lib/opal/rails/haml_filter.rb
182
182
  - lib/opal/rails/template_handler.rb
183
183
  - lib/opal/rails/version.rb
184
- - lib/opal/sprockets_source_map_header.rb
185
184
  - lib/tasks/opal-rails_tasks.rake
186
185
  - opal-rails.gemspec
187
186
  - script/rails
@@ -1,21 +0,0 @@
1
- require 'sprockets/server'
2
-
3
- module Sprockets
4
- module Server
5
-
6
- # Adds the source map header to all sprocket responses for assets
7
- # with a .rb or .opal extension in the extension chain.
8
- def headers_with_opal_source_maps(env, asset, length)
9
- headers_without_opal_source_maps(env, asset, length).tap do |headers|
10
- if asset.pathname.to_s =~ /\.(rb|opal)\b/
11
- headers['X-SourceMap'] = '/__opal_source_maps__/'+asset.logical_path + '.map'
12
- end
13
- end
14
- end
15
-
16
- # Poor man's alias_method_chain :)
17
- alias headers_without_opal_source_maps headers
18
- alias headers headers_with_opal_source_maps
19
-
20
- end
21
- end