heroics 0.1.1 → 0.1.2

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: 778c2c48be2cb463e7af93a70e8e913a36f46494958d3130749a85fa179aac0b
4
- data.tar.gz: 692a2e4602bb30636f858dd639984e1ebf2a94afb142729be922fb2b6fcd02b1
3
+ metadata.gz: 935d4099ef19b7d1edd7f04bd8545d0f2a9d0a3dea2433005148854654a9efb9
4
+ data.tar.gz: afb94092e02a8ee403c4e2b2b7b0326c59f310376ce1175db13a18f185a56bdc
5
5
  SHA512:
6
- metadata.gz: 4df2fb7a4979c4fd01abeecae1958cd1d9f31a40ef3316f01388ce677ca454f9e9ca97e91f534d1673eb27f91cce7953267d2cfc3e23418344adf636e90b6cda
7
- data.tar.gz: a859026727b36f4a66920130ce83a3e5f1d1768614dad44ca511232c1484f2621c9a02e38ce3f2877d29d492a967d82a5ff41fb28acfdc8ef95d498a6c0110c3
6
+ metadata.gz: aa084cff8f5819cc23375f0764c878a44113bd094d1b47997438b2fa8e89e24f56e5ac1fa5dab9341fae077cc329e3d1fac4a5ec26a74e859bfeec50e2951a6b
7
+ data.tar.gz: 7417de326cf4f11b9f7dc73df4d4397fcfde7f130a34ed4b287226d1c0a536fee1e2f013a15ddb4c596453fc49167d6a218d630ac54059890ad0411e7d32412d
@@ -0,0 +1,12 @@
1
+ name: Check Changelog
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ - name: Check that CHANGELOG is touched
11
+ run: |
12
+ cat $GITHUB_EVENT_PATH | jq .pull_request.title | grep -i '\[\(\(changelog skip\)\|\(ci skip\)\)\]' || git diff remotes/origin/${{ github.base_ref }} --name-only | grep CHANGELOG.md
@@ -1,3 +1,7 @@
1
+ ## 0.1.2
2
+
3
+ - Add support for Ruby 3.0 (https://github.com/interagent/heroics/pull/101)
4
+
1
5
  ## 0.1.1
2
6
 
3
7
  - Add status codes configuration (https://github.com/interagent/heroics/pull/96)
data/Rakefile CHANGED
@@ -3,7 +3,6 @@ require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new do |task|
5
5
  task.verbose = true
6
- task.ruby_opts << '-r turn/autorun'
7
6
  task.ruby_opts << '-I test'
8
7
  task.test_files = FileList['test/**/*_test.rb', 'test/**/*_spec.rb']
9
8
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'heroics'
4
4
  require 'netrc'
5
+ require 'moneta'
5
6
 
6
7
  netrc = Netrc.read
7
8
  username, token = netrc['api.heroku.com']
@@ -24,7 +24,6 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'minitest', '4.7.5'
25
25
  spec.add_development_dependency 'netrc'
26
26
  spec.add_development_dependency 'rake'
27
- spec.add_development_dependency 'turn'
28
27
  spec.add_development_dependency 'yard'
29
28
  spec.add_development_dependency 'pry'
30
29
 
@@ -32,4 +31,5 @@ Gem::Specification.new do |spec|
32
31
  spec.add_dependency 'excon'
33
32
  spec.add_dependency 'multi_json', '>= 1.9.2'
34
33
  spec.add_dependency 'moneta'
34
+ spec.add_dependency 'webrick'
35
35
  end
@@ -244,7 +244,7 @@ module Heroics
244
244
  [value['$ref'], key]
245
245
  end]
246
246
  parameters.map do |parameter|
247
- definition_name = URI.unescape(parameter[2..-3])
247
+ definition_name = ::URI::DEFAULT_PARSER.unescape(parameter[2..-3])
248
248
  if definitions.has_key?(definition_name)
249
249
  definitions[definition_name]
250
250
  else
@@ -273,7 +273,7 @@ module Heroics
273
273
  def resolve_parameter_details(parameters)
274
274
  parameters.map do |parameter|
275
275
  # URI decode parameters and strip the leading '{(' and trailing ')}'.
276
- parameter = URI.unescape(parameter[2..-3])
276
+ parameter = ::URI::DEFAULT_PARSER.unescape(parameter[2..-3])
277
277
 
278
278
  # Split the path into components and discard the leading '#' that
279
279
  # represents the root of the schema.
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Heroics
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus
8
8
  - jkakar
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-08 00:00:00.000000000 Z
12
+ date: 2021-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -67,20 +67,6 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: turn
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
70
  - !ruby/object:Gem::Dependency
85
71
  name: yard
86
72
  requirement: !ruby/object:Gem::Requirement
@@ -165,6 +151,20 @@ dependencies:
165
151
  - - ">="
166
152
  - !ruby/object:Gem::Version
167
153
  version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: webrick
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ type: :runtime
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
168
  description: A Ruby client generator for HTTP APIs described with a JSON schema
169
169
  email:
170
170
  - geemus@gmail.com
@@ -175,6 +175,7 @@ executables:
175
175
  extensions: []
176
176
  extra_rdoc_files: []
177
177
  files:
178
+ - ".github/workflows/check_changelog.yml"
178
179
  - ".gitignore"
179
180
  - ".travis.yml"
180
181
  - CHANGELOG.md
@@ -206,7 +207,7 @@ homepage: https://github.com/interagent/heroics
206
207
  licenses:
207
208
  - MIT
208
209
  metadata: {}
209
- post_install_message:
210
+ post_install_message:
210
211
  rdoc_options: []
211
212
  require_paths:
212
213
  - lib
@@ -221,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
222
  - !ruby/object:Gem::Version
222
223
  version: '0'
223
224
  requirements: []
224
- rubygems_version: 3.0.3
225
- signing_key:
225
+ rubygems_version: 3.1.4
226
+ signing_key:
226
227
  specification_version: 4
227
228
  summary: A Ruby client generator for HTTP APIs described with a JSON schema
228
229
  test_files: []