rails_table_for 0.2.0 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7771134d7d3b6bbf57a19ca741f08c113e3f21cedffecf3aded0353ddc444663
4
- data.tar.gz: faaf9c18db501ed6abccbca4d937b9fbd3f2e5343ab0a01a1549654c8970e93d
3
+ metadata.gz: bfa21e5cdf670b1015bbf2e19a416c13d12f4da8b15cde36be0dbb84b72359cc
4
+ data.tar.gz: fee65e6149ef9edad1092df79f9c1e8430d070b8fc3908ae4d4b02823ee7ae56
5
5
  SHA512:
6
- metadata.gz: 7e69b040c738f65d0133e65f6e3dbca8e19b0aed58267235cbfe949469b3fa06db8c8f77cde0935acd8cf875c62cc1694494c8714e21ad66137054db21e9555b
7
- data.tar.gz: d51079e75e4d0c6d28d5c74a4a79cc1319ff4d1a02a01460f09fd0eb119c400d0dd7217a8ff9e0e8cc24e9a9635db71bd9b299f9eb9d20ce336505b039c44c9c
6
+ metadata.gz: 7172b678411de831c4c6407339ed27d2490d47c7a5bf39e39fe5cab90b40f4e9b343a784c3a7b928b24ea66e390221c904d72864ab51486bb8a6d46c17885afb
7
+ data.tar.gz: fb647d0039190581346f9e36995b50a4e26eef7d9da801d106b123974ecf45963a532e5833255fb53067a3c9d68c9f91acafd845e0202428e18a0eb876a78ae2
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: request
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -1,4 +1,4 @@
1
- name: Run Minitest
1
+ name: Build & Test
2
2
 
3
3
  on:
4
4
  push:
@@ -7,7 +7,7 @@ on:
7
7
  branches: [ master ]
8
8
 
9
9
  jobs:
10
- run_minitest:
10
+ build_and_test:
11
11
 
12
12
  runs-on: ubuntu-latest
13
13
 
@@ -17,8 +17,13 @@ jobs:
17
17
  uses: actions/setup-ruby@v1
18
18
  with:
19
19
  ruby-version: 2.6.x
20
- - name: Build and test with Rake
20
+ - name: Install libsqlite3-dev
21
+ run: sudo apt-get install -y libsqlite3-dev
22
+ - name: Build
21
23
  run: |
22
24
  gem install bundler
23
25
  bundle install --jobs 4 --retry 3
24
- bundle exec rake
26
+ - name: Rubocop
27
+ run: bundle exec rake rubocop
28
+ - name: Test
29
+ run: bundle exec rake
@@ -0,0 +1,47 @@
1
+ AllCops:
2
+ Include:
3
+ - '**/Gemfile'
4
+ - 'lib/**/*.rb'
5
+ - 'test/**/*.rb'
6
+ Exclude:
7
+ - 'test/dummy/bin/*'
8
+ - 'test/dummy/db/schema.rb'
9
+
10
+ Style/Documentation:
11
+ Enabled: false
12
+
13
+ Layout/LineLength:
14
+ Max: 100
15
+ Exclude:
16
+ - 'test/elements/table_test.rb'
17
+
18
+ Style/HashEachMethods:
19
+ Enabled: true
20
+
21
+ Style/HashTransformKeys:
22
+ Enabled: true
23
+
24
+ Style/HashTransformValues:
25
+ Enabled: true
26
+
27
+ Layout/EmptyLinesAroundAttributeAccessor:
28
+ Enabled: true
29
+
30
+ Layout/SpaceAroundMethodCallOperator:
31
+ Enabled: true
32
+
33
+ Lint/DeprecatedOpenSSLConstant:
34
+ Enabled: true
35
+
36
+ Lint/RaiseException:
37
+ Enabled: true
38
+
39
+ Lint/StructNewOverride:
40
+ Enabled: true
41
+
42
+ Style/ExponentialNotation:
43
+ Enabled: true
44
+
45
+ Style/SlicingWithRange:
46
+ Enabled: true
47
+
@@ -0,0 +1,14 @@
1
+ # CHANGELOG
2
+ ## Master
3
+
4
+ ---
5
+ ## 0.3.0
6
+
7
+ ### Features:
8
+ - Pagination: [#3](https://github.com/acroos/rails_table_for/issues/3)
9
+
10
+ ---
11
+ ## 0.2.2
12
+
13
+ ### Bugs Fixed:
14
+ - `table_for` method was nested, resulting in initial load rendering "table_for" as text
data/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
6
 
5
7
  # Specify your gem's dependencies in rails_table_for.gemspec
6
8
  gemspec
@@ -1,78 +1,79 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_table_for (0.2.0)
4
+ rails_table_for (0.3.2)
5
5
  rails (>= 5)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (6.0.2.2)
11
- actionpack (= 6.0.2.2)
10
+ actioncable (6.0.3.1)
11
+ actionpack (= 6.0.3.1)
12
12
  nio4r (~> 2.0)
13
13
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.2.2)
15
- actionpack (= 6.0.2.2)
16
- activejob (= 6.0.2.2)
17
- activerecord (= 6.0.2.2)
18
- activestorage (= 6.0.2.2)
19
- activesupport (= 6.0.2.2)
14
+ actionmailbox (6.0.3.1)
15
+ actionpack (= 6.0.3.1)
16
+ activejob (= 6.0.3.1)
17
+ activerecord (= 6.0.3.1)
18
+ activestorage (= 6.0.3.1)
19
+ activesupport (= 6.0.3.1)
20
20
  mail (>= 2.7.1)
