octoparts 0.0.7 → 0.1.0

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
- SHA1:
3
- metadata.gz: 5c89229186c51d5af46ce589a692f8f6b5c0dd90
4
- data.tar.gz: f4d20f88953cb2745ba466c14fc1d7868a6e84cc
2
+ SHA256:
3
+ metadata.gz: c5eb7130020cc1bb8342f6013e649c55afa417295bb6272366246a1035ca0fc8
4
+ data.tar.gz: 59bc63e029187a631144277e8ffac3a8e678e8d63a5b448e0cf4f50fc8f0f8a6
5
5
  SHA512:
6
- metadata.gz: 6a00384c08c9c36452d2e20b72faf9994f02de625ce6f067298da61a74740dcb3522395f23de86c2ab48c51a5d910f659c255fa768ea28096cbd511be9dd5d37
7
- data.tar.gz: 654023d75c66bb1c392cf5748b0061f88563497c089e3432c916162cf479f3af444277e377a818b68ff5daf2943459c57995f278b3c9c04c84e98aaa14053641
6
+ metadata.gz: 2f0e644e33f9e1c1587441c55098a40a50978a599f92befd617a2c39d1c7646f31b2c79c72c475b5d5075c08e70eb17dbc5e68df6e39a44cb42a05984614733e
7
+ data.tar.gz: f199b064557b1601b44c228e78b690307d737091eb973ed257c3b57502ef76b52f5028dcda31f039ef16b92499b9b6978f0362bb3f8524bde4b54f6189af8c1a
@@ -0,0 +1,33 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: [ '2.6', '2.7', '3.0', '3.1' ]
15
+ include:
16
+ - ruby-version: '2.6'
17
+ ruby-opt: ''
18
+ - ruby-version: '2.7'
19
+ ruby-opt: '-W:deprecated'
20
+ - ruby-version: '3.0'
21
+ ruby-opt: '-W:deprecated'
22
+ - ruby-version: '3.1'
23
+ ruby-opt: '-W:deprecated'
24
+
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: Set up Ruby
28
+ uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby-version }}
31
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32
+ - name: Run tests
33
+ run: RUBY_OPT=${{ matrix.ruby-opt }} bundle exec rake
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -13,3 +12,6 @@
13
12
  *.a
14
13
  mkmf.log
15
14
  /vendor/bundle
