c3-rails 0.0.5 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +4 -4
- data/LICENSE +0 -0
- data/README.md +80 -69
- data/c3-rails.gemspec +15 -15
- data/lib/c3/rails/engine.rb +6 -6
- data/lib/c3/rails/version.rb +5 -5
- data/lib/c3/rails.rb +2 -2
- data/lib/c3-rails.rb +1 -1
- data/vendor/assets/javascripts/c3.js +5576 -5576
- data/vendor/assets/stylesheets/c3.css +203 -203
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63f46402684a6367c83d6764018401ef4a41efbf
|
4
|
+
data.tar.gz: d55f64fcaf1aeeb16cbf6af197a4aa397b685a42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b9946b540f51d95143bb34370aea490c343bf38c1d6270170fb64718706da470ce3ac79318bf404608ac316e305290c63ac057bd4054f96774d9bbca74e8c33
|
7
|
+
data.tar.gz: 084b48a7fcd79154b13a66aa64457da2fd1258df7e08c1d7e9ff2bb33a171ae844a6809c624d22b01fec509f2e8ac9d1e604d5a030fc2428c5edbb5f2f0c228e
|
data/.gitmodules
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[submodule "vendor/assets/javascripts/c3"]
|
2
|
-
path = vendor/assets/javascripts/c3
|
3
|
-
url = git://github.com/masayuki0812/c3.git
|
4
|
-
branch = master
|
1
|
+
[submodule "vendor/assets/javascripts/c3"]
|
2
|
+
path = vendor/assets/javascripts/c3
|
3
|
+
url = git://github.com/masayuki0812/c3.git
|
4
|
+
branch = master
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,69 +1,80 @@
|
|
1
|
-
# c3-rails
|
2
|
-
|
3
|
-
[c3](https://github.com/masayuki0812/c3) is a D3-based reusable chart library
|
4
|
-
that enables deeper integration of charts into web applications.
|
5
|
-
|
6
|
-
c3-rails provides c3 for Rails 4 (it might work with Rails 3)
|
7
|
-
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
To install, add the following line to your `Gemfile`:
|
12
|
-
|
13
|
-
gem 'c3-rails'
|
14
|
-
|
15
|
-
Then add these to their respective file:
|
16
|
-
|
17
|
-
`app/assets/javascripts/applications.js`:
|
18
|
-
|
19
|
-
//= require c3
|
20
|
-
|
21
|
-
`app/assets/stylesheets/applications.css`:
|
22
|
-
|
23
|
-
*= require c3
|
24
|
-
|
25
|
-
Now you've included `c3` into your rails project.
|
26
|
-
|
27
|
-
But wait, there's more!
|
28
|
-
|
29
|
-
|
30
|
-
## Dependency: D3
|
31
|
-
|
32
|
-
`c3` requires `D3` which `c3-rails` does not include,
|
33
|
-
to get `D3` installed try one of the following gems:
|
34
|
-
|
35
|
-
- [d3_rails](https://github.com/logical42/d3_rails)
|
36
|
-
- [d3-rails](https://github.com/iblue/d3-rails)
|
37
|
-
- [d3js-rails](https://github.com/emilford/d3js-rails)
|
38
|
-
|
39
|
-
or you could copy [d3.js](https://github.com/mbostock/d3/blob/master/d3.js)
|
40
|
-
to your `assets/javascripts` manually
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
1
|
+
# c3-rails
|
2
|
+
|
3
|
+
[c3](https://github.com/masayuki0812/c3) is a D3-based reusable chart library
|
4
|
+
that enables deeper integration of charts into web applications.
|
5
|
+
|
6
|
+
c3-rails provides c3 for Rails 4 (it might work with Rails 3)
|
7
|
+
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
To install, add the following line to your `Gemfile`:
|
12
|
+
|
13
|
+
gem 'c3-rails'
|
14
|
+
|
15
|
+
Then add these to their respective file:
|
16
|
+
|
17
|
+
`app/assets/javascripts/applications.js`:
|
18
|
+
|
19
|
+
//= require c3
|
20
|
+
|
21
|
+
`app/assets/stylesheets/applications.css`:
|
22
|
+
|
23
|
+
*= require c3
|
24
|
+
|
25
|
+
Now you've included `c3` into your rails project.
|
26
|
+
|
27
|
+
But wait, there's more!
|
28
|
+
|
29
|
+
|
30
|
+
## Dependency: D3
|
31
|
+
|
32
|
+
`c3` requires `D3` which `c3-rails` does not include,
|
33
|
+
to get `D3` installed try one of the following gems:
|
34
|
+
|
35
|
+
- [d3_rails](https://github.com/logical42/d3_rails)
|
36
|
+
- [d3-rails](https://github.com/iblue/d3-rails)
|
37
|
+
- [d3js-rails](https://github.com/emilford/d3js-rails)
|
38
|
+
|
39
|
+
or you could copy [d3.js](https://github.com/mbostock/d3/blob/master/d3.js)
|
40
|
+
to your `assets/javascripts` manually.
|
41
|
+
|
42
|
+
|
43
|
+
Now `c3` is ready to be used on any pages that have assets
|
44
|
+
handled by rails asset pipeline.
|
45
|
+
|
46
|
+
|
47
|
+
## Versioning
|
48
|
+
|
49
|
+
This gem now follows the version of `c3` being included.
|
50
|
+
|
51
|
+
So version `0.2.5` of this gem will provide
|
52
|
+
`c3` at version `0.2.5`.
|
53
|
+
|
54
|
+
|
55
|
+
## Install using git submodule
|
56
|
+
|
57
|
+
If you want to have access to all of `c3`'s source files
|
58
|
+
you can install by having this line in the `Gemfile` instead:
|
59
|
+
|
60
|
+
gem 'c3-rails', :git => 'https://github.com/SunnyLi/c3-rails', :submodules => true
|
61
|
+
|
62
|
+
Then you'll be able to include files like
|
63
|
+
|
64
|
+
```
|
65
|
+
//= require c3/c3.min
|
66
|
+
//= require c3/extensions/js/c3ext
|
67
|
+
|
68
|
+
*= require c3/c3
|
69
|
+
*= require c3/htdocs/css/bootstrap.min
|
70
|
+
```
|
71
|
+
|
72
|
+
This is just an example, not that you would ever want to
|
73
|
+
include bootstrap into your project this way..
|
74
|
+
|
75
|
+
|
76
|
+
## License
|
77
|
+
|
78
|
+
Both [c3](https://github.com/masayuki0812/c3/blob/master/LICENSE)
|
79
|
+
and [c3-rails](https://github.com/SunnyLi/c3-rails/blob/master/LICENSE)
|
80
|
+
are licensed under the MIT license
|
data/c3-rails.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
require File.expand_path("../lib/c3/rails/version", __FILE__)
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = "c3-rails"
|
5
|
-
s.version = C3::Rails::VERSION
|
6
|
-
s.authors = ["Sunny Li"]
|
7
|
-
s.email = ["thatbaka@gmail.com"]
|
8
|
-
s.homepage = "https://github.com/SunnyLi/c3-rails"
|
9
|
-
s.summary = "c3 js chart library for Rails"
|
10
|
-
s.description = %q{This gem provides "c3 - A D3-based reusable chart library" for Rails}
|
11
|
-
s.license = "MIT"
|
12
|
-
|
13
|
-
s.files = `git ls-files`.split("\n")
|
14
|
-
s.require_path = 'lib'
|
15
|
-
end
|
1
|
+
require File.expand_path("../lib/c3/rails/version", __FILE__)
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = "c3-rails"
|
5
|
+
s.version = C3::Rails::VERSION
|
6
|
+
s.authors = ["Sunny Li"]
|
7
|
+
s.email = ["thatbaka@gmail.com"]
|
8
|
+
s.homepage = "https://github.com/SunnyLi/c3-rails"
|
9
|
+
s.summary = "c3 js chart library for Rails"
|
10
|
+
s.description = %q{This gem provides "c3 - A D3-based reusable chart library" for Rails}
|
11
|
+
s.license = "MIT"
|
12
|
+
|
13
|
+
s.files = `git ls-files`.split("\n")
|
14
|
+
s.require_path = 'lib'
|
15
|
+
end
|
data/lib/c3/rails/engine.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
module C3
|
2
|
-
module Rails
|
3
|
-
class Engine < ::Rails::Engine
|
4
|
-
end
|
5
|
-
end
|
6
|
-
end
|
1
|
+
module C3
|
2
|
+
module Rails
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
end
|
5
|
+
end
|
6
|
+
end
|
data/lib/c3/rails/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module C3
|
2
|
-
module Rails
|
3
|
-
VERSION = "0.
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module C3
|
2
|
+
module Rails
|
3
|
+
VERSION = "0.2.5"
|
4
|
+
end
|
5
|
+
end
|
data/lib/c3/rails.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require 'c3/rails/engine'
|
2
|
-
require 'c3/rails/version'
|
1
|
+
require 'c3/rails/engine'
|
2
|
+
require 'c3/rails/version'
|
data/lib/c3-rails.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'c3/rails'
|
1
|
+
require 'c3/rails'
|