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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f73e9083a27b4733c86ca5111d697a8f97ba577
4
- data.tar.gz: 13402af67d06b62f82ca5b5018a92d57291a6b1c
3
+ metadata.gz: bb2b4dd54c7b8e829fd77f0d931eca88d1e322fd
4
+ data.tar.gz: 548cc5804b200a6a3c9789f7fa76657259bf21db
5
5
  SHA512:
6
- metadata.gz: 7e402cfb056282c3c080e9ab02d3ca5adb68d3d6c4b52c866c9c6ec4af646095559cfaedcf4e24d0da3ab8cc845b0ff8ca79bc16221566fb92d44db2be134089
7
- data.tar.gz: e0822cf55eec916d19ef4d3dd60dcab122bf7d835342bf2501bfcaeaebd91bf5f81758449832d7e65af2caa04369f562bdefd058c65e6f99db0eeae5b6c4cd7c
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
- ## This project is in Alpha!!!
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
@@ -35,7 +35,7 @@ module Googlecal
35
35
  @@calendar_id = calendar_id
36
36
  end
37
37
 
38
- def events(calendar_id = 'primary', **opts)
38
+ def self.events(calendar_id = 'primary', **opts)
39
39
  @@calendar_service.list_events(calendar_id,
40
40
  max_results: 10)
41
41
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Googlecal
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-19 00:00:00.000000000 Z
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