open_api_annotator 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: ddc36e09b9182c9ef88202e74c55a495ceb265170b372b0eb7e31aab8238a911
4
- data.tar.gz: c3d0b9cad9fd89017d78985cfc2efd8a66f5238a06e5ee0c395d975855fd414e
3
+ metadata.gz: 928d9daca39028c7d5016fa2e44ca116891194210ebaee873e325240bff2a428
4
+ data.tar.gz: f40479f6b544ccef964c611acf974763bc205b623682b6114d66707253638b75
5
5
  SHA512:
6
- metadata.gz: 91c91984bb0ffc96f879c7f8bf5d977636116519f6e07debd305a09e23fe579ad415c25e4cde8f30476b8a8e79bf9a0ee0c3224ad26cc99cf91b26708a38fbd0
7
- data.tar.gz: 4b339fcaea2ebb08bf321a70730f1d8020d398066fa51760b57d998106f393ac5fd9be254d376c30978fe91deecd57a1670abb7a5e130fc21e45ffadb58459d8
6
+ metadata.gz: 7bfb5f922e2b92ef554b3b2d042a108471a4fe666fd69ed9c242eeae1e48b1105af7dc30caafd8d7be64babeb478990918136563b1deedf1d3f18099addfd098
7
+ data.tar.gz: 7198242aec1d0c81b3e47e0ba44bcbbbfea679673f9bdf31de31c753b45aff536e4c15f46cd26b854220fbe249c82b3aa46d1a78f8b2cdc86920f26a36cdbfe2
@@ -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: 921d046db793707b7d0c0d1305970a137fdf98fbc6ceeb6c355c44757040244f
data/.gitignore CHANGED
@@ -8,6 +8,7 @@
8
8
  /tmp/
9
9
 
10
10
  Gemfile.lock
11
+ *.gemfile.lock
11
12
 
12
13
  # rspec failure tracking
13
14
  .rspec_status
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 3.0.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## Not released yet
2
2
 
3
+ ## 0.6.0
4
+ - Support Ruby 3.0 and Rails 6.1
3
5
  ## 0.5.0
4
6
  - Allow using with rails 6
5
7
 
@@ -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_annotator.gemspec
6
+ gemspec path: '..'
7
+
8
+ gem 'railties', '~> 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_annotator.gemspec
6
+ gemspec path: '..'
7
+
8
+ gem 'railties', '~> 6.0.0'
@@ -34,7 +34,7 @@ module OpenApiAnnotator
34
34
  validate_open_api_format!(options[:format])
35
35
  validate_open_api_nullable!(options[:nullable])
36
36
  rescue ValidationError => e
37
- Rails.logger.warn(e.message)
37
+ Rails.logger.warn("Within #{self.name}, #{field}: #{e.message}")
38
38
  end
39
39
 
40
40
  def validate_open_api_type!(type)
@@ -1,3 +1,3 @@
1
1
  module OpenApiAnnotator
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -24,14 +24,15 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency "open_api", ">= 0.5.0"
25
25
  spec.add_dependency "active_model_serializers", "~> 0.10.0"
26
26
 
27
- rails_versions = ['>= 5.0', '< 6.1']
27
+ rails_versions = ['>= 5.0', '< 6.2']
28
28
  spec.add_dependency "actionpack", rails_versions
29
29
  spec.add_dependency "railties", rails_versions
30
30
 
31
- spec.add_development_dependency "bundler", "~> 2.1.4"
32
- spec.add_development_dependency "rake", "~> 10.0"
31
+ spec.add_development_dependency "bundler", "~> 2.0"
32
+ spec.add_development_dependency "rake", "~> 13.0"
33
33
  spec.add_development_dependency "rspec", "~> 3.0"
34
34
  spec.add_development_dependency "pry"
35
- spec.add_development_dependency "simplecov"
35
+ # Pin to 1.17 due to https://github.com/codeclimate/test-reporter/issues/413
36
+ spec.add_development_dependency "simplecov", "~> 0.17.0"
36
37
  spec.add_development_dependency "bump"
37
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_api_annotator
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
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2021-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open_api
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: '5.0'
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: '6.1'
50
+ version: '6.2'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: '5.0'
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: '6.1'
60
+ version: '6.2'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: railties
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: '5.0'
68
68
  - - "<"
69
69
  - !ruby/object:Gem::Version
70
- version: '6.1'
70
+ version: '6.2'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -77,35 +77,35 @@ dependencies:
77
77
  version: '5.0'
78
78
  - - "<"
79
79
  - !ruby/object:Gem::Version
80
- version: '6.1'
80
+ version: '6.2'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: bundler
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 2.1.4
87
+ version: '2.0'
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 2.1.4
94
+ version: '2.0'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: rake
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '10.0'
101
+ version: '13.0'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '10.0'
108
+ version: '13.0'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rspec
111
111
  requirement: !ruby/object:Gem::Requirement
@@ -138,16 +138,16 @@ dependencies:
138
138
  name: simplecov
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ">="
141
+ - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '0'
143
+ version: 0.17.0
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">="
148
+ - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '0'
150
+ version: 0.17.0
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: bump
153
153
  requirement: !ruby/object:Gem::Requirement
@@ -170,10 +170,10 @@ executables: []
170
170
  extensions: []
171
171
  extra_rdoc_files: []
172
172
  files:
173
+ - ".github/workflows/test.yml"
173
174
  - ".gitignore"
174
175
  - ".rspec"
175
176
  - ".ruby-version"
176
- - ".travis.yml"
177
177
  - CHANGELOG.md
178
178
  - CODE_OF_CONDUCT.md
179
179
  - Gemfile
@@ -182,6 +182,8 @@ files:
182
182
  - Rakefile
183
183
  - bin/console
184
184
  - bin/setup
185
+ - gemfiles/rails-5.2.gemfile
186
+ - gemfiles/rails-6.0.gemfile
185
187
  - lib/open_api_annotator.rb
186
188
  - lib/open_api_annotator/association.rb
187
189
  - lib/open_api_annotator/attribute.rb
@@ -205,7 +207,7 @@ homepage: https://github.com/ngtk/open_api_annotator
205
207
  licenses:
206
208
  - MIT
207
209
  metadata: {}
208
- post_install_message:
210
+ post_install_message:
209
211
  rdoc_options: []
210
212
  require_paths:
211
213
  - lib
@@ -220,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
222
  - !ruby/object:Gem::Version
221
223
  version: '0'
222
224
  requirements: []
223
- rubygems_version: 3.0.3
224
- signing_key:
225
+ rubygems_version: 3.2.24
226
+ signing_key:
225
227
  specification_version: 4
226
228
  summary: OpenApi spec generation by bottom-up.
227
229
  test_files: []
data/.travis.yml DELETED
@@ -1,18 +0,0 @@
1
- env:
2
- global:
3
- - CC_TEST_REPORTER_ID=921d046db793707b7d0c0d1305970a137fdf98fbc6ceeb6c355c44757040244f
4
- sudo: false
5
- language: ruby
6
- rvm:
7
- - 2.4.9
8
- - 2.5.7
9
- - 2.6.5
10
- before_install:
11
- - gem install -v 2.1.4 bundler
12
- - bundle _2.1.4_ install
13
- before_script:
14
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15
- - chmod +x ./cc-test-reporter
16
- - ./cc-test-reporter before-build
17
- after_script:
18
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT