open_api 0.5.0 → 0.6.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
2
  SHA256:
3
- metadata.gz: b873a80b8a7d3cf8b4f3a320052254e8a0715f60a2adfeba8108bf5ca7cbe834
4
- data.tar.gz: 5eb55f67cee4de634e0304c5b809f7d176319790b6763da074cc127365f677a4
3
+ metadata.gz: bb57b4e43ec107bec1a066f674386b1c599bb92f39b961cc766150fc0efe3add
4
+ data.tar.gz: dd9bbb124fc68821fa0876bb207e3d3e92dacb1b6e52ead4fb771a1be57a05a6
5
5
  SHA512:
6
- metadata.gz: f4da90260b35a74de8efd21b66ac286cc34f1a61dbccb7c7cac53c93a623c5ecdaa7c01e34a59ec2d42e88f61f51a57872340fe5dc97391c9b0d8f23ade7b556
7
- data.tar.gz: 035a79cda830631267d77dfa0c2b62fd1285cce0e3e5166ac9dd35729d91e97456dd295756f6b05176acfcd92fe69aa96ecb4b20713e29dce5f3d26dce14dcce
6
+ metadata.gz: 5f40c17eef8d3bd6c4851f2a3421034f16c936ca81cfd5023639889194cd6a99f6a0513a7f8aa953b5935e76831e33fd09b1dc2d196e2305fa11a4fe9721192e
7
+ data.tar.gz: 44be1896d44eac13e20f013cd32a5db63ba077359fd6596cedc8617ce1f2ea997f35b53c3f1c0b29ae9a68c04e1d9d22a8265335099ade1f80442cfbb6c885da
@@ -0,0 +1,29 @@
1
+ name: test
2
+ on: [push, pull_request]
3
+ jobs:
4
+ test:
5
+ strategy:
6
+ matrix:
7
+ ruby: ["2.5", "2.6", "2.7", "3.0"]
8
+ gemfile: [Gemfile]
9
+ include:
10
+ - ruby: "2.7"
11
+ gemfile: "gemfiles/rails-6.0.gemfile"
12
+ - ruby: "2.6"
13
+ gemfile: "gemfiles/rails-5.2.gemfile"
14
+
15
+ env:
16
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
17
+
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: ${{ matrix.ruby }}
24
+ bundler-cache: true
25
+ - run: bundle exec rake
26
+ - name: Send coverage
27
+ uses: paambaati/codeclimate-action@v2.7.5
28
+ env:
29
+ CC_TEST_REPORTER_ID: 618e64226e212a5824797037cb1a71487cdbfb3aa664bddc42a7189fb027f73a
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  .rspec_status
12
12
 
13
13
  Gemfile.lock
14
+ *.gemfile.lock
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 3.0.2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  ## Unreleased
2
2
 
3
-
3
+ ## 0.6.0
4
+ - Supported Ruby 3.0 by fixing keyword parameters
5
+ - Relaxed the version constraint on Rails
4
6
  ## 0.5.0
5
7
  - Allow using with rails 6
6
8
 
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in open_api.gemspec
6
+ gemspec path: '..'
7
+
8
+ gem 'activesupport', '~> 5.2.0'
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in open_api.gemspec
6
+ gemspec path: '..'
7
+
8
+ gem 'activesupport', '~> 6.0.0'
@@ -3,7 +3,7 @@ module OpenApi
3
3
  class Callback
4
4
  extend Forwardable
5
5
 
6
- def initialize(**hash)
6
+ def initialize(hash)
7
7
  self.hash = hash.with_indifferent_access
8
8
  end
9
9
 
@@ -12,7 +12,7 @@ module OpenApi
12
12
  def self.load(hash)
13
13
  return unless hash
14
14
 
15
- new(**hash.symbolize_keys)
15
+ new(hash.symbolize_keys)
16
16
  end
17
17
 
18
18
  private
@@ -4,7 +4,7 @@ module OpenApi
4
4
  extend Forwardable
5
5
  prepend EquatableAsContent
6
6
 
7
- def initialize(**path_hash)
7
+ def initialize(path_hash)
8
8
  self.path_hash = path_hash.with_indifferent_access
9
9
  end
10
10
 
@@ -12,7 +12,7 @@ module OpenApi
12
12
 
13
13
  def self.load(hash)
14
14
  hash = hash.map { |k, v| [k.to_sym, PathItem.load(v)] }.to_h
15
- new(**hash)
15
+ new(hash)
16
16
  end
17
17
 
18
18
  def serializable_hash
@@ -1,3 +1,3 @@
1
1
  module OpenApi
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
data/open_api.gemspec CHANGED
@@ -21,11 +21,12 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ["lib"]
23
23
 
24
- spec.add_dependency "activesupport", ['>= 5.0', '< 6.1']
25
- spec.add_development_dependency "bundler", "~> 2.1.4"
26
- spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_dependency "activesupport", ['>= 5.0', '< 6.2']
25
+ spec.add_development_dependency "bundler", "~> 2.0"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.0"
28
28
  spec.add_development_dependency "pry"
29
- spec.add_development_dependency "simplecov"
29
+ # Pin to 1.17 due to https://github.com/codeclimate/test-reporter/issues/413
30
+ spec.add_development_dependency "simplecov", "~> 0.17.0"
30
31
  spec.add_development_dependency "bump"
31
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kent Nagata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2021-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '6.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,35 +29,35 @@ dependencies:
29
29
  version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '6.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.4
39
+ version: '2.0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.1.4
46
+ version: '2.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '10.0'
53
+ version: '13.0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '10.0'
60
+ version: '13.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -90,16 +90,16 @@ dependencies:
90
90
  name: simplecov
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0'
95
+ version: 0.17.0
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '0'
102
+ version: 0.17.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: bump
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -122,10 +122,10 @@ extensions: []
122
122
  extra_rdoc_files: []
123
123
  files:
124
124
  - ".github/ISSUE_TEMPLATE/Custom.md"
125
+ - ".github/workflows/test.yml"
125
126
  - ".gitignore"
126
127
  - ".rspec"
127
128
  - ".ruby-version"
128
- - ".travis.yml"
129
129
  - CHANGELOG.md
130
130
  - CODE_OF_CONDUCT.md
131
131
  - Gemfile
@@ -134,6 +134,8 @@ files:
134
134
  - Rakefile
135
135
  - bin/console
136
136
  - bin/setup
137
+ - gemfiles/rails-5.2.gemfile
138
+ - gemfiles/rails-6.0.gemfile
137
139
  - lib/open_api.rb
138
140
  - lib/open_api/callback.rb
139
141
  - lib/open_api/components.rb
@@ -190,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
192
  - !ruby/object:Gem::Version
191
193
  version: '0'
192
194
  requirements: []
193
- rubygems_version: 3.0.3
195
+ rubygems_version: 3.1.4
194
196
  signing_key:
195
197
  specification_version: 4
196
198
  summary: Provide PORO of OpenAPI specification
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- env:
2
- global:
3
- - CC_TEST_REPORTER_ID=618e64226e212a5824797037cb1a71487cdbfb3aa664bddc42a7189fb027f73a
4
- sudo: false
5
- language: ruby
6
- rvm:
7
- - 2.4.4
8
- - 2.5.1
9
- before_install: gem install bundler -v 1.16.1
10
- before_script:
11
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
12
- - chmod +x ./cc-test-reporter
13
- - ./cc-test-reporter before-build
14
- after_script:
15
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT