ibm-watson-ruby 0.2.0 → 0.2.1

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: 4195043f34b44ae8e6104626cee4fef3f7a7e8f9
4
- data.tar.gz: 6e3cf39273d65c22a80cfee04f106c9e299809ee
3
+ metadata.gz: 5b0c86b0b88c44a474376bd43b2e110b7754eaf6
4
+ data.tar.gz: 3893a7d6cde18e060f477c3ca86e0c4fb05934d1
5
5
  SHA512:
6
- metadata.gz: '08675ae5595f2dadb3341e3b7e26d892007c660e3eb204e3be4965511465c0923738999f519c527b8b4ba27a15ede433e54f919ca82fe260488994dd4f26c3f4'
7
- data.tar.gz: 46a9e4b2a0f4da53b779e38dc6d5525a2f8c0aff927eb0991c6b8e2ee6ca9c20a6141f0a0fb358c0bbafb08161b8e1be2ebad6dd2e8f5f0ca0ddd197462e93df
6
+ metadata.gz: 10a8affa0eebe3ee715faea64bb6971ffe5510792c52dc778f28bebcf9dde7276c067d634275cb1d82462d5ad29903171f5abb247761089cc8e8f3609489dfd9
7
+ data.tar.gz: fa69dfa4a1759f60ff34ca9749aabc11664f273b0650b9e48bd658031289290a0e6a4d01abd848a88a860d9a4baf9cd675984dac9c3eba4fcd816b7bbd12cbd5
data/Gemfile CHANGED
@@ -5,7 +5,6 @@ gemspec
5
5
 
6
6
  gem 'http'
7
7
  gem 'active_attr'
8
- gem 'active_attr_extended'
9
8
 
10
9
  group :test, :development do
11
10
  gem 'dotenv'
@@ -1,19 +1,19 @@
1
1
  module IBMWatson
2
2
  module Conversation
3
3
  class Result < IBMWatson::BaseModel
4
- attribute :intents,
5
- type: [::IBMWatson::Conversation::IntentResult],
6
- typecaster: lambda { |values|
7
- values.map do |value|
8
- ::IBMWatson::Conversation::IntentResult.new(value)
9
- end
10
- }
11
4
  attribute :entities
12
5
  attribute :input
13
- attribute :output, type: Hash
14
- attribute :context, type: Hash
6
+ attribute :output
7
+ attribute :context
15
8
  attribute :alternate_intents
16
9
 
10
+ def intents=(values)
11
+ @intents = values.map do |value|
12
+ ::IBMWatson::Conversation::IntentResult.new(value)
13
+ end
14
+ end
15
+ attr_reader :intents
16
+
17
17
  def as_json(*)
18
18
  super.merge({
19
19
  "intents" => intents.as_json
@@ -1,3 +1,3 @@
1
1
  module IBMWatson
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm-watson-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Whillock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http