patch_ruby 1.5.0 → 1.5.1

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: dad4b825fa4e046cac94a1672e5b89d5fc1edd0ab48e414d35449e71137a1b01
4
- data.tar.gz: 8a23b9c1d27d6dd8b32da5f064e7aaef3bd4c2452d3b9e4934c2dd9877d97c6b
3
+ metadata.gz: d09b1e22f7f498d5c7819426e022c4171a4cc1d51ae32694d365ceda0c8c8656
4
+ data.tar.gz: dc9667c317e177058000320a8eceb43a4876b18dd7b9aa992499c9d251f8af6b
5
5
  SHA512:
6
- metadata.gz: ee4a8a1abc63aea00bff1b795340ab44bad333e539f89d39733d74d8645907796afdbc2a72f0ab93a84bdde82ec2d9dc825c8fe7ebd3715337fc82a606edab12
7
- data.tar.gz: 96376448d26040c8ce8be567a9ff9110964f1fb380ab7852029274508ce2b9ab599a809f927918dd0661dc153f2eee6f03315f4486b3ce7d4ebadf76e08cc951
6
+ metadata.gz: c0c9367186636b8324d21ee4301d3e72399e443769076d8b4a9a9c6cf9680311584a05bd39378623830fd50a8c06d2b223dadccdc1d53ff24e043ab2fc4f0356
7
+ data.tar.gz: f5f34793410169015ee2512217d9c6a64d8ed02c1b0ba361df5ceb1074dfde705dd3dc05249a29fffbe5edb93bca790e0f98b8ccb6b589935b446b67a6493755
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.5.1] - 2021-03-02
9
+
10
+ ### Fixed
11
+
12
+ - Fixed a `NameError` that was thrown when `Patch::Sdg` was called. Specs have been added to ensure this does not happen again.
13
+
8
14
  ## [1.5.0] - 2021-03-01
9
15
 
10
16
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- patch_ruby (1.4.0)
4
+ patch_ruby (1.5.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
data/lib/patch_ruby.rb CHANGED
@@ -36,6 +36,7 @@ require 'patch_ruby/models/preference_response'
36
36
  require 'patch_ruby/models/project'
37
37
  require 'patch_ruby/models/project_list_response'
38
38
  require 'patch_ruby/models/project_response'
39
+ require 'patch_ruby/models/sdg'
39
40
  require 'patch_ruby/models/standard'
40
41
 
41
42
  # APIs
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module Patch
14
- VERSION = '1.5.0'
14
+ VERSION = '1.5.1'
15
15
  end
@@ -0,0 +1,18 @@
1
+ describe Patch do
2
+ context 'Models' do
3
+ it 'defines all models' do
4
+ constants.each do |constant|
5
+ expect { Patch.const_get(constant) }.not_to raise_error
6
+ end
7
+ end
8
+ end
9
+
10
+ def constants
11
+ # Given a file path return the constant of that path, for example:
12
+ # 'lib/patch_ruby/models/project_response.rb' -> ProjectResponse
13
+ Dir.glob("lib/patch_ruby/models/*.rb").map do |file|
14
+ parsed_filename = file.split('/').last.split('.').first
15
+ constant = parsed_filename.split('_').map(&:capitalize).join('')
16
+ end
17
+ end
18
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patch_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patch Technology
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-01 00:00:00.000000000 Z
11
+ date: 2021-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -161,6 +161,7 @@ files:
161
161
  - spec/models/project_list_response_spec.rb
162
162
  - spec/models/project_response_spec.rb
163
163
  - spec/models/project_spec.rb
164
+ - spec/patch_ruby_spec.rb
164
165
  - spec/spec_helper.rb
165
166
  - spec/support/shared/generated_classes.rb
166
167
  homepage: https://www.patch.io
@@ -234,5 +235,6 @@ test_files:
234
235
  - spec/models/estimate_spec.rb
235
236
  - spec/models/meta_index_object_spec.rb
236
237
  - spec/models/preference_response_spec.rb
238
+ - spec/patch_ruby_spec.rb
237
239
  - spec/spec_helper.rb
238
240
  - spec/support/shared/generated_classes.rb