lite-query 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 867229873e3e67a94cdbbb639d0cb6b520b28c345f05f9a592854bf068d5cf92
4
- data.tar.gz: '0828a1b2f17b6a391df7047fdbb2a4e978ee03d63861b172a1b8e7302a0ed47c'
3
+ metadata.gz: b5249ef854da75e749897e9d7e7bba4e90c1986d0dd321206ef46644bca1cae7
4
+ data.tar.gz: '083a9bbd359bf09db18c0e898d1642fcb4db6f0a829214c4a69d1dcbf6c40c7a'
5
5
  SHA512:
6
- metadata.gz: 5046a92fc8c42f1ed1c349700876c7ea3234124eb81c5c7c243a4a10063d3aa7b3a6ff21cb654d2e5e846c311b8f22e0977861436be015522190fcc7e9904d86
7
- data.tar.gz: 8a1c88bcaedb3603936a3dab5b63455199a3738e5dde23ba2dbe668d28d650c5a4a7e99b01f921d6ddb65611d8e306dfb5612c8171bd2af353c488eebf566dbe
6
+ metadata.gz: acf232cef28b4a9ec4079e2d644f65f8c254ba4f9d51ebe306f26e04f37f7908be5dcbb98f10f3452210f046c8da705b0a93396cb7201f3c8e7f40a5a7dc14ae
7
+ data.tar.gz: cd949e96a74e4642d2c1b03d2900f55cd51e7d43f5ec9904cc532fc7b9c655f92a368f229609fd999bacdd25eb15a866d67b4ef08ff2f91b5d203d8baf62ce68
data/.rubocop.yml CHANGED
@@ -3,7 +3,6 @@ require:
3
3
  - rubocop-rake
4
4
  - rubocop-rspec
5
5
  AllCops:
6
- TargetRubyVersion: 3.0
7
6
  NewCops: enable
8
7
  DisplayCopNames: true
9
8
  DisplayStyleGuide: true
@@ -19,7 +18,7 @@ Layout/EmptyLinesAroundClassBody:
19
18
  Layout/EmptyLinesAroundModuleBody:
20
19
  EnforcedStyle: empty_lines_except_namespace
21
20
  Layout/LineLength:
22
- Max: 100
21
+ Enabled: false
23
22
  Layout/SpaceAroundMethodCallOperator:
24
23
  Enabled: true
25
24
  Lint/RaiseException:
@@ -42,3 +41,7 @@ Style/Documentation:
42
41
  Enabled: false
43
42
  Style/ExpandPathArguments:
44
43
  Enabled: false
44
+ Style/HashSyntax:
45
+ EnforcedShorthandSyntax: never
46
+ Style/StringLiterals:
47
+ EnforcedStyle: double_quotes
data/CHANGELOG.md CHANGED
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [1.2.0] - 2022-11-19
10
+ ### Removed
11
+ - Removed custom exception
12
+ ### Changed
13
+ - Improved docs
14
+ - Improved rubocop setup
15
+
16
+ ## [1.1.2] - 2021-07-22
17
+ ### Changed
18
+ - Improved setup
19
+
9
20
  ## [1.1.1] - 2021-07-21
10
21
  ### Changed
11
22
  - Improved Railtie support
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in lite-query.gemspec
6
6
  gemspec
