google_driver 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e08a72f04804868ef2e6f0f93322dbc0128894e1
4
- data.tar.gz: 00b5dd434dfd80fc61c18006cd8f7419b6f3b74f
5
- SHA512:
6
- metadata.gz: 7e893c7baec205c47ca738b250ef3ce7f36d2592c1e5de9b82093c89c0256055dea23c969c894ff851f5755f57083c48e051ffa4e0040c9ee76609edb4e8ebd0
7
- data.tar.gz: 625b3c80d39e0fa0a4e9cce25c2bcf2b69518c3478c9967e54f84516c6d0b4f5eea8510098111e6605e9f032de5a3d61c9093929b655111259dbd50eac57ec09
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Zjk4NzA1ZjZhODgyNGI5ZTgwMmRlMjA4YjBhYjgxMzUyM2VhMTBhMQ==
5
+ data.tar.gz: !binary |-
6
+ ZjM2NDkyZDY1MTljNmEwODYyZTY0NjFmOTQzYjlmODljZGMxOTMxNw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MDVjYjJkY2E1ODM3NWNiYTFkNGU2OWJjMTlmNDllNzI1ZWJmNTQyOTA3Zjc2
10
+ M2FlOWMyMjVlNWQzMzVmMDZiNmI3ZjRiZmU4YTcxZGY2MjI2NDVkYjQwNmE1
11
+ ZTU4ZTFiYWY3YTI2M2IzM2I4ZjhjMmY0OTA0ZDQzNjIzZTgwOTA=
12
+ data.tar.gz: !binary |-
13
+ ZGMyNTkwN2Q3NzdkNDE0ZjdlYjExNDk5YjMxNDczMjczNWVmNGQ2ZTM1MTMz
14
+ MWNmNWJkMzMyMjc2YjA3MmIyYTUyYjE3YWJhNWMwZGQ5NGJmZTA4YmE3YjBj
15
+ YzExY2M5Y2E1OTliZjAwYmRiMjVmNDYzZGMzNTlmNDNjYTFkYWM=
@@ -23,8 +23,16 @@ module GoogleDriver
23
23
  end
24
24
 
25
25
  def download(type)
26
- if @exports.keys.include? type
26
+ loops = 0
27
+ if @exports and @exports.keys.include? type
27
28
  @api.client.execute(uri: @exports[type]).body
29
+ else
30
+ if loops > 5
31
+ break
32
+ end
33
+ loops+=1
34
+ sleep(5)
35
+ self.download(type)
28
36
  end
29
37
  end
30
38
  end
@@ -1,3 +1,3 @@
1
1
  module GoogleDriver
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Wolfwood
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: google-api-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
@@ -42,28 +42,28 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: A simple gem for processing documents to html with google drive
@@ -101,17 +101,17 @@ require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ! '>='
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ! '>='
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.0.3
114
+ rubygems_version: 2.0.5
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: A simple gem for processing documents to html with google drive