wit_bot 0.2.1 → 0.2.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: dde5c0de0ce7e5d4de9658ffcb1ba92aefaf4419
4
- data.tar.gz: 715db22fdc8c0abb2856cd76b0f8f5627f2aef1f
3
+ metadata.gz: b8f635d90f3d307a4c42932fd9b1d5a12706e3de
4
+ data.tar.gz: 3729c86e923d5a135bf7dadfd060543b4f495738
5
5
  SHA512:
6
- metadata.gz: e57891cac4c7039e3565716c04520b35700149052f33cffca88d3885a079f611330afaa28a905cb7ec68ccb5e37cb41f68b162ccdd73604ba179590acd253346
7
- data.tar.gz: bc7c18659f0c434b9781db739f7be755f824b09b8ca9068e0aea8edc7fdeb8fa6dd9e19b175d7745bb62c213054f2f999aba9739075478e2eb21bf73c95d5731
6
+ metadata.gz: 9ec78562804b290ece5323a1d6798319c99b1b75c69cdbf0655ab3b9ba96f88ca04068dc5ecec0a63c63bfb59735a39514cd223282a4fe9be07eadfab7bc0bfa
7
+ data.tar.gz: b20aebb47e2f11aeb67a3bb2c314971434d11ecb87c86cf413ce6ff955ac447a495ad88d4abe8608c4a45d1fa9e8258c45ca2ccae71a5d3097f178dfc133c942
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # WitBot
2
2
 
3
- A better [wit.ai] client for Ruby. Written in Ruby.
3
+ A better [wit.ai] client for Ruby. Written in Ruby. With an api for creating bots.
4
+
5
+ Pretty Awesome™
4
6
 
5
7
  ## Installation
6
8
 
@@ -1,3 +1,3 @@
1
1
  module WitBot
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
data/wit_bot.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['Ben (@penne12_)']
10
10
  spec.email = ['ben@bensites.com']
11
11
 
12
- spec.summary = %q{A better wit.ai client for Ruby. Written in Ruby.}
13
- spec.description = `cat README.md`
12
+ spec.summary = %q{A better wit.ai client for Ruby. Written in Ruby. With an api for creating bots.}
13
+ spec.description = %q{A better wit.ai client for Ruby. Written in Ruby. With an api for creating bots. It's Pretty Awesome™}
14
14
  spec.homepage = 'http://bensites.com/wit_bot'
15
15
  spec.license = 'MIT'
16
16
 
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
 
24
24
  spec.add_dependency "http", "~> 1.0.2"
25
- spec.add_dependency "activesupport", "~> 4.2.6"
25
+ spec.add_dependency "activesupport", ">= 4"
26
26
  spec.add_dependency "require_all", "~> 1.3.3"
27
27
  spec.add_dependency "awesome_print", "~> 1.6.1"
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wit_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben (@penne12_)
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 4.2.6
61
+ version: '4'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 4.2.6
68
+ version: '4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: require_all
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -94,102 +94,8 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.6.1
97
- description: |-
98
- # WitBot
99
-
100
- A better [wit.ai] client for Ruby. Written in Ruby.
101
-
102
- ## Installation
103
-
104
- Add this line to your application's Gemfile:
105
-
106
- ```ruby
107
- gem 'wit_bot'
108
- ```
109
-
110
- And then execute:
111
-
112
- $ bundle
113
-
114
- Or install it yourself as:
115
-
116
- $ gem install wit_bot
117
-
118
- ## Usage
119
-
120
- Start a REPL:
121
-
122
- ```bash
123
- $ wit
124
- ```
125
-
126
- or use with STDIO
127
-
128
- ```bash
129
- $ wit --input --json
130
- ```
131
-
132
- or use programmatically
133
-
134
- 1. Configure WitBot with your access token:
135
-
136
- ```ruby
137
- WitBot.configure do |c|
138
- c.token = ENV['WIT_AI_TOKEN']
139
- end
140
- ```
141
-
142
- 2. Create a message:
143
-
144
- ```ruby
145
- message = WitBot.create_message 'This is a cool test'
146
- ```
147
-
148
- 3. And send it:
149
-
150
- ```ruby
151
- message.send
152
- ```
153
-
154
- 4. Get the outcome:
155
-
156
- ```ruby
157
- outcome = message.outcome
158
- ```
159
-
160
- 5. Get the intent and the entities:
161
-
162
- ```ruby
163
- intent = outcome.intent #=> WitBot::WitModel::Intent
164
- entities = outcome.entities #=> {role => #<WitBot::WitModel::Entity>}
165
- ```
166
-
167
- 6. Get the intent name:
168
-
169
- ```ruby
170
- intent.name #=> "Test"
171
- ```
172
-
173
- More information on the [GitHub wiki][wiki].
174
-
175
- ## Development
176
-
177
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
178
-
179
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
180
-
181
- ## Contributing
182
-
183
- Bug reports and pull requests are welcome on GitHub at https://github.com/penne12/wit_bot. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
184
-
185
-
186
- ## License
187
-
188
- The gem is available as open source under the terms of the [MIT License].
189
-
190
- [wit.ai]: https://wit.ai/
191
- [wiki]: https://github.com/penne12/wit_bot/wiki
192
- [MIT License]: http://opensource.org/licenses/MIT
97
+ description: A better wit.ai client for Ruby. Written in Ruby. With an api for creating
98
+ bots. It's Pretty Awesome™
193
99
  email:
194
100
  - ben@bensites.com
195
101
  executables:
@@ -265,5 +171,6 @@ rubyforge_project:
265
171
  rubygems_version: 2.4.5
266
172
  signing_key:
267
173
  specification_version: 4
268
- summary: A better wit.ai client for Ruby. Written in Ruby.
174
+ summary: A better wit.ai client for Ruby. Written in Ruby. With an api for creating
175
+ bots.
269
176
  test_files: []