gvive 1.1.0 → 1.1.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/README.md +1 -1
- data/lib/gvive/identity/passport.rb +8 -0
- data/lib/gvive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbd61e8ebaf4ad2115399dd5763ea485f9a6c29d
|
|
4
|
+
data.tar.gz: 593aa4a3ba49e58e1859b7e719dd343eb3e31a9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1e5f5cbaccba3e996a6111469fc676d7da9dc938e8d389ccf51010747f94c28d04bf34b5c5d059c2258ef5a91e116ad256c5cae7944ccce2dd48bad91366df7
|
|
7
|
+
data.tar.gz: ff9cefdd812d031d4eab4d2e79ea52e3e50200748caeae36ee2e83a63f61b4164d98fb438d997279b7ecb9b6ca18b230cfc54baa324775dba5babc173e497890
|
data/README.md
CHANGED
|
@@ -109,7 +109,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
109
109
|
|
|
110
110
|
## Contributing
|
|
111
111
|
|
|
112
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
112
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/nukturnal/gvive. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
113
113
|
|
|
114
114
|
## License
|
|
115
115
|
|
|
@@ -16,8 +16,16 @@ module GVIVE
|
|
|
16
16
|
def valid?
|
|
17
17
|
@response = gvive_request(passport_endpoint, id_params({ pid: @id }))
|
|
18
18
|
@data = @response.to_o
|
|
19
|
+
check_image_flags
|
|
19
20
|
@response.success?
|
|
20
21
|
end
|
|
22
|
+
|
|
23
|
+
# Artificially remove image blobs if flag is false
|
|
24
|
+
# This relates to issue logged at https://github.com/nukturnal/gvive/issues/2
|
|
25
|
+
def check_image_flags
|
|
26
|
+
@data.signature = nil if @signature == false
|
|
27
|
+
@data.picture = nil if @photo == false
|
|
28
|
+
end
|
|
21
29
|
end
|
|
22
30
|
end
|
|
23
31
|
end
|
data/lib/gvive/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gvive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alfred Rowe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|