chartkick 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of chartkick might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5bfc65a915cb616197a9dbd513eabecc1329c77
4
- data.tar.gz: 86d3cec3916edf351936d5db2255b55d4e9950f5
3
+ metadata.gz: 784ee62367f13218435904818640b2089daf982d
4
+ data.tar.gz: 782786d51aa9fce5cbe0bbc568eac6df17d5ca60
5
5
  SHA512:
6
- metadata.gz: 543d3fe3a54d083c5964d3e6a48b86e6ef206ce1e24c472b84aec713ce16860c1b7d025761d0f8c2e7dfa3f927573e0160331fe9ac53f062f57815d98408c4cd
7
- data.tar.gz: 686b706c7bdc764a3919698a1b59a37ad41248ab265b813e88cd65d9f4719964e2070faac03815b7102e3075de1b91c819517d1aa8d199bda647bad5b52bf00a
6
+ metadata.gz: 041e993d63a1e8fbd3daa2f8c8a5c7350da7364bdae24bbd0dcaf8521f8bb9bb2afba2cf51fa97ad950b7780bf8ab9d9f93cd5a4818587a3845f78a6089e2f79
7
+ data.tar.gz: 357199f0ed4be3f7f26fad449f69893cdeb6bba4148719dbb2c1aa1889c2dfa7374533d4f5caf06556eccc0f3d1a601e6a7c6a56fbf61100d8f6279cbc7ea511
data/README.md CHANGED
@@ -104,11 +104,13 @@ Add this line to your application's Gemfile:
104
104
  gem "chartkick"
105
105
  ```
106
106
 
107
- And add the javascript files to your views.
107
+ And add the javascript files to your views. `chartkick.js` runs as a Rails engine - no need to install it.
108
+
109
+ **Note:** These files must be included **before** the helper methods.
110
+
111
+ For Google Charts, use:
108
112
 
109
113
  ```erb
110
- <!-- 1. Google Charts first -->
111
- <!-- 2. chartkick.js runs as a Rails engine - no need to install it -->
112
114
  <%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %>
113
115
  ```
114
116
 
@@ -351,9 +351,8 @@
351
351
  };
352
352
  }
353
353
 
354
- var hasInnerText = (document.getElementsByTagName("body")[0].innerText !== undefined) ? true : false;
355
354
  function setText(element, text) {
356
- if (hasInnerText) {
355
+ if (document.body.innerText) {
357
356
  element.innerText = text;
358
357
  } else {
359
358
  element.textContent = text;
@@ -1,3 +1,3 @@
1
1
  module Chartkick
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-12 00:00:00.000000000 Z
11
+ date: 2013-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties