stat_board 0.1.6 → 0.1.7

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.
data/README.markdown CHANGED
@@ -47,6 +47,8 @@ In `config/initializers/stat_board.rb`:
47
47
  if you encounter loading order issues.
48
48
  * If you're using the Asset Pipeline, you'll need to add
49
49
  `stat_board/bootstrap.css` to your precompile paths.
50
+ * If you have `config.assets.initialize_on_precompile` set to `false`, then
51
+ you will need to add `stat_board/highcharts.js` to your precompile paths.
50
52
 
51
53
  ## Contributing
52
54
 
@@ -1,6 +1,6 @@
1
1
  <div id="container"></div>
2
2
 
3
- <%= javascript_include_tag "highcharts" %>
3
+ <%= javascript_include_tag "stat_board/highcharts" %>
4
4
  <script>
5
5
  var $container = $("#container")
6
6
  var pointInterval = <%= date_steps.days * 1000 %>;
@@ -1,5 +1,11 @@
1
1
  module StatBoard
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace StatBoard
4
+
5
+ if Rails.version >= '3.1'
6
+ initializer 'stat_board.assets.precompile' do |app|
7
+ app.config.assets.precompile += %w(stat_board/highcharts.js)
8
+ end
9
+ end
4
10
  end
5
11
  end
@@ -1,3 +1,3 @@
1
1
  module StatBoard
2
- VERSION = "0.1.6"
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stat_board
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-14 00:00:00.000000000 Z
12
+ date: 2013-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -147,7 +147,7 @@ executables: []
147
147
  extensions: []
148
148
  extra_rdoc_files: []
149
149
  files:
150
- - app/assets/javascripts/highcharts.js
150
+ - app/assets/javascripts/stat_board/highcharts.js
151
151
  - app/assets/stylesheets/stat_board/bootstrap.css
152
152
  - app/controllers/stat_board/application_controller.rb
153
153
  - app/controllers/stat_board/stats_controller.rb