actionset 0.10.0 → 0.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 584c036e467d238b7179b811b0a07d3655319cbd
4
- data.tar.gz: 2351259205c70c9263598e2028597feb2272f8cd
3
+ metadata.gz: 21803f62c8dc2bb44f5874c054dfb0e6ce02c2d6
4
+ data.tar.gz: 4434f51ffb36e00bcc2f4653d2470d68e393b6cd
5
5
  SHA512:
6
- metadata.gz: e6dd37b7c4804b49ce9cfef0127af990574a835d656eef7635e5ff9864315cf2bd19ce4200e7035aa3f50ca4762167352de9fa36c29ba7fa4274b7a1a888dac3
7
- data.tar.gz: 896564ca56c2bed5a0db6d398f44a6677529c70e0a3ff84d1424af2f391b8513380e2c752757efe9a86114a79f509b87b549dd03d151a319337145de4a09d792
6
+ metadata.gz: 89ab3bb66e3bed9a16fe3a10119d8afe7f447222e0d2b3bc92ba1f6dc7039f3c47a237a4ee8b9f808dbf9f4c15c00f237d2a47d68b98a2ccb26258c3bc1345e2
7
+ data.tar.gz: 4c01159e0767446c421823d1f168829a2b9f107a9da6d6610cf128053960aea7fd799143224d1d7ab20c3a1bf9883e41450e81d347c9be47152de0dfc58086f2
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v 0.11.0
2
+ - Don't eager load collection into memory to check pagination condition
1
3
  v 0.10.0
2
4
  - Bump testing internals to Rails 5.2
3
5
  - Fix deprecation notice on sorts.
data/Gemfile.lock CHANGED
@@ -1,50 +1,50 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- actionset (0.9.2)
4
+ actionset (0.11.0)
5
5
  activesupport (>= 4.0.2)
6
6
  railties
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.4.2)
12
- actionpack (= 5.2.4.2)
11
+ actioncable (5.2.5)
12
+ actionpack (= 5.2.5)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.4.2)
16
- actionpack (= 5.2.4.2)
17
- actionview (= 5.2.4.2)
18
- activejob (= 5.2.4.2)
15
+ actionmailer (5.2.5)
16
+ actionpack (= 5.2.5)
17
+ actionview (= 5.2.5)
18
+ activejob (= 5.2.5)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.4.2)
22
- actionview (= 5.2.4.2)
23
- activesupport (= 5.2.4.2)
21
+ actionpack (5.2.5)
22
+ actionview (= 5.2.5)
23
+ activesupport (= 5.2.5)
24
24
  rack (~> 2.0, >= 2.0.8)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.4.2)
29
- activesupport (= 5.2.4.2)
28
+ actionview (5.2.5)
29
+ activesupport (= 5.2.5)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.4.2)
35
- activesupport (= 5.2.4.2)
34
+ activejob (5.2.5)
35
+ activesupport (= 5.2.5)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.4.2)
38
- activesupport (= 5.2.4.2)
39
- activerecord (5.2.4.2)
40
- activemodel (= 5.2.4.2)
41
- activesupport (= 5.2.4.2)
37
+ activemodel (5.2.5)
38
+ activesupport (= 5.2.5)
39
+ activerecord (5.2.5)
40
+ activemodel (= 5.2.5)
41
+ activesupport (= 5.2.5)
42
42
  arel (>= 9.0)
43
- activestorage (5.2.4.2)
44
- actionpack (= 5.2.4.2)
45
- activerecord (= 5.2.4.2)
46
- marcel (~> 0.3.1)
47
- activesupport (5.2.4.2)
43
+ activestorage (5.2.5)
44
+ actionpack (= 5.2.5)
45
+ activerecord (= 5.2.5)
46
+ marcel (~> 1.0.0)
47
+ activesupport (5.2.5)
48
48
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
49
  i18n (>= 0.7, < 2)
50
50
  minitest (~> 5.1)
@@ -53,9 +53,9 @@ GEM
53
53
  public_suffix (>= 2.0.2, < 5.0)
