cal_heatmap_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: 2effc07b71290e81b8bad59dec6f7f6dfc09d44a
4
+ data.tar.gz: 50a4725ee67bb53dd974ee54335fb40259388236
5
+ SHA512:
6
+ metadata.gz: bf5ecccdd4bbb10c169e37124763e3f66de849a4dc3b25f8bd197e5e084a973e3a831baf98b49c0c4394b421a2d22d05ac70cdf823e489ae37711829ac58cf6c
7
+ data.tar.gz: ca8eb685e14a58d291a8fc34f1bbdaf3f484db95a115d0b57be139b23472737c2edf25bf2b99afb86a13bd27052c1d82f86f1de734876b65c6ffb979410719ee
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cal_heatmap_rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,28 @@
1
+ cal_heatmap_rails License
2
+ (note that this license only really covers the ruby part
3
+ of the code, d3, d3_rails and cal-heatmap has their own licenses which is also included
4
+ in this gem).
5
+ ---------------------------
6
+
7
+ Copyright (c) 2013 Everaldo Gomes
8
+
9
+ MIT License
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining
12
+ a copy of this software and associated documentation files (the
13
+ "Software"), to deal in the Software without restriction, including
14
+ without limitation the rights to use, copy, modify, merge, publish,
15
+ distribute, sublicense, and/or sell copies of the Software, and to
16
+ permit persons to whom the Software is furnished to do so, subject to
17
+ the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be
20
+ included in all copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Tyler Kellen, contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/LICENSE_D3JS.txt ADDED
@@ -0,0 +1,29 @@
1
+ D3 is a javascript framework created by Michael Bostock
2
+ ------------------------------------------------------------------------
3
+ Copyright (c) 2013, Michael Bostock
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * The name Michael Bostock may not be used to endorse or promote products
17
+ derived from this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
23
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+ -----------------------------------------------------------------------------
@@ -0,0 +1,28 @@
1
+ d3_rails License
2
+ (note that this license only really covers the ruby part
3
+ of the code, d3 has it's own license which is also included
4
+ in this gem, thank you Michael Bostocks for sharing
5
+ your framework).
6
+ ---------------------------
7
+
8
+ The MIT License (MIT)
9
+
10
+ Copyright (c) 2011-2013, Han Kang
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in
20
+ all copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ ## Rails
2
+
3
+ This gem works with Rails 4 (only)
4
+
5
+
6
+ # D3_Rails
7
+
8
+ ## Version 3.2.8 (of d3 in most current gem)
9
+
10
+
11
+ # Included Javascripts
12
+
13
+
14
+ cal_heatmap_rails.js
15
+ cal-heatmap.js
16
+ cal-heatmap-min.js
17
+
18
+
19
+ # Included Stylesheets
20
+
21
+ cal_heatmap_rails.css
22
+ cal-heatmap.css
23
+
24
+
25
+ ## Installation
26
+
27
+ Add this lines to your application's Gemfile:
28
+
29
+ gem 'd3_rails', github: 'everaldo/d3_rails'
30
+ gem 'cal_heatmap_rails', github: 'everaldo/cal_heatmap_rails'
31
+
32
+ And then execute:
33
+
34
+ $ bundle
35
+
36
+ Or install it yourself as:
37
+
38
+ $ gem install cal_heatmap_rails
39
+
40
+ ## Usage
41
+
42
+ For use with the asset pipeline, you can include the cal\_heatmap\_rails javascript in your rails application by merely including the following line in your application.js manifest
43
+
44
+ //= require cal\_heatmap\_rails
45
+
46
+ and in your application.css manifest:
47
+
48
+ \*= require cal\_heatmap\_rails
49
+
50
+
51
+ ## Contributing
52
+
53
+ 1. Fork it
54
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
55
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
56
+ 4. Push to the branch (`git push origin my-new-feature`)
57
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cal_heatmap_rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "cal_heatmap_rails"
8
+ spec.version = CalHeatmapRails::VERSION
9
+ spec.authors = ["Everaldo Gomes"]
10
+ spec.email = ["everaldo.gomes@gmail.com"]
11
+ spec.description = %q{A gem to automate using cal-heatmap with Rails 4}
12
+ spec.summary = %q{This gems packages cal-heatmap javascript and stylesheet files, allowing inclusion through the Asset Pipeline}
13
+ spec.homepage = "https://github.com/everaldo/cal_heatmap_rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1,4 @@
1
+ module CalHeatmapRails
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module CalHeatmapRails
2
+ CAL_HEATMAP_VERSION = "3.0.9"
3
+ VERSION = "0.0.1"
4
+ end
@@ -0,0 +1,5 @@
1
+ require "cal_heatmap_rails/version"
2
+ require "cal_heatmap_rails/engine" if defined?(Rails)
3
+
4
+ module CalHeatmapRails
5
+ end