iii_api 0.0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: eb18405c35a1d62c8da02c1dc0fe69ecfe28cbe8
4
+ data.tar.gz: 369d11ac9ffa68436cbc96453473589fb180260d
5
+ SHA512:
6
+ metadata.gz: 7d642dce1b9a77c85db109bd2a4c7fae7ddb8031727d21a30b32441e582a8a73894b17343834a9072c28e0e5a35584e89204571a205f5670e4283f413aba8c43
7
+ data.tar.gz: 4eafc8ad767c4bb9b3710d72211c954bfc294ad6375db7e46e44bd606f6e8ace5d1b634d974b9a5448494f3b12e255cecc792f65c5f5fdb25cdaba56ff9486fa
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
@@ -0,0 +1 @@
1
+ iii_api_gem
@@ -0,0 +1 @@
1
+ ruby-2.2-head
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in iii_api.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Andrey Grigorenko
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ # IiiApi
2
+
3
+ Simple ruby gem for using iii.ru (russian speaking bot)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'iii_api'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install iii_api
18
+
19
+ ## Usage
20
+
21
+ Create and customise new bot at iii.ru, save it's unique id from url (e.g. `6de4ced8-434b-4803-8b46-32a64b92eb8a`)
22
+
23
+ Initialize new chat room with your bot id and some unique id:
24
+
25
+ bot = IiiApi::Bot.new('6de4ced8-434b-4803-8b46-32a64b92eb8a', 'some-valid-uri-as-chat-id')
26
+
27
+ You can now access your iii.ru chat id as `bot.chat_id`
28
+
29
+ If you want to reuse it later, you can save it and initialize bot with it:
30
+
31
+ save_id_somewhere = bot1.chat_id
32
+ ...
33
+ bot2 = IiiApi::Bot.new(save_id_somewhere)
34
+
35
+ Finally, just call the `ask` method with your message and receive answer:
36
+
37
+ bot.ask('Как дела?') # 'Пасиб. Нормально. Ты-то как?'
38
+
39
+ You may want to sanitize returned value, as sometimes it contains tags. Just use some third party libraries for this.
40
+ For example: `ActionView::Base.full_sanitizer.sanitize(returned_string)`
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it ( https://github.com/GriwMF/iii_api/fork )
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'iii_api/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'iii_api'
8
+ spec.version = IiiApi::VERSION
9
+ spec.authors = ['Andrey Grigorenko']
10
+ spec.email = ['learningisalife@gmail.com']
11
+ spec.summary = %q{Simple ruby api for using iii.ru bot}
12
+ spec.homepage = 'https://github.com/GriwMF/iii_api'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_development_dependency 'bundler', '~> 1.6'
21
+ spec.add_development_dependency 'rake'
22
+ spec.add_development_dependency 'rspec'
23
+ spec.add_development_dependency 'webmock'
24
+ spec.add_development_dependency 'vcr'
25
+ spec.add_runtime_dependency 'faraday'
26
+ end
@@ -0,0 +1,8 @@
1
+ require 'iii_api/version'
2
+ require 'iii_api/bot'
3
+ require 'json'
4
+ require 'base64'
5
+ require 'faraday'
6
+
7
+ module IiiApi
8
+ end
@@ -0,0 +1,36 @@
1
+ module IiiApi
2
+ class Bot
3
+ KEY = 'some very-very long string without any non-latin characters due to different string representations inside '\
4
+ 'of variable programming languages'
5
+
6
+ attr_reader :chat_id
7
+
8
+ def initialize(bot_id, chat_id = nil)
9
+ @chat_id = if chat_id
10
+ encrypted_id = Faraday.get("http://iii.ru/api/2.0/json/Chat.init/#{bot_id}/#{chat_id}").body
11
+ JSON.parse(Base64.decode64(xor_crypt(Base64.decode64(encrypted_id), KEY)))['result']['cuid']
12
+ else
13
+ bot_id
14
+ end
15
+ end
16
+
17
+ def ask(message)
18
+ request = '["' << @chat_id << '","' << message << '"]'
19
+ encrypted_request = Base64.encode64(xor_crypt(Base64.encode64(request), KEY))
20
+
21
+ encrypted_response = Faraday.post('http://iii.ru/api/2.0/json/Chat.request') do |req|
22
+ req.body = encrypted_request
23
+ end
24
+ response = Base64.decode64(xor_crypt(Base64.decode64(encrypted_response.body), KEY))
25
+
26
+ JSON.parse(response)['result']['text']['value']
27
+ end
28
+
29
+ private
30
+
31
+ def xor_crypt(string, key)
32
+ key = key.unpack('C*')
33
+ string.each_byte.with_index.map { |byte, index| byte ^ key[index % key.size] }.pack('C*')
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,3 @@
1
+ module IiiApi
2
+ VERSION = "0.0.1.1"
3
+ end
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://iii.ru/api/2.0/json/Chat.request
6
+ body:
7
+ encoding: US-ASCII
8
+ string: |
9
+ JBYnCW0xPEEjai9UPxAQFiE6Llg/ICNcNCBtAzAZLVs4NxEMIAN1GSAqeFw4
10
+ DiMCeicPCD4iLyUIBjBXbkUpTxNfbDA4EgImRVUiNQ86GEJUZA==
11
+ headers:
12
+ User-Agent:
13
+ - Faraday v0.9.0
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Fri, 20 Mar 2015 14:42:41 GMT
29
+ Content-Type:
30
+ - application/x-json-encrypted
31
+ Content-Length:
32
+ - '688'
33
+ X-Powered-By:
34
+ - PHP/5.4.36-1~dotdeb.1
35
+ Expires:
36
+ - Mon, 26 Jul 1997 05:00:00 GMT
37
+ Cache-Control:
38
+ - no-cache, must-revalidate
39
+ Pragma:
40
+ - no-cache
41
+ Last-Modified:
42
+ - Mon, 26 Jul 2027 05:00:00 GMT
43
+ X-Cache:
44
+ - MISS from dpk-proxy
45
+ X-Cache-Lookup:
46
+ - MISS from dpk-proxy:3128
47
+ Connection:
48
+ - keep-alive
49
+ body:
50
+ encoding: UTF-8
51
+ string: FhYnHHouK0MbZScMPRdTBQspMRQXNztfCx5qRTAjEF4vJ2lXJxVYXyIqfBQ7GBFfbSc5Gz8nG0UoNiIQKSMdETkrcR4mIB5UPyE/Dm0gQBUxJjJXPCE2GT07MBk6JToFNyYmVycqIh48LXUYKGQ4CyohNBUiIW0HKicyBS8pIwA2L3UbLyo1HzkvMAQ9KyMOeD4wBTdpOAk+EGIPCzomED4eOAoKM2FHJzMhGy08dRYgPXEXNyZ4Gy8wJwJpJRBQPyUyDjwkCxEpMTRaOSlYVSQiNx8rMVYdbDA+Qg0mKkk9DDoRASckXjk2LgoLOjIQJBQxCgAxYV8oZDACFj0gUiEfSBMWOyZCLBcoHCchWF0sKjYNOyEdQj4rPB96IB1DNGknVT8/WF0iKjZaKkUKWCMjcQ0kMhBeODBxGzcVWF8iKnxcOEURX20nORsoJxtFKDYiWj4mUUcsJ3UTJyIvHCotOwNuNyYbJTgfET8hIUIoHx1fOSUlEzU9MUMNOjJZKVdmDAJ0N1E/EyMBCDFhQD9dIl0oBBoANCB2Hzg2DBwuDSQAOgEjVXkuN0MaVD9TPzEQHyYDIVUSI0MBCiBMAQsdIVkXGnYSDDpXBw0Da14AIw0GRCQEFxAIKkIHHCVTBjYSSRAoGRYzMVIMPQhbRUI0DEslLS1QKCY5RCwZJAcSMElU
52
+ http_version:
53
+ recorded_at: Fri, 20 Mar 2015 14:42:41 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://iii.ru/api/2.0/json/Chat.init/6de4ced8-434b-4803-8b46-32a64b92eb8a/some-valid-uri
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - nginx
23
+ Date:
24
+ - Fri, 20 Mar 2015 14:42:41 GMT
25
+ Content-Type:
26
+ - application/x-json-encrypted
27
+ Content-Length:
28
+ - '1392'
29
+ X-Powered-By:
30
+ - PHP/5.4.36-1~dotdeb.1
31
+ Set-Cookie:
32
+ - iiiszf2prd=v9ffonf43tajkiqr8aevpi0ts3; expires=Sat, 19-Mar-2016 14:42:41 GMT;
33
+ path=/; domain=iii.ru
34
+ Expires:
35
+ - Mon, 26 Jul 1997 05:00:00 GMT
36
+ Cache-Control:
37
+ - no-cache, must-revalidate
38
+ Pragma:
39
+ - no-cache
40
+ Last-Modified:
41
+ - Mon, 26 Jul 2027 05:00:00 GMT
42
+ X-Cache:
43
+ - MISS from dpk-proxy
44
+ X-Cache-Lookup:
45
+ - HIT from dpk-proxy:3128
46
+ Connection:
47
+ - keep-alive
48
+ body:
49
+ encoding: UTF-8
50
+ string: FhYnHHouK0MbZScMPRdTBTZdMVApNztfJwp1ADMeDAQvHnUYIi1tXyIEaBgvMAUFeRpZCCs1BAMpJSoTKiEkFDo7cg4kCzAOPSYnB2kdJh4MJjZJPQsDGz80Mx0tOR8AIAQxGSUtORkGCHkGKU4FCBAEJxY2NmlGOwMfQywpPBEjIVhdLCo2DzshHUI+KzwfbjAdQzRpJ1U/P1hdIio2Wj0iClgjI3ENJiciVjk3ag0KFHYbCyZgBS4aGgdtJyoIPww5HjwfJlQ+HywTLgYQVCQcAgw+MisDejchBiY6Ilc8HzoZKjc0GS42JRMmBAMXIAMlHD0yahw8dycIPQczGwgydkk+LC4LLjo4WiAzR10sPVdHOFUjHz87PFV6HDQGNmozUCsAEQEhBDYUPCM/WTQgbh8mMA8GOhpTCDQuFQY2A1UAOzcgWHoOLhIRUzYHLBwhUAYiM1YQN3ENJgwjEj8hLwNsMD4GMDYPShBWJgcBMCxYOTU2UCMtOUsmKjpYKiFDXTxjRwgrEyBWIDFxBz8VAAYuOjsDNA4RAC8DLgw4DSxBPV0gVnkcAhs2QwUMKC4VBDYDH0wpNztfNApmBApGPRw8GmoNDUt2XjkpQRg7I1BfRCAhVz81IgMoNjJTLRhUSBEobhINMVNVOw8BDG07RAEgBD4UPzEbBSo3AQU4NjFaNSoyVCcpPlsqHBEHPxInUT49MFE2IXEHKwUuCCxfIwMhNGlaBBctGQMKIxoRKDsOaRwVHyB6Dh8oKlcFDAMxWiksIDwPMBEbC0c+XzweTxkjPWEZIi1aBQMjL1p5UVFQEA8yHSoYNlcCJhJJOQJqDTMLP1EoMScAbUE5QSc9VxAoDyIbKSQvBToLMR02FDoVJCo2WikPdVw/WjcWOwMRVSUIdgUrOC0BOzo8ACEJchUFOTIGKAoJBhI3PzB6Lg1CMEcZDDsQVwU2OVJKEjNLED0wcR4mHSEGOTdqCQwUTBo2Nn8cA0ZdB28KIQgUMhQdPxgXSyshL0g5FWkQMwwCDzw2XgxtJCYfJTkuVysIPQYoNyQWLTUmAiEqNhInBB8BLQ9QWC9NIBQrPisRNjJxGT0CPRoDJSMFIiRqFTs2KRkFITcDETg7E0QuNBs2RzcWOxQRBAopKVYXI0dZJw1PDw8sWBw8Gm4ODEpELDUmdwACGjsUaQkYUREPNRgpMTlQB0UvERddTBEzPigfOw8BA2wwPgcNNjVaI1dJGT8rKAc7CzUaJgMfWjg2JVkFJmlZPE0wEhFbNBElCGYZFjcpHjA6FQUNCXEFLgAUHAJUNxsXJzsfaRwKCh9+AQwrLnJePSkLSBEzSwcnDU8PJTciXxYNaVcjLXEXIQRKXiwePFxtO1gSOwwPHywYHEkpNi8Z
51
+ http_version:
52
+ recorded_at: Fri, 20 Mar 2015 14:42:41 GMT
53
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,27 @@
1
+ describe IiiApi::Bot do
2
+ let(:bot_id) { '6de4ced8-434b-4803-8b46-32a64b92eb8a' }
3
+ let(:chat_id) { 'some-valid-uri' }
4
+ let(:bot) { using_vcr('iii/init') { IiiApi::Bot.new(bot_id, chat_id) } }
5
+
6
+ def using_vcr(name)
7
+ VCR.use_cassette(name) { yield }
8
+ end
9
+
10
+ describe '#initialize' do
11
+ it 'initialize new chat saves an unique decrypted chat id as @chat_id if two parameters were passed' do
12
+ expect(bot.instance_variable_get(:@chat_id)).to eq 'e0f7df52-3521-49dc-ba80-f750854c2ed8'
13
+ end
14
+
15
+ it 'saves passed bot id as @chat_id if no chat_id provided and no need of initialization' do
16
+ bot = IiiApi::Bot.new('e0f7df52-3521-49dc-ba80-000000000000')
17
+ expect(bot.instance_variable_get(:@chat_id)).to eq 'e0f7df52-3521-49dc-ba80-000000000000'
18
+ end
19
+ end
20
+
21
+ describe '#ask' do
22
+ it 'returns answer to provided message' do
23
+ answer = using_vcr('iii/answers') { bot.ask('Как дела?') }
24
+ expect(answer).to eq('Пасиб. Нормально. Ты-то как?')
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,101 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ Bundler.require(:default, :development)
4
+
5
+ # This file was generated by the `rspec --init` command. Conventionally, all
6
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
7
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
8
+ # this file to always be loaded, without a need to explicitly require it in any
9
+ # files.
10
+ #
11
+ # Given that it is always loaded, you are encouraged to keep this file as
12
+ # light-weight as possible. Requiring heavyweight dependencies from this file
13
+ # will add to the boot time of your test suite on EVERY test run, even for an
14
+ # individual file that may not need all of that loaded. Instead, consider making
15
+ # a separate helper file that requires the additional dependencies and performs
16
+ # the additional setup, and require it from the spec files that actually need
17
+ # it.
18
+ #
19
+ # The `.rspec` file also contains a few flags that are not defaults but that
20
+ # users commonly want.
21
+ #
22
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
23
+
24
+ VCR.configure do |config|
25
+ config.cassette_library_dir = "spec/fixtures"
26
+ config.hook_into :webmock
27
+ end
28
+
29
+ RSpec.configure do |config|
30
+ # rspec-expectations config goes here. You can use an alternate
31
+ # assertion/expectation library such as wrong or the stdlib/minitest
32
+ # assertions if you prefer.
33
+ config.expect_with :rspec do |expectations|
34
+ # This option will default to `true` in RSpec 4. It makes the `description`
35
+ # and `failure_message` of custom matchers include text for helper methods
36
+ # defined using `chain`, e.g.:
37
+ # be_bigger_than(2).and_smaller_than(4).description
38
+ # # => "be bigger than 2 and smaller than 4"
39
+ # ...rather than:
40
+ # # => "be bigger than 2"
41
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
42
+ end
43
+
44
+ # rspec-mocks config goes here. You can use an alternate test double
45
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
46
+ config.mock_with :rspec do |mocks|
47
+ # Prevents you from mocking or stubbing a method that does not exist on
48
+ # a real object. This is generally recommended, and will default to
49
+ # `true` in RSpec 4.
50
+ mocks.verify_partial_doubles = true
51
+ end
52
+
53
+ # The settings below are suggested to provide a good initial experience
54
+ # with RSpec, but feel free to customize to your heart's content.
55
+ =begin
56
+ # These two settings work together to allow you to limit a spec run
57
+ # to individual examples or groups you care about by tagging them with
58
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
59
+ # get run.
60
+ config.filter_run :focus
61
+ config.run_all_when_everything_filtered = true
62
+
63
+ # Limits the available syntax to the non-monkey patched syntax that is
64
+ # recommended. For more details, see:
65
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
66
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
68
+ config.disable_monkey_patching!
69
+
70
+ # This setting enables warnings. It's recommended, but in some cases may
71
+ # be too noisy due to issues in dependencies.
72
+ config.warnings = true
73
+
74
+ # Many RSpec users commonly either run the entire suite or an individual
75
+ # file, and it's useful to allow more verbose output when running an
76
+ # individual spec file.
77
+ if config.files_to_run.one?
78
+ # Use the documentation formatter for detailed output,
79
+ # unless a formatter has already been configured
80
+ # (e.g. via a command-line flag).
81
+ config.default_formatter = 'doc'
82
+ end
83
+
84
+ # Print the 10 slowest examples and example groups at the
85
+ # end of the spec run, to help surface which specs are running
86
+ # particularly slow.
87
+ config.profile_examples = 10
88
+
89
+ # Run specs in random order to surface order dependencies. If you find an
90
+ # order dependency and want to debug it, you can fix the order by providing
91
+ # the seed, which is printed after each run.
92
+ # --seed 1234
93
+ config.order = :random
94
+
95
+ # Seed global randomization in this process using the `--seed` CLI option.
96
+ # Setting this allows you to use `--seed` to deterministically reproduce
97
+ # test failures related to randomization by passing the same `--seed` value
98
+ # as the one that triggered the failure.
99
+ Kernel.srand config.seed
100
+ =end
101
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: iii_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Andrey Grigorenko
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-20 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.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '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: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: faraday
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - learningisalife@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".ruby-gemset"
107
+ - ".ruby-version"
108
+ - Gemfile
109
+ - LICENSE.txt
110
+ - README.md
111
+ - Rakefile
112
+ - iii_api.gemspec
113
+ - lib/iii_api.rb
114
+ - lib/iii_api/bot.rb
115
+ - lib/iii_api/version.rb
116
+ - spec/fixtures/iii/answers.yml
117
+ - spec/fixtures/iii/init.yml
118
+ - spec/iii_api/bot_spec.rb
119
+ - spec/spec_helper.rb
120
+ homepage: https://github.com/GriwMF/iii_api
121
+ licenses:
122
+ - MIT
123
+ metadata: {}
124
+ post_install_message:
125
+ rdoc_options: []
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 2.4.6
141
+ signing_key:
142
+ specification_version: 4
143
+ summary: Simple ruby api for using iii.ru bot
144
+ test_files:
145
+ - spec/fixtures/iii/answers.yml
146
+ - spec/fixtures/iii/init.yml
147
+ - spec/iii_api/bot_spec.rb
148
+ - spec/spec_helper.rb