foo_table-rails 0.5.0

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: cdb579310e83536779f0fefdae0ea152bac2c435
4
+ data.tar.gz: be7ce15bb4d8e8536b7bdfdafa6d21faeda4f26a
5
+ SHA512:
6
+ metadata.gz: 402e161bba46f156a29ded246b678a8a7b1f464dfa68201deb3ed8866bf467feb6bf061985106291177d5e3cf07e1b200da03a85d6ae5c66cc7949fd281a5fd8
7
+ data.tar.gz: 56930736cf71e255f1950a89877325cc9206781f3a8fb277ec9992988c8f8028a20d26ec56d59975df683be83db172c17776d02c115bac0cdc296d63acb58714
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2014 by Dale Stevens
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
data/LICENSE.FooTable ADDED
@@ -0,0 +1,4 @@
1
+ Copyright 2012 Steven Usher & Brad Vincent
2
+
3
+ Released under the MIT license
4
+ You are free to use FooTable in commercial projects as long as this copyright header is left intact.
data/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # FooTable::Rails [![Build Status](https://secure.travis-ci.org/TwilightCoders/foo_table-rails.png)](http://travis-ci.org/TwilightCoders/foo_table-rails) [![Gem Version](https://badge.fury.io/rb/foo_table-rails.png)](http://badge.fury.io/rb/foo_table-rails) [![Code Climate](https://codeclimate.com/github/TwilightCoders/foo_table-rails.png)](https://codeclimate.com/github/TwilightCoders/foo_table-rails) [![Dependancies](http://img.shields.io/gemnasium/TwilightCoders/foo_table-rails.svg)](https://gemnasium.com/TwilightCoders/foo_table-rails)
2
+
3
+ Wire up the [FooTable](http://fooplugins.com/plugins/footable-jquery/) [assets](https://github.com/bradvin/FooTable) for your Rails
4
+ applications.
5
+
6
+ ## Getting Started
7
+
8
+ If you're using Bundler, you can add foo_table-rails to your Gemfile:
9
+
10
+ ```ruby
11
+ gem 'foo_table-rails'
12
+ ```
13
+
14
+ Or manually install the foo_table-rails gem:
15
+
16
+ ```shell
17
+ gem install foo_table-rails
18
+ ```
19
+
20
+ ## FooTable::Rails for Rails >= 3.1
21
+
22
+ All of the assets from the most latest stable FooTable::Rails release are vendored
23
+ so that you can use them with the asset pipeline. At a minimum, you will
24
+ probably want the following in your application.js and application.css:
25
+
26
+ ```js
27
+ //= require footable.core
28
+ ```
29
+
30
+ ```css
31
+ //= require footable.core
32
+ ```
33
+
34
+ ### Adding a plugin
35
+
36
+ Additional syntax modes can be added to your application.js:
37
+
38
+ ```js
39
+ //= require footable.paginate
40
+ //= require footable.sort
41
+ // ...
42
+ ```
43
+
44
+ ### Adding a theme
45
+
46
+ Additional CSS themes can be added to your application.css
47
+
48
+ ```css
49
+ //= require footable.bootstrap
50
+ ```
51
+
52
+ ### Contributing
53
+
54
+ Find a mistake? New version of FooTable::Rails? Submit a pull request!
55
+
56
+ ---
57
+
58
+ Copyright (c) 2014 Dale Stevens, released under the MIT license
@@ -0,0 +1,6 @@
1
+ module FooTable
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module FooTable
2
+ module Rails
3
+ class Railtie < ::Rails::Railtie; end
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module FooTable
2
+ module Rails
3
+ VERSION = '0.5.0'
4
+ end
5
+ end
@@ -0,0 +1,12 @@
1
+ require 'rails'
2
+ require 'foo_table-rails/version'
3
+
4
+ module FooTable
5
+ module Rails
6
+ if ::Rails.version < '3.1'
7
+ require 'foo_table-rails/railtie'
8
+ else
9
+ require 'foo_table-rails/engine'
10
+ end
11
+ end
12
+ end