jtable-rails4 0.1.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.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +3 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +44 -0
  7. data/Rakefile +2 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +7 -0
  10. data/jtable-rails4.gemspec +29 -0
  11. data/lib/jtable/rails4/version.rb +5 -0
  12. data/lib/jtable/rails4.rb +8 -0
  13. data/vendor/assets/javascripts/jtable/jquery.jtable.js +5021 -0
  14. data/vendor/assets/stylesheets/jtable/themes/basic/close.png +0 -0
  15. data/vendor/assets/stylesheets/jtable/themes/basic/column-asc.png +0 -0
  16. data/vendor/assets/stylesheets/jtable/themes/basic/column-desc.png +0 -0
  17. data/vendor/assets/stylesheets/jtable/themes/basic/column-sortable.png +0 -0
  18. data/vendor/assets/stylesheets/jtable/themes/basic/delete.png +0 -0
  19. data/vendor/assets/stylesheets/jtable/themes/basic/edit.png +0 -0
  20. data/vendor/assets/stylesheets/jtable/themes/basic/jtable_basic.css +282 -0
  21. data/vendor/assets/stylesheets/jtable/themes/basic/jtable_basic.less +83 -0
  22. data/vendor/assets/stylesheets/jtable/themes/basic/jtable_basic.min.css +1 -0
  23. data/vendor/assets/stylesheets/jtable/themes/jqueryui/add.png +0 -0
  24. data/vendor/assets/stylesheets/jtable/themes/jqueryui/bg-thead.png +0 -0
  25. data/vendor/assets/stylesheets/jtable/themes/jqueryui/close.png +0 -0
  26. data/vendor/assets/stylesheets/jtable/themes/jqueryui/column-asc.png +0 -0
  27. data/vendor/assets/stylesheets/jtable/themes/jqueryui/column-desc.png +0 -0
  28. data/vendor/assets/stylesheets/jtable/themes/jqueryui/column-sortable.png +0 -0
  29. data/vendor/assets/stylesheets/jtable/themes/jqueryui/delete.png +0 -0
  30. data/vendor/assets/stylesheets/jtable/themes/jqueryui/edit.png +0 -0
  31. data/vendor/assets/stylesheets/jtable/themes/jqueryui/jtable_jqueryui.css +398 -0
  32. data/vendor/assets/stylesheets/jtable/themes/jqueryui/jtable_jqueryui.less +296 -0
  33. data/vendor/assets/stylesheets/jtable/themes/jqueryui/jtable_jqueryui.min.css +1 -0
  34. data/vendor/assets/stylesheets/jtable/themes/jqueryui/loading.gif +0 -0
  35. data/vendor/assets/stylesheets/jtable/themes/jtable_theme_base.less +524 -0
  36. data/vendor/assets/stylesheets/jtable/themes/lightcolor/add.png +0 -0
  37. data/vendor/assets/stylesheets/jtable/themes/lightcolor/bg-thead.png +0 -0
  38. data/vendor/assets/stylesheets/jtable/themes/lightcolor/blue/jtable.css +521 -0
  39. data/vendor/assets/stylesheets/jtable/themes/lightcolor/blue/jtable.less +90 -0
  40. data/vendor/assets/stylesheets/jtable/themes/lightcolor/blue/jtable.min.css +1 -0
  41. data/vendor/assets/stylesheets/jtable/themes/lightcolor/blue/loading.gif +0 -0
  42. data/vendor/assets/stylesheets/jtable/themes/lightcolor/close.png +0 -0
  43. data/vendor/assets/stylesheets/jtable/themes/lightcolor/column-asc.png +0 -0
  44. data/vendor/assets/stylesheets/jtable/themes/lightcolor/column-desc.png +0 -0
  45. data/vendor/assets/stylesheets/jtable/themes/lightcolor/column-sortable.png +0 -0
  46. data/vendor/assets/stylesheets/jtable/themes/lightcolor/delete.png +0 -0
  47. data/vendor/assets/stylesheets/jtable/themes/lightcolor/edit.png +0 -0
  48. data/vendor/assets/stylesheets/jtable/themes/lightcolor/gray/jtable.css +521 -0
  49. data/vendor/assets/stylesheets/jtable/themes/lightcolor/gray/jtable.less +90 -0
  50. data/vendor/assets/stylesheets/jtable/themes/lightcolor/gray/jtable.min.css +1 -0
  51. data/vendor/assets/stylesheets/jtable/themes/lightcolor/gray/loading.gif +0 -0
  52. data/vendor/assets/stylesheets/jtable/themes/lightcolor/green/jtable.css +521 -0
  53. data/vendor/assets/stylesheets/jtable/themes/lightcolor/green/jtable.less +90 -0
  54. data/vendor/assets/stylesheets/jtable/themes/lightcolor/green/jtable.min.css +1 -0
  55. data/vendor/assets/stylesheets/jtable/themes/lightcolor/green/loading.gif +0 -0
  56. data/vendor/assets/stylesheets/jtable/themes/lightcolor/jtable_lightcolor_base.less +329 -0
  57. data/vendor/assets/stylesheets/jtable/themes/lightcolor/orange/jtable.css +521 -0
  58. data/vendor/assets/stylesheets/jtable/themes/lightcolor/orange/jtable.less +90 -0
  59. data/vendor/assets/stylesheets/jtable/themes/lightcolor/orange/jtable.min.css +1 -0
  60. data/vendor/assets/stylesheets/jtable/themes/lightcolor/orange/loading.gif +0 -0
  61. data/vendor/assets/stylesheets/jtable/themes/lightcolor/red/jtable.css +521 -0
  62. data/vendor/assets/stylesheets/jtable/themes/lightcolor/red/jtable.less +90 -0
  63. data/vendor/assets/stylesheets/jtable/themes/lightcolor/red/jtable.min.css +1 -0
  64. data/vendor/assets/stylesheets/jtable/themes/lightcolor/red/loading.gif +0 -0
  65. data/vendor/assets/stylesheets/jtable/themes/metro/add.png +0 -0
  66. data/vendor/assets/stylesheets/jtable/themes/metro/blue/jtable.css +495 -0
  67. data/vendor/assets/stylesheets/jtable/themes/metro/blue/jtable.less +11 -0
  68. data/vendor/assets/stylesheets/jtable/themes/metro/blue/jtable.min.css +1 -0
  69. data/vendor/assets/stylesheets/jtable/themes/metro/blue/loading.gif +0 -0
  70. data/vendor/assets/stylesheets/jtable/themes/metro/brown/jtable.css +495 -0
  71. data/vendor/assets/stylesheets/jtable/themes/metro/brown/jtable.less +11 -0
  72. data/vendor/assets/stylesheets/jtable/themes/metro/brown/jtable.min.css +1 -0
  73. data/vendor/assets/stylesheets/jtable/themes/metro/brown/loading.gif +0 -0
  74. data/vendor/assets/stylesheets/jtable/themes/metro/close.png +0 -0
  75. data/vendor/assets/stylesheets/jtable/themes/metro/column-asc.png +0 -0
  76. data/vendor/assets/stylesheets/jtable/themes/metro/column-desc.png +0 -0
  77. data/vendor/assets/stylesheets/jtable/themes/metro/column-sortable.png +0 -0
  78. data/vendor/assets/stylesheets/jtable/themes/metro/crimson/jtable.css +495 -0
  79. data/vendor/assets/stylesheets/jtable/themes/metro/crimson/jtable.less +11 -0
  80. data/vendor/assets/stylesheets/jtable/themes/metro/crimson/jtable.min.css +1 -0
  81. data/vendor/assets/stylesheets/jtable/themes/metro/crimson/loading.gif +0 -0
  82. data/vendor/assets/stylesheets/jtable/themes/metro/darkgray/jtable.css +495 -0
  83. data/vendor/assets/stylesheets/jtable/themes/metro/darkgray/jtable.less +11 -0
  84. data/vendor/assets/stylesheets/jtable/themes/metro/darkgray/jtable.min.css +1 -0
  85. data/vendor/assets/stylesheets/jtable/themes/metro/darkgray/loading.gif +0 -0
  86. data/vendor/assets/stylesheets/jtable/themes/metro/darkorange/jtable.css +495 -0
  87. data/vendor/assets/stylesheets/jtable/themes/metro/darkorange/jtable.less +11 -0
  88. data/vendor/assets/stylesheets/jtable/themes/metro/darkorange/jtable.min.css +1 -0
  89. data/vendor/assets/stylesheets/jtable/themes/metro/darkorange/loading.gif +0 -0
  90. data/vendor/assets/stylesheets/jtable/themes/metro/delete.png +0 -0
  91. data/vendor/assets/stylesheets/jtable/themes/metro/edit.png +0 -0
  92. data/vendor/assets/stylesheets/jtable/themes/metro/green/jtable.css +495 -0
  93. data/vendor/assets/stylesheets/jtable/themes/metro/green/jtable.less +11 -0
  94. data/vendor/assets/stylesheets/jtable/themes/metro/green/jtable.min.css +1 -0
  95. data/vendor/assets/stylesheets/jtable/themes/metro/green/loading.gif +0 -0
  96. data/vendor/assets/stylesheets/jtable/themes/metro/jtable_metro_base.css +48 -0
  97. data/vendor/assets/stylesheets/jtable/themes/metro/jtable_metro_base.less +439 -0
  98. data/vendor/assets/stylesheets/jtable/themes/metro/jtable_metro_base.min.css +1 -0
  99. data/vendor/assets/stylesheets/jtable/themes/metro/lightgray/jtable.css +495 -0
  100. data/vendor/assets/stylesheets/jtable/themes/metro/lightgray/jtable.less +11 -0
  101. data/vendor/assets/stylesheets/jtable/themes/metro/lightgray/jtable.min.css +1 -0
  102. data/vendor/assets/stylesheets/jtable/themes/metro/lightgray/loading.gif +0 -0
  103. data/vendor/assets/stylesheets/jtable/themes/metro/pink/jtable.css +495 -0
  104. data/vendor/assets/stylesheets/jtable/themes/metro/pink/jtable.less +11 -0
  105. data/vendor/assets/stylesheets/jtable/themes/metro/pink/jtable.min.css +1 -0
  106. data/vendor/assets/stylesheets/jtable/themes/metro/pink/loading.gif +0 -0
  107. data/vendor/assets/stylesheets/jtable/themes/metro/purple/jtable.css +495 -0
  108. data/vendor/assets/stylesheets/jtable/themes/metro/purple/jtable.less +11 -0
  109. data/vendor/assets/stylesheets/jtable/themes/metro/purple/jtable.min.css +1 -0
  110. data/vendor/assets/stylesheets/jtable/themes/metro/purple/loading.gif +0 -0
  111. data/vendor/assets/stylesheets/jtable/themes/metro/red/jtable.css +495 -0
  112. data/vendor/assets/stylesheets/jtable/themes/metro/red/jtable.less +11 -0
  113. data/vendor/assets/stylesheets/jtable/themes/metro/red/jtable.min.css +1 -0
  114. data/vendor/assets/stylesheets/jtable/themes/metro/red/loading.gif +0 -0
  115. metadata +226 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 312ce0a9698ba475c470e4939b3dc64460c75ea1