data/Gemfile.lock CHANGED
@@ -1,39 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-query (1.1.1)
4
+ lite-query (1.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actionpack (6.1.4)
10
- actionview (= 6.1.4)
11
- activesupport (= 6.1.4)
12
- rack (~> 2.0, >= 2.0.9)
9
+ actionpack (7.0.4)
10
+ actionview (= 7.0.4)
11
+ activesupport (= 7.0.4)
12
+ rack (~> 2.0, >= 2.2.0)
13
13
  rack-test (>= 0.6.3)
14
14
  rails-dom-testing (~> 2.0)
15
15
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
16
- actionview (6.1.4)
17
- activesupport (= 6.1.4)
16
+ actionview (7.0.4)
17
+ activesupport (= 7.0.4)
18
18
  builder (~> 3.1)
19
19
  erubi (~> 1.4)
20
20
  rails-dom-testing (~> 2.0)
21
21
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
22
- activemodel (6.1.4)
23
- activesupport (= 6.1.4)
24
- activerecord (6.1.4)
25
- activemodel (= 6.1.4)
26
- activesupport (= 6.1.4)
27
- activesupport (6.1.4)
22
+ activemodel (7.0.4)
23
+ activesupport (= 7.0.4)
24
+ activerecord (7.0.4)
25
+ activemodel (= 7.0.4)
26
+ activesupport (= 7.0.4)
27
+ activesupport (7.0.4)
28
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
29
29
  i18n (>= 1.6, < 2)
30
30
  minitest (>= 5.1)
31
31
  tzinfo (~> 2.0)
32
- zeitwerk (~> 2.3)
33
32
  ast (2.4.2)
34
33
  builder (3.2.4)
35
34
  colorize (0.8.1)
36
- concurrent-ruby (1.1.9)
35
+ concurrent-ruby (1.1.10)
37
36
  crass (1.0.6)
38
37
  database_cleaner (2.0.1)
39
38
  database_cleaner-active_record (~> 2.0.0)
@@ -41,89 +40,92 @@ GEM
41
40
  activerecord (>= 5.a)
42
41
  database_cleaner-core (~> 2.0.0)
43
42
  database_cleaner-core (2.0.1)
44
- diff-lcs (1.4.4)
45
- erubi (1.10.0)
46
- fasterer (0.9.0)
43
+ diff-lcs (1.5.0)
44
+ erubi (1.11.0)
45
+ fasterer (0.10.0)
47
46
  colorize (~> 0.7)
48
- ruby_parser (>= 3.14.1)
47
+ ruby_parser (>= 3.19.1)
49
48
  generator_spec (0.9.4)
50
49
  activesupport (>= 3.0.0)
51
50
  railties (>= 3.0.0)
52
- i18n (1.8.10)
51
+ i18n (1.12.0)
53
52
  concurrent-ruby (~> 1.0)
54
- loofah (2.10.0)
53
+ json (2.6.2)
54
+ loofah (2.19.0)
55
55
  crass (~> 1.0.2)
56
56
  nokogiri (>= 1.5.9)
57
57
  method_source (1.0.0)
58
- mini_portile2 (2.5.3)
59
- minitest (5.14.4)
60
- nokogiri (1.11.7)
61
- mini_portile2 (~> 2.5.0)
58
+ mini_portile2 (2.8.0)
59
+ minitest (5.16.3)
60
+ nokogiri (1.13.9)
61
+ mini_portile2 (~> 2.8.0)
62
62
  racc (~> 1.4)
63
- parallel (1.20.1)
64
- parser (3.0.2.0)
63
+ parallel (1.22.1)
64
+ parser (3.1.2.1)
65
65
  ast (~> 2.4.1)
66
- racc (1.5.2)
67
- rack (2.2.3)
68
- rack-test (1.1.0)
69
- rack (>= 1.0, < 3)
66
+ racc (1.6.0)
67
+ rack (2.2.4)
68
+ rack-test (2.0.2)
69
+ rack (>= 1.3)
70
70
  rails-dom-testing (2.0.3)
71
71
  activesupport (>= 4.2.0)
72
72
  nokogiri (>= 1.6)
73
- rails-html-sanitizer (1.3.0)
73
+ rails-html-sanitizer (1.4.3)
74
74
  loofah (~> 2.3)
75
- railties (6.1.4)
76
- actionpack (= 6.1.4)
77
- activesupport (= 6.1.4)
75
+ railties (7.0.4)
76
+ actionpack (= 7.0.4)
77
+ activesupport (= 7.0.4)
78
78
  method_source
79
- rake (>= 0.13)
79
+ rake (>= 12.2)
80
80
  thor (~> 1.0)
81
- rainbow (3.0.0)
81
+ zeitwerk (~> 2.5)
82
+ rainbow (3.1.1)
82
83
  rake (13.0.6)
83
- regexp_parser (2.1.1)
84
+ regexp_parser (2.6.1)
84
85
  rexml (3.2.5)
85
- rspec (3.10.0)
86
- rspec-core (~> 3.10.0)
87
- rspec-expectations (~> 3.10.0)
88
- rspec-mocks (~> 3.10.0)
89
- rspec-core (3.10.1)
90
- rspec-support (~> 3.10.0)
91
- rspec-expectations (3.10.1)
86
+ rspec (3.12.0)
87
+ rspec-core (~> 3.12.0)
88
+ rspec-expectations (~> 3.12.0)
89
+ rspec-mocks (~> 3.12.0)
90
+ rspec-core (3.12.0)
91
+ rspec-support (~> 3.12.0)
92
+ rspec-expectations (3.12.0)
92
93
  diff-lcs (>= 1.2.0, < 2.0)
93
- rspec-support (~> 3.10.0)
94
- rspec-mocks (3.10.2)
94
+ rspec-support (~> 3.12.0)
95
+ rspec-mocks (3.12.0)
95
96
  diff-lcs (>= 1.2.0, < 2.0)
96
- rspec-support (~> 3.10.0)
97
- rspec-support (3.10.2)
98
- rubocop (1.18.3)
97
+ rspec-support (~> 3.12.0)
98
+ rspec-support (3.12.0)
99
+ rubocop (1.39.0)
100
+ json (~> 2.3)
99
101
  parallel (~> 1.10)
100
- parser (>= 3.0.0.0)
102
+ parser (>= 3.1.2.1)
101
103
  rainbow (>= 2.2.2, < 4.0)
102
104
  regexp_parser (>= 1.8, < 3.0)
103
- rexml
104
- rubocop-ast (>= 1.7.0, < 2.0)
105
+ rexml (>= 3.2.5, < 4.0)
106
+ rubocop-ast (>= 1.23.0, < 2.0)
105
107
  ruby-progressbar (~> 1.7)
106
108
  unicode-display_width (>= 1.4.0, < 3.0)
107
- rubocop-ast (1.8.0)
108
- parser (>= 3.0.1.1)
109
- rubocop-performance (1.11.4)
109
+ rubocop-ast (1.23.0)
110
+ parser (>= 3.1.1.0)
111
+ rubocop-performance (1.15.1)
110
112
  rubocop (>= 1.7.0, < 2.0)
111
113
  rubocop-ast (>= 0.4.0)
112
114
  rubocop-rake (0.6.0)
113
115
  rubocop (~> 1.0)
114
- rubocop-rspec (2.4.0)
115
- rubocop (~> 1.0)
116
- rubocop-ast (>= 1.1.0)
116
+ rubocop-rspec (2.15.0)
117
+ rubocop (~> 1.33)
117
118
  ruby-progressbar (1.11.0)
118
- ruby_parser (3.16.0)
119
- sexp_processor (~> 4.15, >= 4.15.1)
120
- sexp_processor (4.15.3)
121
- sqlite3 (1.4.2)
122
- thor (1.1.0)
123
- tzinfo (2.0.4)
119
+ ruby_parser (3.19.1)
120
+ sexp_processor (~> 4.16)
121
+ sexp_processor (4.16.1)
122
+ sqlite3 (1.5.4)
123
+ mini_portile2 (~> 2.8.0)
124
+ thor (1.2.1)
125
+ tzinfo (2.0.5)
124
126
  concurrent-ruby (~> 1.0)
125
- unicode-display_width (2.0.0)
126
- zeitwerk (2.4.2)
127
+ unicode-display_width (2.3.0)
128
+ zeitwerk (2.6.6)
127
129
 
128
130
  PLATFORMS
129
131
  ruby
@@ -144,4 +146,4 @@ DEPENDENCIES
144
146
  sqlite3
145
147
 
146
148
  BUNDLED WITH
147
- 2.2.24
149
+ 2.3.26
data/README.md CHANGED
@@ -29,38 +29,31 @@ Or install it yourself as:
29
29
 
30
30
  ## Setup
31
31
 
32
- ### Generators
32
+ #### Generators
33
33
 
34
- Use `rails g query NAME` will generate the following files:
34
+ `rails g query NAME` will generate the following file in your application root:
35
35
 
36
36
  ```erb
37
- app/queries/[name]_query.rb
37
+ app/queries/[NAME]_query.rb
38
38
  ```
39
39
 
40
40
  If a `ApplicationQuery` file in the `app/queries` directory is available, the
41
41
  generator will create file that inherit from `ApplicationQuery` if not it will
42
42
  fallback to `Lite::Query::Base`.
43
43
 
44
- ### Query
44
+ #### Query
45
45
 
46
- You will need to fill this class with the required `execute` method as shown below:
46
+ You will need to fill this class with the required `call` method as shown below:
47
47
 
48
48
  ```ruby
49
- class AgeQuery < ApplicationQuery
49
+ class AgeQuery < Lite::Query::Base
50
50
 
51
- # NOTE: This instance method is required
52
- def execute
51
+ def call
53
52
  return relation unless args[:age]
54
53
 
55
54
  relation.where('age > ?', args[:age])
56
55
  end
57
56
 
58
- private
59
-
60
- def default_relation
61
- User.all
62
- end
63
-
64
57
  end
65
58
  ```
66
59
 
@@ -68,20 +61,25 @@ end
68
61
 
69
62
  There are multiple ways to access the query call:
70
63
 
64
+ #### Instance
71
65
  ```ruby
72
66
  relation = User.limit(1)
67
+ query = AgeQuery.new(relation, age: 10)
68
+ query.call #=> SELECT * FROM users WHERE age = 10 LIMIT 1
69
+ ```
73
70
 
74
- query = AgeQuery.new(relation)
75
- query.call
76
-
77
- # - or -
71
+ #### Class
72
+ ```ruby
73
+ AgeQuery.call(User, age: 20) #=> SELECT * FROM users WHERE age = 10
74
+ ```
78
75
 
79
- query = AgeQuery.new(age: 10)
80
- query.exectue
76
+ #### Scope
77
+ ```ruby
78
+ class User < ApplicationRecord
81
79
 
82
- # - or -
80
+ scope :min_age, ->(age) { MinAgeQuery.new(self, age: age) }
83
81
 
84
- AgeQuery.call(relation, age: 20)
82
+ end
85
83
  ```
86
84
 
87
85
  ## Development
@@ -92,7 +90,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
92
90
 
93
91
  ## Contributing
94
92
 
95
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lite-query. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
93
+ Bug reports and pull requests are welcome on GitHub at https://github.com/drexed/lite-query. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
96
94
 
97
95
  ## License
98
96
 
@@ -100,4 +98,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
100
98
 
101
99
  ## Code of Conduct
102
100
 
103
- Everyone interacting in the Lite::Query project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/lite-query/blob/master/CODE_OF_CONDUCT.md).
101
+ Everyone interacting in the Lite::Query project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/drexed/lite-query/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/bin/console CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'bundler/setup'
5
- require 'lite/query'
4
+ require "bundler/setup"
5
+ require "lite/query"
6
6
 
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
@@ -11,5 +11,5 @@ require 'lite/query'
11
11
  # require "pry"
