tabulator-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -7
  4. data/VERSIONS.md +2 -0
  5. data/lib/tabulator-rails/version.rb +1 -1
  6. data/tabulator-rails.gemspec +0 -1
  7. metadata +2 -107
  8. data/bin/console +0 -14
  9. data/bin/setup +0 -8
  10. data/test-app/.gitignore +0 -23
  11. data/test-app/Gemfile +0 -59
  12. data/test-app/Gemfile.lock +0 -210
  13. data/test-app/README.md +0 -24
  14. data/test-app/Rakefile +0 -6
  15. data/test-app/app/assets/config/manifest.js +0 -3
  16. data/test-app/app/assets/images/.keep +0 -0
  17. data/test-app/app/assets/javascripts/application.js +0 -17
  18. data/test-app/app/assets/javascripts/cable.js +0 -13
  19. data/test-app/app/assets/javascripts/channels/.keep +0 -0
  20. data/test-app/app/assets/javascripts/posts.js +0 -28
  21. data/test-app/app/assets/stylesheets/application.css +0 -16
  22. data/test-app/app/assets/stylesheets/posts.scss +0 -3
  23. data/test-app/app/assets/stylesheets/scaffolds.scss +0 -84
  24. data/test-app/app/channels/application_cable/channel.rb +0 -4
  25. data/test-app/app/channels/application_cable/connection.rb +0 -4
  26. data/test-app/app/controllers/application_controller.rb +0 -3
  27. data/test-app/app/controllers/concerns/.keep +0 -0
  28. data/test-app/app/controllers/posts_controller.rb +0 -3
  29. data/test-app/app/helpers/application_helper.rb +0 -2
  30. data/test-app/app/helpers/posts_helper.rb +0 -2
  31. data/test-app/app/jobs/application_job.rb +0 -2
  32. data/test-app/app/mailers/application_mailer.rb +0 -4
  33. data/test-app/app/models/application_record.rb +0 -3
  34. data/test-app/app/models/concerns/.keep +0 -0
  35. data/test-app/app/models/post.rb +0 -2
  36. data/test-app/app/views/layouts/application.html.erb +0 -14
  37. data/test-app/app/views/layouts/mailer.html.erb +0 -13
  38. data/test-app/app/views/layouts/mailer.text.erb +0 -1
  39. data/test-app/app/views/posts/index.html.erb +0 -3
  40. data/test-app/bin/bundle +0 -3
  41. data/test-app/bin/rails +0 -9
  42. data/test-app/bin/rake +0 -9
  43. data/test-app/bin/setup +0 -38
  44. data/test-app/bin/spring +0 -17
  45. data/test-app/bin/update +0 -29
  46. data/test-app/bin/yarn +0 -11
  47. data/test-app/config.ru +0 -5
  48. data/test-app/config/application.rb +0 -18
  49. data/test-app/config/boot.rb +0 -3
  50. data/test-app/config/cable.yml +0 -10
  51. data/test-app/config/database.yml +0 -25
  52. data/test-app/config/environment.rb +0 -5
  53. data/test-app/config/environments/development.rb +0 -54
  54. data/test-app/config/environments/production.rb +0 -91
  55. data/test-app/config/environments/test.rb +0 -42
  56. data/test-app/config/initializers/application_controller_renderer.rb +0 -8
  57. data/test-app/config/initializers/assets.rb +0 -14
  58. data/test-app/config/initializers/backtrace_silencers.rb +0 -7
  59. data/test-app/config/initializers/cookies_serializer.rb +0 -5
  60. data/test-app/config/initializers/filter_parameter_logging.rb +0 -4
  61. data/test-app/config/initializers/inflections.rb +0 -16
  62. data/test-app/config/initializers/mime_types.rb +0 -4
  63. data/test-app/config/initializers/wrap_parameters.rb +0 -14
  64. data/test-app/config/locales/en.yml +0 -33
  65. data/test-app/config/puma.rb +0 -56
  66. data/test-app/config/routes.rb +0 -6
  67. data/test-app/config/secrets.yml +0 -32
  68. data/test-app/config/spring.rb +0 -6
  69. data/test-app/db/migrate/20180109155755_create_posts.rb +0 -8
  70. data/test-app/db/schema.rb +0 -20
  71. data/test-app/db/seeds.rb +0 -7
  72. data/test-app/lib/assets/.keep +0 -0
  73. data/test-app/lib/tasks/.keep +0 -0
  74. data/test-app/log/.keep +0 -0
  75. data/test-app/package.json +0 -5
  76. data/test-app/public/404.html +0 -67
  77. data/test-app/public/422.html +0 -67
  78. data/test-app/public/500.html +0 -66
  79. data/test-app/public/apple-touch-icon-precomposed.png +0 -0
  80. data/test-app/public/apple-touch-icon.png +0 -0
  81. data/test-app/public/favicon.ico +0 -0
  82. data/test-app/public/robots.txt +0 -1
  83. data/test-app/test/application_system_test_case.rb +0 -5
  84. data/test-app/test/controllers/.keep +0 -0
  85. data/test-app/test/controllers/posts_controller_test.rb +0 -48
  86. data/test-app/test/fixtures/.keep +0 -0
  87. data/test-app/test/fixtures/files/.keep +0 -0
  88. data/test-app/test/fixtures/posts.yml +0 -11
  89. data/test-app/test/helpers/.keep +0 -0
  90. data/test-app/test/integration/.keep +0 -0
  91. data/test-app/test/mailers/.keep +0 -0
  92. data/test-app/test/models/.keep +0 -0
  93. data/test-app/test/models/post_test.rb +0 -7
  94. data/test-app/test/system/.keep +0 -0
  95. data/test-app/test/system/posts_test.rb +0 -9
  96. data/test-app/test/test_helper.rb +0 -9
  97. data/test-app/tmp/.keep +0 -0
  98. data/test-app/vendor/.keep +0 -0
