activerecord-setops 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -1
- data/activerecord-setops.gemspec +2 -1
- data/lib/active_record/setops/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250e160c4a314f3dbd70006d8c0578f65f2f96bfa7a6184347e117a82c7100c2
|
4
|
+
data.tar.gz: 9c237499708d5a17742433567eb0ef9440a47038c676def5692fd276c7dc2934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec7c60d171dd79b8cc2a3dd27a10a8d5e87ad77ff20a74d61ed342350e1c390431b7f7a4c8f8ad10e5aa50d24dca6a08b6e95289a4f4b41b31a09189854dbd4
|
7
|
+
data.tar.gz: 07031403f8457b12f01578846fde1f5e7ff6d5efd6cd695b16413cdaf55deaaeae7a64906b201fd547c7ad984ef0cc4f624dd3a8f879377807f7f8ae68011fdc
|
data/.github/workflows/ruby.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
![Ruby](https://github.com/delonnewman/activerecord-setops/workflows/Ruby/badge.svg)
|
2
|
+
|
1
3
|
# ActiveRecord::Setops
|
2
4
|
|
3
5
|
Union, Intersect, and Difference set operations for ActiveRecord (also, SQL's UnionAll).
|
@@ -6,7 +8,9 @@ Has only been tested with Rails 5.
|
|
6
8
|
# Why?
|
7
9
|
|
8
10
|
Joins can be difficult to reason about in Arel (an SQL for that matter). Many joins can be replaced
|
9
|
-
with set operations which are much
|
11
|
+
with set operations which are much simpler beasts, may offer performance gains, and have consistent
|
12
|
+
mathematical properties. But these operations while present in Arel are missing in ActiveRecord. This
|
13
|
+
module attempts to correct this lack.
|
10
14
|
|
11
15
|
# Installation
|
12
16
|
|
data/activerecord-setops.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["contact@delonnewman.name"]
|
10
10
|
|
11
11
|
spec.summary = %q{Set operations for ActiveRecord}
|
12
|
-
spec.description = %q{Union,
|
12
|
+
spec.description = %q{Union, Intersection, and Difference operations for ActiveRecord}
|
13
13
|
spec.homepage = "https://github.com/delonnewman/activerecord-setops#readme"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.metadata["homepage_uri"] = spec.homepage
|
22
22
|
spec.metadata["source_code_uri"] = "https://github.com/delonnewman/activerecord-setops"
|
23
23
|
spec.metadata["changelog_uri"] = "https://github.com/delonnewman/activerecord-setops#changelog"
|
24
|
+
spec.metadata["documentation_uri"] = 'https://www.rubydoc.info/gems/activerecord-setops'
|
24
25
|
else
|
25
26
|
raise "RubyGems 2.0 or newer is required to protect against " \
|
26
27
|
"public gem pushes."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-setops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delon Newman
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 1.4.2
|
111
|
-
description: Union,
|
111
|
+
description: Union, Intersection, and Difference operations for ActiveRecord
|
112
112
|
email:
|
113
113
|
- contact@delonnewman.name
|
114
114
|
executables: []
|
@@ -134,6 +134,7 @@ metadata:
|
|
134
134
|
homepage_uri: https://github.com/delonnewman/activerecord-setops#readme
|
135
135
|
source_code_uri: https://github.com/delonnewman/activerecord-setops
|
136
136
|
changelog_uri: https://github.com/delonnewman/activerecord-setops#changelog
|
137
|
+
documentation_uri: https://www.rubydoc.info/gems/activerecord-setops
|
137
138
|
post_install_message:
|
138
139
|
rdoc_options: []
|
139
140
|
require_paths:
|