bps-google-api 0.4.10 → 0.4.12

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
  SHA256:
3
- metadata.gz: de16bf3d1c0b8b9f1971b1bb77077ded52379e3502d667fb3ca168e74bf202aa
4
- data.tar.gz: 9ef1b294632a591e4808a6d0456e346b2a29922bf0fb756905813586517d83af
3
+ metadata.gz: dbdc8c4373d9529ae2bb293a984152c8b63aecbe580cd6f44bb0de168f1f244f
4
+ data.tar.gz: 163c36bd9077b256c0181587ba4a2ba7d8d61ed1c9fcf272cd0d6565d8b7f62d
5
5
  SHA512:
6
- metadata.gz: 4a5a51dc5e75da452e7d548ad643997b9935ff8f535da11cb289e595deb2025c8bbbf15e77296f2053fd2b75a487af8a9d493ad45f28610e37d7f1b3263dffc3
7
- data.tar.gz: 140eac17905e9b5396c79e39e7523192c3ce8616090328f893e0afe057e769dae71759a1fdcaac0a731939f485ab80868a662b2db9f48ef72d09658a2f6d2a1e
6
+ metadata.gz: acf4e1ced97d4a4dfbd497e238980b86eb94847173132c77c750967986ce4ac7971ea4739cdc097e62b819dcc6a9962faa17e9610889ecbdaf2bd2e4a4025484
7
+ data.tar.gz: '00916fda444d3cd6580a611293a260af8cdbb1cd7324bffadcaee67c32626861e86c9ae06f89efabd45ca529e99a28e63c75337d8631b00fd21a46c9157a00fd'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.4
1
+ 2.5.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bps-google-api (0.4.10)
4
+ bps-google-api (0.4.12)
5
5
  exp_retry (~> 0.0.13)
6
6
  fileutils (~> 1.2)
7
7
  google-api-client (~> 0.23.4)
@@ -10,15 +10,14 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.7.0)
14
- public_suffix (>= 2.0.2, < 5.0)
13
+ addressable (2.8.1)
14
+ public_suffix (>= 2.0.2, < 6.0)
15
15
  ast (2.4.0)
16
16
  declarative (0.0.20)
17
- declarative-option (0.1.0)
18
17
  diff-lcs (1.3)
19
18
  docile (1.3.2)
20
- exp_retry (0.0.13)
21
- faraday (0.17.4)
19
+ exp_retry (0.0.14)
20
+ faraday (0.17.6)
22
21
  multipart-post (>= 1.2, < 3)
23
22
  fileutils (1.5.0)
24
23
  google-api-client (0.23.9)
@@ -39,22 +38,22 @@ GEM
39
38
  httpclient (2.8.3)
40
39
  jaro_winkler (1.5.3)
41
40
  json (2.3.1)
42
- jwt (2.2.2)
41
+ jwt (2.3.0)
43
42
  memoist (0.16.2)
44
- mime-types (3.3.1)
43
+ mime-types (3.4.1)
45
44
  mime-types-data (~> 3.2015)
46
- mime-types-data (3.2021.0225)
45
+ mime-types-data (3.2023.0218.1)
47
46
  multi_json (1.15.0)
48
- multipart-post (2.1.1)
49
- os (1.1.1)
47
+ multipart-post (2.3.0)
48
+ os (1.1.4)
50
49
  parallel (1.17.0)
51
50
  parser (2.6.3.0)
52
51
  ast (~> 2.4.0)
53
- public_suffix (4.0.6)
52
+ public_suffix (4.0.7)
54
53
  rainbow (3.0.0)
55
- representable (3.0.4)
54
+ representable (3.2.0)
56
55
  declarative (< 0.1.0)
57
- declarative-option (< 0.2.0)
56
+ trailblazer-option (>= 0.1.1, < 0.2.0)
58
57
  uber (< 0.2.0)
59
58
  retriable (3.1.2)
60
59
  rspec (3.8.0)
@@ -88,6 +87,7 @@ GEM
88
87
  json (>= 1.8, < 3)
89
88
  simplecov-html (~> 0.10.0)
90
89
  simplecov-html (0.10.2)
90
+ trailblazer-option (0.1.2)
91
91
  uber (0.1.0)
92
92
  unicode-display_width (1.6.0)
93
93
 
