mobilize-base 1.28 → 1.29
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/lib/mobilize-base/handlers/gbook.rb +10 -4
- data/lib/mobilize-base/models/runner.rb +1 -1
- data/lib/mobilize-base/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f9a6722ac789fc50db809c8e0517269cebadd29
|
|
4
|
+
data.tar.gz: 7f8bafe31d1cbfd9d5b455c433534049386ff429
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2d0765f4252e1f601b29cc129534ae47c4a52b542f4ea3d500ce708d5b8ecc4fb33f9b99fa67dfe31f8c97a6280946e78bac13805335cb195a53eda83ce26af
|
|
7
|
+
data.tar.gz: d464e30df4aa38bb484235d9ab160db54664854328cec7ee772f274e48986c1557dd13ea159018bb52f448017be64250c3a0b11b139c5795d9c318724e1ada1e
|
|
@@ -14,11 +14,17 @@ module Mobilize
|
|
|
14
14
|
dst = Dataset.find_by_handler_and_path('gbook',path)
|
|
15
15
|
if dst and dst.http_url.to_s.length>0
|
|
16
16
|
book = Gbook.find_by_http_url(dst.http_url,gdrive_slot)
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
begin
|
|
18
|
+
#doesn't count if it's deleted
|
|
19
|
+
#or if its name can't be accessed
|
|
20
|
+
if book.entry_hash[:deleted]
|
|
21
|
+
book = nil
|
|
22
|
+
else
|
|
23
|
+
return book
|
|
24
|
+
end
|
|
25
|
+
rescue
|
|
26
|
+
#use regular process if book entry hash fails
|
|
19
27
|
book = nil
|
|
20
|
-
else
|
|
21
|
-
return book
|
|
22
28
|
end
|
|
23
29
|
end
|
|
24
30
|
books = Gbook.find_all_by_path(path,gdrive_slot)
|