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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d585b7e037025643472d0d1406c2079e7c22d88e
4
- data.tar.gz: 201689b7fbf1dc90092215346ced0f9c835a626f
3
+ metadata.gz: 2f9a6722ac789fc50db809c8e0517269cebadd29
4
+ data.tar.gz: 7f8bafe31d1cbfd9d5b455c433534049386ff429
5
5
  SHA512:
6
- metadata.gz: f2136c885a8fd0e632cd0ffa256b529726e9dda38b28c886210083f5695803e40eb771e839aba32a80b44106ff7861929abb824d71422fa254da97a06d2be3d3
7
- data.tar.gz: 29753d537891bf772f9fa81afdc5f9a26baa695d32870a052971edf9d4440af1fbac1640e23a75a3b9fcd46cfcd85e9861afbcd7da84174734f98f5c5e1962b2
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
- #doesn't count if it's deleted
18
- if book.entry_hash[:deleted]
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)
@@ -76,7 +76,7 @@ module Mobilize
76
76
  def gbook(gdrive_slot)
77
77
  r = self
78
78
  title = r.path.split("/").first
79
- Gbook.find_all_by_path(title,gdrive_slot).first
79
+ Gbook.find_by_path(title,gdrive_slot)
80
80
  end
81
81
 
82
82
  def gsheet(gdrive_slot)
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Base
3
- VERSION = "1.28"
3
+ VERSION = "1.29"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-base
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.28'
4
+ version: '1.29'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cassio Paes-Leme