54
54
  ansi (1.5.0)
55
55
  arel (9.0.0)
56
- ast (2.4.0)
56
+ ast (2.4.2)
57
57
  builder (3.2.4)
58
- capybara (3.31.0)
58
+ capybara (3.32.2)
59
59
  addressable
60
60
  mini_mime (>= 0.1.3)
61
61
  nokogiri (~> 1.8)
@@ -63,145 +63,142 @@ GEM
63
63
  rack-test (>= 0.6.3)
64
64
  regexp_parser (~> 1.5)
65
65
  xpath (~> 3.2)
66
- codecov (0.1.16)
67
- json
68
- simplecov
69
- url
70
- combustion (1.1.2)
66
+ codecov (0.5.1)
67
+ simplecov (>= 0.15, < 0.22)
68
+ combustion (1.3.1)
71
69
  activesupport (>= 3.0.0)
72
70
  railties (>= 3.0.0)
73
71
  thor (>= 0.14.6)
74
- concurrent-ruby (1.1.6)
72
+ concurrent-ruby (1.1.8)
75
73
  crass (1.0.6)
76
- database_cleaner (1.8.3)
77
- diff-lcs (1.3)
78
- docile (1.3.2)
79
- erubi (1.9.0)
80
- factory_bot (5.1.1)
74
+ database_cleaner (2.0.1)
75
+ database_cleaner-active_record (~> 2.0.0)
76
+ database_cleaner-active_record (2.0.0)
77
+ activerecord (>= 5.a)
78
+ database_cleaner-core (~> 2.0.0)
79
+ database_cleaner-core (2.0.1)
80
+ diff-lcs (1.4.4)
81
+ docile (1.3.5)
82
+ erubi (1.10.0)
83
+ factory_bot (5.2.0)
81
84
  activesupport (>= 4.2.0)
82
- faker (2.10.2)
85
+ faker (2.12.0)
83
86
  i18n (>= 1.6, < 2)
84
87
  globalid (0.4.2)
85
88
  activesupport (>= 4.2.0)
86
- i18n (1.8.2)
89
+ i18n (1.8.10)
87
90
  concurrent-ruby (~> 1.0)
88
- jaro_winkler (1.5.4)
89
- json (2.3.0)
90
- loofah (2.5.0)
91
+ loofah (2.9.1)
91
92
  crass (~> 1.0.2)
92
93
  nokogiri (>= 1.5.9)
93
94
  mail (2.7.1)
94
95
  mini_mime (>= 0.1.1)
95
- marcel (0.3.3)
96
- mimemagic (~> 0.3.2)
96
+ marcel (1.0.1)
97
97
  method_source (1.0.0)
98
- mimemagic (0.3.4)
99
- mini_mime (1.0.2)
98
+ mini_mime (1.1.0)
100
99
  mini_portile2 (2.4.0)
101
- minitest (5.14.0)
102
- nio4r (2.5.2)
103
- nokogiri (1.10.9)
100
+ minitest (5.14.4)
101
+ nio4r (2.5.7)
102
+ nokogiri (1.10.10)
104
103
  mini_portile2 (~> 2.4.0)
105
- parallel (1.19.1)
106
- parser (2.7.0.4)
107
- ast (~> 2.4.0)
108
- polyamorous (2.3.0)
109
- activerecord (>= 5.0)
110
- public_suffix (4.0.3)
111
- rack (2.2.2)
104
+ parallel (1.20.1)
105
+ parser (3.0.1.0)
106
+ ast (~> 2.4.1)
107
+ public_suffix (4.0.6)
108
+ rack (2.2.3)
112
109
  rack-test (1.1.0)
113
110
  rack (>= 1.0, < 3)
