chatwork 0.11.0 → 0.12.3

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
  SHA256:
3
- metadata.gz: 6eccb9b06e5202c49a36499e619b184a4d4aebdab605f4e97dc4640beee8c73f
4
- data.tar.gz: 55c4aa1047be833291053281b4ab5d12c40abe9c47dc0c35d0b253f41d4b9ff3
3
+ metadata.gz: 5bb38c6cdbe4e1ad3c0b38bc21ac36ce00581a12b1b62db584be89157dc64cd5
4
+ data.tar.gz: 3bedf9754acd3114a6d5bf20a3b765e2c65d6085eaf3dec6ae45f3f829e4fbdb
5
5
  SHA512:
6
- metadata.gz: 47ded73fb118ed675a0b6e87736b7dad548255cb8659881c7e94a87ae6d006c529499ad6a676d581ca1b30fbfc4acbfe03a25588fa06b56bb30dcff307290703
7
- data.tar.gz: a05e19a3c432eec52ca84671aa19f1c7d0af0769b43f1419027517b26e32458bd2472090ce70e490788c961e5a7a2961e15704155f350ec26d106ef1bf009379
6
+ metadata.gz: 026e88dcf281567c670c133da00a5fafe5c4257efa257691042228e3da5f8d65089558123eaa2805479c3cf619968fc83f99dec73abd99a0381c7976d2c29ad3
7
+ data.tar.gz: d225e6749f569d69ee535548b5d442c7a7e94063a06b1107470abe1aec3fd868fc1d7229b65bf83eb3925fd16b38abe518e4b0329c6c1fc3d8a6b112f58368f1
@@ -0,0 +1,89 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ env:
16
+ RUBYOPT: -EUTF-8
17
+
18
+ jobs:
19
+ test:
20
+ runs-on: ubuntu-latest
21
+
22
+ container: ${{ matrix.ruby }}
23
+
24
+ strategy:
25
+ fail-fast: false
26
+
27
+ matrix:
28
+ ruby:
29
+ - ruby:2.4
30
+ - ruby:2.5
31
+ - ruby:2.6
32
+ - ruby:2.7
33
+ - ruby:3.0
34
+ - rubylang/ruby:master-nightly-bionic
35
+ gemfile:
36
+ - faraday_0
37
+ - faraday_1
38
+ include:
39
+ - ruby: rubylang/ruby:master-nightly-bionic
40
+ allow_failures: "true"
41
+
42
+ env:
43
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
44
+
45
+ steps:
46
+ - uses: actions/checkout@v2
47
+ with:
48
+ submodules: "true"
49
+
50
+ - name: Cache vendor/bundle
51
+ uses: actions/cache@v1
52
+ id: cache_gem
53
+ with:
54
+ path: vendor/bundle
55
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
56
+ restore-keys: |
57
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
58
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
59
+
60
+ - name: bundle update
61
+ run: |
62
+ set -xe
63
+ bundle config path vendor/bundle
64
+ bundle update --jobs $(nproc) --retry 3
65
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
66
+
67
+ - run: bundle exec rspec
68
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
69
+
70
+ - name: Coveralls Parallel
71
+ uses: coverallsapp/github-action@master
72
+ with:
73
+ github-token: ${{ secrets.GITHUB_TOKEN }}
74
+ flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
75
+ parallel: true
76
+
77
+ - run: bundle exec rubocop
78
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
79
+ if: matrix.ruby < 'ruby:3.0' # FIXME: remove this after upgrade rubocop
80
+
81
+ finish:
82
+ needs: test
83
+ runs-on: ubuntu-latest
84
+ steps:
85
+ - name: Coveralls Finished
86
+ uses: coverallsapp/github-action@master
87
+ with:
88
+ github-token: ${{ secrets.GITHUB_TOKEN }}
89
+ parallel-finished: true
data/.gitignore CHANGED
@@ -3,7 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
6
+ *.lock
7
7
  InstalledFiles
8
8
  _yardoc
9
9
  coverage
data/.rubocop.yml CHANGED
@@ -5,6 +5,19 @@ inherit_gem:
5
5
 
6
6
  require: rubocop-rspec
7
7
 
