active_similar 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: b84485dfe06d69d270e19a691a5fac3c17256b1c75ec7a568985ec316751151d
4
- data.tar.gz: c38a0965fc70a4dbeb5617d06b6997ef70fc89cbc9d25803ff75f243ac4236d9
3
+ metadata.gz: c48597e459708df58d4d223ac2cb69b1f740fc8f4f57727a92b5b15d9172351c
4
+ data.tar.gz: aac581d1fa06483137b45276a0919d5bdae58ee2d662d26e9367ac4b63a8eb5c
5
5
  SHA512:
6
- metadata.gz: ac4ac2655afc7135e898d1c97cb168e811e23a27546ac69521d47de6be99dc9178a657933abb610afc218e872eec04de657125d115919ae2a7acdd61e61eed20
7
- data.tar.gz: 75ce8ec70f92b2063ed498887c242e4778f65518a2a48417339a8ca9c8099c4454626c4729e8dbc12c4e20c38d81b358438f5f30b0ed741d2b5786c46353fe86
6
+ metadata.gz: 3fc18e15b99d801b2ed63f1a50c0e170ad9222110c6c58c3a4e2029ea7c1a6c46a697e716e514881a068c162f84efba0263d4fd819583a6092fc76c7e0c01863
7
+ data.tar.gz: a978aaabdb92be5725939a8a419e2b1fef771c0d06d41e15225356124994f01d09405df57c2fd7772f807f622971380d5a13877742c07d5c6593b1e47e31d66a
data/README.md CHANGED
@@ -4,7 +4,7 @@ Ruby gem to find similar Active Record models through most common associations.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/active_similar.svg)](https://badge.fury.io/rb/active_similar)
6
6
  [![Build](https://github.com/hardpixel/active-similar/actions/workflows/build.yml/badge.svg)](https://github.com/hardpixel/active-similar/actions/workflows/build.yml)
7
- [![Maintainability](https://api.codeclimate.com/v1/badges/9070ea120ceeddbcc1d2/maintainability)](https://codeclimate.com/github/hardpixel/active-similar/maintainability)
7
+ [![Maintainability](https://api.codeclimate.com/v1/badges/741c7fbb7ebb32bc0559/maintainability)](https://codeclimate.com/github/hardpixel/active-similar/maintainability)
8
8
 
9
9
  ## Installation
10
10
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveSimilar
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -22,7 +22,7 @@ module ActiveSimilar
22
22
 
23
23
  define_method(name) do
24
24
  similar = Query.new(scope, through: through, prefix: name)
25
- similar.with(id)
25
+ similar.with(self)
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_similar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2022-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -80,7 +80,7 @@ files:
80
80
  - lib/active_similar/association.rb
81
81
  - lib/active_similar/query.rb
82
82
  - lib/active_similar/version.rb
83
- homepage: https://github.com/hardpixel/active_similar
83
+ homepage: https://github.com/hardpixel/active-similar
84
84
  licenses:
85
85
  - MIT
86
86
  metadata: {}