gvive 1.1.0 → 1.1.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
  SHA1:
3
- metadata.gz: 0f42745844ffddfcd7269bd08365ee80518ca179
4
- data.tar.gz: '044974c569d35df4b488b5939da0ffae3ac965dc'
3
+ metadata.gz: fbd61e8ebaf4ad2115399dd5763ea485f9a6c29d
4
+ data.tar.gz: 593aa4a3ba49e58e1859b7e719dd343eb3e31a9c
5
5
  SHA512:
6
- metadata.gz: 9c91a649208b21b9bcf9161e304dd8c3de2c02fe49cdd59607c6256357c28ae6457dd57220ed3fcb333ba33259b67566f198d5a9339b088f618d9f8a180cd134
7
- data.tar.gz: 0a1f34f154619ec91fc8b87c23c5d307e67e76e8c94864a45404c8db419033338476e75cf00caae1456b394dbb856e9a9f33c71c2833fb368c99e4bf51a18ed1
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/[USERNAME]/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.
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
@@ -1,3 +1,3 @@
1
1
  module GVIVE
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-09-30 00:00:00.000000000 Z
11
+ date: 2017-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler