patch_ruby 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby.rb +1 -0
- data/lib/patch_ruby/version.rb +1 -1
- data/spec/patch_ruby_spec.rb +18 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d09b1e22f7f498d5c7819426e022c4171a4cc1d51ae32694d365ceda0c8c8656
|
4
|
+
data.tar.gz: dc9667c317e177058000320a8eceb43a4876b18dd7b9aa992499c9d251f8af6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
data/lib/patch_ruby/version.rb
CHANGED
@@ -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.
|
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-
|
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
|