bps-google-api 0.4.10 → 0.4.11

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: b9568cf68776abd0aa81f0ceaeecc4b8ca1152f9351f58afb2c6e00936b379bc
4
+ data.tar.gz: e21356e6b6928dd1e678e442e3bb87e524e3a90308ec741d4670def3838b326b
5
5
  SHA512:
6
- metadata.gz: 4a5a51dc5e75da452e7d548ad643997b9935ff8f535da11cb289e595deb2025c8bbbf15e77296f2053fd2b75a487af8a9d493ad45f28610e37d7f1b3263dffc3
7
- data.tar.gz: 140eac17905e9b5396c79e39e7523192c3ce8616090328f893e0afe057e769dae71759a1fdcaac0a731939f485ab80868a662b2db9f48ef72d09658a2f6d2a1e
6
+ metadata.gz: 53244017cd5d5b904bd30489f31e6788d05a9bd40ca660870409afb6113f059dc469a6442b5c7627fa56ff00d87a2b7a447e41d3182a6313b529b37989b8c475
7
+ data.tar.gz: def98ec0603bcbd7d13b4c793ed1f3b52b31dbf5023e71a47a78554cb5c6f220d8e76761ee308baefde47978e0b48e842d54336d234e6e536ab7b0b232d162d6
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.11)
5
5
  exp_retry (~> 0.0.13)
6
6
  fileutils (~> 1.2)
7
7
  google-api-client (~> 0.23.4)
@@ -10,11 +10,10 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.7.0)
13
+ addressable (2.8.0)
14
14
  public_suffix (>= 2.0.2, < 5.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
19
  exp_retry (0.0.13)
@@ -39,11 +38,11 @@ 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.2.3)
43
42
  memoist (0.16.2)
44
43
  mime-types (3.3.1)
45
44
  mime-types-data (~> 3.2015)
46
- mime-types-data (3.2021.0225)
45
+ mime-types-data (3.2021.0901)
47
46
  multi_json (1.15.0)
48
47
  multipart-post (2.1.1)
49
48
  os (1.1.1)
@@ -52,9 +51,9 @@ GEM
52
51
  ast (~> 2.4.0)
53
52
  public_suffix (4.0.6)
54
53
  rainbow (3.0.0)
55
- representable (3.0.4)
54
+ representable (3.1.1)
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.1)
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.11'
6
+ s.date = '2021-09-15'
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'
@@ -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.11
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: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exp_retry
@@ -165,7 +165,7 @@ 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
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubygems_version: 3.2.7
184
- signing_key:
184
+ signing_key:
185
185
  specification_version: 4
186
186
  summary: Configured Google API
187
187
  test_files: []