data/test-app/README.md DELETED
@@ -1,24 +0,0 @@
1
- # README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
data/test-app/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,3 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../javascripts .js
3
- //= link_directory ../stylesheets .css
File without changes
@@ -1,17 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5
- // vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery-ui
15
- //= require tabulator
16
- //= require rails-ujs
17
- //= require_tree .
@@ -1,13 +0,0 @@
1
- // Action Cable provides the framework to deal with WebSockets in Rails.
2
- // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
- //
4
- //= require action_cable
5
- //= require_self
6
- //= require_tree ./channels
7
-
8
- (function() {
9
- this.App || (this.App = {});
10
-
11
- App.cable = ActionCable.createConsumer();
12
-
13
- }).call(this);
File without changes
@@ -1,28 +0,0 @@
1
- $(document).ready(function() {
2
- $("#example-table").tabulator({
3
- height:205, // set height of table, this enables the Virtual DOM and improves render speed dramatically (can be any valid css height value)
4
- layout:"fitColumns", //fit columns to width of table (optional)
5
- columns:[ //Define Table Columns
6
- {title:"Name", field:"name", width:150},
7
- {title:"Age", field:"age", align:"left", formatter:"progress"},
8
- {title:"Favourite Color", field:"col"},
9
- {title:"Date Of Birth", field:"dob", sorter:"date", align:"center"},
10
- ],
11
- rowClick:function(e, row){ //trigger an alert message when the row is clicked
12
- alert("Row " + row.getData().id + " Clicked!!!!");
13
- },
14
- });
15
-
16
-
17
- var tabledata = [
18
- {id:1, name:"Oli Bob", age:"12", col:"red", dob:""},
19
- {id:2, name:"Mary May", age:"1", col:"blue", dob:"14/05/1982"},
20
- {id:3, name:"Christine Lobowski", age:"42", col:"green", dob:"22/05/1982"},
21
- {id:4, name:"Brendon Philips", age:"125", col:"orange", dob:"01/08/1980"},
22
- {id:5, name:"Margret Marmajuke", age:"16", col:"yellow", dob:"31/01/1999"},
23
- ];
24
-
25
- //load sample data into the table
26
- $("#example-table").tabulator("setData", tabledata);
27
-
28
- });
@@ -1,16 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6
- * vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require tabulator
14
- *= require_tree .
15
- *= require_self
16
- */
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the posts controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,84 +0,0 @@
1
- body {
2
- background-color: #fff;
3
- color: #333;
4
- margin: 33px;
5
- font-family: verdana, arial, helvetica, sans-serif;
6
- font-size: 13px;
7
- line-height: 18px;
8
- }
9
-
10
- p, ol, ul, td {
11
- font-family: verdana, arial, helvetica, sans-serif;
12
- font-size: 13px;
13
- line-height: 18px;
14
- }
15
-
16
- pre {
17
- background-color: #eee;
18
- padding: 10px;
19
- font-size: 11px;
20
- }
21
-
22
- a {
23
- color: #000;
24
-
25
- &:visited {
26
- color: #666;
27
- }
28
-
29
- &:hover {
30
- color: #fff;
31
- background-color: #000;
32
- }
33
- }
34
-
35
- th {
36
- padding-bottom: 5px;
37
- }
38
-
39
- td {
40
- padding: 0 5px 7px;
41
- }
42
-
43
- div {
44
- &.field, &.actions {
45
- margin-bottom: 10px;
46
- }
47
- }
48
-
49
- #notice {
50
- color: green;
51
- }
52
-
53
- .field_with_errors {
54
- padding: 2px;
55
- background-color: red;
56
- display: table;
57
- }
58
-
59
- #error_explanation {
60
- width: 450px;
61
- border: 2px solid red;
62
- padding: 7px 7px 0;
63
- margin-bottom: 20px;
64
- background-color: #f0f0f0;
65
-
66
- h2 {
67
- text-align: left;
68
- font-weight: bold;
69
- padding: 5px 5px 5px 15px;
70
- font-size: 12px;
71
- margin: -7px -7px 0;
72
- background-color: #c00;
73
- color: #fff;
74
- }
75
-
76
- ul li {
77
- font-size: 12px;
78
- list-style: square;
79
- }
80
- }
81
-
82
- label {
83
- display: block;
84
- }
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Channel < ActionCable::Channel::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module ApplicationCable
2
- class Connection < ActionCable::Connection::Base
3
- end
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- protect_from_forgery with: :exception
3
- end
File without changes
@@ -1,3 +0,0 @@
1
- class PostsController < ApplicationController
2
- def index; end
3
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module PostsHelper
2
- end
@@ -1,2 +0,0 @@
1
- class ApplicationJob < ActiveJob::Base
2
- end
@@ -1,4 +0,0 @@
1
- class ApplicationMailer < ActionMailer::Base
2
- default from: 'from@example.com'
3
- layout 'mailer'
4
- end
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- self.abstract_class = true
3
- end
File without changes
@@ -1,2 +0,0 @@
1
- class Post < ApplicationRecord
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>TestApp</title>
5
- <%= csrf_meta_tags %>
6
-
7
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8
- <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
9
- </head>
10
-
11
- <body>
12
- <%= yield %>
13
- </body>
14
- </html>
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <style>
6
- /* Email styles need to be inline */
7
- </style>
8
- </head>
9
-
10
- <body>
11
- <%= yield %>
12
- </body>
13
- </html>
@@ -1 +0,0 @@
1
- <%= yield %>
@@ -1,3 +0,0 @@
1
- <h1>index page</h1>
2
- <div id="example-table"></div>
3
-
data/test-app/bin/bundle DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
data/test-app/bin/rails DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('../spring', __FILE__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- APP_PATH = File.expand_path('../config/application', __dir__)
8
- require_relative '../config/boot'
9
- require 'rails/commands'
data/test-app/bin/rake DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('../spring', __FILE__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- require_relative '../config/boot'
8
- require 'rake'
9
- Rake.application.run
data/test-app/bin/setup DELETED
@@ -1,38 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
- require 'fileutils'
4
- include FileUtils
5
-
6
- # path to your application root.
7
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
-
9
- def system!(*args)
10
- system(*args) || abort("\n== Command #{args} failed ==")
11
- end
12
-
13
- chdir APP_ROOT do
14
- # This script is a starting point to setup your application.
15
- # Add necessary setup steps to this file.
16
-
17
- puts '== Installing dependencies =='
18
- system! 'gem install bundler --conservative'
19
- system('bundle check') || system!('bundle install')
20
-
21
- # Install JavaScript dependencies if using Yarn
22
- # system('bin/yarn')
23
-
24
-
25
- # puts "\n== Copying sample files =="
26
- # unless File.exist?('config/database.yml')
27
- # cp 'config/database.yml.sample', 'config/database.yml'
28
- # end
29
-
30
- puts "\n== Preparing database =="
31
- system! 'bin/rails db:setup'
32
-
33
- puts "\n== Removing old logs and tempfiles =="
34
- system! 'bin/rails log:clear tmp:clear'
35
-
36
- puts "\n== Restarting application server =="
37
- system! 'bin/rails restart'
38
- end
data/test-app/bin/spring DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads spring without using Bundler, in order to be fast.
4
- # It gets overwritten when you run the `spring binstub` command.
5
-
6
- unless defined?(Spring)
7
- require 'rubygems'
8
- require 'bundler'
9
-
10
- lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
11
- spring = lockfile.specs.detect { |spec| spec.name == "spring" }
12
- if spring
13
- Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14
- gem 'spring', spring.version
15
- require 'spring/binstub'
16
- end
17
- end
data/test-app/bin/update DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
- require 'fileutils'
4
- include FileUtils
5
-
6
- # path to your application root.
7
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
-
9
- def system!(*args)
10
- system(*args) || abort("\n== Command #{args} failed ==")
11
- end
12
-
13
- chdir APP_ROOT do
14
- # This script is a way to update your development environment automatically.
15
- # Add necessary update steps to this file.
16
-
17
- puts '== Installing dependencies =='
18
- system! 'gem install bundler --conservative'
19
- system('bundle check') || system!('bundle install')
20
-
21
- puts "\n== Updating database =="
22
- system! 'bin/rails db:migrate'
23
-
24
- puts "\n== Removing old logs and tempfiles =="
25
- system! 'bin/rails log:clear tmp:clear'
26
-
27
- puts "\n== Restarting application server =="
28
- system! 'bin/rails restart'
29
- end
data/test-app/bin/yarn DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
- VENDOR_PATH = File.expand_path('..', __dir__)
3
- Dir.chdir(VENDOR_PATH) do
4
- begin
5
- exec "yarnpkg #{ARGV.join(" ")}"
6
- rescue Errno::ENOENT
7
- $stderr.puts "Yarn executable was not detected in the system."
8
- $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
9
- exit 1
10
- end
11
- end
data/test-app/config.ru DELETED
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'config/environment'
4
-
5
- run Rails.application