countir 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3626e4f10397763be988aa1dff4234e7af85710e
4
+ data.tar.gz: 87832035026c34b5723a16ed6fb7e3f8a3e976d2
5
+ SHA512:
6
+ metadata.gz: 6a7c36e9f381ec2b9e760837d7829f29cc14aef50038293ac9bb4cf696c7a84841ff078e1519c5b81b6a5f822b53f9be2040284f322820cbb9e1d2f61ea15f24
7
+ data.tar.gz: 1f27f1a40d4a4a0f8056b4a47b2ab26eb8153a20e24383d58b0a82d0072023fed836fde8b0363b7536f469ccdc76fd79c1aef94516e510079b1b976edbb8b2b0
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at hidechae@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in countir.gemspec
4
+ gemspec
5
+
6
+ gem 'faraday'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Hideyuki Utsunomiya
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,67 @@
1
+ # Countir
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/countir`. 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 'countir'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install countir
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ require 'countir'
27
+
28
+ client = Countir::Client.new(api_key: $YOUR_API_KEY)
29
+
30
+ # get account code list
31
+ client.list_account_codes
32
+
33
+ # get journal list
34
+ client.list_journals(offset: nil, limit: nil)
35
+
36
+ # post journal
37
+ client.post_journal(
38
+ transaction_date: '2016-01-01',
39
+ memo: 'hogehoge',
40
+ entries: [
41
+ { account_code_id: 1,
42
+ debit_or_credit: 'credit',
43
+ price: 100,
44
+ },
45
+ { account_code_id: 2,
46
+ debit_or_credit: 'debit',
47
+ price: 100,
48
+ },
49
+ ]
50
+ )
51
+ ```
52
+
53
+ ## Development
54
+
55
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
56
+
57
+ 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).
58
+
59
+ ## Contributing
60
+
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/countir. 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.
62
+
63
+
64
+ ## License
65
+
66
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
67
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "countir"
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
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/countir.gemspec ADDED
@@ -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 'countir/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "countir"
8
+ spec.version = Countir::VERSION
9
+ spec.authors = ["Hideyuki Utsunomiya"]
10
+ spec.email = ["hidechae@gmail.com"]
11
+
12
+ spec.summary = %q{A client library for Countir API written in Ruby.}
13
+ spec.description = %q{A client library for Countir API written in Ruby.}
14
+ spec.homepage = "https://github.com/countir/countir-sdk-ruby"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.11"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec", "~> 3.0"
25
+ spec.add_development_dependency "faraday", "~> 0.9"
26
+ end
data/lib/countir.rb ADDED
@@ -0,0 +1,15 @@
1
+ require 'forwardable'
2
+ require "faraday"
3
+ require "json"
4
+ require "date"
5
+
6
+ require "countir/version"
7
+ require "countir/resource_based_methods"
8
+ require "countir/client"
9
+ require "countir/result"
10
+ require "countir/errors"
11
+ require "countir/resources/account_code"
12
+ require "countir/resources/journal"
13
+
14
+ module Countir
15
+ end
@@ -0,0 +1,72 @@
1
+ module Countir
2
+ class Client
3
+ include ResourceBasedMethods
4
+
5
+ URL = 'http://api.countir.jp'
6
+
7
+ def initialize(api_key: nil)
8
+ @api_key = api_key
9
+ end
10
+
11
+ private
12
+
13
+ def connection
14
+ @cconection ||=
15
+ Faraday.new(url: URL) do |faraday|
16
+ faraday.request :url_encoded
17
+ faraday.adapter Faraday.default_adapter
18
+ end
19
+ end
20
+
21
+ def get(url, params = {}, resource_class:)
22
+ response = connection.get do |req|
23
+ req.url url
24
+ req.headers["Authorization: Bearer"] = @api_key
25
+ req.params = params
26
+ end
27
+
28
+ result(response, resource_class)
29
+ end
30
+
31
+ def post(url, params, resource_class: nil)
32
+ response = connection.post do |req|
33
+ req.url url
34
+ req.headers["Authorization: Bearer"] = @api_key
35
+ req.params = params
36
+ end
37
+
38
+ result(response, resource_class)
39
+ end
40
+
41
+ def result(response, resource_class = nil)
42
+ status = response.status
43
+ header = response.headers
44
+ body = response.body
45
+ message = nil
46
+
47
+ case response.status
48
+ when 200...300
49
+ nil
50
+ when 301, 302, 303, 307
51
+ message ||= sprintf('Redirect to %s', header[:location])
52
+ raise Countir::RedirectError.new(message, status_code: status, header: header, body: body)
53
+ when 401
54
+ message ||= 'Unauthorized'
55
+ raise Countir::AuthorizationError.new(message, status_code: status, header: header, body: body)
56
+ when 304, 400, 402...500
57
+ message ||= 'Invalid request'
58
+ raise Countir::ClientError.new(message, status_code: status, header: header, body: body)
59
+ when 500...600
60
+ message ||= 'Server error'
61
+ raise Countir::ServerError.new(message, status_code: status, header: header, body: body)
62
+ else
63
+ logger.warn(sprintf('Encountered unexpected status code %s', status))
64
+ message ||= 'Unknown error'
65
+ raise Countir::TransmissionError.new(message, status_code: status, header: header, body: body)
66
+ end
67
+
68
+ Countir::Result.new(response, resource_class)
69
+ end
70
+
71
+ end
72
+ end
@@ -0,0 +1,69 @@
1
+ module Countir
2
+
3
+ class Error < StandardError
4
+ attr_reader :status_code
5
+ attr_reader :header
6
+ attr_reader :body
7
+
8
+ def initialize(err, status_code: nil, header: nil, body: nil)
9
+ @cause = err.respond_to?(:backtrace) ? err : nil
10
+ @status_code = status_code
11
+ @header = header.dup unless header.nil?
12
+ @body = JSON.parse(body) rescue body
13
+
14
+ message =
15
+ if @body["error"]["message"]
16
+ @body["error"]["message"]
17
+ elsif err.respond_to?(:backtrace)
18
+ err.message
19
+ else
20
+ err.to_s
21
+ end
22
+
23
+ super(message)
24
+ end
25
+
26
+ def backtrace
27
+ if @cause
28
+ @cause.backtrace
29
+ else
30
+ super
31
+ end
32
+ end
33
+ end
34
+
35
+ # An error which is raised when there is an unexpected response or other
36
+ # transport error that prevents an operation from succeeding.
37
+ class TransmissionError < Error
38
+ end
39
+
40
+ # An exception that is raised if a redirect is required
41
+ #
42
+ class RedirectError < Error
43
+ end
44
+
45
+ # A 4xx class HTTP error occurred.
46
+ class ClientError < Error
47
+ end
48
+
49
+ # A 4xx class HTTP error occurred.
50
+ class RateLimitError < Error
51
+ end
52
+
53
+ # A 401 HTTP error occurred.
54
+ class AuthorizationError < Error
55
+ end
56
+
57
+ # A 5xx class HTTP error occurred.
58
+ class ServerError < Error
59
+ end
60
+
61
+ # Error class for problems in batch requests.
62
+ class BatchError < Error
63
+ end
64
+
65
+ # Paramator is invalid.
66
+ class InvalidParameter < Error
67
+ end
68
+
69
+ end
@@ -0,0 +1,40 @@
1
+ module Countir
2
+ module ResourceBasedMethods
3
+ def list_account_codes
4
+ get('/account_codes', resource_class: Countir::AccountCode)
5
+ end
6
+
7
+ def list_journals(offset: nil, limit: nil)
8
+ params = {offset: offset, limit: limit}
9
+ get('/journals', params, resource_class: Countir::Journal)
10
+ end
11
+
12
+ def post_journal(transaction_date:, memo:, entries:)
13
+ unless entries.class == Array
14
+ message = "entries should must be Array value"
15
+ raise Countir::InvalidParameter.new(message)
16
+ end
17
+
18
+ entry_keys = [:account_code_id, :debit_or_credit, :price]
19
+
20
+ entries_has_valid_keys = entries.map do |entry|
21
+ entry.keys.sort == entry_keys
22
+ end.all?
23
+
24
+ unless entries_has_valid_keys
25
+ message = sprintf("entry should have keys [%s]", entry_keys.join(?,))
26
+ raise Countir::InvalidParameter.new(message)
27
+ end
28
+
29
+ params = {
30
+ transaction_date: transaction_date,
31
+ memo: memo,
32
+ # entries: entry_keys.zip(*entries.valies_at(entry_keys)).to_h,
33
+ entries: entries,
34
+ images: [],
35
+ }
36
+
37
+ post('/journals', params)
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,27 @@
1
+ module Countir
2
+ class AccountCode
3
+ attr_accessor :id, :account_name, :account_name_en, :phonetic_kana, :phonetic_romaji, :account_type
4
+
5
+ def initialize(id:, account_name:, account_name_en:, phonetic_kana:, phonetic_romaji:, account_type:)
6
+ self.id = id
7
+ self.account_name = account_name
8
+ self.account_name_en = account_name_en
9
+ self.phonetic_kana = phonetic_kana
10
+ self.phonetic_romaji = phonetic_romaji
11
+ self.account_type = account_type
12
+ end
13
+
14
+ def self.response_schema(data)
15
+ data.map do |r|
16
+ self.new(
17
+ id: r["id"],
18
+ account_name: r["account_name"],
19
+ account_name_en: r["account_name_en"],
20
+ phonetic_kana: r["phonetic_kana"],
21
+ phonetic_romaji: r["phonetic_romaji"],
22
+ account_type: r["account_type"]
23
+ )
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,82 @@
1
+ module Countir
2
+ class Journal
3
+ attr_accessor :transaction_date, :memo, :entries
4
+
5
+ class Entry
6
+ attr_accessor :account_code_id, :debit_or_credit, :price
7
+
8
+ def initialize(account_code_id:, debit_or_credit:, price:)
9
+ self.account_code_id = account_code_id
10
+ self.debit_or_credit = debit_or_credit
11
+ self.price = price
12
+ end
13
+
14
+ def to_h
15
+ { account_code_id: self.account_code_id,
16
+ debit_or_credit: self.debit_or_credit,
17
+ price: self.price,
18
+ }
19
+ end
20
+ end
21
+
22
+
23
+ def initialize(transaction_date:, memo:)
24
+ self.transaction_date = transaction_date
25
+ self.memo = memo
26
+ self.entries = []
27
+ end
28
+
29
+ def add_entry(account_code_id:, debit_or_credit:, price:)
30
+ self.entries << Entry.new(
31
+ account_code_id: account_code_id,
32
+ debit_or_credit: debit_or_credit,
33
+ price: price
34
+ )
35
+ end
36
+
37
+ def validation!
38
+ unless self.valid?
39
+ raise
40
+ end
41
+ end
42
+
43
+ def valid?
44
+ debit_price = 0
45
+ credit_price = 0
46
+
47
+ self.entries.each do |entry|
48
+ debit_price += entry.price if entry.debit_or_credit == "debit"
49
+ credit_price += entry.price if entry.credit_or_credit == "credit"
50
+ end
51
+
52
+ debit_price == credit_price
53
+ end
54
+
55
+ def to_h
56
+ { transaction_date: self.transaction_date,
57
+ memo: self.memo,
58
+ entries: self.entries.map(&:to_h),
59
+ }
60
+ end
61
+
62
+ def self.response_schema(data)
63
+ data["journals"].map do |journal_data|
64
+ journal = self.new(
65
+ transaction_date: journal_data["transaction_date"],
66
+ memo: journal_data["memo"],
67
+ )
68
+
69
+ journal_data["entries"].each do |entry|
70
+ journal.add_entry(
71
+ account_code_id: entry["account_code_id"],
72
+ debit_or_credit: entry["debit_or_credit"],
73
+ price: entry["price"],
74
+ )
75
+ end
76
+
77
+ journal
78
+ end
79
+ end
80
+
81
+ end
82
+ end
@@ -0,0 +1,39 @@
1
+ module Countir
2
+ class Result
3
+ extend Forwardable
4
+
5
+ attr_reader :response
6
+
7
+ def initialize(response, resource_class = nil)
8
+ @response = response
9
+ @resource_class = resource_class
10
+ end
11
+
12
+ def_delegators :@response, :status, :headers, :body
13
+
14
+ def data?
15
+ !(self.body.nil? || self.body.empty?)
16
+ end
17
+
18
+ def data
19
+ @data ||= begin
20
+ if data?
21
+ data = JSON.parse(self.body)
22
+
23
+ if @resource_class
24
+ @resource_class.response_schema(data)
25
+ else
26
+ data
27
+ end
28
+ end
29
+ end
30
+ end
31
+
32
+ def next_offset
33
+ if data?
34
+ JSON.parse(self.body)["next_offset"] rescue nil
35
+ end
36
+ end
37
+
38
+ end
39
+ end
@@ -0,0 +1,3 @@
1
+ module Countir
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: countir
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hideyuki Utsunomiya
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-08-01 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.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
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: faraday
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.9'
69
+ description: A client library for Countir API written in Ruby.
70
+ email:
71
+ - hidechae@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - countir.gemspec
87
+ - lib/countir.rb
88
+ - lib/countir/client.rb
89
+ - lib/countir/errors.rb
90
+ - lib/countir/resource_based_methods.rb
91
+ - lib/countir/resources/account_code.rb
92
+ - lib/countir/resources/journal.rb
93
+ - lib/countir/result.rb
94
+ - lib/countir/version.rb
95
+ homepage: https://github.com/countir/countir-sdk-ruby
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
99
+ post_install_message:
100
+ rdoc_options: []
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubyforge_project:
115
+ rubygems_version: 2.5.1
116
+ signing_key:
117
+ specification_version: 4
118
+ summary: A client library for Countir API written in Ruby.
119
+ test_files: []
120
+ has_rdoc: