google_driver 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/lib/google_driver/document.rb +9 -1
- data/lib/google_driver/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
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
|
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.
|
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.
|
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
|