dialogue 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/Gemfile.lock +1 -1
- data/lib/dialogue/storable.rb +11 -0
- data/lib/dialogue/version.rb +1 -1
- metadata +2 -2
- data/pkg/dialogue-0.0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8b10ba71362c810ec1dc1bef688fdec9cb7869c
|
4
|
+
data.tar.gz: dda480ac58f5f5eff25ca883d939f4714304db9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aec5592e22241aecbc1965ca7be7d50eb3e7ee5c4f8c95a1f8816dfc5c71ada428f2efbed2af0ccf06af0a99518c058c890c70dae8ef000211050b084e80553
|
7
|
+
data.tar.gz: b3762f4955f11f2a8c7e40158fa937fc28b3b7a1dfceec148bb1cb1a85f24882f3f2f9fcced42a0e8d01215917325ae3c3efa10df0985c3403c1b84e09319d99
|
data/.gitignore
ADDED
data/Gemfile.lock
CHANGED
data/lib/dialogue/storable.rb
CHANGED
@@ -8,6 +8,17 @@ module Dialogue
|
|
8
8
|
data.fetch key, default, &block
|
9
9
|
end
|
10
10
|
|
11
|
+
def has_data?(*keys)
|
12
|
+
present = keys.all? { |key| data.has_key?(key) }
|
13
|
+
if present
|
14
|
+
present = keys.all? do |key|
|
15
|
+
!data[key].nil? &&
|
16
|
+
(data[key].respond_to?(:empty?) && !data[key].empty?)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
present
|
20
|
+
end
|
21
|
+
|
11
22
|
def store!(hash)
|
12
23
|
data.merge! hash
|
13
24
|
end
|
data/lib/dialogue/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dialogue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Wright
|
@@ -73,6 +73,7 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
+
- ".gitignore"
|
76
77
|
- ".rspec"
|
77
78
|
- CODE_OF_CONDUCT.md
|
78
79
|
- Gemfile
|
@@ -99,7 +100,6 @@ files:
|
|
99
100
|
- lib/dialogue/template_already_registered_error.rb
|
100
101
|
- lib/dialogue/template_factory.rb
|
101
102
|
- lib/dialogue/version.rb
|
102
|
-
- pkg/dialogue-0.0.1.gem
|
103
103
|
homepage: https://github.com/tatsuio/dialogue
|
104
104
|
licenses:
|
105
105
|
- MIT
|
data/pkg/dialogue-0.0.1.gem
DELETED
Binary file
|