8
+ AllCops:
9
+ Exclude:
10
+ - 'gemfiles/vendor/**/*'
11
+
12
+ # c.f. https://github.com/rubocop-hq/rubocop/blob/v0.79.0/config/default.yml#L60-L64
13
+ - 'node_modules/**/*'
14
+ - 'tmp/**/*'
15
+ - 'vendor/**/*'
16
+ - '.git/**/*'
17
+
8
18
  # module name is `ChatWork`, but I want to use `chatwork` as filename
9
19
  RSpec/FilePath:
10
20
  Enabled: false
21
+
22
+ Metrics/ParameterLists:
23
+ Max: 6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
- [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.11.0...master)
3
+ [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.3...master)
4
+
5
+ ## v0.12.3
6
+ [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.2...v0.12.3)
7
+
8
+ * Enable MFA requirement for gem releasing
9
+ * https://github.com/asonas/chatwork-ruby/pull/75
10
+
11
+ ## v0.12.2
12
+ [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.1...v0.12.2)
13
+
14
+ * Support faraday v1.0
15
+ * https://github.com/asonas/chatwork-ruby/pull/70
16
+
17
+ ## v0.12.1
18
+ [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.12.0...v0.12.1)
19
+
20
+ * Fixed. set status code and body when unexpected error is occurred
21
+ * https://github.com/asonas/chatwork-ruby/pull/68
22
+
23
+ ## v0.12.0
24
+ [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.11.0...v0.12.0)
25
+
26
+ * Add 'limit_type' to task read/write API.
27
+ * https://github.com/asonas/chatwork-ruby/pull/66
4
28
 
5
29
  ## v0.11.0
