gcpc 0.0.6 → 0.0.7
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 +4 -4
- data/.travis.yml +5 -3
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +59 -51
- data/gcpc.gemspec +2 -2
- data/lib/gcpc/publisher.rb +1 -0
- data/lib/gcpc/subscriber.rb +1 -0
- data/lib/gcpc/version.rb +1 -1
- metadata +13 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5fdb3019e64a9e547b7fb58a1a5ebf45b82020029f047dc2f7fcaa237d720093
|
|
4
|
+
data.tar.gz: 02a5b5b94f4bed91f1d49bd8c8bf0f97fa568b02bd05d543205b482c9fa47570
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff644c9d6d8257aa128e940547a31db1a9190e6a8165bf6ad0e776c3cc6aef00ed22f68f98812fa938186ea0cba069fb2d53c29e478ea5ec92a6de7b7bac5d5d
|
|
7
|
+
data.tar.gz: c50b8e7e95f3c1651c0ecfdb6ef85e16ba4503eced5a74331eb6173ad2ebe87f5475287097b5ab3912ae20d0989e5462ab4578b0e866f4211843cb1b70f69bdc
|
data/.travis.yml
CHANGED
|
@@ -3,9 +3,10 @@ sudo: false
|
|
|
3
3
|
language: ruby
|
|
4
4
|
cache: bundler
|
|
5
5
|
rvm:
|
|
6
|
-
- 2.6.
|
|
6
|
+
- 2.6.6
|
|
7
|
+
- 2.7.3
|
|
7
8
|
before_install:
|
|
8
|
-
- gem install bundler
|
|
9
|
+
- gem install bundler
|
|
9
10
|
jobs:
|
|
10
11
|
include:
|
|
11
12
|
- name: 'test'
|
|
@@ -14,6 +15,7 @@ jobs:
|
|
|
14
15
|
- name: 'test with a emulator'
|
|
15
16
|
before_install:
|
|
16
17
|
# Start a Cloud Pub/Sub emulator. See https://cloud.google.com/pubsub/docs/emulator
|
|
17
|
-
|
|
18
|
+
# We use `google/cloud-sdk:321.0.0` because we can't start pubsub with the latest.
|
|
19
|
+
- docker run -d -p 8085:8085 -it google/cloud-sdk:321.0.0 gcloud beta emulators pubsub start --host-port=0.0.0.0:8085
|
|
18
20
|
script:
|
|
19
21
|
- bundle exec rspec --tag emulator
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## Unreleased
|
|
2
|
+
|
|
3
|
+
<!-- When you commit changes, describe the changes above (in the ## Unreleased section). -->
|
|
4
|
+
<!-- All changes (implementation, or doc changes) are worth noting. -->
|
|
5
|
+
<!-- The changes listed above will go below when a new release is being prepared. -->
|
|
6
|
+
|
|
7
|
+
## 0.0.7
|
|
8
|
+
|
|
9
|
+
- Add explicit loading of forwardable https://github.com/south37/gcpc/pull/10
|
|
10
|
+
- Add ruby 2.7 as a test target https://github.com/south37/gcpc/pull/12
|
|
11
|
+
|
|
12
|
+
## 0.0.6
|
|
13
|
+
|
|
14
|
+
- Add test of interceptors https://github.com/south37/gcpc/pull/7
|
|
15
|
+
- Add publish_batch https://github.com/south37/gcpc/pull/6
|
|
16
|
+
|
|
17
|
+
## 0.0.5
|
|
18
|
+
|
|
19
|
+
- Add publish_async https://github.com/south37/gcpc/pull/5
|
data/Gemfile.lock
CHANGED
|
@@ -1,67 +1,74 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
gcpc (0.0.
|
|
4
|
+
gcpc (0.0.7)
|
|
5
5
|
google-cloud-pubsub
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.
|
|
11
|
-
public_suffix (>= 2.0.2, <
|
|
12
|
-
coderay (1.1.
|
|
13
|
-
concurrent-ruby (1.1.
|
|
10
|
+
addressable (2.7.0)
|
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
12
|
+
coderay (1.1.3)
|
|
13
|
+
concurrent-ruby (1.1.7)
|
|
14
14
|
diff-lcs (1.3)
|
|
15
|
-
faraday (
|
|
15
|
+
faraday (1.3.0)
|
|
16
|
+
faraday-net_http (~> 1.0)
|
|
16
17
|
multipart-post (>= 1.2, < 3)
|
|
17
|
-
|
|
18
|
+
ruby2_keywords
|
|
19
|
+
faraday-net_http (1.0.0)
|
|
20
|
+
gapic-common (0.3.4)
|
|
21
|
+
google-protobuf (~> 3.12, >= 3.12.2)
|
|
22
|
+
googleapis-common-protos (>= 1.3.9, < 2.0)
|
|
23
|
+
googleapis-common-protos-types (>= 1.0.4, < 2.0)
|
|
24
|
+
googleauth (~> 0.9)
|
|
25
|
+
grpc (~> 1.25)
|
|
26
|
+
google-cloud-core (1.5.0)
|
|
18
27
|
google-cloud-env (~> 1.0)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
google-cloud-errors (~> 1.0)
|
|
29
|
+
google-cloud-env (1.4.0)
|
|
30
|
+
faraday (>= 0.17.3, < 2.0)
|
|
31
|
+
google-cloud-errors (1.0.1)
|
|
32
|
+
google-cloud-pubsub (2.3.0)
|
|
22
33
|
concurrent-ruby (~> 1.1)
|
|
23
|
-
google-cloud-core (~> 1.
|
|
24
|
-
google-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
google-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
googleapis-common-protos (1.
|
|
35
|
-
google-protobuf (~> 3.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
googleapis-common-protos-types (1.0.4)
|
|
39
|
-
google-protobuf (~> 3.0)
|
|
40
|
-
googleauth (0.8.1)
|
|
41
|
-
faraday (~> 0.12)
|
|
34
|
+
google-cloud-core (~> 1.5)
|
|
35
|
+
google-cloud-pubsub-v1 (~> 0.0)
|
|
36
|
+
google-cloud-pubsub-v1 (0.2.0)
|
|
37
|
+
gapic-common (~> 0.3)
|
|
38
|
+
google-cloud-errors (~> 1.0)
|
|
39
|
+
grpc-google-iam-v1 (>= 0.6.10, < 2.0)
|
|
40
|
+
google-protobuf (3.14.0)
|
|
41
|
+
googleapis-common-protos (1.3.10)
|
|
42
|
+
google-protobuf (~> 3.11)
|
|
43
|
+
googleapis-common-protos-types (>= 1.0.5, < 2.0)
|
|
44
|
+
grpc (~> 1.27)
|
|
45
|
+
googleapis-common-protos-types (1.0.5)
|
|
46
|
+
google-protobuf (~> 3.11)
|
|
47
|
+
googleauth (0.14.0)
|
|
48
|
+
faraday (>= 0.17.3, < 2.0)
|
|
42
49
|
jwt (>= 1.4, < 3.0)
|
|
43
50
|
memoist (~> 0.16)
|
|
44
51
|
multi_json (~> 1.11)
|
|
45
52
|
os (>= 0.9, < 2.0)
|
|
46
|
-
signet (~> 0.
|
|
47
|
-
grpc (1.
|
|
48
|
-
google-protobuf (~> 3.
|
|
53
|
+
signet (~> 0.14)
|
|
54
|
+
grpc (1.34.0)
|
|
55
|
+
google-protobuf (~> 3.13)
|
|
49
56
|
googleapis-common-protos-types (~> 1.0)
|
|
50
|
-
grpc-google-iam-v1 (0.6.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
grpc-google-iam-v1 (0.6.10)
|
|
58
|
+
google-protobuf (~> 3.11)
|
|
59
|
+
googleapis-common-protos (>= 1.3.10, < 2.0)
|
|
60
|
+
grpc (~> 1.27)
|
|
61
|
+
jwt (2.2.2)
|
|
62
|
+
memoist (0.16.2)
|
|
63
|
+
method_source (1.0.0)
|
|
64
|
+
multi_json (1.15.0)
|
|
57
65
|
multipart-post (2.1.1)
|
|
58
|
-
os (1.
|
|
59
|
-
pry (0.
|
|
60
|
-
coderay (~> 1.1
|
|
61
|
-
method_source (~>
|
|
62
|
-
public_suffix (
|
|
63
|
-
rake (
|
|
64
|
-
rly (0.2.3)
|
|
66
|
+
os (1.1.1)
|
|
67
|
+
pry (0.13.1)
|
|
68
|
+
coderay (~> 1.1)
|
|
69
|
+
method_source (~> 1.0)
|
|
70
|
+
public_suffix (4.0.6)
|
|
71
|
+
rake (13.0.1)
|
|
65
72
|
rspec (3.8.0)
|
|
66
73
|
rspec-core (~> 3.8.0)
|
|
67
74
|
rspec-expectations (~> 3.8.0)
|
|
@@ -75,9 +82,10 @@ GEM
|
|
|
75
82
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
83
|
rspec-support (~> 3.8.0)
|
|
77
84
|
rspec-support (3.8.0)
|
|
78
|
-
|
|
85
|
+
ruby2_keywords (0.0.2)
|
|
86
|
+
signet (0.14.0)
|
|
79
87
|
addressable (~> 2.3)
|
|
80
|
-
faraday (
|
|
88
|
+
faraday (>= 0.17.3, < 2.0)
|
|
81
89
|
jwt (>= 1.5, < 3.0)
|
|
82
90
|
multi_json (~> 1.10)
|
|
83
91
|
|
|
@@ -85,11 +93,11 @@ PLATFORMS
|
|
|
85
93
|
ruby
|
|
86
94
|
|
|
87
95
|
DEPENDENCIES
|
|
88
|
-
bundler
|
|
96
|
+
bundler
|
|
89
97
|
gcpc!
|
|
90
98
|
pry
|
|
91
|
-
rake (~>
|
|
99
|
+
rake (~> 13.0)
|
|
92
100
|
rspec (~> 3.2)
|
|
93
101
|
|
|
94
102
|
BUNDLED WITH
|
|
95
|
-
|
|
103
|
+
2.2.5
|
data/gcpc.gemspec
CHANGED
|
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
24
|
spec.require_paths = ["lib"]
|
|
25
25
|
|
|
26
|
-
spec.add_development_dependency "bundler"
|
|
27
|
-
spec.add_development_dependency "rake", "~>
|
|
26
|
+
spec.add_development_dependency "bundler"
|
|
27
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
|
28
28
|
spec.add_development_dependency "rspec", "~> 3.2"
|
|
29
29
|
spec.add_development_dependency "pry"
|
|
30
30
|
spec.add_runtime_dependency "google-cloud-pubsub"
|
data/lib/gcpc/publisher.rb
CHANGED
data/lib/gcpc/subscriber.rb
CHANGED
data/lib/gcpc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gcpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nao Minami
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '0'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '13.0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '13.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -90,6 +90,7 @@ files:
|
|
|
90
90
|
- ".gitignore"
|
|
91
91
|
- ".rspec"
|
|
92
92
|
- ".travis.yml"
|
|
93
|
+
- CHANGELOG.md
|
|
93
94
|
- Gemfile
|
|
94
95
|
- Gemfile.lock
|
|
95
96
|
- LICENSE.txt
|
|
@@ -121,7 +122,7 @@ homepage: https://github.com/south37/gcpc
|
|
|
121
122
|
licenses:
|
|
122
123
|
- MIT
|
|
123
124
|
metadata: {}
|
|
124
|
-
post_install_message:
|
|
125
|
+
post_install_message:
|
|
125
126
|
rdoc_options: []
|
|
126
127
|
require_paths:
|
|
127
128
|
- lib
|
|
@@ -136,8 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
136
137
|
- !ruby/object:Gem::Version
|
|
137
138
|
version: '0'
|
|
138
139
|
requirements: []
|
|
139
|
-
rubygems_version: 3.
|
|
140
|
-
signing_key:
|
|
140
|
+
rubygems_version: 3.1.4
|
|
141
|
+
signing_key:
|
|
141
142
|
specification_version: 4
|
|
142
143
|
summary: Google Cloud Pub/Sub Client
|
|
143
144
|
test_files: []
|