rasa_core 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +43 -0
- data/LICENSE.txt +21 -0
- data/README.md +128 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/rasa_core.rb +8 -0
- data/lib/rasa_core/client.rb +95 -0
- data/lib/rasa_core/response_formatter.rb +11 -0
- data/lib/rasa_core/typhoeus_client.rb +14 -0
- data/lib/rasa_core/version.rb +3 -0
- data/rasa_core.gemspec +40 -0
- metadata +132 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7c09eff7cf97b81b2cc360650293f1ad8b20aab0e81b936310bd94a7a1004cdf
|
4
|
+
data.tar.gz: 1e5138e0d841aae0538c5c67cef5bbfccfbb1bd2c7265c0a0af7407b8d4de29a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 487403bc36224493a4b922a5e192c529675259028ed6c7006056c8e12194a47bf4edebefc2a3df22b57e91358311f64a7c11c0d859a79d5e78ff5e219e36dd6e
|
7
|
+
data.tar.gz: 7dbee14090c93a94897eb7948efe7265d44de208233617a926e00af32e125378b265fce71599b843020b64e97719e0db11065950a5df78c6e5c79aa5511fc370
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at bkuliyev@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
rasa_core (0.1.0)
|
5
|
+
json (~> 1.8)
|
6
|
+
typhoeus (~> 1.3)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
diff-lcs (1.3)
|
12
|
+
ethon (0.12.0)
|
13
|
+
ffi (>= 1.3.0)
|
14
|
+
ffi (1.10.0)
|
15
|
+
json (1.8.6)
|
16
|
+
rake (10.5.0)
|
17
|
+
rspec (3.8.0)
|
18
|
+
rspec-core (~> 3.8.0)
|
19
|
+
rspec-expectations (~> 3.8.0)
|
20
|
+
rspec-mocks (~> 3.8.0)
|
21
|
+
rspec-core (3.8.0)
|
22
|
+
rspec-support (~> 3.8.0)
|
23
|
+
rspec-expectations (3.8.2)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.8.0)
|
26
|
+
rspec-mocks (3.8.0)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.8.0)
|
29
|
+
rspec-support (3.8.0)
|
30
|
+
typhoeus (1.3.1)
|
31
|
+
ethon (>= 0.9.0)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
bundler (~> 1.16)
|
38
|
+
rake (~> 10.0)
|
39
|
+
rasa_core!
|
40
|
+
rspec (~> 3.0)
|
41
|
+
|
42
|
+
BUNDLED WITH
|
43
|
+
1.16.5
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 TODO: Write your name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
# RasaCore
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rasa_core`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'rasa_core'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install rasa_core
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
```
|
26
|
+
require 'rasa_core'
|
27
|
+
|
28
|
+
client = RasaCore::Client.new(server:'172.18.0.3', port:5005)
|
29
|
+
client.check_health
|
30
|
+
#=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>"hello from Rasa Core: 0.11.3"}
|
31
|
+
```
|
32
|
+
|
33
|
+
The response is always a hash having five key/values
|
34
|
+
* `success` - boolean true or false
|
35
|
+
* `timed_out` - boolean true or false
|
36
|
+
* `code` - HTTP response code
|
37
|
+
* `return_message` - a return message in could not get an http response
|
38
|
+
* `body` - body response, may be in a simple string form, Ruby `OpenStruct` object, or a JSON format. By default body is an `OpenStruct` object.
|
39
|
+
|
40
|
+
The `check_health` methods return a simple **'Hello'** string if Core is running.
|
41
|
+
|
42
|
+
```
|
43
|
+
client.version
|
44
|
+
#=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>#<OpenStruct minimum_compatible_version="0.11.0", version="0.11.3">}
|
45
|
+
```
|
46
|
+
```
|
47
|
+
client.status
|
48
|
+
#=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>#<OpenStruct is_ready=true, model_fingerprint="12c788db30b74a5a8eb88a640aea9ce6">}
|
49
|
+
```
|
50
|
+
|
51
|
+
We can change the response format
|
52
|
+
```
|
53
|
+
client.response_format = :json
|
54
|
+
client.version
|
55
|
+
#=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>"{\"minimum_compatible_version\":\"0.11.0\",\"version\":\"0.11.3\"}\n"}
|
56
|
+
client.status
|
57
|
+
#=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>"{\"is_ready\":true,\"model_fingerprint\":\"12c788db30b74a5a8eb88a640aea9ce6\"}\n"}
|
58
|
+
```
|
59
|
+
|
60
|
+
To send a message to Core
|
61
|
+
```
|
62
|
+
client.send_message(message:'hello')
|
63
|
+
#=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>[#<OpenStruct recipient_id="default", text="Greetings!">]}
|
64
|
+
```
|
65
|
+
|
66
|
+
We can also specify a sender id when sending a message
|
67
|
+
```
|
68
|
+
client.send_message(message:'hello', sender_id: 'bayram')
|
69
|
+
=> {:success=>true, :timed_out=>false, :return_message=>"No error", :code=>200, :body=>[#<OpenStruct recipient_id="bayram", text="Hi there, friend!">]}
|
70
|
+
```
|
71
|
+
|
72
|
+
Set and access slots as following
|
73
|
+
```
|
74
|
+
client.append_slot(sender_id: 'bayram_123', name: "name", value: 'bayram')
|
75
|
+
client.append_slot(sender_id: 'bayram_123', name: "email", value: 'bkuliyev@gmail.com')
|
76
|
+
resp = client.conversation_tracker(sender_id: 'bayram_123')
|
77
|
+
resp[:body].slots.email
|
78
|
+
# => "bkuliyev@gmail.com"
|
79
|
+
resp[:body].slots.name
|
80
|
+
# => "bayram"
|
81
|
+
```
|
82
|
+
|
83
|
+
Assume that core works on `172.18.0.3:5005`. Let's chat with our bot.
|
84
|
+
```
|
85
|
+
client = RasaCore::Client.new(server:'172.18.0.3', port:5005)
|
86
|
+
|
87
|
+
resp = client.send_message(sender_id: 'bayram_123', message:'Hi')
|
88
|
+
puts "Bot says: #{resp[:body].first.text}"
|
89
|
+
# => Bot says: Hi!
|
90
|
+
resp = client.send_message(sender_id: 'bayram_123', message:'Let us chat')
|
91
|
+
puts "Bot says: #{resp[:body].first.text}"
|
92
|
+
# => Bot says: Sure. I'd be happy to. What's up?
|
93
|
+
```
|
94
|
+
|
95
|
+
## Client methods
|
96
|
+
#### check_health
|
97
|
+
Simple sends a GET request `http://<server>:<port>/` and gets a `hello` response in case the core server is running.
|
98
|
+
#### status
|
99
|
+
Receives information about the currently loaded agent.
|
100
|
+
#### version
|
101
|
+
Receives metadata about the running Core instance.
|
102
|
+
#### send_message(args={})
|
103
|
+
Sends a user message <br>
|
104
|
+
Arguments: `sender_id`, `message`<br>
|
105
|
+
For example `client.send_message(sender_id: 'bkuliyev@gmail.com', message: 'Hello')`
|
106
|
+
#### conversation_tracker(args={})
|
107
|
+
Retrieve a conversations tracker
|
108
|
+
Arguments: `sender_id`, `include_events`
|
109
|
+
#### append_slot(args={})
|
110
|
+
Retrieve a conversations tracker<br>
|
111
|
+
Arguments: `sender_id`, `include_events`, `timestamp`, `name`, `value`
|
112
|
+
#### reset_slots(args={})
|
113
|
+
|
114
|
+
## Development
|
115
|
+
|
116
|
+
Not all functionalities are implemented yet. I will update the gem gradually by adding other methods to interact with Rasa Core. I'd also be glad to get feedback and suggestions.
|
117
|
+
|
118
|
+
## Contributing
|
119
|
+
|
120
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rasa_core. 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.
|
121
|
+
|
122
|
+
## License
|
123
|
+
|
124
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
125
|
+
|
126
|
+
## Code of Conduct
|
127
|
+
|
128
|
+
Everyone interacting in the RasaCore project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rasa_core/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "rasa_core"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/rasa_core.rb
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
class RasaCore::Client
|
2
|
+
include RasaCore::TyphoeusClient
|
3
|
+
include RasaCore::ResponseFormatter
|
4
|
+
|
5
|
+
attr_accessor :response_format
|
6
|
+
|
7
|
+
def initialize(args={})
|
8
|
+
@server = args[:server]
|
9
|
+
@port = args[:port]
|
10
|
+
end
|
11
|
+
|
12
|
+
def check_health
|
13
|
+
build_response(run_request(url: build_url), :no_format)
|
14
|
+
end
|
15
|
+
|
16
|
+
def version
|
17
|
+
response = run_request(url: build_url(path: 'version'))
|
18
|
+
build_response(response)
|
19
|
+
end
|
20
|
+
|
21
|
+
def status
|
22
|
+
response = run_request(url: build_url(path: 'status'))
|
23
|
+
build_response(response)
|
24
|
+
end
|
25
|
+
|
26
|
+
def send_message(args={})
|
27
|
+
path = "webhooks/rest/webhook"
|
28
|
+
body = {sender: args[:sender_id] || 'default', message: args[:message]}
|
29
|
+
response = run_request(url: build_url(path: path), body: body, method: 'post')
|
30
|
+
build_response(response)
|
31
|
+
end
|
32
|
+
|
33
|
+
def conversation_tracker(args={})
|
34
|
+
path = ['conversations', args[:sender_id] || "default", 'tracker'].join('/')
|
35
|
+
query = {include_events: args[:include_events] || "AFTER_RESTART"}
|
36
|
+
url = build_url(path: path, query: query)
|
37
|
+
build_response(run_request(url: url))
|
38
|
+
end
|
39
|
+
|
40
|
+
def append_slot(args={})
|
41
|
+
body = {
|
42
|
+
event: 'slot',
|
43
|
+
timestamp: args[:timestamp],
|
44
|
+
name: args[:name],
|
45
|
+
value: args[:value]}
|
46
|
+
append_event_to_tracker(args, body)
|
47
|
+
end
|
48
|
+
|
49
|
+
def reset_slots(args={})
|
50
|
+
body = {event: 'reset_slots', timestamp: args[:timestamp]}
|
51
|
+
append_event_to_tracker(args, body)
|
52
|
+
end
|
53
|
+
|
54
|
+
def append_action(args={})
|
55
|
+
body = {
|
56
|
+
event: 'action',
|
57
|
+
timestamp: args[:timestamp],
|
58
|
+
name: args[:name],
|
59
|
+
policy: args[:policy],
|
60
|
+
confidence: args[:confidence]}
|
61
|
+
append_event_to_tracker(args, body)
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
private
|
66
|
+
def build_url(args={})
|
67
|
+
"#{@server}:#{@port}/#{args[:path]}#{build_url_query(args[:query])}"
|
68
|
+
end
|
69
|
+
|
70
|
+
def build_url_query(query)
|
71
|
+
q = URI.encode_www_form(query || {})
|
72
|
+
q.empty? ? "" : '?'+q
|
73
|
+
end
|
74
|
+
|
75
|
+
|
76
|
+
def build_response(response, frmt=nil)
|
77
|
+
body = response.body
|
78
|
+
body = format_response_body(body, frmt || self.response_format) if response.success?
|
79
|
+
|
80
|
+
{
|
81
|
+
success: response.success?,
|
82
|
+
timed_out: response.timed_out?,
|
83
|
+
return_message: response.return_message,
|
84
|
+
code: response.code,
|
85
|
+
body: body
|
86
|
+
}
|
87
|
+
end
|
88
|
+
|
89
|
+
def append_event_to_tracker(args={}, body={})
|
90
|
+
path = ['conversations', args[:sender_id] || "default", 'tracker/events'].join('/')
|
91
|
+
query = {include_events: args[:include_events] || "AFTER_RESTART"}
|
92
|
+
response = run_request(url: build_url(path: path), query: query, body: body, method: 'post')
|
93
|
+
build_response(response)
|
94
|
+
end
|
95
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module RasaCore
|
2
|
+
module TyphoeusClient
|
3
|
+
def run_request(args={})
|
4
|
+
headers = {'Content-Type': 'application/json'}.merge(args[:headers] || {})
|
5
|
+
request = Typhoeus::Request.new(args[:url],
|
6
|
+
method: args[:method] || 'get',
|
7
|
+
body: args[:body].to_json,
|
8
|
+
headers: headers)
|
9
|
+
|
10
|
+
request.run
|
11
|
+
request.response
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/rasa_core.gemspec
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "rasa_core/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "rasa_core"
|
8
|
+
spec.version = RasaCore::VERSION
|
9
|
+
spec.authors = ["Bayram"]
|
10
|
+
spec.email = ["bkuliyev@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{This gem is a simple wrapper that allows to interact with Rasa Core.}
|
13
|
+
spec.homepage = "https://github.com/fade2black/rasa_core"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
# Specify which files should be added to the gem when it is released.
|
26
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
27
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
28
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
37
|
+
spec.add_dependency "json", "~> 1.8"
|
38
|
+
spec.add_dependency "typhoeus", "~> 1.3"
|
39
|
+
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,132 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rasa_core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bayram
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-02-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: json
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.8'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: typhoeus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.3'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.3'
|
83
|
+
description:
|
84
|
+
email:
|
85
|
+
- bkuliyev@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- CODE_OF_CONDUCT.md
|
94
|
+
- Gemfile
|
95
|
+
- Gemfile.lock
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/console
|
100
|
+
- bin/setup
|
101
|
+
- lib/rasa_core.rb
|
102
|
+
- lib/rasa_core/client.rb
|
103
|
+
- lib/rasa_core/response_formatter.rb
|
104
|
+
- lib/rasa_core/typhoeus_client.rb
|
105
|
+
- lib/rasa_core/version.rb
|
106
|
+
- rasa_core.gemspec
|
107
|
+
homepage: https://github.com/fade2black/rasa_core
|
108
|
+
licenses:
|
109
|
+
- MIT
|
110
|
+
metadata:
|
111
|
+
allowed_push_host: https://rubygems.org
|
112
|
+
post_install_message:
|
113
|
+
rdoc_options: []
|
114
|
+
require_paths:
|
115
|
+
- lib
|
116
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
requirements: []
|
127
|
+
rubyforge_project:
|
128
|
+
rubygems_version: 2.7.7
|
129
|
+
signing_key:
|
130
|
+
specification_version: 4
|
131
|
+
summary: This gem is a simple wrapper that allows to interact with Rasa Core.
|
132
|
+
test_files: []
|