crossfilter_rails 1.0.3.rc2
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.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +41 -0
- data/Rakefile +2 -0
- data/crossfilter_rails.gemspec +20 -0
- data/lib/crossfilter_rails/engine.rb +6 -0
- data/lib/crossfilter_rails/version.rb +3 -0
- data/lib/crossfilter_rails.rb +3 -0
- data/vendor/assets/javascripts/LICENSE +12 -0
- data/vendor/assets/javascripts/crossfilter.js +1180 -0
- data/vendor/assets/javascripts/crossfilter.min.js +1 -0
- metadata +94 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Han
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# CrossfilterRails
|
2
|
+
|
3
|
+
**CrossfilterRails** is a small, lightweight gem to help facilitate inclusion of the crossfilter javascript library in your rails application through the asset pipeline.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'crossfilter_rails'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install crossfilter_rails
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
You can include the crossfilter library by adding the following to your javascripts manifest (i.e. application.js)
|
22
|
+
|
23
|
+
//= require jquery
|
24
|
+
.
|
25
|
+
.
|
26
|
+
//= require crossfilter
|
27
|
+
|
28
|
+
or if you prefer the minified version:
|
29
|
+
|
30
|
+
//= require jquery
|
31
|
+
.
|
32
|
+
.
|
33
|
+
//= require crossfilter.min
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
1. Fork it
|
38
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
41
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/crossfilter_rails/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Michael Bostock", "Han Kang"]
|
6
|
+
gem.email = ["han@logicallsat.com"]
|
7
|
+
gem.homepage = ""
|
8
|
+
gem.summary = %q{ Crossfilter javascript library for use with the asset pipeline in Rails 3.1+}
|
9
|
+
gem.description = %q{ Rails gem for easily adding the crossfilter javascript library, which is great for exploring multivariate datasets }
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "crossfilter_rails"
|
15
|
+
gem.require_paths = ["lib", "vendor"]
|
16
|
+
gem.version = CrossfilterRails::VERSION
|
17
|
+
gem.add_dependency "railties", ">= 3.1.0"
|
18
|
+
gem.add_development_dependency "bundler", ">= 1.0.0"
|
19
|
+
gem.add_development_dependency "rails", "~> 3.1"
|
20
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Copyright 2012 Square, Inc.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
10
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
11
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
12
|
+
specific language governing permissions and limitations under the License.
|