chartnado 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/.travis.yml +7 -7
- data/README.md +2 -3
- data/chartnado.gemspec +2 -1
- data/lib/chartnado/version.rb +1 -1
- data/spec/spec_helper.rb +9 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d20a622c24b68dc7509075f867353d33152c65e1
|
4
|
+
data.tar.gz: decb376a8d05741a798f5c7f1453e42dabb4a22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6dfd3ab61414c73b224eb0cb2284878366fc98869ca803fd91907528bc4ec0ab9849759183022d77064a299f1d42b42cc24f71aab4030b3687302509970b70b
|
7
|
+
data.tar.gz: 89bdfe18afa1e640d104e9a2fb10dbb51faf9926496f7c4211ca0d79b07fcdd0d919e3b17284bc6278561930fa1b80dbff71bdffc61b388c50bb750acb09520c
|
data/.travis.yml
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
- 2.1.2
|
4
|
+
- 2.0.0
|
5
|
+
script: CODECLIMATE_REPO_TOKEN= bundle exec rake
|
6
|
+
env:
|
7
|
+
secure:
|
8
|
+
global:
|
9
|
+
secure: Fx4K8sFJuDs947c/xPbif4v1TEetRu5pqEVXBIjoa7JcddbfKKnNhQh8w8FRw/1LNJcWuHVK/S+C6U3Zj3zP0OcWS1OhZrZuqKJCvWkZ6QkhJxMI83smdwD9G7G0X6f5OefPBr2Mggz/KB9BppbeZGmsKp912Y+yzivUFGE4ByU=
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Chartnado [](http://badge.fury.io/rb/chartnado) [](https://travis-ci.org/dontfidget/chartnado) [](https://codeclimate.com/github/dontfidget/chartnado) [](https://codeclimate.com/github/dontfidget/chartnado) [](https://gemnasium.com/dontfidget/chartnado)
|
1
|
+
# Chartnado [](http://badge.fury.io/rb/chartnado) [](https://travis-ci.org/dontfidget/chartnado) [](https://codeclimate.com/github/dontfidget/chartnado) [](https://codeclimate.com/github/dontfidget/chartnado) [](https://gemnasium.com/dontfidget/chartnado)[](https://coveralls.io/r/dontfidget/chartnado?branch=master)
|
2
2
|
|
3
3
|
Chartnado layers on top of [`chartkick`](http://ankane.github.io/chartkick/) and [`chartkick-remote`](http://github.com/dontfidget/chartkick-remote) allowing basic vector-style operations directly on to make it easy to feed them into charts. It also provides some useful defaults and the ability to show totals on pie and stacked area charts when using google charts.
|
4
4
|
|
@@ -58,7 +58,7 @@ All series in an operation must use the same format.
|
|
58
58
|
|
59
59
|
## Remote Requests
|
60
60
|
|
61
|
-
By default requests for data in blocks, will be fetched remotely, unless `remote: false` is passed as an option to *chartkick_remote*. Using this methodology, it's easy to write a page that makes many, many json requests, which may swamp your server and possibly even time out if you have a global `timeout` value set for your ajax requests. @maccman's jquery.ajax.queue.coffee script provides a basic queueing transport layer for ajax requests which I've modified to provide an option to set the maximum number of requests that can be made in parallel (see https://gist.github.com/dontfidget/1ad9ab33971b64fe6fef). This is provided as part of
|
61
|
+
By default requests for data in blocks, will be fetched remotely, unless `remote: false` is passed as an option to *chartkick_remote*. Using this methodology, it's easy to write a page that makes many, many json requests, which may swamp your server and possibly even time out if you have a global `timeout` value set for your ajax requests. @maccman's jquery.ajax.queue.coffee script provides a basic queueing transport layer for ajax requests which I've modified to provide an option to set the maximum number of requests that can be made in parallel (see https://gist.github.com/dontfidget/1ad9ab33971b64fe6fef). This is provided as an asset as part of chartkick-remote and you can include it in your javascript manifest like this:
|
62
62
|
|
63
63
|
```
|
64
64
|
//= require jquery.ajax.queue-concurrent
|
@@ -66,7 +66,6 @@ By default requests for data in blocks, will be fetched remotely, unless `remote
|
|
66
66
|
|
67
67
|
Chartnado extends chartkick to accept an *ajaxOptions* hash, which can be passed via chartkick_remote, which means you can then specify the maximum number of allowable requests globally for your page as follows:
|
68
68
|
|
69
|
-
|
70
69
|
```
|
71
70
|
chartkick_remote ajaxOptions: {queue: true, queueMaxConcurrency: 2}
|
72
71
|
```
|
data/chartnado.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_dependency "activesupport", '>= 3'
|
23
23
|
spec.add_dependency "chartkick", '>= 1.0'
|
24
|
-
spec.add_dependency "chartkick-remote", '>= 1.
|
24
|
+
spec.add_dependency "chartkick-remote", '>= 1.2'
|
25
25
|
spec.add_dependency "railties", ">= 3.1"
|
26
26
|
spec.add_development_dependency "bundler", '~> 1.3'
|
27
27
|
spec.add_development_dependency "rake", '~> 10.3'
|
@@ -31,5 +31,6 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "rspec-rails", '~> 3.0'
|
32
32
|
spec.add_development_dependency "travis-lint", '~> 1.8'
|
33
33
|
spec.add_development_dependency "codeclimate-test-reporter", '~> 0.3'
|
34
|
+
spec.add_development_dependency "coveralls", '~> 0.3'
|
34
35
|
# spec.add_development_dependency "rspec-html-matchers", '~> 0.6.1', '>= 0.6.1'
|
35
36
|
end
|
data/lib/chartnado/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,13 @@
|
|
1
1
|
require 'codeclimate-test-reporter'
|
2
|
+
|
3
|
+
CodeClimate::TestReporter.start
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'coveralls'
|
7
|
+
Coveralls.wear!
|
8
|
+
rescue LoadError
|
9
|
+
end
|
10
|
+
|
2
11
|
require 'chartnado'
|
3
12
|
require 'rspec/mocks'
|
4
13
|
|
@@ -7,7 +16,6 @@ begin
|
|
7
16
|
rescue LoadError
|
8
17
|
end
|
9
18
|
|
10
|
-
CodeClimate::TestReporter.start
|
11
19
|
|
12
20
|
module Rails
|
13
21
|
def self.application
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chartnado
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew S. Brown
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: railties
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +178,20 @@ dependencies:
|
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.3'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: coveralls
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0.3'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0.3'
|
181
195
|
description: Chartkick charts with extras
|
182
196
|
email:
|
183
197
|
- andrew@dontfidget.com
|