sitepress-rails 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sitepress/model.rb +2 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afddca0543c4d48b1396e4ab46caba5cbab0e061a1cf40e8e0a2acc5fb1d2888
4
- data.tar.gz: 34ae7a93bd7d5ed9fb0a5de0ab56a7633542a9e5f729f035f1680e86886ce9b5
3
+ metadata.gz: 6c58152c6114a8b56271090b027096f9eb411e4d2e6eedb4811352b831d4be73
4
+ data.tar.gz: b6535af5b029475d05e4e2fc9a3354a41b6f8d33d2533eddd1119f8f080e7409
5
5
  SHA512:
6
- metadata.gz: b795c53a066ddf2c05f101ce344f95bd1cc474688c58ee31bd5183e6efed805e77c7fb2f9775d881a08343ee26ef87cd6e6525cab61bec2bbdaaf576d21aa25f
7
- data.tar.gz: 35d52136f43f3aa6337eadeaf4d605f256166ccf777ad34b94a75b4fef8694b20d89bc5d968101ce224f08ee859653a0fcb86f55635453971bc66b746c7ab922
6
+ metadata.gz: 75ebd2f408e8510263741b33052db92da2b91510bad929cc5f1770134666dca9ee08bccf0b0ae4bad668f8683209a4ee148e5fd68ce5240c73b46ac7a8b48338
7
+ data.tar.gz: 9aa98bcba2c6f0332e1c5e7ef71986c40d3cb3a84cd8e97efc32fe811a6e9ff557384fe3e89fa4dbcbe4fc1852a97ad5cd26945b8178bcd4de0bba03469683ac
@@ -24,7 +24,8 @@ module Sitepress
24
24
  to: :all
25
25
 
26
26
  # Defines a class method that may be called later to return a
27
- # collection of objects.
27
+ # collection of objects. The default glob, for example, is named `:all`,
28
+ # which defines `MyModel.all` on the class.
28
29
  def collection(name = Models::Collection::DEFAULT_NAME, glob:, **kwargs)
29
30
  define_singleton_method name do
30
31
  self.glob glob, **kwargs
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitepress-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-rails
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.1.1
61
+ version: 3.1.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 3.1.1
68
+ version: 3.1.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: railties
71
71
  requirement: !ruby/object:Gem::Requirement