12
12
  # Pry.start
13
13
 
14
- require 'irb'
14
+ require "irb"
15
15
  IRB.start(__FILE__)
@@ -3,12 +3,12 @@
3
3
  module Rails
4
4
  class QueryGenerator < Rails::Generators::NamedBase
5
5
 
6
- source_root File.expand_path('../templates', __FILE__)
7
- check_class_collision suffix: 'Query'
6
+ source_root File.expand_path("../templates", __FILE__)
7
+ check_class_collision suffix: "Query"
8
8
 
9
9
  def copy_files
10
- path = File.join('app', 'queries', class_path, "#{file_name}_query.rb")
11
- template('query.rb.tt', path)
10
+ path = File.join("app", "queries", class_path, "#{file_name}_query.rb")
11
+ template("query.rb.tt", path)
12
12
  end
13
13
 
14
14
  private
@@ -18,7 +18,7 @@ module Rails
18
18
  end
19
19
 
20
20
  def remove_possible_suffix(name)
21
- name.sub(/_?query$/i, '')
21
+ name.sub(/_?query$/i, "")
22
22
  end
23
23
 
24
24
  end
@@ -7,6 +7,11 @@ module Lite
7
7
  attr_accessor :relation
8
8
  attr_reader :args
9
9
 
10
+ def initialize(relation = nil, args = {})
11
+ @relation = relation
12
+ @args = args
13
+ end
14
+
10
15
  class << self