data/Readme.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # BPS Google API
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/bps-google-api.svg)](https://rubygems.org/gems/bps-google-api)
4
- [![Build Status](https://travis-ci.org/jfiander/bps-google-api.svg)](https://travis-ci.org/jfiander/bps-google-api)
4
+ [![Build Status](https://travis-ci.com/jfiander/bps-google-api.svg)](https://travis-ci.com/jfiander/bps-google-api)
5
5
 
6
6
  A configured Google API wrapper.
7
7
 
@@ -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.10'
6
- s.date = '2021-02-27'
5
+ s.version = '0.4.12'
6
+ s.date = '2023-03-13'
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'
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.require_paths = %w[lib]
14
14
  s.files = `git ls-files`.split("\n")
15
15
 
16
- s.required_ruby_version = '~> 2.4'
16
+ s.required_ruby_version = '>= 2.4'
17
17
 
18
18
  s.add_runtime_dependency 'exp_retry', '~> 0.0.13'
19
19
  s.add_runtime_dependency 'fileutils', '~> 1.2'
@@ -46,10 +46,8 @@ class GoogleAPI
46
46
 
47
47
  def conference(conf_id, signature)
48
48
  {
49
- conference: {
50
- conference_id: conf_id, conference_solution: meet_solution,
51
- entry_points: meet_entry(conf_id), signature: signature
52
- }
49
+ conference_id: conf_id, conference_solution: meet_solution,
50
+ entry_points: meet_entry(conf_id), signature: signature
53
51
  }
54
52
  end
55
53
 
@@ -83,6 +83,23 @@ RSpec.describe GoogleAPI::Calendar do
83
83
  expect(subject.list_all.map(&:class).uniq).to eql([Google::Apis::CalendarV3::Event])
84
84
  end
85
85
 
86
+ context 'with multiple pages' do
87
+ let(:calendar) { subject.class.api }
88
+
89
+ before do
90
+ allow(calendar).to receive(:call).and_return(
91
+ Google::Apis::CalendarV3::Events.new(items: [Google::Apis::CalendarV3::Event], next_page_token: 'abc'),
92
+ Google::Apis::CalendarV3::Events.new(items: [Google::Apis::CalendarV3::Event], next_page_token: nil)
93
+ )
94
+ end
95
+
96
+ it 'returns the array of all events from list_all when paginated' do
97
+ expect(calendar).to receive(:call).twice
98
+
99
+ subject.list_all
100
+ end
101
+ end
102
+
86
103
  it 'creates an event' do
87
104
  expect(subject.create(test_event)).to be_a(Google::Apis::CalendarV3::Event)
88
105
  end
@@ -94,7 +111,7 @@ RSpec.describe GoogleAPI::Calendar do
94
111
  expect(subject.create(event)).to be_a(Google::Apis::CalendarV3::Event)
95
112
  end
96
113
 
97
- it 'creates an event with conference data' do
114
+ it 'creates an event with conference data', :aggregate_failures do
98
115
  event = subject.create(test_event)
99
116
  event = subject.add_conference(event.id)
100
117
  event_options = test_event.merge(
@@ -104,7 +121,9 @@ RSpec.describe GoogleAPI::Calendar do
104
121
  }
105
122
  )
106
123
 
107
- expect(subject.create(event_options)).to be_a(Google::Apis::CalendarV3::Event)
124
+ event = subject.create(event_options)
125
+ expect(event).to be_a(Google::Apis::CalendarV3::Event)
126
+ expect(event.conference_data).not_to be_nil
108
127
  end
109
128
 
110
129
  it 'returns valid conference information' do
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.10
4
+ version: 0.4.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-27 00:00:00.000000000 Z
11
+ date: 2023-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exp_retry
@@ -165,13 +165,13 @@ homepage: http://rubygems.org/gems/bps-google-api
165
165
  licenses:
166
166
  - GPL-3.0
167
167
  metadata: {}
168
- post_install_message:
168
+ post_install_message:
169
169
  rdoc_options: []
170
170
  require_paths:
171
171
  - lib
172
172
  required_ruby_version: !ruby/object:Gem::Requirement
173
173
  requirements:
174
- - - "~>"
174
+ - - ">="
175
175
  - !ruby/object:Gem::Version
176
176
  version: '2.4'
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -180,8 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.2.7
184
- signing_key:
183
+ rubygems_version: 3.2.30
184
+ signing_key:
185
185
  specification_version: 4
186
186
  summary: Configured Google API
187
187
  test_files: []