114
- rails (5.2.4.2)
115
- actioncable (= 5.2.4.2)
116
- actionmailer (= 5.2.4.2)
117
- actionpack (= 5.2.4.2)
118
- actionview (= 5.2.4.2)
119
- activejob (= 5.2.4.2)
120
- activemodel (= 5.2.4.2)
121
- activerecord (= 5.2.4.2)
122
- activestorage (= 5.2.4.2)
123
- activesupport (= 5.2.4.2)
111
+ rails (5.2.5)
112
+ actioncable (= 5.2.5)
113
+ actionmailer (= 5.2.5)
114
+ actionpack (= 5.2.5)
115
+ actionview (= 5.2.5)
116
+ activejob (= 5.2.5)
117
+ activemodel (= 5.2.5)
118
+ activerecord (= 5.2.5)
119
+ activestorage (= 5.2.5)
120
+ activesupport (= 5.2.5)
124
121
  bundler (>= 1.3.0)
125
- railties (= 5.2.4.2)
122
+ railties (= 5.2.5)
126
123
  sprockets-rails (>= 2.0.0)
127
124
  rails-dom-testing (2.0.3)
128
125
  activesupport (>= 4.2.0)
129
126
  nokogiri (>= 1.6)
130
127
  rails-html-sanitizer (1.3.0)
131
128
  loofah (~> 2.3)
132
- railties (5.2.4.2)
133
- actionpack (= 5.2.4.2)
134
- activesupport (= 5.2.4.2)
129
+ railties (5.2.5)
130
+ actionpack (= 5.2.5)
131
+ activesupport (= 5.2.5)
135
132
  method_source
136
133
  rake (>= 0.8.7)
137
134
  thor (>= 0.19.0, < 2.0)
138
135
  rainbow (3.0.0)
139
- rake (13.0.1)
140
- ransack (2.3.0)
141
- actionpack (>= 5.0)
142
- activerecord (>= 5.0)
143
- activesupport (>= 5.0)
136
+ rake (13.0.3)
137
+ ransack (2.4.1)
138
+ activerecord (>= 5.2.4)
139
+ activesupport (>= 5.2.4)
144
140
  i18n
145
- polyamorous (= 2.3.0)
146
- regexp_parser (1.7.0)
147
- rexml (3.2.4)
148
- rspec (3.9.0)
149
- rspec-core (~> 3.9.0)
150
- rspec-expectations (~> 3.9.0)
151
- rspec-mocks (~> 3.9.0)
152
- rspec-core (3.9.1)
153
- rspec-support (~> 3.9.1)
154
- rspec-expectations (3.9.1)
141
+ regexp_parser (1.8.2)
142
+ rexml (3.2.5)
143
+ rspec (3.10.0)
144
+ rspec-core (~> 3.10.0)
145
+ rspec-expectations (~> 3.10.0)
146
+ rspec-mocks (~> 3.10.0)
147
+ rspec-core (3.10.1)
148
+ rspec-support (~> 3.10.0)
149
+ rspec-expectations (3.10.1)
155
150
  diff-lcs (>= 1.2.0, < 2.0)
156
- rspec-support (~> 3.9.0)
157
- rspec-mocks (3.9.1)
151
+ rspec-support (~> 3.10.0)
152
+ rspec-mocks (3.10.2)
158
153
  diff-lcs (>= 1.2.0, < 2.0)
159
- rspec-support (~> 3.9.0)
160
- rspec-rails (3.9.1)
161
- actionpack (>= 3.0)
162
- activesupport (>= 3.0)
163
- railties (>= 3.0)
164
- rspec-core (~> 3.9.0)
165
- rspec-expectations (~> 3.9.0)
166
- rspec-mocks (~> 3.9.0)
167
- rspec-support (~> 3.9.0)
168
- rspec-support (3.9.2)
169
- rubocop (0.80.1)
170
- jaro_winkler (~> 1.5.1)
154
+ rspec-support (~> 3.10.0)
155
+ rspec-rails (5.0.1)
156
+ actionpack (>= 5.2)
157
+ activesupport (>= 5.2)
158
+ railties (>= 5.2)
159
+ rspec-core (~> 3.10)
160
+ rspec-expectations (~> 3.10)
161
+ rspec-mocks (~> 3.10)
162
+ rspec-support (~> 3.10)
163
+ rspec-support (3.10.2)
164
+ rubocop (1.12.1)
171
165
  parallel (~> 1.10)
