bps-google-api 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: 4c9bdd0dbd8450f6fc8ccca6dfc573c0162a675b
4
- data.tar.gz: ea97614006f842d3cbd6a1781110f83514bd7110
3
+ metadata.gz: 8eff47c99912679cfc122fc41ce6e98d49517c02
4
+ data.tar.gz: 2d96aa50347b5ed0333b3018b8f34d580eef8fa9
5
5
  SHA512:
6
- metadata.gz: 52d33984ef3ef387e3a35120325e2227d16aed10593537c5d6ef50640157d12f10b95d689f451279138fb7c7ef728f0fdc8e9651dcfac4cb9ad700a309094b0e
7
- data.tar.gz: 408fbf62a6f872d2471e70fb5de9f2a772fe2e92ea9d05be2aa496e3eda0974f1b50c19e3e7b11faacb53ae95d19180b9ec643a4651bbb2d4f00ae38dedfbcac
6
+ metadata.gz: 5416b66ee21ae81e3ce50c73c5aa05e4be924dbd6e8ae9bf92bf4c2a37b6308d7d496176b1cba4caa53449100c95be8e301da4702f43acace2de3e28db7952de
7
+ data.tar.gz: '0808cd665b75f5a229d29a6c387e59c32254bfd804c367a96aeb10e7440abb5e0eda0e40ed808a130ce80908f7bc078c8dcb944c33266eae078d7f74e5b5a457'
data/.rubocop.yml CHANGED
@@ -1,6 +1,3 @@
1
- require:
2
- - rubocop-rspec
3
- - rubocop-performance
4
1
  AllCops:
5
2
  TargetRubyVersion: 2.5
6
3
  Exclude:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bps-google-api (0.1.2)
4
+ bps-google-api (0.1.3)
5
5
  exp_retry (~> 0.0.8)
6
6
  fileutils (~> 1.2)
7
7
  google-api-client (~> 0.23.4)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bps-google-api'
5
- s.version = '0.1.2'
5
+ s.version = '0.1.3'
6
6
  s.date = '2019-06-15'
7
7
  s.summary = 'Configured Google API'
8
8
  s.description = 'A configured Google API wrapper.'
data/lib/google_api.rb CHANGED
@@ -7,9 +7,7 @@ module GoogleAPI
7
7
  require 'googleauth'
8
8
  require 'googleauth/stores/file_token_store'
9
9
 
10
- require 'google_api/base/authorization'
11
10
  require 'google_api/base'
12
- require 'google_api/calendar/clear_test_calendar'
13
11
  require 'google_api/calendar'
14
12
  require 'google_api/group'
15
13
  end
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoogleAPI
4
+ require 'google_api/base/authorization'
5
+
4
6
  class Base
5
7
  RETRIES ||= [
6
8
  Google::Apis::TransmissionError, Google::Apis::ServerError,
@@ -72,7 +72,7 @@ module GoogleAPI
72
72
  def store_key(path, key)
73
73
  return if File.exist?(path)
74
74
 
75
- FileUtils::mkdir_p('config/keys')
75
+ FileUtils.mkdir_p('config/keys')
76
76
  File.open(path, 'w+') do |f|
77
77
  File.chmod(0o600, f)
78
78
  block_given? ? yield(f) : f.write(key)
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoogleAPI
4
+ require 'google_api/calendar/clear_test_calendar'
5
+
4
6
  class Calendar < GoogleAPI::Base
5
7
  include GoogleAPI::Calendar::ClearTestCalendar
6
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bps-google-api
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
  - Julian Fiander