bps-google-api 0.4.5 → 0.4.6

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
- SHA1:
3
- metadata.gz: 9a18e649f3caf616fc9d37c5036e61639f04ffa5
4
- data.tar.gz: ca964371e00d350ea314f21d45220a3f532bf4aa
2
+ SHA256:
3
+ metadata.gz: f9ffa3df8c2ddfecc62cfe5a9830ea2c48293aef1952240e9dd5acd12b260ca1
4
+ data.tar.gz: 1f3079fcec7a957a890fa217ee44e4ddcf664c31c0bc8129502ca70b92b0503f
5
5
  SHA512:
6
- metadata.gz: 7ab842816cc1e5938681b9e79b745b78f5f19404907bd33ca696137c267bf0371a62566f6cc248ea9b2dfff8a24594584f954736e4456e22f93c428a72f4e661
7
- data.tar.gz: 519a612417471aebdae82206ef7a13a7cdaf40fc5a02d91fe4cd5cf4aec4b5c53843d249cfaa0a057d064cb46497707c912eeaff5fbf6c158d52d30cb5f58969
6
+ metadata.gz: 6412ddc986f1aff995bde999836779c649d9025fd885ab98e7ebb6dd1cc1e35c02f7685648cfa5308069e641e9c1da4bcb435c48a1274ccf7621bfc191849253
7
+ data.tar.gz: 7745f51650c013b668e1bdb535db57f5957f9ad5cf5b49b785e8280b91f0aeab2bef2f9964c1e6735b50ec87d45b48a954ee89e516098c4f3b36d7b1c8ee348a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bps-google-api (0.4.5)
4
+ bps-google-api (0.4.6)
5
5
  exp_retry (~> 0.0.13)
6
6
  fileutils (~> 1.2)
7
7
  google-api-client (~> 0.23.4)
@@ -10,17 +10,17 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.6.0)
14
- public_suffix (>= 2.0.2, < 4.0)
13
+ addressable (2.7.0)
14
+ public_suffix (>= 2.0.2, < 5.0)
15
15
  ast (2.4.0)
16
- declarative (0.0.10)
16
+ declarative (0.0.20)
17
17
  declarative-option (0.1.0)
18
18
  diff-lcs (1.3)
19
19
  docile (1.3.2)
20
20
  exp_retry (0.0.13)
21
- faraday (0.15.4)
21
+ faraday (0.17.3)
22
22
  multipart-post (>= 1.2, < 3)
23
- fileutils (1.2.0)
23
+ fileutils (1.5.0)
24
24
  google-api-client (0.23.9)
25
25
  addressable (~> 2.5, >= 2.5.1)
26
26
  googleauth (>= 0.5, < 0.7.0)
@@ -38,19 +38,19 @@ GEM
38
38
  signet (~> 0.7)
39
39
  httpclient (2.8.3)
40
40
  jaro_winkler (1.5.3)
41
- json (2.2.0)
42
- jwt (2.2.1)
43
- memoist (0.16.0)
44
- mime-types (3.2.2)
41
+ json (2.3.1)
42
+ jwt (2.2.2)
43
+ memoist (0.16.2)
44
+ mime-types (3.3.1)
45
45
  mime-types-data (~> 3.2015)
46
- mime-types-data (3.2019.0331)
47
- multi_json (1.13.1)
46
+ mime-types-data (3.2020.1104)
47
+ multi_json (1.15.0)
48
48
  multipart-post (2.1.1)
49
- os (1.0.1)
49
+ os (1.1.1)
50
50
  parallel (1.17.0)
51
51
  parser (2.6.3.0)
52
52
  ast (~> 2.4.0)
53
- public_suffix (3.1.1)
53
+ public_suffix (4.0.6)
54
54
  rainbow (3.0.0)
55
55
  representable (3.0.4)
56
56
  declarative (< 0.1.0)
@@ -78,9 +78,9 @@ GEM
78
78
  ruby-progressbar (~> 1.7)
79
79
  unicode-display_width (>= 1.4.0, < 1.7)
80
80
  ruby-progressbar (1.10.1)
81
- signet (0.11.0)
81
+ signet (0.14.1)
82
82
  addressable (~> 2.3)
83
- faraday (~> 0.9)
83
+ faraday (>= 0.17.3, < 2.0)
84
84
  jwt (>= 1.5, < 3.0)
85
85
  multi_json (~> 1.10)
86
86
  simplecov (0.16.1)
data/Readme.md CHANGED
@@ -36,6 +36,12 @@ GoogleAPI.configure do |config|
36
36
  end
37
37
  ```
38
38
 
39
+ You can also alter the logging level using:
40
+
41
+ ```ruby
42
+ GoogleAPI.logging!(:FATAL) # %i[INFO WARN ERROR FATAL]
43
+ ```
44
+
39
45
  Then add the following in `config/application.rb`:
40
46
 
41
47
  ```ruby
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bps-google-api'
5
- s.version = '0.4.5'
6
- s.date = '2019-07-11'
5
+ s.version = '0.4.6'
6
+ s.date = '2021-01-30'
7
7
  s.summary = 'Configured Google API'
8
8
  s.description = 'A configured Google API wrapper.'
9
9
  s.homepage = 'http://rubygems.org/gems/bps-google-api'
@@ -29,6 +29,12 @@ class GoogleAPI
29
29
  configuration
30
30
  end
31
31
 
32
+ def self.logging!(level = :FATAL)
33
+ raise ArgumentError, 'Unknown logging level' unless %i[INFO WARN ERROR FATAL].include?(level)
34
+
35
+ Google::Apis.logger.level = Logger.const_get(level)
36
+ end
37
+
32
38
  # Internal requires
33
39
  require 'google_api/base'
34
40
  require 'google_api/calendar'
@@ -25,6 +25,8 @@ RSpec.configure do |config|
25
25
  c.keys = 'tmp/spec/keys'
26
26
  end
27
27
 
28
+ GoogleAPI.logging!(:INFO)
29
+
28
30
  FileUtils.rm(Dir.glob(GoogleAPI.configuration.local_path('*', &:keys)))
29
31
 
30
32
  ENV['GOOGLE_AUTHORIZATION_CODE'] = 'test-auth-code'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bps-google-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-11 00:00:00.000000000 Z
11
+ date: 2021-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exp_retry
@@ -179,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubyforge_project:
183
- rubygems_version: 2.6.14.1
182
+ rubygems_version: 3.2.7
184
183
  signing_key:
185
184
  specification_version: 4
186
185
  summary: Configured Google API