c3-rails 0.0.1 → 0.0.2.1
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/.gitmodules +0 -0
- data/LICENSE +0 -0
- data/README.md +49 -43
- 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 -0
- data/vendor/assets/stylesheets/c3.css +203 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b184ba086c18a01d30830850e6f3aceb13e77d9
|
4
|
+
data.tar.gz: a5f8438ec81ce2bd94b46d41e3cbb8a9056bf7cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904a2907066d022574dcce8ae97edfafd959a26c4edd7c264cb1343e9b8cbcf798b75ae83938c8fe7c890d81197d04488c5f64d747f2146ef87ca802c5b2764a
|
7
|
+
data.tar.gz: d2e5fc558caa51ad54c5b5937df5eaaf256a13e434fca8fae3bc2b3e294a3f7b6ed04cc439a2cba0f1874c45163d9f6431ee42b75f32a367ea9baabce4bcb206
|
data/.gitmodules
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,43 +1,49 @@
|
|
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
|
-
## Installation
|
9
|
-
|
10
|
-
To install, add the following to your `Gemfile`:
|
11
|
-
|
12
|
-
gem 'c3-rails', :submodules => true
|
13
|
-
|
14
|
-
Then add these to their respective file:
|
15
|
-
|
16
|
-
`app/assets/javascripts/applications.js`:
|
17
|
-
|
18
|
-
//= require c3
|
19
|
-
|
20
|
-
`app/assets/stylesheets/applications.css`:
|
21
|
-
|
22
|
-
*= require c3
|
23
|
-
|
24
|
-
Now you've included `c3` into your rails project.
|
25
|
-
|
26
|
-
But wait, there's more!
|
27
|
-
|
28
|
-
## Dependency: D3
|
29
|
-
|
30
|
-
`c3` requires `D3` which `c3-rails` does not include,
|
31
|
-
to get `D3` installed try one of the following gems:
|
32
|
-
|
33
|
-
- [d3_rails](https://github.com/logical42/d3_rails)
|
34
|
-
- [d3-rails](https://github.com/iblue/d3-rails)
|
35
|
-
- [d3js-rails](https://github.com/emilford/d3js-rails)
|
36
|
-
|
37
|
-
or you could copy [d3.js](https://github.com/mbostock/d3/blob/master/d3.js)
|
38
|
-
to your `assets/javascripts` manually which would defeat the purpose of
|
39
|
-
having these gems in the first place...
|
40
|
-
|
41
|
-
|
42
|
-
Now you're ready to use `c3` in any page that load assets handled by
|
43
|
-
the asset pipeline.
|
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
|
+
## Installation
|
9
|
+
|
10
|
+
To install, add the following to your `Gemfile`:
|
11
|
+
|
12
|
+
gem 'c3-rails', :git => 'https://github.com/SunnyLi/c3-rails', :submodules => true
|
13
|
+
|
14
|
+
Then add these to their respective file:
|
15
|
+
|
16
|
+
`app/assets/javascripts/applications.js`:
|
17
|
+
|
18
|
+
//= require c3
|
19
|
+
|
20
|
+
`app/assets/stylesheets/applications.css`:
|
21
|
+
|
22
|
+
*= require c3
|
23
|
+
|
24
|
+
Now you've included `c3` into your rails project.
|
25
|
+
|
26
|
+
But wait, there's more!
|
27
|
+
|
28
|
+
## Dependency: D3
|
29
|
+
|
30
|
+
`c3` requires `D3` which `c3-rails` does not include,
|
31
|
+
to get `D3` installed try one of the following gems:
|
32
|
+
|
33
|
+
- [d3_rails](https://github.com/logical42/d3_rails)
|
34
|
+
- [d3-rails](https://github.com/iblue/d3-rails)
|
35
|
+
- [d3js-rails](https://github.com/emilford/d3js-rails)
|
36
|
+
|
37
|
+
or you could copy [d3.js](https://github.com/mbostock/d3/blob/master/d3.js)
|
38
|
+
to your `assets/javascripts` manually which would defeat the purpose of
|
39
|
+
having these gems in the first place...
|
40
|
+
|
41
|
+
|
42
|
+
Now you're ready to use `c3` in any page that load assets handled by
|
43
|
+
the asset pipeline.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
Both [c3](https://github.com/masayuki0812/c3/blob/master/LICENSE)
|
48
|
+
and [c3-rails](https://github.com/SunnyLi/c3-rails/blob/master/LICENSE)
|
49
|
+
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.0.1"
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module C3
|
2
|
+
module Rails
|
3
|
+
VERSION = "0.0.2.1"
|
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'
|