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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -7
- data/VERSIONS.md +2 -0
- data/lib/tabulator-rails/version.rb +1 -1
- data/tabulator-rails.gemspec +0 -1
- metadata +2 -107
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/test-app/.gitignore +0 -23
- data/test-app/Gemfile +0 -59
- data/test-app/Gemfile.lock +0 -210
- data/test-app/README.md +0 -24
- data/test-app/Rakefile +0 -6
- data/test-app/app/assets/config/manifest.js +0 -3
- data/test-app/app/assets/images/.keep +0 -0
- data/test-app/app/assets/javascripts/application.js +0 -17
- data/test-app/app/assets/javascripts/cable.js +0 -13
- data/test-app/app/assets/javascripts/channels/.keep +0 -0
- data/test-app/app/assets/javascripts/posts.js +0 -28
- data/test-app/app/assets/stylesheets/application.css +0 -16
- data/test-app/app/assets/stylesheets/posts.scss +0 -3
- data/test-app/app/assets/stylesheets/scaffolds.scss +0 -84
- data/test-app/app/channels/application_cable/channel.rb +0 -4
- data/test-app/app/channels/application_cable/connection.rb +0 -4
- data/test-app/app/controllers/application_controller.rb +0 -3
- data/test-app/app/controllers/concerns/.keep +0 -0
- data/test-app/app/controllers/posts_controller.rb +0 -3
- data/test-app/app/helpers/application_helper.rb +0 -2
- data/test-app/app/helpers/posts_helper.rb +0 -2
- data/test-app/app/jobs/application_job.rb +0 -2
- data/test-app/app/mailers/application_mailer.rb +0 -4
- data/test-app/app/models/application_record.rb +0 -3
- data/test-app/app/models/concerns/.keep +0 -0
- data/test-app/app/models/post.rb +0 -2
- data/test-app/app/views/layouts/application.html.erb +0 -14
- data/test-app/app/views/layouts/mailer.html.erb +0 -13
- data/test-app/app/views/layouts/mailer.text.erb +0 -1
- data/test-app/app/views/posts/index.html.erb +0 -3
- data/test-app/bin/bundle +0 -3
- data/test-app/bin/rails +0 -9
- data/test-app/bin/rake +0 -9
- data/test-app/bin/setup +0 -38
- data/test-app/bin/spring +0 -17
- data/test-app/bin/update +0 -29
- data/test-app/bin/yarn +0 -11
- data/test-app/config.ru +0 -5
- data/test-app/config/application.rb +0 -18
- data/test-app/config/boot.rb +0 -3
- data/test-app/config/cable.yml +0 -10
- data/test-app/config/database.yml +0 -25
- data/test-app/config/environment.rb +0 -5
- data/test-app/config/environments/development.rb +0 -54
- data/test-app/config/environments/production.rb +0 -91
- data/test-app/config/environments/test.rb +0 -42
- data/test-app/config/initializers/application_controller_renderer.rb +0 -8
- data/test-app/config/initializers/assets.rb +0 -14
- data/test-app/config/initializers/backtrace_silencers.rb +0 -7
- data/test-app/config/initializers/cookies_serializer.rb +0 -5
- data/test-app/config/initializers/filter_parameter_logging.rb +0 -4
- data/test-app/config/initializers/inflections.rb +0 -16
- data/test-app/config/initializers/mime_types.rb +0 -4
- data/test-app/config/initializers/wrap_parameters.rb +0 -14
- data/test-app/config/locales/en.yml +0 -33
- data/test-app/config/puma.rb +0 -56
- data/test-app/config/routes.rb +0 -6
- data/test-app/config/secrets.yml +0 -32
- data/test-app/config/spring.rb +0 -6
- data/test-app/db/migrate/20180109155755_create_posts.rb +0 -8
- data/test-app/db/schema.rb +0 -20
- data/test-app/db/seeds.rb +0 -7
- data/test-app/lib/assets/.keep +0 -0
- data/test-app/lib/tasks/.keep +0 -0
- data/test-app/log/.keep +0 -0
- data/test-app/package.json +0 -5
- data/test-app/public/404.html +0 -67
- data/test-app/public/422.html +0 -67
- data/test-app/public/500.html +0 -66
- data/test-app/public/apple-touch-icon-precomposed.png +0 -0
- data/test-app/public/apple-touch-icon.png +0 -0
- data/test-app/public/favicon.ico +0 -0
- data/test-app/public/robots.txt +0 -1
- data/test-app/test/application_system_test_case.rb +0 -5
- data/test-app/test/controllers/.keep +0 -0
- data/test-app/test/controllers/posts_controller_test.rb +0 -48
- data/test-app/test/fixtures/.keep +0 -0
- data/test-app/test/fixtures/files/.keep +0 -0
- data/test-app/test/fixtures/posts.yml +0 -11
- data/test-app/test/helpers/.keep +0 -0
- data/test-app/test/integration/.keep +0 -0
- data/test-app/test/mailers/.keep +0 -0
- data/test-app/test/models/.keep +0 -0
- data/test-app/test/models/post_test.rb +0 -7
- data/test-app/test/system/.keep +0 -0
- data/test-app/test/system/posts_test.rb +0 -9
- data/test-app/test/test_helper.rb +0 -9
- data/test-app/tmp/.keep +0 -0
- data/test-app/vendor/.keep +0 -0
data/test-app/config/secrets.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
|
6
|
-
# Make sure the secret is at least 30 characters and all random,
|
7
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
-
# You can use `rails secret` to generate a secure secret key.
|
9
|
-
|
10
|
-
# Make sure the secrets in this file are kept private
|
11
|
-
# if you're sharing your code publicly.
|
12
|
-
|
13
|
-
# Shared secrets are available across all environments.
|
14
|
-
|
15
|
-
# shared:
|
16
|
-
# api_key: a1B2c3D4e5F6
|
17
|
-
|
18
|
-
# Environmental secrets are only available for that specific environment.
|
19
|
-
|
20
|
-
development:
|
21
|
-
secret_key_base: 2889b9c6ca307207d5d3685c563afcc2dbff3bc6357d8e4453cf5264cbf3d8b7d0b8b47b908731ba8428cf6cfd4f45852e32440bc910a866bb3526ffba2402e4
|
22
|
-
|
23
|
-
test:
|
24
|
-
secret_key_base: a5aab365687ff395776d4f4d577d8aea57b412b401d38db8c1b2f6256e0de684fc79c70db8429599ea0784b766ad45e77cf9dc981d8502d108fc9cecd8e692a7
|
25
|
-
|
26
|
-
# Do not keep production secrets in the unencrypted secrets file.
|
27
|
-
# Instead, either read values from the environment.
|
28
|
-
# Or, use `bin/rails secrets:setup` to configure encrypted secrets
|
29
|
-
# and move the `production:` environment over there.
|
30
|
-
|
31
|
-
production:
|
32
|
-
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
data/test-app/config/spring.rb
DELETED
data/test-app/db/schema.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# This file is auto-generated from the current state of the database. Instead
|
2
|
-
# of editing this file, please use the migrations feature of Active Record to
|
3
|
-
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
-
#
|
5
|
-
# Note that this schema.rb definition is the authoritative source for your
|
6
|
-
# database schema. If you need to create the application database on another
|
7
|
-
# system, you should be using db:schema:load, not running all the migrations
|
8
|
-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
9
|
-
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
10
|
-
#
|
11
|
-
# It's strongly recommended that you check this file into your version control system.
|
12
|
-
|
13
|
-
ActiveRecord::Schema.define(version: 20180109155755) do
|
14
|
-
|
15
|
-
create_table "posts", force: :cascade do |t|
|
16
|
-
t.datetime "created_at", null: false
|
17
|
-
t.datetime "updated_at", null: false
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
data/test-app/db/seeds.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
-
# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
|
3
|
-
#
|
4
|
-
# Examples:
|
5
|
-
#
|
6
|
-
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
|
7
|
-
# Character.create(name: 'Luke', movie: movies.first)
|
data/test-app/lib/assets/.keep
DELETED
File without changes
|
data/test-app/lib/tasks/.keep
DELETED
File without changes
|
data/test-app/log/.keep
DELETED
File without changes
|
data/test-app/package.json
DELETED
data/test-app/public/404.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/404.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
-
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/test-app/public/422.html
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>The change you wanted was rejected (422)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/422.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>The change you wanted was rejected.</h1>
|
62
|
-
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
-
</div>
|
64
|
-
<p>If you are the application owner check the logs for more information.</p>
|
65
|
-
</div>
|
66
|
-
</body>
|
67
|
-
</html>
|
data/test-app/public/500.html
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>We're sorry, but something went wrong (500)</title>
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
-
<style>
|
7
|
-
.rails-default-error-page {
|
8
|
-
background-color: #EFEFEF;
|
9
|
-
color: #2E2F30;
|
10
|
-
text-align: center;
|
11
|
-
font-family: arial, sans-serif;
|
12
|
-
margin: 0;
|
13
|
-
}
|
14
|
-
|
15
|
-
.rails-default-error-page div.dialog {
|
16
|
-
width: 95%;
|
17
|
-
max-width: 33em;
|
18
|
-
margin: 4em auto 0;
|
19
|
-
}
|
20
|
-
|
21
|
-
.rails-default-error-page div.dialog > div {
|
22
|
-
border: 1px solid #CCC;
|
23
|
-
border-right-color: #999;
|
24
|
-
border-left-color: #999;
|
25
|
-
border-bottom-color: #BBB;
|
26
|
-
border-top: #B00100 solid 4px;
|
27
|
-
border-top-left-radius: 9px;
|
28
|
-
border-top-right-radius: 9px;
|
29
|
-
background-color: white;
|
30
|
-
padding: 7px 12% 0;
|
31
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
-
}
|
33
|
-
|
34
|
-
.rails-default-error-page h1 {
|
35
|
-
font-size: 100%;
|
36
|
-
color: #730E15;
|
37
|
-
line-height: 1.5em;
|
38
|
-
}
|
39
|
-
|
40
|
-
.rails-default-error-page div.dialog > p {
|
41
|
-
margin: 0 0 1em;
|
42
|
-
padding: 1em;
|
43
|
-
background-color: #F7F7F7;
|
44
|
-
border: 1px solid #CCC;
|
45
|
-
border-right-color: #999;
|
46
|
-
border-left-color: #999;
|
47
|
-
border-bottom-color: #999;
|
48
|
-
border-bottom-left-radius: 4px;
|
49
|
-
border-bottom-right-radius: 4px;
|
50
|
-
border-top-color: #DADADA;
|
51
|
-
color: #666;
|
52
|
-
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
-
}
|
54
|
-
</style>
|
55
|
-
</head>
|
56
|
-
|
57
|
-
<body class="rails-default-error-page">
|
58
|
-
<!-- This file lives in public/500.html -->
|
59
|
-
<div class="dialog">
|
60
|
-
<div>
|
61
|
-
<h1>We're sorry, but something went wrong.</h1>
|
62
|
-
</div>
|
63
|
-
<p>If you are the application owner check the logs for more information.</p>
|
64
|
-
</div>
|
65
|
-
</body>
|
66
|
-
</html>
|
File without changes
|
File without changes
|
data/test-app/public/favicon.ico
DELETED
File without changes
|
data/test-app/public/robots.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
File without changes
|
@@ -1,48 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
class PostsControllerTest < ActionDispatch::IntegrationTest
|
4
|
-
setup do
|
5
|
-
@post = posts(:one)
|
6
|
-
end
|
7
|
-
|
8
|
-
test "should get index" do
|
9
|
-
get posts_url
|
10
|
-
assert_response :success
|
11
|
-
end
|
12
|
-
|
13
|
-
test "should get new" do
|
14
|
-
get new_post_url
|
15
|
-
assert_response :success
|
16
|
-
end
|
17
|
-
|
18
|
-
test "should create post" do
|
19
|
-
assert_difference('Post.count') do
|
20
|
-
post posts_url, params: { post: { } }
|
21
|
-
end
|
22
|
-
|
23
|
-
assert_redirected_to post_url(Post.last)
|
24
|
-
end
|
25
|
-
|
26
|
-
test "should show post" do
|
27
|
-
get post_url(@post)
|
28
|
-
assert_response :success
|
29
|
-
end
|
30
|
-
|
31
|
-
test "should get edit" do
|
32
|
-
get edit_post_url(@post)
|
33
|
-
assert_response :success
|
34
|
-
end
|
35
|
-
|
36
|
-
test "should update post" do
|
37
|
-
patch post_url(@post), params: { post: { } }
|
38
|
-
assert_redirected_to post_url(@post)
|
39
|
-
end
|
40
|
-
|
41
|
-
test "should destroy post" do
|
42
|
-
assert_difference('Post.count', -1) do
|
43
|
-
delete post_url(@post)
|
44
|
-
end
|
45
|
-
|
46
|
-
assert_redirected_to posts_url
|
47
|
-
end
|
48
|
-
end
|
File without changes
|
File without changes
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
-
|
3
|
-
# This model initially had no columns defined. If you add columns to the
|
4
|
-
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
-
# below each fixture, per the syntax in the comments below
|
6
|
-
#
|
7
|
-
one: {}
|
8
|
-
# column: value
|
9
|
-
#
|
10
|
-
two: {}
|
11
|
-
# column: value
|
data/test-app/test/helpers/.keep
DELETED
File without changes
|
File without changes
|
data/test-app/test/mailers/.keep
DELETED
File without changes
|
data/test-app/test/models/.keep
DELETED
File without changes
|
data/test-app/test/system/.keep
DELETED
File without changes
|
@@ -1,9 +0,0 @@
|
|
1
|
-
require File.expand_path('../../config/environment', __FILE__)
|
2
|
-
require 'rails/test_help'
|
3
|
-
|
4
|
-
class ActiveSupport::TestCase
|
5
|
-
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
6
|
-
fixtures :all
|
7
|
-
|
8
|
-
# Add more helper methods to be used by all tests here...
|
9
|
-
end
|
data/test-app/tmp/.keep
DELETED
File without changes
|
data/test-app/vendor/.keep
DELETED
File without changes
|