4
+ data.tar.gz: 591ca855bb549fdd1f558c3ee52db0b9ae7b834d
5
+ SHA512:
6
+ metadata.gz: 8dd0b659afcf0e726c54b48513a46589bcf22c2e8d0d86aabf4941088d2ef33b9ce285e80d4553d1a25027a3ca9a65e9fa6e62aa36c00b1a6f370f71cd5a388b
7
+ data.tar.gz: e3bf2d538f736663e158296fc326e5aefdcef664feef0553f20efa1c11088becd6530031ade8951f216283769f02bc203aac7617d363552d866b7ad09e884288
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.4
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jtable-rails4.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 David Brennan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # jtable-rails4
2
+
3
+ Integrate the [jTable jQuery plugin](http://jtable.org) into Rails 4 (+?) applications.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'jtable-rails4'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install jtable-rails4
20
+
21
+ ## Usage
22
+
23
+ In application.js add the following line:
24
+
25
+ //= require jtable/jquery.jtable
26
+
27
+ In application.css add a line which references one of the jTable theme css files, e.g. for the metro blue theme:
28
+
29
+ *= require jtable/themes/metro/blue/jtable
30
+
31
+
32
+ ## Development
33
+
34
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
35
+
36
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+
38
+ ## Contributing
39
+
40
+ 1. Fork it ( https://github.com/[my-github-username]/jtable-rails4/fork )
41
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
42
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
43
+ 4. Push to the branch (`git push origin my-new-feature`)
44
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "jtable/rails4"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'jtable/rails4/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jtable-rails4"
8
+ spec.version = Jtable::Rails4::VERSION
9
+ spec.authors = ["David Brennan"]
10
+ spec.email = ["david.n.brennan@gmail.com"]
11
+
12
+ if spec.respond_to?(:metadata)
13
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com' to prevent pushes to rubygems.org, or delete to allow pushes to any server."
14
+ end
15
+
16
+ spec.summary = %q{Integrate jTable jQuery plugin with Rails 4 applications.}
17
+ spec.homepage = "https://github.com/davbre/jtable-rails4"
18
+ spec.license = "MIT"
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.8"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "jquery-rails", '~> 4.1', '>= 4.1.0'
28
+ spec.add_development_dependency "jquery-ui-rails", '~> 5.0', '>= 5.0.5'
29
+ end
@@ -0,0 +1,5 @@
1
+ module Jtable
2
+ module Rails4
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ require "jtable/rails4/version"
2
+
3
+ module Jtable
4
+ module Rails4
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end