21
- actionmailer (6.0.2.2)
22
- actionpack (= 6.0.2.2)
23
- actionview (= 6.0.2.2)
24
- activejob (= 6.0.2.2)
21
+ actionmailer (6.0.3.1)
22
+ actionpack (= 6.0.3.1)
23
+ actionview (= 6.0.3.1)
24
+ activejob (= 6.0.3.1)
25
25
  mail (~> 2.5, >= 2.5.4)
26
26
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.2.2)
28
- actionview (= 6.0.2.2)
29
- activesupport (= 6.0.2.2)
27
+ actionpack (6.0.3.1)
28
+ actionview (= 6.0.3.1)
29
+ activesupport (= 6.0.3.1)
30
30
  rack (~> 2.0, >= 2.0.8)
31
31
  rack-test (>= 0.6.3)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.2.2)
35
- actionpack (= 6.0.2.2)
36
- activerecord (= 6.0.2.2)
37
- activestorage (= 6.0.2.2)
38
- activesupport (= 6.0.2.2)
34
+ actiontext (6.0.3.1)
35
+ actionpack (= 6.0.3.1)
36
+ activerecord (= 6.0.3.1)
37
+ activestorage (= 6.0.3.1)
38
+ activesupport (= 6.0.3.1)
39
39
  nokogiri (>= 1.8.5)
40
- actionview (6.0.2.2)
41
- activesupport (= 6.0.2.2)
40
+ actionview (6.0.3.1)
41
+ activesupport (= 6.0.3.1)
42
42
  builder (~> 3.1)
43
43
  erubi (~> 1.4)
44
44
  rails-dom-testing (~> 2.0)
45
45
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.2.2)
47
- activesupport (= 6.0.2.2)
46
+ activejob (6.0.3.1)
47
+ activesupport (= 6.0.3.1)
48
48
  globalid (>= 0.3.6)
49
- activemodel (6.0.2.2)
50
- activesupport (= 6.0.2.2)
51
- activerecord (6.0.2.2)
52
- activemodel (= 6.0.2.2)
53
- activesupport (= 6.0.2.2)
54
- activestorage (6.0.2.2)
55
- actionpack (= 6.0.2.2)
56
- activejob (= 6.0.2.2)
57
- activerecord (= 6.0.2.2)
49
+ activemodel (6.0.3.1)
50
+ activesupport (= 6.0.3.1)
51
+ activerecord (6.0.3.1)
52
+ activemodel (= 6.0.3.1)
53
+ activesupport (= 6.0.3.1)
54
+ activestorage (6.0.3.1)
55
+ actionpack (= 6.0.3.1)
56
+ activejob (= 6.0.3.1)
57
+ activerecord (= 6.0.3.1)
58
58
  marcel (~> 0.3.1)
59
- activesupport (6.0.2.2)
59
+ activesupport (6.0.3.1)
60
60
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
61
  i18n (>= 0.7, < 2)
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
- zeitwerk (~> 2.2)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
+ ast (2.4.0)
65
66
  builder (3.2.4)
66
67
  bump (0.9.0)
67
- byebug (11.1.1)
68
+ byebug (11.1.3)
68
69
  concurrent-ruby (1.1.6)
69
70
  crass (1.0.6)
70
71
  erubi (1.9.0)
71
72
  globalid (0.4.2)
72
73
  activesupport (>= 4.2.0)
73
- i18n (1.8.2)
74
+ i18n (1.8.3)
74
75
  concurrent-ruby (~> 1.0)
75
- loofah (2.4.0)
76
+ loofah (2.5.0)
76
77
  crass (~> 1.0.2)
77
78
  nokogiri (>= 1.5.9)
78
79
  mail (2.7.1)
@@ -80,44 +81,62 @@ GEM
80
81
  marcel (0.3.3)
81
82
  mimemagic (~> 0.3.2)
82
83
  method_source (1.0.0)
83
- mimemagic (0.3.4)
84
+ mimemagic (0.3.5)
84
85
  mini_mime (1.0.2)
85
86
  mini_portile2 (2.4.0)
86
- minitest (5.14.0)
87
+ minitest (5.14.1)
87
88
  nio4r (2.5.2)
88
89
  nokogiri (1.10.9)
89
90
  mini_portile2 (~> 2.4.0)
91
+ parallel (1.19.1)
92
+ parser (2.7.1.3)
93
+ ast (~> 2.4.0)
90
94
  rack (2.2.2)
91
95
  rack-test (1.1.0)
92
96
  rack (>= 1.0, < 3)
93
- rails (6.0.2.2)
94
- actioncable (= 6.0.2.2)
95
- actionmailbox (= 6.0.2.2)
96
- actionmailer (= 6.0.2.2)
97
- actionpack (= 6.0.2.2)
98
- actiontext (= 6.0.2.2)
99
- actionview (= 6.0.2.2)
100
- activejob (= 6.0.2.2)
101
- activemodel (= 6.0.2.2)
102
- activerecord (= 6.0.2.2)
103
- activestorage (= 6.0.2.2)
104
- activesupport (= 6.0.2.2)
97
+ rails (6.0.3.1)
98
+ actioncable (= 6.0.3.1)
99
+ actionmailbox (= 6.0.3.1)
100
+ actionmailer (= 6.0.3.1)
101
+ actionpack (= 6.0.3.1)
102
+ actiontext (= 6.0.3.1)
103
+ actionview (= 6.0.3.1)
104
+ activejob (= 6.0.3.1)
105
+ activemodel (= 6.0.3.1)
106
+ activerecord (= 6.0.3.1)
107
+ activestorage (= 6.0.3.1)
108
+ activesupport (= 6.0.3.1)
105
109
  bundler (>= 1.3.0)
106
- railties (= 6.0.2.2)
110
+ railties (= 6.0.3.1)
107
111
  sprockets-rails (>= 2.0.0)
108
112
  rails-dom-testing (2.0.3)
109
113
  activesupport (>= 4.2.0)
110
114
  nokogiri (>= 1.6)
111
115
  rails-html-sanitizer (1.3.0)
112
116
  loofah (~> 2.3)
113
- railties (6.0.2.2)
114
- actionpack (= 6.0.2.2)
115
- activesupport (= 6.0.2.2)
117
+ railties (6.0.3.1)
118
+ actionpack (= 6.0.3.1)
119
+ activesupport (= 6.0.3.1)
116
120
  method_source
117
121
  rake (>= 0.8.7)
118
122
  thor (>= 0.20.3, < 2.0)
123
+ rainbow (3.0.0)
119
124
  rake (13.0.1)
120
- sprockets (4.0.0)
125
+ regexp_parser (1.7.1)
126
+ rexml (3.2.4)
127
+ rubocop (0.85.1)
128
+ parallel (~> 1.10)
129
+ parser (>= 2.7.0.1)
130
+ rainbow (>= 2.2.2, < 4.0)
131
+ regexp_parser (>= 1.7)
132
+ rexml
133
+ rubocop-ast (>= 0.0.3)
134
+ ruby-progressbar (~> 1.7)
135
+ unicode-display_width (>= 1.4.0, < 2.0)
136
+ rubocop-ast (0.0.3)
137
+ parser (>= 2.7.0.1)
138
+ ruby-progressbar (1.10.1)
139
+ sprockets (4.0.2)
121
140
  concurrent-ruby (~> 1.0)
122
141
  rack (> 1, < 3)
123
142
  sprockets-rails (3.2.1)
@@ -127,11 +146,12 @@ GEM
127
146
  sqlite3 (1.4.2)
128
147
  thor (1.0.1)
129
148
  thread_safe (0.3.6)
130
- tzinfo (1.2.6)
149
+ tzinfo (1.2.7)
131
150
  thread_safe (~> 0.1)
132
- websocket-driver (0.7.1)
151
+ unicode-display_width (1.7.0)
152
+ websocket-driver (0.7.2)
133
153
  websocket-extensions (>= 0.1.0)
134
- websocket-extensions (0.1.4)
154
+ websocket-extensions (0.1.5)
135
155
  zeitwerk (2.3.0)
136
156
 
137
157
  PLATFORMS
@@ -142,8 +162,10 @@ DEPENDENCIES
142
162
  bundler (~> 2.1, >= 2.1.4)
143
163
  byebug (~> 11.1, >= 11.1.1)
144
164
  minitest (~> 5.14)
165
+ nokogiri (~> 1.10, >= 1.10.9)
145
166
  rails_table_for!
146
167
  rake (~> 13.0, >= 13.0.1)
168
+ rubocop (~> 0.80, >= 0.80.1)
147
169
  sqlite3 (~> 1.4, >= 1.4.2)
148
170
 
149
171
  BUNDLED WITH
