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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 321f3e5405a63bcac223438d9fabcea7a328d2a7
4
- data.tar.gz: 103b1e24b76d8c0c7f096bf613e40cae9b0445b5
3
+ metadata.gz: 63f46402684a6367c83d6764018401ef4a41efbf
4
+ data.tar.gz: d55f64fcaf1aeeb16cbf6af197a4aa397b685a42
5
5
  SHA512:
6
- metadata.gz: 7679f835462010ca60bcad1a7ebe6d6be80ac4a5208abc2da8b4cd8b4723d4171642c06fa6c592b4c5c274cb12c6b1c6a386c1e8f3527572a3ea6cedf263a510
7
- data.tar.gz: 10bfe58026e7f9128c2e53220213f2a7b9270ffa5b89c65feb1eae7a0b61efa3040eaad59e0b2d66af0108b625e46cf2d1758784938055d7f37163ea52847bb9
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 which would defeat the purpose of
41
- having these gems in the first place...
42
-
43
-
44
- Now you're ready to use `c3` in any page that load assets handled by
45
- the asset pipeline.
46
-
47
-
48
- ## Alternative install
49
-
50
- If you want to have access to all of `c3`'s source files you should add this line instead:
51
-
52
- gem 'c3-rails', :git => 'https://github.com/SunnyLi/c3-rails', :submodules => true
53
-
54
- Then you'll be able to include files like
55
-
56
- ```
57
- //= require c3/c3
58
- //= require c3/extensions/js/c3ext
59
-
60
- *= require c3/c3
61
- *= require c3/htdocs/css/bootstrap.min.css
62
- ```
63
-
64
-
65
- ## License
66
-
67
- Both [c3](https://github.com/masayuki0812/c3/blob/master/LICENSE)
68
- and [c3-rails](https://github.com/SunnyLi/c3-rails/blob/master/LICENSE)
69
- are licensed under the MIT license
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
@@ -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
@@ -1,5 +1,5 @@
1
- module C3
2
- module Rails
3
- VERSION = "0.0.5"
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'