whowas 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 8f18c072668284649883a05ad1bbebe28c610a3b
4
- data.tar.gz: 8f9e494556ac732fafbc724f3e2c4c1365733bd2
3
+ metadata.gz: d03b02edd43d62b2903b0bbed69fe8e60c3f3b1a
4
+ data.tar.gz: 1c509454d87203a99542c2bb1dda48b3ff3e021e
5
5
  SHA512:
6
- metadata.gz: 9446751954db0d0894d12f15ebd33fe07a9894f0283d482c49f9bac472ea6590c81bb16769d9d3d497032b885893608542a32ddaa8845d379c731636fb09a1f3
7
- data.tar.gz: f8f7fdda8c3b564c8ddcc8d6b68f128d883fb80ecb069e8fed6076688f5fdebab31b75372f87d68a165bfa22715940ead1c139b8427c1e9a32d218391de4ba6b
6
+ metadata.gz: 858a0a0ddc2bce495697d39ee776d5ab52d7f6d408c979b87a3befe2620c4ea66cf1d1944b6ddcb821c8e9ae65d19750d84b07e35c7df008edf9b7df56c406c9
7
+ data.tar.gz: 7b10b6edf7823bb1285a8c37126b236af909de822844836de2c10537ce80463c20d11f7dcd841006a4a6d4076b0423b58b8a7f58a30d3166206909bc4034e720
@@ -1,12 +1,10 @@
1
1
  module Whowas
2
- module Searchable
3
- @@adapter = nil
4
-
2
+ module Searchable
5
3
  # The including class *must* set the adapter class in a class constant.
6
4
  def adapter
7
- @@adapter || (raise Errors::SubclassResponsibility)
5
+ self.class.const_get(:ADAPTER) || (raise Errors::SubclassResponsibility)
8
6
  end
9
-
7
+
10
8
  # extend the including class with the searchable sub-modules
11
9
  def self.included klass
12
10
  klass.class_eval do
@@ -1,3 +1,3 @@
1
1
  module Whowas
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whowas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jess Frisch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2016-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleware
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.4.8
183
+ rubygems_version: 2.5.1
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Match an IP address and timestamp to a username.