c3-rails 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d6ab371d7d464e11721788e35d233946f5ae3c69
4
+ data.tar.gz: 791250c450a91947e352bb9addb4aca9bdd9246f
5
+ SHA512:
6
+ metadata.gz: d72f15483dc29b4e5975ee072c5288830306c0aa657ce229e2860a5c8d91477a7edafe7207d49a1cacca5be60857c145c70bfd368da8b338a86b2056d527af86
7
+ data.tar.gz: 5ab7dba70d59d9a75a2fb3613fc0e901367d21f3a6dce8e3a3bc77dd0224297c7f6220fc3cac3b269e7d0c6e8c8bcd2982643dbef943b9967a6194d4fbce0e54
data/.gitmodules ADDED
@@ -0,0 +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
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 Sunny Li
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
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.
data/c3-rails.gemspec ADDED
@@ -0,0 +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
@@ -0,0 +1,6 @@
1
+ module C3
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module C3
2
+ module Rails
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
data/lib/c3/rails.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'c3/rails/engine'
2
+ require 'c3/rails/version'
data/lib/c3-rails.rb ADDED
@@ -0,0 +1 @@
1
+ require 'c3/rails'
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: c3-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Sunny Li
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-08-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: This gem provides "c3 - A D3-based reusable chart library" for Rails
14
+ email:
15
+ - thatbaka@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".gitmodules"
21
+ - LICENSE
22
+ - README.md
23
+ - c3-rails.gemspec
24
+ - lib/c3-rails.rb
25
+ - lib/c3/rails.rb
26
+ - lib/c3/rails/engine.rb
27
+ - lib/c3/rails/version.rb
28
+ homepage: https://github.com/SunnyLi/c3-rails
29
+ licenses:
30
+ - MIT
31
+ metadata: {}
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubyforge_project:
48
+ rubygems_version: 2.4.1
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: c3 js chart library for Rails
52
+ test_files: []