6
30
  [Full Changelog](https://github.com/asonas/chatwork-ruby/compare/v0.10.0...v0.11.0)
data/Gemfile CHANGED
@@ -3,21 +3,4 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in chatwork.gemspec
4
4
  gemspec
5
5
 
6
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
7
- group :test do
8
- gem "backport_dig", group: :development
9
- end
10
- end
11
-
12
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
13
- group :test do
14
- gem "activesupport", "< 5.0.0", group: :development
15
- end
16
- end
17
-
18
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
19
- group :test do
20
- # NOTE: unparser v0.3.0+ requires Ruby 2.5+
21
- gem "unparser", "< 0.3.0"
22
- end
23
- end
6
+ eval_gemfile "#{__dir__}/gemfiles/common.gemfile"
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Ruby bindings of ChatWork API
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/chatwork.svg)](https://badge.fury.io/rb/chatwork)
6
- [![Build Status](https://travis-ci.org/asonas/chatwork-ruby.svg?branch=master)](https://travis-ci.org/asonas/chatwork-ruby)
6
+ [![Build Status](https://github.com/asonas/chatwork-ruby/workflows/test/badge.svg?branch=master)](https://github.com/asonas/chatwork-ruby/actions?query=workflow%3Atest)
7
7
  [![Coverage Status](https://coveralls.io/repos/github/asonas/chatwork-ruby/badge.svg?branch=master)](https://coveralls.io/github/asonas/chatwork-ruby)
8
8
 
9
9
  ## Installation
data/bin/console CHANGED
@@ -14,5 +14,5 @@ connection = @client.instance_variable_get(:@conn)
14
14
  connection.request :curl, logger, :debug
15
15
  connection.response :logger, logger, bodies: true
16
16
 
17
- require "pry"
18
- Pry.start
17
+ require "irb"
18
+ IRB.start
data/chatwork.gemspec CHANGED
@@ -12,28 +12,33 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "https://github.com/asonas/chatwork-ruby"
13
13
  spec.license = "MIT"
14
14
 
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = spec.homepage
17
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
18
+ spec.metadata["rubygems_mfa_required"] = "true"
19
+
15
20
  spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
16
21
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
17
22
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
23
  spec.require_paths = ["lib"]
19
24
 
20
- spec.add_dependency "faraday", "~> 0.9"
25
+ spec.add_dependency "faraday", ">= 0.9"
21
26
  spec.add_dependency "faraday_middleware"
22
27
  spec.add_dependency "hashie"
23
28
 
24
29
  spec.add_development_dependency "activesupport"
25
30
  spec.add_development_dependency "bundler", ">= 1.3"
26
- spec.add_development_dependency "coveralls"
27
31
  spec.add_development_dependency "dotenv"
28
32
  spec.add_development_dependency "faraday_curl"
29
33
  spec.add_development_dependency "onkcop", "0.53.0.0"
30
- spec.add_development_dependency "pry-byebug"
31
34
  spec.add_development_dependency "rake"
32
35
  spec.add_development_dependency "rspec"
33
36
  spec.add_development_dependency "rspec-its"
34
37
  spec.add_development_dependency "rspec-parameterized"
35
38
  spec.add_development_dependency "rubocop", "0.53.0"
36
39
  spec.add_development_dependency "rubocop-rspec", "1.24.0"
40
+ spec.add_development_dependency "simplecov"
41
+ spec.add_development_dependency "simplecov-lcov"
37
42
  spec.add_development_dependency "webmock"
38
43
  spec.add_development_dependency "yard"
39
44
  end
@@ -0,0 +1,18 @@
1
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.3.0")
2
+ group :test do
3
+ gem "backport_dig", group: :development
4
+ end
5
+ end
6
+
7
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.2.2")
8
+ group :test do
9
+ gem "activesupport", "< 5.0.0", group: :development
10
+ end
11
+ end
12
+
13
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
14
+ group :test do
15
+ # NOTE: unparser v0.3.0+ requires Ruby 2.5+
16
+ gem "unparser", "< 0.3.0"
17
+ end
18
+ end
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in chatwork.gemspec
4
+ gemspec path: "../"
5
+
6
+ eval_gemfile "#{__dir__}/common.gemfile"
7
+
8
+ gem "faraday", "~> 0.9"
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in chatwork.gemspec
4
+ gemspec path: "../"
5
+
6
+ eval_gemfile "#{__dir__}/common.gemfile"
7
+
8
+ gem "faraday", "~> 1.0"
@@ -36,9 +36,16 @@ module ChatWork
36
36
 
37
37
  Faraday::Connection::METHODS.each do |method|
38
38
  define_method(method) do |url, args = {}, &block|
39
+ faraday_errors =
40
+ if Gem::Version.create(Faraday::VERSION) >= Gem::Version.create("1.0.0")
41
+ [Faraday::ClientError, Faraday::ServerError]
42
+ else
43
+ [Faraday::Error::ClientError]
44
+ end
45
+
39
46
  begin
40
47
  response = @conn.__send__(method, @api_version + url, hash_compact(args))
41
- rescue Faraday::Error::ClientError => e
48
+ rescue *faraday_errors => e
42
49
  raise ChatWork::APIConnectionError.faraday_error(e)
43
50
  end
44
51
  payload = handle_response(response)
@@ -40,7 +40,12 @@ module ChatWork
40
40
 
41
41
  def initialize(message, original_error = nil)
42
42
  @original_error = original_error
43
- super(message)
43
+
44
+ if original_error && original_error.response.is_a?(Hash)
45
+ super(message, original_error.response[:status], original_error.response[:body])
46
+ else
47
+ super(message)
48
+ end
44
49
  end
45
50
  end
46
51
 
@@ -34,7 +34,8 @@ module ChatWork::Client::TaskMethods
34
34
  # "message_id": "13",
35
35
  # "body": "buy milk",
36
36
  # "limit_time": 1384354799,
37
- # "status": "open"
37
+ # "status": "open",
38
+ # "limit_type": "date"
38
39
  # }
39
40
  # ]
40
41
  def get_tasks(room_id:, account_id:, assigned_by_account_id: nil, status: nil, &block)
@@ -46,10 +47,11 @@ module ChatWork::Client::TaskMethods
46
47
  # @see http://developer.chatwork.com/ja/endpoint_rooms.html#POST-rooms-room_id-tasks
47
48
  # @see http://download.chatwork.com/ChatWork_API_Documentation.pdf
48
49
  #
49
- # @param room_id [Integer]
50
- # @param body [String] Task description
51
- # @param to_ids [Array<Integer>, String] Account ID of the person/people responsible to complete the task
52
- # @param limit [Time, Integer] When the task is due
50
+ # @param room_id [Integer]
51
+ # @param body [String] Task description
52
+ # @param to_ids [Array<Integer>, String] Account ID of the person/people responsible to complete the task
53
+ # @param limit [Time, Integer] When the task is due
54
+ # @param limit_type [String] Type of task deadline (e.g. `none`, `date`, `time`)
53
55
  #
54
56
  # @yield [response_body, response_header] if block was given, return response body and response header through block arguments
55
57
  # @yieldparam response_body [Hashie::Mash] response body
@@ -61,10 +63,11 @@ module ChatWork::Client::TaskMethods
61
63
  # {
62
64
  # "task_ids": [123,124]
63
65
  # }
64
- def create_task(room_id:, body:, to_ids:, limit: nil, &block)
66
+ def create_task(room_id:, body:, to_ids:, limit: nil, limit_type: nil, &block)
65
67
  params = {
66
68
  body: body,
67
69
  to_ids: Array(to_ids).join(","),
70
+ limit_type: limit_type,
68
71
  }
69
72
  params[:limit] = limit.to_i if limit
70
73
 
@@ -101,7 +104,8 @@ module ChatWork::Client::TaskMethods
101
104
  # "message_id": "13",
102
105
  # "body": "buy milk",
103
106
  # "limit_time": 1384354799,
104
- # "status": "open"
107
+ # "status": "open",
108
+ # "limit_type": "date"
105
109
  # }
106
110
  def find_task(room_id:, task_id:, &block)
107
111
  get("/rooms/#{room_id}/tasks/#{task_id}", &block)
data/lib/chatwork/task.rb CHANGED
@@ -35,7 +35,8 @@ module ChatWork
35
35
  # "message_id": "13",
36
36
  # "body": "buy milk",
37
37
  # "limit_time": 1384354799,
38
- # "status": "open"
38
+ # "status": "open",
39
+ # "limit_type": "date"
39
40
  # }
40
41
  # ]
41
42
  def self.get(room_id:, account_id:, assigned_by_account_id: nil, status: nil, &block)
@@ -47,10 +48,11 @@ module ChatWork
47
48
  # @see http://developer.chatwork.com/ja/endpoint_rooms.html#POST-rooms-room_id-tasks
48
49
  # @see http://download.chatwork.com/ChatWork_API_Documentation.pdf
49
50
  #
50
- # @param room_id [Integer]
51
- # @param body [String] Task description
52
- # @param to_ids [Array<Integer>, String] Account ID of the person/people responsible to complete the task
53
- # @param limit [Time, Integer] When the task is due
51
+ # @param room_id [Integer]
52
+ # @param body [String] Task description
53
+ # @param to_ids [Array<Integer>, String] Account ID of the person/people responsible to complete the task
54
+ # @param limit [Time, Integer] When the task is due
55
+ # @param limit_type [String] Type of task deadline (e.g. `none`, `date`, `time`)
54
56
  #
55
57
  # @yield [response_body, response_header] if block was given, return response body and response header through block arguments
56
58
  # @yieldparam response_body [Hashie::Mash] response body
@@ -62,8 +64,8 @@ module ChatWork
62
64
  # {
63
65
  # "task_ids": [123,124]
64
66
  # }
65
- def self.create(room_id:, body:, to_ids:, limit: nil, &block)
66
- ChatWork.client.create_task(room_id: room_id, body: body, to_ids: to_ids, limit: limit, &block)
67
+ def self.create(room_id:, body:, to_ids:, limit: nil, limit_type: nil, &block)
68
+ ChatWork.client.create_task(room_id: room_id, body: body, to_ids: to_ids, limit: limit, limit_type: limit_type, &block)
67
69
  end
68
70
 
69
71
  # Get information about the specified task
@@ -96,7 +98,8 @@ module ChatWork
96
98
  # "message_id": "13",
97
99
  # "body": "buy milk",
98
100
  # "limit_time": 1384354799,
99
- # "status": "open"
101
+ # "status": "open",
102
+ # "limit_type": "date"
100
103
  # }
101
104
  def self.find(room_id:, task_id:, &block)
102
105
  ChatWork.client.find_task(room_id: room_id, task_id: task_id, &block)
@@ -1,3 +1,3 @@
1
1
  module ChatWork
2
- VERSION = "0.11.0".freeze
2
+ VERSION = "0.12.3".freeze
3
3
  end
@@ -74,4 +74,18 @@ describe ChatWork::ChatWorkError do
74
74
  its(:error_response) { should eq ["Invalid API Token"] }
75
75
  end
76
76
  end
77
+
78
+ describe ChatWork::APIConnectionError do
79
+ describe ".faraday_error" do
80
+ subject { ChatWork::APIConnectionError.faraday_error(error) }
81
+
82
+ let(:error) do
83
+ Faraday::ResourceNotFound.new(status: 404, body: "Not found")
84
+ end
85
+
86
+ its(:original_error) { should eq error }
87
+ its(:status) { should eq 404 }
88
+ its(:error_response) { should eq "Not found" }
89
+ end
90
+ end
77
91
  end
@@ -25,18 +25,20 @@ describe ChatWork::Client::TaskMethods do
25
25
  describe "#create_task", type: :api do
26
26
  subject do
27
27
  client.create_task(
28
- room_id: room_id,
29
- body: body,
30
- to_ids: to_ids,
31
- limit: limit,
28
+ room_id: room_id,
29
+ body: body,
30
+ to_ids: to_ids,
31
+ limit: limit,
32
+ limit_type: limit_type,
32
33
  &block
33
34
  )
34
35
  end
35
36
 
36
- let(:room_id) { 123 }
37
- let(:body) { "Buy milk" }
38
- let(:to_ids) { "1,3,6" }
39
- let(:limit) { "1385996399" }
37
+ let(:room_id) { 123 }
38
+ let(:body) { "Buy milk" }
39
+ let(:to_ids) { "1,3,6" }
40
+ let(:limit) { "1385996399" }
41
+ let(:limit_type) { "time" }
40
42
 
41
43
  before do
42
44
  stub_chatwork_request(:post, "/rooms/#{room_id}/tasks", "/rooms/{room_id}/tasks")
@@ -25,18 +25,20 @@ describe ChatWork::Task do
25
25
  describe ".create", type: :api do
26
26
  subject do
27
27
  ChatWork::Task.create(
28
- room_id: room_id,
29
- body: body,
30
- to_ids: to_ids,
31
- limit: limit,
28
+ room_id: room_id,
29
+ body: body,
30
+ to_ids: to_ids,
31
+ limit: limit,
32
+ limit_type: limit_type,
32
33
  &block
33
34
  )
34
35
  end
35
36
 
36
- let(:room_id) { 123 }
37
- let(:body) { "Buy milk" }
38
- let(:to_ids) { "1,3,6" }
39
- let(:limit) { "1385996399" }
37
+ let(:room_id) { 123 }
38
+ let(:body) { "Buy milk" }
39
+ let(:to_ids) { "1,3,6" }
40
+ let(:limit) { "1385996399" }
41
+ let(:limit_type) { "time" }
40
42
 
41
43
  before do
42
44
  stub_chatwork_request(:post, "/rooms/#{room_id}/tasks", "/rooms/{room_id}/tasks")
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,13 @@
1
1
  if ENV["CI"]
2
2
  require "simplecov"
3
- require "coveralls"
3
+ require "simplecov-lcov"
4
4
 
5
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5
+ SimpleCov::Formatter::LcovFormatter.config do |c|
6
+ c.single_report_path = "coverage/lcov.info"
7
+ c.report_with_single_file = true
8
+ end
9
+
10
+ SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
6
11
  SimpleCov.start do
7
12
  %w[spec].each do |ignore_path|
8
13
  add_filter(ignore_path)
@@ -17,7 +22,6 @@ require "chatwork"
17
22
  require "rspec-parameterized"
18
23
  require "rspec/its"
19
24
  require "webmock/rspec"
20
- require "pry"
21
25
  require "active_support/all"
22
26
 
23
27
  begin
metadata CHANGED
@@ -1,28 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - asonas
8
8
  - sue445
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-24 00:00:00.000000000 Z
12
+ date: 2021-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0.9'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0.9'
28
28
  - !ruby/object:Gem::Dependency
@@ -81,20 +81,6 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '1.3'
84
- - !ruby/object:Gem::Dependency
85
- name: coveralls
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
84
  - !ruby/object:Gem::Dependency
99
85
  name: dotenv
100
86
  requirement: !ruby/object:Gem::Requirement
@@ -137,20 +123,6 @@ dependencies:
137
123
  - - '='
138
124
  - !ruby/object:Gem::Version
139
125
  version: 0.53.0.0
140
- - !ruby/object:Gem::Dependency
141
- name: pry-byebug
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: '0'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: '0'
154
126
  - !ruby/object:Gem::Dependency
155
127
  name: rake
156
128
  requirement: !ruby/object:Gem::Requirement
@@ -235,6 +207,34 @@ dependencies:
235
207
  - - '='
236
208
  - !ruby/object:Gem::Version
237
209
  version: 1.24.0
210
+ - !ruby/object:Gem::Dependency
211
+ name: simplecov
212
+ requirement: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ type: :development
218
+ prerelease: false
219
+ version_requirements: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ - !ruby/object:Gem::Dependency
225
+ name: simplecov-lcov
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
238
  - !ruby/object:Gem::Dependency
239
239
  name: webmock
240
240
  requirement: !ruby/object:Gem::Requirement
@@ -272,11 +272,11 @@ extensions: []
272
272
  extra_rdoc_files: []
273
273
  files:
274
274
  - ".env.example"
275
+ - ".github/workflows/test.yml"
275
276
  - ".gitignore"
276
277
  - ".gitmodules"
277
278
  - ".rspec"
278
279
  - ".rubocop.yml"
279
- - ".travis.yml"
280
280
  - ".yardopts"
281
281
  - CHANGELOG.md
282
282
  - Gemfile
@@ -285,6 +285,9 @@ files:
285
285
  - Rakefile
286
286
  - bin/console
287
287
  - chatwork.gemspec
288
+ - gemfiles/common.gemfile
289
+ - gemfiles/faraday_0.gemfile
290
+ - gemfiles/faraday_1.gemfile
288
291
  - lib/chatwork.rb
289
292
  - lib/chatwork/base_client.rb
290
293
  - lib/chatwork/chatwork_error.rb
@@ -355,8 +358,12 @@ files:
355
358
  homepage: https://github.com/asonas/chatwork-ruby
356
359
  licenses:
357
360
  - MIT
358
- metadata: {}
359
- post_install_message:
361
+ metadata:
362
+ homepage_uri: https://github.com/asonas/chatwork-ruby
363
+ source_code_uri: https://github.com/asonas/chatwork-ruby
364
+ changelog_uri: https://github.com/asonas/chatwork-ruby/blob/master/CHANGELOG.md
365
+ rubygems_mfa_required: 'true'
366
+ post_install_message:
360
367
  rdoc_options: []
361
368
  require_paths:
362
369
  - lib
@@ -371,8 +378,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
371
378
  - !ruby/object:Gem::Version
372
379
  version: '0'
373
380
  requirements: []
374
- rubygems_version: 3.0.1
375
- signing_key:
381
+ rubygems_version: 3.2.22
382
+ signing_key:
376
383
  specification_version: 4
377
384
  summary: Ruby bindings of ChatWork API
378
385
  test_files:
data/.travis.yml DELETED
@@ -1,31 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.2
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- - ruby-head
10
- bundler_args: "--jobs=2"
11
- cache: bundler
12
- before_install:
13
- - travis_retry gem update --system || travis_retry gem update --system 2.7.8
14
- - travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
15
- script:
16
- - bundle exec rake spec
17
- - bundle exec rubocop
18
- branches:
19
- only:
20
- - master
21
- matrix:
22
- allow_failures:
23
- - rvm: ruby-head
24
- include:
25
- - rvm: 2.6
26
- env: RUBYOPT="--jit"
27
- - rvm: ruby-head
28
- env: RUBYOPT="--jit"
29
- env:
30
- global:
31
- secure: Ntdheemdu1GavPR/3kPfQg1tR13FTP0jE9KxsSKcG32VbIzM69l22OXXwYttFexMhA1dMNytv5bKGIszeiO+YjwzDXkcDHF7ZULc24epsGCOVfNax4g47Q+Lgt2kpAsx8V/8/SIpK7VeBhc2nPvhAKPjTZ8ddN2gLHk4wifLRFA=