15
+
16
+ # see https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
17
+ /Gemfile.lock
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2015 Takayuki Matsubara
1
+ Copyright (c) 2014-2017 Takayuki Matsubara, M3, Inc.
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,10 +1,7 @@
1
1
  # Octoparts
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/octoparts.svg)](http://badge.fury.io/rb/octoparts)
4
- [![Build Status](https://travis-ci.org/ma2gedev/octoparts-rb.svg)](https://travis-ci.org/ma2gedev/octoparts-rb)
5
- [![Coverage Status](https://img.shields.io/coveralls/ma2gedev/octoparts-rb.svg)](https://coveralls.io/r/ma2gedev/octoparts-rb)
6
- [![Code Climate](https://codeclimate.com/github/ma2gedev/octoparts-rb/badges/gpa.svg)](https://codeclimate.com/github/ma2gedev/octoparts-rb)
7
- [![endorse](https://api.coderwall.com/ma2gedev/endorsecount.png)](https://coderwall.com/ma2gedev)
4
+ [![Build Status](https://github.com/m3dev/octoparts-rb/workflows/Ruby/badge.svg?branch=master)](https://github.com/m3dev/octoparts-rb/actions?query=workflow%3ARuby)
8
5
 
9
6
  Octoparts Client for Ruby
10
7
 
@@ -70,11 +67,17 @@ aggregate_request = Octoparts.build_aggregate_request do
70
67
  end
71
68
  response = client.invoke(aggregate_request)
72
69
 
70
+ # cache invalidation
71
+ ## post /octoparts/2/cache/invalidate/part/echo/fooValue/test
72
+ client.invalidate_cache('echo', param_name: 'fooValue', param_value: 'test')
73
+
74
+ ## post /octoparts/2/cache/invalidate/cache-group/echo_group/params/fooValue
75
+ client.invalidate_cache_group('echo_group', param_value: 'fooValue')
73
76
  ```
74
77
 
75
78
  ## Contributing
76
79
 
77
- 1. Fork it ( https://github.com/ma2gedev/octoparts/fork )
80
+ 1. Fork it ( https://github.com/m3dev/octoparts/fork )
78
81
  2. Create your feature branch (`git checkout -b my-new-feature`)
79
82
  3. Commit your changes (`git commit -am 'Add some feature'`)
80
83
  4. Push to the branch (`git push origin my-new-feature`)
@@ -21,7 +21,9 @@ module Octoparts
21
21
  process(:post, path, {}, body, headers)
22
22
  end
23
23
 
24
- # TODO: doc
24
+ # Post an AggregateRequest and return AggregateResponse.
25
+ # @param [Octoparts::Model::AggregateRequest, Hash] params aggregate request
26
+ # @return [Octoparts::Response] response object
25
27
  def invoke(params)
26
28
  body = create_request_body(params)
27
29
  headers = { content_type: 'application/json' }
@@ -56,7 +58,8 @@ module Octoparts
56
58
  private
57
59
 
58
60
  def post_cache_api(path)
59
- escaped_path = URI.escape("#{CACHE_API_ENDPOINT_PATH}#{path}")
61
+ encoded_path_segments = path.split('/').map { |seg| URI.encode_www_form_component(seg) }.join('/')
62
+ escaped_path = "#{CACHE_API_ENDPOINT_PATH}#{encoded_path_segments}"
60
63
  resp = post(escaped_path)
61
64
  Response.new(
62
65
  resp.body,
@@ -92,7 +95,7 @@ module Octoparts
92
95
  else
93
96
  raise Octoparts::ArgumentError
94
97
  end
95
- aggregate_request.to_json(camelize: true)
98
+ aggregate_request.to_json(user_options: {camelize: true})
96
99
  end
97
100
  end
98
101
  end
@@ -3,8 +3,11 @@ module Octoparts
3
3
  class PartRequest
4
4
  attr_accessor :part_id, :id, :params
5
5
 
6
+ def initialize
7
+ @params = []
8
+ end
9
+
6
10
  def add_param(key, value)
7
- @params ||= []
8
11
  @params << Octoparts::Model::PartRequestParam.create(key, value)
9
12
  self
10
13
  end
@@ -8,8 +8,10 @@ module Octoparts
8
8
  @camelcase = camelcase
9
9
  end
10
10
 
11
- def call(_represented, args)
12
- args[:camelize] ? @camelcase : @camelcase.underscore
11
+ def call(represented)
12
+ options = represented.fetch(:options, {})
13
+ user_options = options.fetch(:user_options, {})
14
+ user_options[:camelize] ? @camelcase : @camelcase.underscore
13
15
  end
14
16
  end
15
17
 
@@ -1,3 +1,3 @@
1
1
  module Octoparts
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1.0"
3
3
  end
data/octoparts.gemspec CHANGED
@@ -6,27 +6,28 @@ require 'octoparts/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "octoparts"
8
8
  spec.version = Octoparts::VERSION
9
- spec.authors = ["Takayuki Matsubara"]
10
- spec.email = ["takayuki.1229@gmail.com"]
9
+ spec.authors = ["M3, inc."]
10
+ spec.email = ["platform-dev@m3.com"]
11
11
  spec.summary = %q{ Ruby client for the Octoparts API }
12
12
  spec.description = %q{ Ruby client library for the Octoparts API }
13
- spec.homepage = "https://github.com/ma2gedev/octoparts-rb"
13
+ spec.homepage = "https://github.com/m3dev/octoparts-rb"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
+ spec.files.reject! {|f| f == 'Gemfile.lock'}
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
20
  spec.require_paths = ["lib"]
20
21
 
21
- spec.add_dependency "representable"
22
+ spec.required_ruby_version = '> 2.2'
23
+ spec.add_dependency "representable", "~> 3.1.0"
22
24
  spec.add_dependency "activesupport", "> 4.0.0"
23
- spec.add_dependency "faraday"
25
+ spec.add_dependency "faraday", "< 2.0"
26
+ spec.add_dependency "multi_json"
24
27
 
25
- spec.add_development_dependency "bundler", "~> 1.7"
26
28
  spec.add_development_dependency "rake", "~> 10.0"
27
29
  spec.add_development_dependency "pry"
28
30
  spec.add_development_dependency "test-unit", "~> 3.0"
29
31
  spec.add_development_dependency "webmock"
30
32
  spec.add_development_dependency "vcr"
31
- spec.add_development_dependency "coveralls"
32
33
  end
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:9000/octoparts/2/cache/invalidate/cache-group/echo_group/parts
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Length:
13
+ - '0'
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - text/plain; charset=utf-8
25
+ Content-Length:
26
+ - '39'
27
+ body:
28
+ encoding: UTF-8
29
+ string: 'OK: invalidated the following: Vector()'
30
+ http_version:
31
+ recorded_at: Sun, 11 Jan 2015 08:25:26 GMT
32
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:9000/octoparts/2/cache/invalidate/cache-group/echo_group/params/fooValue
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Length:
13
+ - '0'
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - text/plain; charset=utf-8
25
+ Content-Length:
26
+ - '47'
27
+ body:
28
+ encoding: UTF-8
29
+ string: 'OK: invalidated the following: Vector(fooValue)'
30
+ http_version:
31
+ recorded_at: Sun, 11 Jan 2015 08:25:26 GMT
32
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:9000/octoparts/2/cache/invalidate/part/echo
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Length:
13
+ - '0'
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - text/plain; charset=utf-8
25
+ Content-Length:
26
+ - '2'
27
+ body:
28
+ encoding: UTF-8
29
+ string: OK
30
+ http_version:
31
+ recorded_at: Sat, 10 Jan 2015 12:21:49 GMT
32
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,32 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:9000/octoparts/2/cache/invalidate/part/echo/fooValue/test
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Length:
13
+ - '0'
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - text/plain; charset=utf-8
25
+ Content-Length:
26
+ - '2'
27
+ body:
28
+ encoding: UTF-8
29
+ string: OK
30
+ http_version:
31
+ recorded_at: Sat, 10 Jan 2015 12:24:16 GMT
32
+ recorded_with: VCR 2.9.3
data/test/helper.rb CHANGED
@@ -1,6 +1,3 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
5
2
  require 'octoparts'
6
3
 
@@ -58,7 +58,7 @@ class TestAggregateRequestRepresenter < Test::Unit::TestCase
58
58
  aggregate_request = Octoparts::Model::AggregateRequest.new
59
59
  .extend(Octoparts::Representer::AggregateRequestRepresenter).from_hash(JSON.parse(@json))
60
60
  assert do
61
- JSON.parse(aggregate_request.to_json(camelize: true)) == convert_hash_keys(JSON.parse(@json))
61
+ JSON.parse(aggregate_request.to_json(user_options: {camelize: true})) == convert_hash_keys(JSON.parse(@json))
62
62
  end
63
63
  end
64
64
  end
data/test/test_client.rb CHANGED
@@ -115,31 +115,62 @@ class TestClient < Test::Unit::TestCase
115
115
  end
116
116
  end
117
117
 
118
+ sub_test_case "#invalidate_cache" do
119
+ test "post /invalidate/part/PART_ID" do
120
+ VCR.use_cassette 'invalidate_cache_with_part_id' do
121
+ stub_request(:post, 'localhost:9000')
122
+ @client.invalidate_cache('echo')
123
+ assert_requested(:post, 'http://localhost:9000/octoparts/2/cache/invalidate/part/echo')
124
+ end
125
+ end
126
+
127
+ test "post /invalidate/part/PART_ID/PARAM_NAME/PARAM_VALUE" do
128
+ VCR.use_cassette 'invalidate_cache_with_part_id_and_key_value' do
129
+ stub_request(:post, 'localhost:9000')
130
+ @client.invalidate_cache('echo', param_name: 'fooValue', param_value: 'test')
131
+ assert_requested(:post, 'http://localhost:9000/octoparts/2/cache/invalidate/part/echo/fooValue/test')
132
+ end
133
+ end
134
+ end
135
+
136
+ sub_test_case "#invalidate_cache_group" do
137
+ test "post /invalidate/cache-group/GROUP_NAME/parts" do
138
+ VCR.use_cassette 'invalidate_cache_group_with_group_name' do
139
+ stub_request(:post, 'localhost:9000')
140
+ @client.invalidate_cache_group('echo_group')
141
+ assert_requested(:post, 'http://localhost:9000/octoparts/2/cache/invalidate/cache-group/echo_group/parts')
142
+ end
143
+ end
144
+
145
+ test "post /invalidate/cache-group/GROUP_NAME/params/PARAM_VALUE" do
146
+ VCR.use_cassette 'invalidate_cache_group_with_param_value' do
147
+ stub_request(:post, 'localhost:9000')
148
+ @client.invalidate_cache_group('echo_group', param_value: 'fooValue')
149
+ assert_requested(:post, 'http://localhost:9000/octoparts/2/cache/invalidate/cache-group/echo_group/params/fooValue')
150
+ end
151
+ end
152
+ end
153
+
118
154
  sub_test_case "timeout" do
119
155
  setup do
120
- @endpoint = Octoparts.configuration.endpoint
121
- Octoparts.configure do |c|
122
- # avoiding connection failed error, sorry heroku...
123
- # we should find other way
124
- c.endpoint = 'http://octoparts.herokuapp.com'
125
- end
126
156
  @exception_class = defined?(Faraday::TimeoutError) ? Faraday::TimeoutError : Faraday::Error::TimeoutError
127
157
  end
128
158
 
129
159
  teardown do
130
160
  Octoparts.configure do |c|
131
- c.endpoint = @endpoint
132
161
  c.timeout_sec = nil
133
162
  end
134
163
  end
135
164
 
136
165
  test "timeout_sec option" do
166
+ stub_request(:get, 'localhost:9000').to_raise(Timeout::Error)
137
167
  assert_raise @exception_class do
138
168
  Octoparts::Client.new(timeout_sec: 0).get('/')
139
169
  end
140
170
  end
141
171
 
142
172
  test "open_timeout_sec option" do
173
+ stub_request(:get, 'localhost:9000').to_raise(Timeout::Error)
143
174
  Octoparts.configure do |c|
144
175
  c.timeout_sec = 0
145
176
  end
@@ -148,4 +179,55 @@ class TestClient < Test::Unit::TestCase
148
179
  end
149
180
  end
150
181
  end
182
+
183
+ sub_test_case "error case" do
184
+ test "500 error" do
185
+ stub_request(:any, 'localhost:9000/500').to_return(status: 500, body: 'NG', headers: { 'Content-Length' => 2})
186
+ assert_raise Octoparts::ServerError do
187
+ Octoparts::Client.new(timeout_sec: 0).get('/500')
188
+ end
189
+ end
190
+ end
191
+
192
+ sub_test_case "#create_request_body" do
193
+ test "return camelized keys" do
194
+ request_hash = {
195
+ request_meta: {
196
+ id: 1,
197
+ service_id: 'hoge',
198
+ user_id: 2,
199
+ session_id: 3,
200
+ request_url: 'http://test.com',
201
+ user_agent: 'ruby',
202
+ timeout: 4
203
+ },
204
+ requests: [{
205
+ part_id: 'fuga',
206
+ id: 5,
207
+ params: [{
208
+ key: 'value_of_key',
209
+ value: 'value_of_value'
210
+ }]
211
+ }]
212
+ }
213
+ body_json = Octoparts::Client.new(timeout_sec: 0).send(:create_request_body, request_hash)
214
+ body = JSON.parse(body_json, symbolize_names: true)
215
+ assert { body[:requestMeta] != nil }
216
+ request_meta = body[:requestMeta]
217
+ assert { request_meta[:id] == 1 }
218
+ assert { request_meta[:serviceId] == 'hoge' }
219
+ assert { request_meta[:userId] == 2 }
220
+ assert { request_meta[:sessionId] == 3 }
221
+ assert { request_meta[:requestUrl] == 'http://test.com' }
222
+ assert { request_meta[:userAgent] == 'ruby' }
223
+ assert { request_meta[:timeout] == 4 }
224
+ assert { body[:requests].instance_of?(Array) }
225
+ request_item = body[:requests].first
226
+ assert { request_item[:partId] == 'fuga' }
227
+ assert { request_item[:id] == 5 }
228
+ assert { request_item[:params] != nil }
229
+ assert { request_item[:params].first[:key] == 'value_of_key' }
230
+ assert { request_item[:params].first[:value] == 'value_of_value' }
231
+ end
232
+ end
151
233
  end
@@ -5,8 +5,19 @@ class TestOctoparts < Test::Unit::TestCase
5
5
  refute_nil ::Octoparts::VERSION
6
6
  end
7
7
 
8
- def test_it_does_something_useful
9
- assert { ['exist'].empty? == false }
8
+ test ".configuration" do
9
+ assert { Octoparts.configuration.class == Octoparts::Configuration }
10
+ end
11
+
12
+ sub_test_case ".configure" do
13
+ teardown do
14
+ Octoparts.configure { |c| c.open_timeout_sec = nil }
15
+ end
16
+
17
+ test "open_timeout_sec is set at Octoparts.configure" do
18
+ Octoparts.configure { |c| c.open_timeout_sec = 2 }
19
+ assert { Octoparts.configuration.open_timeout_sec == 2 }
20
+ end
10
21
  end
11
22
 
12
23
  test "Octoparts.create_aggregate_request" do
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octoparts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Takayuki Matsubara
7
+ - M3, inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-10 00:00:00.000000000 Z
11
+ date: 2022-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: representable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '2.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "<"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '2.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: bundler
56
+ name: multi_json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.7'
62
- type: :development
61
+ version: '0'
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: '1.7'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -136,34 +136,19 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: coveralls
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
139
  description: " Ruby client library for the Octoparts API "
154
140
  email:
155
- - takayuki.1229@gmail.com
141
+ - platform-dev@m3.com
156
142
  executables: []
157
143
  extensions: []
158
144
  extra_rdoc_files: []
159
145
  files:
146
+ - ".github/workflows/ruby.yml"
160
147
  - ".gitignore"
161
- - ".travis.yml"
162
148
  - Gemfile
163
149
  - LICENSE.txt
164
150
  - README.md
165
151
  - Rakefile
166
- - gemfiles/faraday-0_8_8.gemfile
167
152
  - lib/octoparts.rb
168
153
  - lib/octoparts/builder.rb
169
154
  - lib/octoparts/client.rb
@@ -185,6 +170,10 @@ files:
185
170
  - lib/octoparts/response.rb
186
171
  - lib/octoparts/version.rb
187
172
  - octoparts.gemspec
173
+ - test/fixtures/vcr/invalidate_cache_group_with_group_name.yml
174
+ - test/fixtures/vcr/invalidate_cache_group_with_param_value.yml
175
+ - test/fixtures/vcr/invalidate_cache_with_part_id.yml
176
+ - test/fixtures/vcr/invalidate_cache_with_part_id_and_key_value.yml
188
177
  - test/fixtures/vcr/invoke_example.yml
189
178
  - test/fixtures/vcr/invoke_with_2_requests.yml
190
179
  - test/fixtures/vcr/invoke_with_aggregate_request.yml
@@ -194,7 +183,7 @@ files:
194
183
  - test/test_builder.rb
195
184
  - test/test_client.rb
196
185
  - test/test_octoparts.rb
197
- homepage: https://github.com/ma2gedev/octoparts-rb
186
+ homepage: https://github.com/m3dev/octoparts-rb
198
187
  licenses:
199
188
  - MIT
200
189
  metadata: {}
@@ -204,21 +193,24 @@ require_paths:
204
193
  - lib
205
194
  required_ruby_version: !ruby/object:Gem::Requirement
206
195
  requirements:
207
- - - ">="
196
+ - - ">"
208
197
  - !ruby/object:Gem::Version
209
- version: '0'
198
+ version: '2.2'
210
199
  required_rubygems_version: !ruby/object:Gem::Requirement
211
200
  requirements:
212
201
  - - ">="
213
202
  - !ruby/object:Gem::Version
214
203
  version: '0'
215
204
  requirements: []
216
- rubyforge_project:
217
- rubygems_version: 2.2.2
205
+ rubygems_version: 3.1.2
218
206
  signing_key:
219
207
  specification_version: 4
220
208
  summary: Ruby client for the Octoparts API
221
209
  test_files:
210
+ - test/fixtures/vcr/invalidate_cache_group_with_group_name.yml
211
+ - test/fixtures/vcr/invalidate_cache_group_with_param_value.yml
212
+ - test/fixtures/vcr/invalidate_cache_with_part_id.yml
213
+ - test/fixtures/vcr/invalidate_cache_with_part_id_and_key_value.yml
222
214
  - test/fixtures/vcr/invoke_example.yml
223
215
  - test/fixtures/vcr/invoke_with_2_requests.yml
224
216
  - test/fixtures/vcr/invoke_with_aggregate_request.yml
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0-p598
4
- - 2.1.5
5
- - 2.2.0
6
- gemfile:
7
- - Gemfile
8
- - gemfiles/faraday-0_8_8.gemfile
9
- sudo: false
10
- cache: bundler
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'faraday', '~> 0.8.8'
4
- gemspec path: '../'