logplex 0.0.5 → 0.0.6
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/.circleci/config.yml +15 -0
- data/CODEOWNERS +2 -0
- data/lib/logplex/publisher.rb +1 -1
- data/lib/logplex/version.rb +1 -1
- data/spec/logplex/publisher_spec.rb +7 -0
- metadata +5 -4
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f973380d37a67928c3e0e9798c88df6caf1ea88ed190351bb34d1594ab25cb7
|
4
|
+
data.tar.gz: 2d21727ab0fe7ebe472cc4eb8a9213b237807d63f968e0b1d2ec1dce8544cd80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d689eb0ee848ae374046adadce1280a6612e97cb884d075c762b8c514e379a837bcdadcf0afcb27add81d6e50e3c75bd808ac6df9e9bb3eefc43c6ed2b8fbe92
|
7
|
+
data.tar.gz: 5b39c6f7598bf01a87dec86769f28a8c6497728524b3378f7a9c8c8841af23ba8c90855d5224c7fcb65b4574fe3585fdb066bb6b627537b0a7988a9a34687505
|
data/CODEOWNERS
ADDED
data/lib/logplex/publisher.rb
CHANGED
data/lib/logplex/version.rb
CHANGED
@@ -56,6 +56,13 @@ describe Logplex::Publisher do
|
|
56
56
|
expect(publisher.publish(message)).to be_truthy
|
57
57
|
end
|
58
58
|
|
59
|
+
it 'does the thing with a 202' do
|
60
|
+
Excon.stub({ method: :post, password: "t.some-token", body: /hi\="there\"/ }, status: 202)
|
61
|
+
message = { hi: 'there' }
|
62
|
+
publisher = Logplex::Publisher.new('https://token:t.some-token@logplex.example.com')
|
63
|
+
expect(publisher.publish(message)).to be_truthy
|
64
|
+
end
|
65
|
+
|
59
66
|
it 'returns true' do
|
60
67
|
Excon.stub({ method: :post, password: "t.some-token" }, status: 204)
|
61
68
|
message = 'I have a message for you'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logplex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harold Giménez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: valcro
|
@@ -60,9 +60,10 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".circleci/config.yml"
|
63
64
|
- ".gitignore"
|
64
65
|
- ".rspec"
|
65
|
-
-
|
66
|
+
- CODEOWNERS
|
66
67
|
- Gemfile
|
67
68
|
- LICENSE
|
68
69
|
- LICENSE.txt
|
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
97
|
- !ruby/object:Gem::Version
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.3.4
|
100
101
|
signing_key:
|
101
102
|
specification_version: 4
|
102
103
|
summary: Publish and Consume Logplex messages
|