googlecal 0.1.2 → 0.1.3
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/README.md +3 -1
- data/lib/googlecal/base.rb +1 -1
- data/lib/googlecal/gevent.rb +9 -0
- data/lib/googlecal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb2b4dd54c7b8e829fd77f0d931eca88d1e322fd
|
|
4
|
+
data.tar.gz: 548cc5804b200a6a3c9789f7fa76657259bf21db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 95c5a521e3778d89399e29bf1307393b637914bbdcfa4581e71fcda6fedb6c589fdc5e670b80539050b0baa74054e51f36ad9d2a3d4ea58fdd991eb067afa9f9
|
|
7
|
+
data.tar.gz: 545c3972dd6632d30497d74fe0ba23516e3a6fe7df5775addb682f6ca5542f4093404e90e88a0131e4f8e6376e08f7421161a13d738ff31df8966e58e2fa8595
|
data/README.md
CHANGED
|
@@ -7,7 +7,9 @@ Version](https://badge.fury.io/rb/googlecal.svg)](https://badge.fury.io/rb/googl
|
|
|
7
7
|
|
|
8
8
|
_simple wrapper for google calendar api for ruby_
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
[Documentation](https://ennovar.github.io/googlecal/)
|
|
11
|
+
|
|
12
|
+
## Instal
|
|
11
13
|
|
|
12
14
|
## Testing Setup
|
|
13
15
|
Before you are ready to start developing on the project there are a
|
data/lib/googlecal/base.rb
CHANGED
data/lib/googlecal/gevent.rb
CHANGED
|
@@ -87,6 +87,15 @@ module Googlecal
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
def self.search(query, calendar_id = Base.calendar_id)
|
|
91
|
+
begin
|
|
92
|
+
events = service.list_events(calendar_id, q: query)
|
|
93
|
+
return events
|
|
94
|
+
catch e
|
|
95
|
+
return nil
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
90
99
|
private
|
|
91
100
|
|
|
92
101
|
# control access to parent classes static instance to googlapi service
|
data/lib/googlecal/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: googlecal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Austin M Crane
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03-
|
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-api-client
|