11
16
 
12
17
  def call(relation = nil, args = {})
@@ -16,21 +21,8 @@ module Lite
16
21
 
17
22
  end
18
23
 
19
- def initialize(relation = nil, args = {})
20
- @relation = relation || default_relation
21
- @args = args
22
- end
23
-
24
24
  def call
25
- raise Lite::Query::NotImplementedError unless defined?(execute)
26
-
27
- execute
28
- end
29
-
30
- private
31
-
32
- def default_relation
33
- nil
25
+ raise NotImplementedError
34
26
  end
35
27
 
36
28
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Query
5
5
 
6
- VERSION = '1.1.1'
6
+ VERSION = "1.2.0"
7
7
 
8
8
  end
9
9
  end
data/lib/lite/query.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'generators/rails/query_generator' if defined?(Rails::Generators)
3
+ require "generators/rails/query_generator" if defined?(Rails::Generators)
4
4
 
5
- %w[version exceptions base].each do |name|
6
- require "lite/query/#{name}"
7
- end
5
+ require "lite/query/version"
6
+ require "lite/query/base"
data/lite-query.gemspec CHANGED
@@ -1,52 +1,46 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path("../lib", __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'lite/query/version'
5
+ require "lite/query/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'lite-query'
8
+ spec.name = "lite-query"
9
9
  spec.version = Lite::Query::VERSION
10
- spec.authors = ['Juan Gomez']
10
+ spec.authors = ["Juan Gomez"]
11
11
  spec.email = %w[j.gomez@drexed.com]
12
12
 
13
- spec.summary = 'Ruby Query based framework (aka query objects)'
14
- spec.homepage = 'http://drexed.github.io/lite-query'
15
- spec.license = 'MIT'
13
+ spec.summary = "Ruby Query based framework (aka query objects)"
14
+ spec.homepage = "http://drexed.github.io/lite-query"
15
+ spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
18
  # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- if spec.respond_to?(:metadata)
20
- spec.metadata.merge(
21
- 'allowed_push_host' => 'https://rubygems.org',
22
- 'changelog_uri' => 'https://github.com/drexed/lite-query/blob/master/CHANGELOG.md',
23
- 'homepage_uri' => spec.homepage,
24
- 'source_code_uri' => 'https://github.com/drexed/lite-query'
25
- )
26
- else
27
- raise 'RubyGems 2.0 or newer is required to protect against ' \
28
- 'public gem pushes.'
29
- end
19
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
+ spec.metadata["changelog_uri"] = "https://github.com/drexed/lite-query/blob/master/CHANGELOG.md"
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["rubygems_mfa_required"] = "true"
23
+ spec.metadata["source_code_uri"] = "https://github.com/drexed/lite-query"
30
24
 
31
25
  # Specify which files should be added to the gem when it is released.
32
26
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
33
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27
+ spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
34
28
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
35
29
  end
36
- spec.bindir = 'exe'
30
+ spec.bindir = "exe"
37
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
38
32
  spec.require_paths = %w[lib]
39
33
 
40
- spec.add_development_dependency 'activerecord'
41
- spec.add_development_dependency 'bundler'
42
- spec.add_development_dependency 'database_cleaner'
43
- spec.add_development_dependency 'fasterer'
44
- spec.add_development_dependency 'generator_spec'
45
- spec.add_development_dependency 'rake'
46
- spec.add_development_dependency 'rspec'
47
- spec.add_development_dependency 'rubocop'
48
- spec.add_development_dependency 'rubocop-performance'
49
- spec.add_development_dependency 'rubocop-rake'
50
- spec.add_development_dependency 'rubocop-rspec'
51
- spec.add_development_dependency 'sqlite3'
34
+ spec.add_development_dependency "activerecord"
35
+ spec.add_development_dependency "bundler"
36
+ spec.add_development_dependency "database_cleaner"
37
+ spec.add_development_dependency "fasterer"
38
+ spec.add_development_dependency "generator_spec"
39
+ spec.add_development_dependency "rake"
40
+ spec.add_development_dependency "rspec"
41
+ spec.add_development_dependency "rubocop"
42
+ spec.add_development_dependency "rubocop-performance"
43
+ spec.add_development_dependency "rubocop-rake"
44
+ spec.add_development_dependency "rubocop-rspec"
45
+ spec.add_development_dependency "sqlite3"
52
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-22 00:00:00.000000000 Z
11
+ date: 2022-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -189,7 +189,6 @@ files:
189
189
  - ".gitignore"
190
190
  - ".rspec"
191
191
  - ".rubocop.yml"
192
- - ".travis.yml"
193
192
  - CHANGELOG.md
194
193
  - CODE_OF_CONDUCT.md
195
194
  - Gemfile
@@ -205,13 +204,17 @@ files:
205
204
  - lib/generators/rails/templates/query.rb.tt
206
205
  - lib/lite/query.rb
207
206
  - lib/lite/query/base.rb
208
- - lib/lite/query/exceptions.rb
209
207
  - lib/lite/query/version.rb
210
208
  - lite-query.gemspec
211
209
  homepage: http://drexed.github.io/lite-query
212
210
  licenses:
213
211
  - MIT
214
- metadata: {}
212
+ metadata:
213
+ allowed_push_host: https://rubygems.org
214
+ changelog_uri: https://github.com/drexed/lite-query/blob/master/CHANGELOG.md
215
+ homepage_uri: http://drexed.github.io/lite-query
216
+ rubygems_mfa_required: 'true'
217
+ source_code_uri: https://github.com/drexed/lite-query
215
218
  post_install_message:
216
219
  rdoc_options: []
217
220
  require_paths:
@@ -227,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
230
  - !ruby/object:Gem::Version
228
231
  version: '0'
229
232
  requirements: []
230
- rubygems_version: 3.2.24
233
+ rubygems_version: 3.3.26
231
234
  signing_key:
232
235
  specification_version: 4
233
236
  summary: Ruby Query based framework (aka query objects)
data/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.5
6
- - 2.6
7
- - 2.7
8
- - ruby-head
9
- matrix:
10
- fast_finish: true
11
- allow_failures:
12
- - rvm: ruby-head
13
- before_install:
14
- - gem update --system
15
- - gem install bundler
16
- install:
17
- - bundle install --jobs=3 --retry=3
18
- script:
19
- - bundle exec rspec
20
- - bundle exec rubocop
21
- - bundle exec fasterer
22
- notifications:
23
- email: false
24
- slack:
25
- secure: Hcdz1aigAkFPa37QSLo73MxwpUbUL5nE3aCVT6AhTTMijFg4Cl8u4qiZyER1sSXQzT2CTnG8ybZbSe7ehXmWtfgEqsFZCRc8qz6XkCQENayatGpQj+sokwEoGn2HWyPs5xXBxqW3RHx95Pf1qCJehOvS2Xwz0PwxsxUz5ZhRyR2lMbImcCsocDJXnOwDFvni6sOu5C+5S+WsZQMRs/XHlAeg1SE++ej8BuwQU3fTGO306ZR/jfszB0hBzlNrgUwRBejEd5P12AdE/VZ8ZjLP7xEH/Pj/dZsYx39sncmedQ6C+MG76ziT0SrZL7sfK+r6n9yCx/9StgpYpkQ6VWQ2iCxfaKj9U4VoCcA8ysPGZx4k4l6Ri7/h1isGFXhUrGYjA1HBIfaIdUtrXHSjKrqaCNwU2HIoWFPud8njFwQy8I2NeqqUw0GWO33la0QwNtTlO4z30vMCJijSa0nFFVkU6aWDUfPscrzFOakyzD41aEkykdv0Lky9HQjbSmf5D6KjvzNTQr8Erxv+dyzbcPYH86dSN2OrVbB3TgvvN2xjFaqySbpMMRuw6DWq/xtgOuQ27gRziGUULt183VeoRFre2yFUBCLIYVXsL26NF5Ml5nxDWodJ1Wq+foiYZmbVHsq/k+H+W6PcHDUG5v368YqEk6QqaG1LUNcNkUKwABF4n+c=
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Lite
4
- module Query
5
- class NotImplementedError < StandardError; end
6
- end
7
- end