acts_as_hashable 1.1.0.pre.alpha → 1.1.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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/acts_as_hashable/factory.rb +6 -2
- data/lib/acts_as_hashable/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9fd301ccb4d740406de4faa658a77fece8ff4e492569882355227a35276bfd1
|
|
4
|
+
data.tar.gz: d6e3e8c2bbd3a95c5d438da03188d84ee2941409b13c45e536df8a462b0a1195
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e484913fe20a7b5d7fd4afde3778e92b5986d5fae952dfe3b7b32c51a38f1f9e12ca8533c18e6fab1a0d9fad2c191f361a7e38634f92fdeccbc8d3eb604b5e11
|
|
7
|
+
data.tar.gz: bf7ba60f5e6435cf4094ed9199bf3115e58cdbaeb03b24e4ee0aa4778bb510b0b40f7d3f825de11d7852b10fe058d790fb8cb2d2990e2a432225c06c4691246c
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -9,15 +9,19 @@
|
|
|
9
9
|
|
|
10
10
|
module ActsAsHashable
|
|
11
11
|
# This class serves as a singleton that can make mapped acts_as_hashable components.
|
|
12
|
-
# It is important to note that these components *must*
|
|
12
|
+
# It is important to note that these components *must* be acts_as_hashable objects.
|
|
13
13
|
# In order to use you just have to subclass this class and implement
|
|
14
|
-
#
|
|
14
|
+
# a method called 'registry', such as:
|
|
15
15
|
# def registry
|
|
16
16
|
# {
|
|
17
17
|
# 'Table': Table,
|
|
18
18
|
# 'Text': Text
|
|
19
19
|
# }
|
|
20
20
|
# end
|
|
21
|
+
# You can also use the 'register' DSL:
|
|
22
|
+
# register 'some_class_name', SomeClassName
|
|
23
|
+
# or:
|
|
24
|
+
# register 'some_class_name', ->(_key) { SomeClassName }
|
|
21
25
|
module Factory
|
|
22
26
|
extend Forwardable
|
|
23
27
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_hashable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Ruggio
|
|
@@ -173,9 +173,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
173
173
|
version: 2.3.8
|
|
174
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
requirements:
|
|
176
|
-
- - "
|
|
176
|
+
- - ">="
|
|
177
177
|
- !ruby/object:Gem::Version
|
|
178
|
-
version:
|
|
178
|
+
version: '0'
|
|
179
179
|
requirements: []
|
|
180
180
|
rubygems_version: 3.0.1
|
|
181
181
|
signing_key:
|