data/Rakefile CHANGED
@@ -24,4 +24,9 @@ Rake::TestTask.new(:test) do |t|
24
24
  t.verbose = false
25
25
  end
26
26
 
27
+ require 'rubocop/rake_task'
28
+
29
+ desc 'Run RuboCop on the lib directory'
30
+ RuboCop::RakeTask.new
31
+
27
32
  task default: :test
data/bin/test CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
- $: << File.expand_path("../test", __dir__)
2
+ # frozen_string_literal: true
3
3
 
4
- require "bundler/setup"
5
- require "rails/plugin/test"
4
+ $LOAD_PATH << File.expand_path('../test', __dir__)
5
+
6
+ require 'bundler/setup'
7
+ require 'rails/plugin/test'
@@ -1,16 +1,17 @@
1
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
2
4
 
3
5
  group :jekyll_plugins do
4
- gem "github-pages", "~> 204"
6
+ gem 'github-pages', '~> 204'
5
7
  end
6
8
 
7
9
  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
8
10
  # and associated library.
9
- install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
10
- gem "tzinfo", "~> 1.2"
11
- gem "tzinfo-data"
11
+ install_if -> { RUBY_PLATFORM =~ /mingw|mswin|java/ } do
12
+ gem 'tzinfo', '~> 1.2'
13
+ gem 'tzinfo-data'
12
14
  end
13
15
 
14
16
  # Performance-booster for watching directories on Windows
15
- gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?
16
-
17
+ gem 'wdm', '~> 0.1.0', install_if: Gem.win_platform?
@@ -1,12 +1,12 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- activesupport (6.0.2.2)
4
+ activesupport (6.0.3.1)
5
5
  concurrent-ruby (~> 1.0, >= 1.0.2)
6
6
  i18n (>= 0.7, < 2)
7
7
  minitest (~> 5.1)
8
8
  tzinfo (~> 1.1)
9
- zeitwerk (~> 2.2)
9
+ zeitwerk (~> 2.2, >= 2.2.2)
10
10
  addressable (2.7.0)
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
12
  coffee-script (2.4.1)
@@ -26,7 +26,7 @@ GEM
26
26
  ffi (>= 1.3.0)
27
27
  eventmachine (1.2.7)
28
28
  execjs (2.7.0)
29
- faraday (1.0.0)
29
+ faraday (1.0.1)
30
30
  multipart-post (>= 1.2, < 3)
31
31
  ffi (1.12.2)
32
32
  forwardable-extended (2.6.0)
@@ -202,21 +202,21 @@ GEM
202
202
  jekyll (>= 3.5, < 5.0)
203
203
  jekyll-feed (~> 0.9)
204
204
  jekyll-seo-tag (~> 2.1)
205
- minitest (5.14.0)
205
+ minitest (5.14.1)
206
206
  multipart-post (2.1.1)
207
207
  nokogiri (1.10.9)
208
208
  mini_portile2 (~> 2.4.0)
209
- octokit (4.17.0)
209
+ octokit (4.18.0)
210
210
  faraday (>= 0.9)
211
211
  sawyer (~> 0.8.0, >= 0.5.3)
212
212
  pathutil (0.16.2)
213
213
  forwardable-extended (~> 2.6)
214
214
  public_suffix (3.1.1)
215
- rb-fsevent (0.10.3)
215
+ rb-fsevent (0.10.4)
216
216
  rb-inotify (0.10.1)
217
217
  ffi (~> 1.0)
218
218
  rouge (3.13.0)
219
- ruby-enum (0.7.2)
219
+ ruby-enum (0.8.0)
220
220
  i18n
221
221
  rubyzip (2.3.0)
222
222
  safe_yaml (1.0.5)
@@ -231,11 +231,11 @@ GEM
231
231
  terminal-table (1.8.0)
232
232
  unicode-display_width (~> 1.1, >= 1.1.1)
233
233
  thread_safe (0.3.6)
234
- typhoeus (1.3.1)
234
+ typhoeus (1.4.0)
235
235
  ethon (>= 0.9.0)
236
- tzinfo (1.2.6)
236
+ tzinfo (1.2.7)
237
237
  thread_safe (~> 0.1)
238
- tzinfo-data (1.2019.3)
238
+ tzinfo-data (1.2020.1)
239
239
  tzinfo (>= 1.0.0)
240
240
  unicode-display_width (1.7.0)
241
241
  wdm (0.1.1)
@@ -246,8 +246,6 @@ PLATFORMS
246
246
 
247
247
  DEPENDENCIES
248
248
  github-pages (~> 204)
249
- jekyll-feed (~> 0.6)
250
- minima (~> 2.0)
251
249
  tzinfo (~> 1.2)
252
250
  tzinfo-data
253
251
  wdm (~> 0.1.0)