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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 782d987d83b291678823cba9bbebe8bfcd2262d5
4
- data.tar.gz: d9cac613c33b6e0ed812eed85fb70a23dcf121c9
3
+ metadata.gz: c8b10ba71362c810ec1dc1bef688fdec9cb7869c
4
+ data.tar.gz: dda480ac58f5f5eff25ca883d939f4714304db9f
5
5
  SHA512:
6
- metadata.gz: 19af87074f0f56960f44a63ce4c08129ccadf63531febfd8d504a920ce765193df72cd9414560eb50c5ceac8269c45802e6238f7f7fc3dcf40f3f5d7f1b9208c
7
- data.tar.gz: a28a42de8f67141897cc1b4707a2eb41ca2e59b9f05df66e27553a0fbd2df684e666f6e6c2a878384fbedfbae393b794369095920850b55e76f23ef1af83247a
6
+ metadata.gz: 6aec5592e22241aecbc1965ca7be7d50eb3e7ee5c4f8c95a1f8816dfc5c71ada428f2efbed2af0ccf06af0a99518c058c890c70dae8ef000211050b084e80553
7
+ data.tar.gz: b3762f4955f11f2a8c7e40158fa937fc28b3b7a1dfceec148bb1cb1a85f24882f3f2f9fcced42a0e8d01215917325ae3c3efa10df0985c3403c1b84e09319d99
@@ -0,0 +1,4 @@
1
+ tmp
2
+ pkg
3
+ .bundle
4
+ .DS_Store
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dialogue (0.0.2)
4
+ dialogue (0.0.3)
5
5
  slack-ruby-client
6
6
 
7
7
  GEM
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Dialogue
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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
Binary file