dialogue 0.0.1 → 0.0.2

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: a27497ea1b044be9cba84022a78afdd74a8aca42
4
- data.tar.gz: 2888b75a3c090d382fe5756723b69b08dff7aa62
3
+ metadata.gz: 782d987d83b291678823cba9bbebe8bfcd2262d5
4
+ data.tar.gz: d9cac613c33b6e0ed812eed85fb70a23dcf121c9
5
5
  SHA512:
6
- metadata.gz: de6cda0344e98d34b5f2f6c73f0aa53086becb97d125f6522933228980c56223bade77720ffd70329b62e15449548663b3c09f9fb306bc9055531e43489a8cb4
7
- data.tar.gz: 58c4e571652b3200200cb6b33e702f625d53b4530227a68fa8115b2fe337210a7129b0ef02404217090b9952d65d39c0cfcc1c2d08bbb91c277b58f285f563a7
6
+ metadata.gz: 19af87074f0f56960f44a63ce4c08129ccadf63531febfd8d504a920ce765193df72cd9414560eb50c5ceac8269c45802e6238f7f7fc3dcf40f3f5d7f1b9208c
7
+ data.tar.gz: a28a42de8f67141897cc1b4707a2eb41ca2e59b9f05df66e27553a0fbd2df684e666f6e6c2a878384fbedfbae393b794369095920850b55e76f23ef1af83247a
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dialogue (0.0.1)
4
+ dialogue (0.0.2)
5
5
  slack-ruby-client
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- activesupport (5.0.0.1)
10
+ activesupport (5.1.1)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (~> 0.7)
13
13
  minitest (~> 5.1)
14
14
  tzinfo (~> 1.1)
15
- concurrent-ruby (1.0.4)
15
+ concurrent-ruby (1.0.5)
16
16
  diff-lcs (1.2.5)
17
17
  faraday (0.9.2)
18
18
  multipart-post (>= 1.2, < 3)
@@ -20,9 +20,9 @@ GEM
20
20
  faraday (>= 0.7.4, < 0.10)
21
21
  gli (2.13.4)
22
22
  hashie (3.4.6)
23
- i18n (0.8.0)
23
+ i18n (0.8.4)
24
24
  json (2.0.2)
25
- minitest (5.10.1)
25
+ minitest (5.10.2)
26
26
  multipart-post (2.0.0)
27
27
  rake (12.0.0)
28
28
  rspec (3.5.0)
@@ -46,10 +46,10 @@ GEM
46
46
  hashie
47
47
  json
48
48
  websocket-driver
49
- thread_safe (0.3.5)
50
- tzinfo (1.2.2)
49
+ thread_safe (0.3.6)
50
+ tzinfo (1.2.3)
51
51
  thread_safe (~> 0.1)
52
- websocket-driver (0.6.4)
52
+ websocket-driver (0.6.5)
53
53
  websocket-extensions (>= 0.1.0)
54
54
  websocket-extensions (0.1.2)
55
55
 
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Dialogue
2
2
  ========
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/dialogue.svg)](https://badge.fury.io/rb/dialogue)
5
+
4
6
  [ ![Codeship Status for tatsuio/dialogue](https://app.codeship.com/projects/9afef670-f132-0134-a265-7e8cdab40218/status?branch=master)](https://app.codeship.com/projects/209305)
5
7
 
6
8
  ## DESCRIPTION
@@ -26,6 +26,7 @@ module Dialogue
26
26
  @user_id = message.user_id
27
27
  end
28
28
 
29
+ @data = options.delete(:data)
29
30
  @options = options.freeze
30
31
  end
31
32
 
@@ -1,6 +1,6 @@
1
1
  module Dialogue
2
2
  class ConversationOptionsValidator
3
- VALID_OPTIONS = [:access_token, :author_id].freeze
3
+ VALID_OPTIONS = [:access_token, :author_id, :data].freeze
4
4
 
5
5
  def validate(options)
6
6
  errors = []
@@ -8,7 +8,7 @@ module Dialogue
8
8
  guard_options! options
9
9
 
10
10
  @message = message
11
- @options = options.freeze
11
+ @options = options
12
12
  end
13
13
 
14
14
  def channel_id
@@ -1,3 +1,5 @@
1
+ require "delegate"
2
+
1
3
  module Dialogue
2
4
  module MessageDecorators
3
5
  class Slack < SimpleDelegator
@@ -1,3 +1,3 @@
1
1
  module Dialogue
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dialogue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Wright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slack-ruby-client
@@ -99,6 +99,7 @@ files:
99
99
  - lib/dialogue/template_already_registered_error.rb
100
100
  - lib/dialogue/template_factory.rb
101
101
  - lib/dialogue/version.rb
102
+ - pkg/dialogue-0.0.1.gem
102
103
  homepage: https://github.com/tatsuio/dialogue
103
104
  licenses:
104
105
  - MIT
@@ -119,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
120
  version: '0'
120
121
  requirements: []
121
122
  rubyforge_project:
122
- rubygems_version: 2.5.1
123
+ rubygems_version: 2.5.2
123
124
  signing_key:
124
125
  specification_version: 4
125
126
  summary: A DSL for defining conversations for Slack.