simple_column-scopes 0.1.0 → 0.1.1

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.
data/REEK ADDED
File without changes
data/RUBOCOP.md ADDED
@@ -0,0 +1,71 @@
1
+ # RuboCop Usage Guide
2
+
3
+ ## Overview
4
+
5
+ A tale of two RuboCop plugin gems.
6
+
7
+ ### RuboCop Gradual
8
+
9
+ This project uses `rubocop_gradual` instead of vanilla RuboCop for code style checking. The `rubocop_gradual` tool allows for gradual adoption of RuboCop rules by tracking violations in a lock file.
10
+
11
+ ### RuboCop LTS
12
+
13
+ This project uses `rubocop-lts` to ensure, on a best-effort basis, compatibility with Ruby >= 1.9.2.
14
+ RuboCop rules are meticulously configured by the `rubocop-lts` family of gems to ensure that a project is compatible with a specific version of Ruby. See: https://rubocop-lts.gitlab.io for more.
15
+
16
+ ## Checking RuboCop Violations
17
+
18
+ To check for RuboCop violations in this project, always use:
19
+
20
+ ```bash
21
+ bundle exec rake rubocop_gradual:check
22
+ ```
23
+
24
+ **Do not use** the standard RuboCop commands like:
25
+ - `bundle exec rubocop`
26
+ - `rubocop`
27
+
28
+ ## Understanding the Lock File
29
+
30
+ The `.rubocop_gradual.lock` file tracks all current RuboCop violations in the project. This allows the team to:
31
+
32
+ 1. Prevent new violations while gradually fixing existing ones
33
+ 2. Track progress on code style improvements
34
+ 3. Ensure CI builds don't fail due to pre-existing violations
35
+
36
+ ## Common Commands
37
+
38
+ - **Check violations**
39
+ - `bundle exec rake rubocop_gradual`
40
+ - `bundle exec rake rubocop_gradual:check`
41
+ - **(Safe) Autocorrect violations, and update lockfile if no new violations**
42
+ - `bundle exec rake rubocop_gradual:autocorrect`
43
+ - **Force update the lock file (w/o autocorrect) to match violations present in code**
44
+ - `bundle exec rake rubocop_gradual:force_update`
45
+
46
+ ## Workflow
47
+
48
+ 1. Before submitting a PR, run `bundle exec rake rubocop_gradual:autocorrect`
49
+ a. or just the default `bundle exec rake`, as autocorrection is a pre-requisite of the default task.
50
+ 2. If there are new violations, either:
51
+ - Fix them in your code
52
+ - Run `bundle exec rake rubocop_gradual:force_update` to update the lock file (only for violations you can't fix immediately)
53
+ 3. Commit the updated `.rubocop_gradual.lock` file along with your changes
54
+
55
+ ## Never add inline RuboCop disables
56
+
57
+ Do not add inline `rubocop:disable` / `rubocop:enable` comments anywhere in the codebase (including specs, except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). We handle exceptions in two supported ways:
58
+
59
+ - Permanent/structural exceptions: prefer adjusting the RuboCop configuration (e.g., in `.rubocop.yml`) to exclude a rule for a path or file pattern when it makes sense project-wide.
60
+ - Temporary exceptions while improving code: record the current violations in `.rubocop_gradual.lock` via the gradual workflow:
61
+ - `bundle exec rake rubocop_gradual:autocorrect` (preferred; will autocorrect what it can and update the lock only if no new violations were introduced)
62
+ - If needed, `bundle exec rake rubocop_gradual:force_update` (as a last resort when you cannot fix the newly reported violations immediately)
63
+
64
+ In general, treat the rules as guidance to follow; fix violations rather than ignore them. For example, RSpec conventions in this project expect `described_class` to be used in specs that target a specific class under test.
65
+
66
+ ## Benefits of rubocop_gradual
67
+
68
+ - Allows incremental adoption of code style rules
69
+ - Prevents CI failures due to pre-existing violations
70
+ - Provides a clear record of code style debt
71
+ - Enables focused efforts on improving code quality over time
data/SECURITY.md ADDED
@@ -0,0 +1,21 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Version | Supported |
6
+ |----------|-----------|
7
+ | 1.latest | ✅ |
8
+
9
+ ## Security contact information
10
+
11
+ To report a security vulnerability, please use the
12
+ [Tidelift security contact](https://tidelift.com/security).
13
+ Tidelift will coordinate the fix and disclosure.
14
+
15
+ ## Additional Support
16
+
17
+ If you are interested in support for versions older than the latest release,
18
+ please consider sponsoring the project / maintainer @ https://liberapay.com/pboling/donate,
19
+ or find other sponsorship links in the [README].
20
+
21
+ [README]: README.md
@@ -1,6 +1,9 @@
1
1
  module SimpleColumn
2
2
  # This is a Class / Module Hybrid (see simple_column/scopes.rb)
3
3
  class Scopes < Module
4
- VERSION = "0.1.0"
4
+ module Version
5
+ VERSION = "0.1.1"
6
+ end
7
+ VERSION = Version::VERSION # Traditional version location
5
8
  end
6
9
  end
@@ -1,5 +1,5 @@
1
- require 'simple_column/scopes'
2
- require 'simple_column/scopes/version'
1
+ require "simple_column/scopes/version"
2
+ require "active_support/core_ext/object/blank"
3
3
 
4
4
  # Purpose:
5
5
  # Create dynamic modules which define dynamic methods for scopes based on a dynamic array of column names
@@ -13,10 +13,11 @@ require 'simple_column/scopes/version'
13
13
  # and they query on the user_id and seller_id columns, respectively
14
14
  #
15
15
  module SimpleColumn
16
- SCOPE_PREFIX = 'for_'.freeze
16
+ SCOPE_PREFIX = "for_".freeze
17
17
  SCOPE_PREFIX_REGEX = Regexp.new("\\A#{SimpleColumn::SCOPE_PREFIX}")
18
18
  class << self
19
- # returns an anonymous (nameless) Module instance
19
+ # @param scope_names_hash [Hash{Symbol => String}]
20
+ # @return [Module] an anonymous (nameless) Module instance
20
21
  def to_mod(scope_names_hash)
21
22
  Module.new do
22
23
  scope_names_hash.each do |scope_name, column_name|
@@ -31,11 +32,13 @@ module SimpleColumn
31
32
 
32
33
  # This is a Class / Module Hybrid (see simple_column/scopes/version.rb)
33
34
  Scopes.class_eval do
35
+ # @param scope_names [Array<Symbol, String>] the names of the scopes to define.
36
+ # Must start with {SimpleColumn::SCOPE_PREFIX} ("for_").
34
37
  def initialize(*scope_names)
35
38
  # => { :for_user_id => "user_id" }
36
39
  @simple_scope_names_hash = scope_names.map(&:to_sym).each_with_object({}) do |scope_name, memo|
37
40
  # method name definitions are best with symbols, and gsub only works on strings.
38
- memo[scope_name] = scope_name.to_s.sub(SimpleColumn::SCOPE_PREFIX_REGEX, '')
41
+ memo[scope_name] = scope_name.to_s.sub(SimpleColumn::SCOPE_PREFIX_REGEX, "")
39
42
  end
40
43
  # Raising an error here is safe, because it will fail on boot if there is an implementation problem (early!)
41
44
  unless (bad_scopes = @simple_scope_names_hash.select { |scope_name, column_name| scope_name.to_s == column_name }).blank?
@@ -43,6 +46,7 @@ module SimpleColumn
43
46
  end
44
47
  end
45
48
 
49
+ # @param base [Class] the class that includes this module.
46
50
  def included(base)
47
51
  # How to do this without breaking the build?
48
52
  # if ActiveRecord::Base.connection.active?
@@ -58,8 +62,14 @@ module SimpleColumn
58
62
  base.send(:extend, anonymous_module)
59
63
  end
60
64
 
65
+ # @param bad_scopes [Hash] hash of scope names that failed validation.
66
+ # @raise [ArgumentError]
61
67
  def bad_scope_names(bad_scopes)
62
68
  raise ArgumentError, "SimpleColumn::Scopes need to be named like #{SimpleColumn::SCOPE_PREFIX}<column_name>, but provided #{bad_scopes.keys}"
63
69
  end
64
70
  end
65
71
  end
72
+
73
+ SimpleColumn::Scopes::Version.class_eval do
74
+ extend VersionGem::Basic
75
+ end
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,45 +1,174 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_column-scopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
- - Peter Boling
8
- autorequire:
7
+ - Peter H. Boling
9
8
  bindir: exe
10
- cert_chain: []
11
- date: 2017-06-20 00:00:00.000000000 Z
9
+ cert_chain:
10
+ - |
11
+ -----BEGIN CERTIFICATE-----
12
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
13
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
14
+ A2NvbTAeFw0yNTA1MDQxNTMzMDlaFw00NTA0MjkxNTMzMDlaMEMxFTATBgNVBAMM
15
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
16
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAruUoo0WA
17
+ uoNuq6puKWYeRYiZekz/nsDeK5x/0IEirzcCEvaHr3Bmz7rjo1I6On3gGKmiZs61
18
+ LRmQ3oxy77ydmkGTXBjruJB+pQEn7UfLSgQ0xa1/X3kdBZt6RmabFlBxnHkoaGY5
19
+ mZuZ5+Z7walmv6sFD9ajhzj+oIgwWfnEHkXYTR8I6VLN7MRRKGMPoZ/yvOmxb2DN
20
+ coEEHWKO9CvgYpW7asIihl/9GMpKiRkcYPm9dGQzZc6uTwom1COfW0+ZOFrDVBuV
21
+ FMQRPswZcY4Wlq0uEBLPU7hxnCL9nKK6Y9IhdDcz1mY6HZ91WImNslOSI0S8hRpj
22
+ yGOWxQIhBT3fqCBlRIqFQBudrnD9jSNpSGsFvbEijd5ns7Z9ZMehXkXDycpGAUj1
23
+ to/5cuTWWw1JqUWrKJYoifnVhtE1o1DZ+LkPtWxHtz5kjDG/zR3MG0Ula0UOavlD
24
+ qbnbcXPBnwXtTFeZ3C+yrWpE4pGnl3yGkZj9SMTlo9qnTMiPmuWKQDatAgMBAAGj
25
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQE8uWvNbPVNRXZ
26
+ HlgPbc2PCzC4bjAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
27
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
28
+ ggGBAJbnUwfJQFPkBgH9cL7hoBfRtmWiCvdqdjeTmi04u8zVNCUox0A4gT982DE9
29
+ wmuN12LpdajxZONqbXuzZvc+nb0StFwmFYZG6iDwaf4BPywm2e/Vmq0YG45vZXGR
30
+ L8yMDSK1cQXjmA+ZBKOHKWavxP6Vp7lWvjAhz8RFwqF9GuNIdhv9NpnCAWcMZtpm
31
+ GUPyIWw/Cw/2wZp74QzZj6Npx+LdXoLTF1HMSJXZ7/pkxLCsB8m4EFVdb/IrW/0k
32
+ kNSfjtAfBHO8nLGuqQZVH9IBD1i9K6aSs7pT6TW8itXUIlkIUI2tg5YzW6OFfPzq
33
+ QekSkX3lZfY+HTSp/o+YvKkqWLUV7PQ7xh1ZYDtocpaHwgxe/j3bBqHE+CUPH2vA
34
+ 0V/FwdTRWcwsjVoOJTrYcff8pBZ8r2MvtAc54xfnnhGFzeRHfcltobgFxkAXdE6p
35
+ DVjBtqT23eugOqQ73umLcYDZkc36vnqGxUBSsXrzY9pzV5gGr2I8YUxMqf6ATrZt
36
+ L9nRqA==
37
+ -----END CERTIFICATE-----
38
+ date: 1980-01-02 00:00:00.000000000 Z
12
39
  dependencies:
13
40
  - !ruby/object:Gem::Dependency
14
- name: bundler
41
+ name: activerecord
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 5.2.8.1
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 5.2.8.1
54
+ - !ruby/object:Gem::Dependency
55
+ name: activesupport
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 5.2.8.1
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: 5.2.8.1
68
+ - !ruby/object:Gem::Dependency
69
+ name: version_gem
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.1'
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 1.1.9
78
+ type: :runtime
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '1.1'
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: 1.1.9
88
+ - !ruby/object:Gem::Dependency
89
+ name: anonymous_active_record
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '1.0'
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 1.0.9
98
+ type: :development
99
+ prerelease: false
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: '1.0'
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: 1.0.9
108
+ - !ruby/object:Gem::Dependency
109
+ name: kettle-dev
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '1.2'
115
+ type: :development
116
+ prerelease: false
117
+ version_requirements: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '1.2'
122
+ - !ruby/object:Gem::Dependency
123
+ name: bundler-audit
15
124
  requirement: !ruby/object:Gem::Requirement
16
125
  requirements:
17
126
  - - "~>"
18
127
  - !ruby/object:Gem::Version
19
- version: '1.15'
128
+ version: 0.9.3
20
129
  type: :development
21
130
  prerelease: false
22
131
  version_requirements: !ruby/object:Gem::Requirement
23
132
  requirements:
24
133
  - - "~>"
25
134
  - !ruby/object:Gem::Version
26
- version: '1.15'
135
+ version: 0.9.3
27
136
  - !ruby/object:Gem::Dependency
28
137
  name: rake
29
138
  requirement: !ruby/object:Gem::Requirement
30
139
  requirements:
31
140
  - - "~>"
32
141
  - !ruby/object:Gem::Version
33
- version: '10.0'
142
+ version: '13.0'
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '13.0'
150
+ - !ruby/object:Gem::Dependency
151
+ name: require_bench
152
+ requirement: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '1.0'
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 1.0.4
34
160
  type: :development
35
161
  prerelease: false
36
162
  version_requirements: !ruby/object:Gem::Requirement
37
163
  requirements:
38
164
  - - "~>"
39
165
  - !ruby/object:Gem::Version
40
- version: '10.0'
166
+ version: '1.0'
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: 1.0.4
41
170
  - !ruby/object:Gem::Dependency
42
- name: rspec
171
+ name: appraisal2
43
172
  requirement: !ruby/object:Gem::Requirement
44
173
  requirements:
45
174
  - - "~>"
@@ -52,49 +181,150 @@ dependencies:
52
181
  - - "~>"
53
182
  - !ruby/object:Gem::Version
54
183
  version: '3.0'
55
- description: Dynamic modules which define dynamic methods for scopes based on a dynamic
56
- array of column names
184
+ - !ruby/object:Gem::Dependency
185
+ name: kettle-test
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - "~>"
189
+ - !ruby/object:Gem::Version
190
+ version: '1.0'
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: 1.0.7
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '1.0'
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: 1.0.7
204
+ - !ruby/object:Gem::Dependency
205
+ name: ruby-progressbar
206
+ requirement: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - "~>"
209
+ - !ruby/object:Gem::Version
210
+ version: '1.13'
211
+ type: :development
212
+ prerelease: false
213
+ version_requirements: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '1.13'
218
+ - !ruby/object:Gem::Dependency
219
+ name: stone_checksums
220
+ requirement: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '1.0'
225
+ - - ">="
226
+ - !ruby/object:Gem::Version
227
+ version: 1.0.3
228
+ type: :development
229
+ prerelease: false
230
+ version_requirements: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - "~>"
233
+ - !ruby/object:Gem::Version
234
+ version: '1.0'
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: 1.0.3
238
+ - !ruby/object:Gem::Dependency
239
+ name: gitmoji-regex
240
+ requirement: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - "~>"
243
+ - !ruby/object:Gem::Version
244
+ version: '1.0'
245
+ - - ">="
246
+ - !ruby/object:Gem::Version
247
+ version: 1.0.3
248
+ type: :development
249
+ prerelease: false
250
+ version_requirements: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - "~>"
253
+ - !ruby/object:Gem::Version
254
+ version: '1.0'
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: 1.0.3
258
+ description: "\U0001F3DB️ Dynamic modules which define dynamic methods for scopes
259
+ based on a dynamic array of column names"
57
260
  email:
58
- - peter.boling@gmail.com
261
+ - floss@galtzo.com
59
262
  executables: []
60
263
  extensions: []
61
- extra_rdoc_files: []
264
+ extra_rdoc_files:
265
+ - CHANGELOG.md
266
+ - CITATION.cff
267
+ - CODE_OF_CONDUCT.md
268
+ - CONTRIBUTING.md
269
+ - FUNDING.md
270
+ - LICENSE.txt
271
+ - README.md
272
+ - REEK
273
+ - RUBOCOP.md
274
+ - SECURITY.md
62
275
  files:
63
- - ".gitignore"
64
- - ".rspec"
65
- - ".travis.yml"
276
+ - CHANGELOG.md
277
+ - CITATION.cff
66
278
  - CODE_OF_CONDUCT.md
67
- - Gemfile
279
+ - CONTRIBUTING.md
280
+ - FUNDING.md
68
281
  - LICENSE.txt
69
282
  - README.md
70
- - Rakefile
71
- - bin/console
72
- - bin/setup
283
+ - REEK
284
+ - RUBOCOP.md
285
+ - SECURITY.md
73
286
  - lib/simple_column/scopes.rb
74
287
  - lib/simple_column/scopes/version.rb
75
- - simple_column-scopes.gemspec
76
- homepage: https://github.com/tophatter/simple_column-scopes
288
+ homepage: https://github.com/galtzo-floss/simple_column-scopes
77
289
  licenses:
78
290
  - MIT
79
- metadata: {}
80
- post_install_message:
81
- rdoc_options: []
291
+ metadata:
292
+ homepage_uri: https://simple-column-scopes.galtzo.com/
293
+ source_code_uri: https://github.com/galtzo-floss/simple_column-scopes/tree/v0.1.1
294
+ changelog_uri: https://github.com/galtzo-floss/simple_column-scopes/blob/v0.1.1/CHANGELOG.md
295
+ bug_tracker_uri: https://github.com/galtzo-floss/simple_column-scopes/issues
296
+ documentation_uri: https://www.rubydoc.info/gems/simple_column-scopes/0.1.1
297
+ funding_uri: https://github.com/sponsors/pboling
298
+ wiki_uri: https://github.com/galtzo-floss/simple_column-scopes/wiki
299
+ news_uri: https://www.railsbling.com/tags/simple_column-scopes
300
+ discord_uri: https://discord.gg/3qme4XHNKN
301
+ rubygems_mfa_required: 'true'
302
+ rdoc_options:
303
+ - "--title"
304
+ - "simple_column-scopes - \U0001F3DB️ Easily add named scopes that query on single
305
+ columns for specific values"
306
+ - "--main"
307
+ - README.md
308
+ - "--exclude"
309
+ - "^sig/"
310
+ - "--line-numbers"
311
+ - "--inline-source"
312
+ - "--quiet"
82
313
  require_paths:
83
314
  - lib
84
315
  required_ruby_version: !ruby/object:Gem::Requirement
85
316
  requirements:
86
317
  - - ">="
87
318
  - !ruby/object:Gem::Version
88
- version: '0'
319
+ version: 2.4.0
89
320
  required_rubygems_version: !ruby/object:Gem::Requirement
90
321
  requirements:
91
322
  - - ">="
92
323
  - !ruby/object:Gem::Version
93
324
  version: '0'
94
325
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.6.12
97
- signing_key:
326
+ rubygems_version: 4.0.5
98
327
  specification_version: 4
99
- summary: Easily add named scopes that query on single columns for specific values
328
+ summary: "\U0001F3DB️ Easily add named scopes that query on single columns for specific
329
+ values"
100
330
  test_files: []
metadata.gz.sig ADDED
Binary file
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.15.0
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in simple_column-scopes.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "simple_column/scopes"
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(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,27 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "simple_column/scopes/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "simple_column-scopes"
8
- spec.version = SimpleColumn::Scopes::VERSION
9
- spec.authors = ["Peter Boling"]
10
- spec.email = ["peter.boling@gmail.com"]
11
-
12
- spec.summary = %q{Easily add named scopes that query on single columns for specific values}
13
- spec.description = %q{Dynamic modules which define dynamic methods for scopes based on a dynamic array of column names}
14
- spec.homepage = "https://github.com/tophatter/simple_column-scopes"
15
- spec.license = "MIT"
16
-
17
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
- f.match(%r{^(test|spec|features)/})
19
- end
20
- spec.bindir = "exe"
21
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
- spec.require_paths = ["lib"]
23
-
24
- spec.add_development_dependency "bundler", "~> 1.15"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "rspec", "~> 3.0"
27
- end