172
- parser (>= 2.7.0.1)
166
+ parser (>= 3.0.0.0)
173
167
  rainbow (>= 2.2.2, < 4.0)
168
+ regexp_parser (>= 1.8, < 3.0)
174
169
  rexml
170
+ rubocop-ast (>= 1.2.0, < 2.0)
175
171
  ruby-progressbar (~> 1.7)
176
- unicode-display_width (>= 1.4.0, < 1.7)
177
- ruby-progressbar (1.10.1)
172
+ unicode-display_width (>= 1.4.0, < 3.0)
173
+ rubocop-ast (1.4.1)
174
+ parser (>= 2.7.1.5)
175
+ ruby-progressbar (1.11.0)
178
176
  simplecov (0.18.5)
179
177
  docile (~> 1.1)
180
178
  simplecov-html (~> 0.11)
181
- simplecov-console (0.7.2)
179
+ simplecov-console (0.9.1)
182
180
  ansi
183
181
  simplecov
184
182
  terminal-table
185
- simplecov-html (0.12.2)
183
+ simplecov-html (0.12.3)
186
184
  sprockets (3.7.2)
187
185
  concurrent-ruby (~> 1.0)
188
186
  rack (> 1, < 3)
189
- sprockets-rails (3.2.1)
187
+ sprockets-rails (3.2.2)
190
188
  actionpack (>= 4.0)
191
189
  activesupport (>= 4.0)
192
190
  sprockets (>= 3.0.0)
193
191
  sqlite3 (1.4.2)
194
- terminal-table (1.8.0)
192
+ terminal-table (3.0.0)
195
193
  unicode-display_width (~> 1.1, >= 1.1.1)
196
- thor (1.0.1)
194
+ thor (1.1.0)
197
195
  thread_safe (0.3.6)
198
- tzinfo (1.2.7)
196
+ tzinfo (1.2.9)
199
197
  thread_safe (~> 0.1)
200
- unicode-display_width (1.6.1)
201
- url (0.3.2)
202
- websocket-driver (0.7.1)
198
+ unicode-display_width (1.7.0)
199
+ websocket-driver (0.7.3)
203
200
  websocket-extensions (>= 0.1.0)
204
- websocket-extensions (0.1.4)
201
+ websocket-extensions (0.1.5)
205
202
  xpath (3.2.0)
206
203
  nokogiri (~> 1.8)
207
204
 
data/actionset.gemspec CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
  Gem::Specification.new do |spec|
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.name = 'actionset'
9
- spec.version = '0.10.0'
9
+ spec.version = '0.11.0'
10
10
  spec.authors = ['Stephen Margheim']
11
11
  spec.email = ['stephen.margheim@gmail.com']
12
12
 
@@ -10,8 +10,6 @@ class ActiveSet
10
10
 
11
11
  def execute
12
12
  return false unless @set.respond_to? :to_sql
13
- return @set.none if @set.length <= @operation_instructions[:size] &&
14
- @operation_instructions[:page] > 1
15
13
 
16
14
  @set.limit(@operation_instructions[:size]).offset(page_offset)
17
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-15 00:00:00.000000000 Z
11
+ date: 2021-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -316,7 +316,7 @@ homepage: https://github.com/fractaledmind/actionset
316
316
  licenses:
317
317
  - MIT
318
318
  metadata: {}
319
- post_install_message:
319
+ post_install_message:
320
320
  rdoc_options: []
321
321
  require_paths:
322
322
  - lib
@@ -331,9 +331,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  - !ruby/object:Gem::Version
332
332
  version: '0'
333
333
  requirements: []
334
- rubyforge_project:
334
+ rubyforge_project:
335
335
  rubygems_version: 2.6.14.4
336
- signing_key:
336
+ signing_key:
337
337
  specification_version: 4
338
338
  summary: A toolkit for working with collections.
339
339
  test_files: []