pwinty 3.0.0 → 3.0.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/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/pwinty.rb +2 -2
- data/lib/pwinty/version.rb +1 -1
- data/pwinty.gemspec +4 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5076f4e3e6fe45dc91cd6f502d24c3579406b2894e13835c4455feaeca66eb86
|
|
4
|
+
data.tar.gz: '07998de4bca760eee940c24e235e36aa74a543a93aee204fe6bc5f5cf0109292'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5ad732854db523ae41b30541cced1335616816219166caaa737a082fe6a55625c9c0d76cb678ce1056bbe70bb6d7d51f44766f16adf0f9c4e855b5dea09071d
|
|
7
|
+
data.tar.gz: 2ee761b1229f0cf3b08ac81b27055016a54e1e394c5f93ee4d9c970d72671add4197681b598b09eb361d3acabfe0e7790335e19a4422c1b4626728721eb1b8e4
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Pwinty
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.org/tomharvey/pwinty3-rb)
|
|
4
|
-
[](https://badge.fury.io/rb/pwinty)
|
|
5
5
|
[](https://codeclimate.com/github/tomharvey/pwinty3-rb/test_coverage)
|
|
6
6
|
[](https://codeclimate.com/github/tomharvey/pwinty3-rb/maintainability)
|
|
7
7
|
[](https://snyk.io//test/github/tomharvey/pwinty3-rb?targetFile=Gemfile.lock)
|
data/lib/pwinty.rb
CHANGED
|
@@ -52,10 +52,10 @@ module Pwinty
|
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
def self.collate_results(response_data,
|
|
55
|
+
def self.collate_results(response_data, targetted_class)
|
|
56
56
|
collection = []
|
|
57
57
|
response_data.each do |individual_attr|
|
|
58
|
-
collection <<
|
|
58
|
+
collection << targetted_class.new(individual_attr)
|
|
59
59
|
end
|
|
60
60
|
collection
|
|
61
61
|
end
|
data/lib/pwinty/version.rb
CHANGED
data/pwinty.gemspec
CHANGED
|
@@ -14,6 +14,10 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = "https://github.com/tomharvey/pwinty3-rb"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
19
|
+
spec.metadata["documentation_uri"] = "https://pwinty.com/api/"
|
|
20
|
+
|
|
17
21
|
# Specify which files should be added to the gem when it is released.
|
|
18
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
19
23
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwinty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Harvey
|
|
@@ -198,7 +198,10 @@ files:
|
|
|
198
198
|
homepage: https://github.com/tomharvey/pwinty3-rb
|
|
199
199
|
licenses:
|
|
200
200
|
- MIT
|
|
201
|
-
metadata:
|
|
201
|
+
metadata:
|
|
202
|
+
homepage_uri: https://github.com/tomharvey/pwinty3-rb
|
|
203
|
+
source_code_uri: https://github.com/tomharvey/pwinty3-rb
|
|
204
|
+
documentation_uri: https://pwinty.com/api/
|
|
202
205
|
post_install_message:
|
|
203
206
|
rdoc_options: []
|
|
204
207
|
require_paths:
|