rails_or 1.1.8 → 1.1.9
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 +5 -5
- data/.github/workflows/ruby.yml +62 -0
- data/.gitignore +10 -9
- data/.rubocop.yml +1227 -0
- data/CHANGELOG.md +77 -77
- data/CODE_OF_CONDUCT.md +48 -48
- data/LICENSE.txt +21 -21
- data/README.md +152 -133
- data/Rakefile +5 -5
- data/bin/console +3 -3
- data/bin/setup +8 -8
- data/gemfiles/3.2.gemfile +10 -13
- data/gemfiles/4.2.gemfile +10 -13
- data/gemfiles/5.0.gemfile +10 -13
- data/gemfiles/5.1.gemfile +10 -13
- data/gemfiles/5.2.gemfile +10 -0
- data/gemfiles/6.0.gemfile +10 -0
- data/gemfiles/6.1.gemfile +10 -0
- data/lib/rails_or.rb +63 -119
- data/lib/rails_or/active_record/extension.rb +52 -0
- data/lib/rails_or/patches/null_relation.rb +8 -0
- data/lib/rails_or/version.rb +3 -3
- data/lib/rails_or/where_binding_mixs.rb +38 -38
- data/rails_or.gemspec +43 -37
- metadata +26 -10
- data/.travis.yml +0 -21
data/rails_or.gemspec
CHANGED
@@ -1,37 +1,43 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'rails_or/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
-
spec.version = RailsOr::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
11
|
-
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
16
|
-
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
#if spec.respond_to?(:metadata)
|
20
|
-
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
-
#else
|
22
|
-
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
#end
|
24
|
-
|
25
|
-
spec.files = `git ls-files -z`.split("\x0").reject
|
26
|
-
spec.bindir =
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/})
|
28
|
-
spec.require_paths = [
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'rails_or/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'rails_or'
|
8
|
+
spec.version = RailsOr::VERSION
|
9
|
+
spec.authors = ['khiav reoy']
|
10
|
+
spec.email = ['mrtmrt15xn@yahoo.com.tw']
|
11
|
+
|
12
|
+
spec.summary = 'Support && Add syntax sugar to #or query method.'
|
13
|
+
spec.description = 'Support && Add syntax sugar to #or query method in Rails 3, 4, 5.'
|
14
|
+
spec.homepage = 'https://github.com/khiav223577/rails_or'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
# if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
# else
|
22
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
# end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject{|f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}){|f| File.basename(f) }
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
spec.metadata = {
|
30
|
+
'homepage_uri' => 'https://github.com/khiav223577/rails_or',
|
31
|
+
'changelog_uri' => 'https://github.com/khiav223577/rails_or/blob/master/CHANGELOG.md',
|
32
|
+
'source_code_uri' => 'https://github.com/khiav223577/rails_or',
|
33
|
+
'documentation_uri' => 'https://www.rubydoc.info/gems/rails_or',
|
34
|
+
'bug_tracker_uri' => 'https://github.com/khiav223577/rails_or/issues',
|
35
|
+
}
|
36
|
+
|
37
|
+
spec.add_development_dependency 'bundler', '>= 1.17', '< 3.x'
|
38
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
39
|
+
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
40
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
41
|
+
|
42
|
+
spec.add_dependency 'activerecord', '>= 3'
|
43
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_or
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khiav reoy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 3.x
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.17'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 3.x
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,8 +93,9 @@ executables: []
|
|
87
93
|
extensions: []
|
88
94
|
extra_rdoc_files: []
|
89
95
|
files:
|
96
|
+
- ".github/workflows/ruby.yml"
|
90
97
|
- ".gitignore"
|
91
|
-
- ".
|
98
|
+
- ".rubocop.yml"
|
92
99
|
- CHANGELOG.md
|
93
100
|
- CODE_OF_CONDUCT.md
|
94
101
|
- LICENSE.txt
|
@@ -100,14 +107,24 @@ files:
|
|
100
107
|
- gemfiles/4.2.gemfile
|
101
108
|
- gemfiles/5.0.gemfile
|
102
109
|
- gemfiles/5.1.gemfile
|
110
|
+
- gemfiles/5.2.gemfile
|
111
|
+
- gemfiles/6.0.gemfile
|
112
|
+
- gemfiles/6.1.gemfile
|
103
113
|
- lib/rails_or.rb
|
114
|
+
- lib/rails_or/active_record/extension.rb
|
115
|
+
- lib/rails_or/patches/null_relation.rb
|
104
116
|
- lib/rails_or/version.rb
|
105
117
|
- lib/rails_or/where_binding_mixs.rb
|
106
118
|
- rails_or.gemspec
|
107
119
|
homepage: https://github.com/khiav223577/rails_or
|
108
120
|
licenses:
|
109
121
|
- MIT
|
110
|
-
metadata:
|
122
|
+
metadata:
|
123
|
+
homepage_uri: https://github.com/khiav223577/rails_or
|
124
|
+
changelog_uri: https://github.com/khiav223577/rails_or/blob/master/CHANGELOG.md
|
125
|
+
source_code_uri: https://github.com/khiav223577/rails_or
|
126
|
+
documentation_uri: https://www.rubydoc.info/gems/rails_or
|
127
|
+
bug_tracker_uri: https://github.com/khiav223577/rails_or/issues
|
111
128
|
post_install_message:
|
112
129
|
rdoc_options: []
|
113
130
|
require_paths:
|
@@ -123,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
140
|
- !ruby/object:Gem::Version
|
124
141
|
version: '0'
|
125
142
|
requirements: []
|
126
|
-
|
127
|
-
rubygems_version: 2.6.13
|
143
|
+
rubygems_version: 3.2.14
|
128
144
|
signing_key:
|
129
145
|
specification_version: 4
|
130
146
|
summary: 'Support && Add syntax sugar to #or query method.'
|
data/.travis.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.2
|
4
|
-
- 2.3
|
5
|
-
sudo: required
|
6
|
-
dist: trusty
|
7
|
-
before_install:
|
8
|
-
- gem install bundler
|
9
|
-
- gem update --system
|
10
|
-
- gem --version
|
11
|
-
gemfile:
|
12
|
-
- gemfiles/3.2.gemfile
|
13
|
-
- gemfiles/4.2.gemfile
|
14
|
-
- gemfiles/5.0.gemfile
|
15
|
-
- gemfiles/5.1.gemfile
|
16
|
-
addons:
|
17
|
-
code_climate:
|
18
|
-
repo_token: 4be4fd5792acf886a179e8ebff97d155dc19858816d7179f2bf5002bae874818
|
19
|
-
after_success:
|
20
|
-
- bundle exec codeclimate-test-reporter
|
21
|
-
|