lazy_high_charts 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/init.rb CHANGED
@@ -1,9 +1,6 @@
1
1
  # coding: utf-8
2
2
  require 'LazyHighCharts'
3
3
  require 'LazyHighCharts/high_charts_helper'
4
-
5
4
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :high_charts => ["highcharts"]
6
- # ActionView::Helpers::AssetTagHelper.register_javascript_expansion :ie_high_charts => ["excanvas.compiled"]
7
-
8
- ActionView::Base.send :include, LazyHighCharts::HighChartsHelper
5
+ ActionView::Base.send :include, LazyHighCharts::LayoutHelper
9
6
 
@@ -1,6 +1,8 @@
1
1
  require 'lazy_high_charts/high_chart'
2
2
  require 'lazy_high_charts/high_charts_helper.rb'
3
3
 
4
+ require File.join(File.dirname(__FILE__), *%w[lazy_high_charts railtie]) if defined?(::Rails::Railtie)
5
+
4
6
  module LazyHighCharts
5
7
  # Your code goes here...
6
8
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module LazyHighCharts
4
- module HighChartsHelper
4
+ module LayoutHelper
5
5
  # ActiveSupport::JSON.unquote_hash_key_identifiers = false
6
6
  def high_chart(placeholder, object , &block)
7
7
  object.html_options.merge!({:id=>placeholder})
@@ -1,3 +1,3 @@
1
1
  module LazyHighCharts
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
data/rails/init.rb CHANGED
@@ -1 +1,2 @@
1
- require '../init'
1
+ # encoding: utf-8
2
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "init"))
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 6
9
- version: 1.0.6
8
+ - 7
9
+ version: 1.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Miguel Michelson Martinez