google-api-middle_man 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5afcff094f5049791c43c3a6c48ca55954b74948
4
- data.tar.gz: c9adbbc80576746f427e7f40305dd257a21bb87c
3
+ metadata.gz: 86e0ed29296d0fe1ec72fdffb4b1f3121ea9617d
4
+ data.tar.gz: 1ac0f72f93e101fdf2710da90013124036a511c5
5
5
  SHA512:
6
- metadata.gz: 68bb54e6e9e0616be530ebefc00f7fdf9a83b7c7328e1cd337333c2f909da80550451630fc22320371173de862b88320d6764e3b94d486bcda7e3f5c3e87b872
7
- data.tar.gz: 9d3b175573f860bb175c09d91a0755845816e1962b6c83a2c4714a9891c1268e24a75830b79e814dffa84f3483a40f5c74c018325f1d13d4b8e71252a665430a
6
+ metadata.gz: 997f992ba82729f6624072e0631694eff8367ecea6203645293b39ecf0bd9a18aeff9c89567ee64e3ece2bbd90be5a3a4af68660f101c8728f86b5436c33a470
7
+ data.tar.gz: 7f2c61126b2b21cec5189d6e15939050321f05d07dbba4c1e522613f00e08486a31494dfd77d043faa532b90d2aae376123e4110bd0ea0e253a8f5ae7ff7a356
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GoogleTravelAgent
2
2
 
3
- TODO: Write a gem description
3
+ Use a middle man for dealing with Google API
4
4
 
5
5
  ## Installation
6
6
 
@@ -17,8 +17,24 @@ Or install it yourself as:
17
17
  $ gem install google-api-middle_man
18
18
 
19
19
  ## Usage
20
+ Look under `examples`
21
+ ```ruby
22
+ #!/usr/bin/env ruby
20
23
 
21
- TODO: Write usage instructions here
24
+ require 'google-api-middle_man'
25
+
26
+ email = "google_service_account@email"
27
+ calendarId = "google_calendar_id"
28
+
29
+ google_config = {
30
+ application_name: "google_project_name",
31
+ key_location: 'client.p12',
32
+ google_service_email: email
33
+ }
34
+
35
+ agent = GoogleAPIMiddleMan::Agent.new(google_config)
36
+ agent.calendar_events(calendar_id)
37
+ ```
22
38
 
23
39
  ## Contributing
24
40
 
@@ -27,3 +43,4 @@ TODO: Write usage instructions here
27
43
  3. Commit your changes (`git commit -am 'Add some feature'`)
28
44
  4. Push to the branch (`git push origin my-new-feature`)
29
45
  5. Create new Pull Request
46
+
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["shaun@substantial.com"]
11
11
  spec.description = %q{Simplify the Google API}
12
12
  spec.summary = %q{Simplify the Google API}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/substantial/google-api-middle_man"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  module GoogleTravelAgent
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-middle_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Dern
@@ -86,7 +86,7 @@ files:
86
86
  - lib/google-api-middle_man/version.rb
87
87
  - spec/lib/google-api-middle_man_spec.rb
88
88
  - spec/spec_helper.rb
89
- homepage: ''
89
+ homepage: https://github.com/substantial/google-api-middle_man
90
90
  licenses:
91
91
  - MIT
92
92
  metadata: {}