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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffe48a52e4f1d01b38a9fec2cfd6cba64b4e735c926616d36b3a87b2ec6a75b1
4
- data.tar.gz: c01b8e0627ae7410b4148ffcdc3ead41983df81fc161fdd1692456cd55573310
3
+ metadata.gz: 3f973380d37a67928c3e0e9798c88df6caf1ea88ed190351bb34d1594ab25cb7
4
+ data.tar.gz: 2d21727ab0fe7ebe472cc4eb8a9213b237807d63f968e0b1d2ec1dce8544cd80
5
5
  SHA512:
6
- metadata.gz: 79e429707324d1c2e057dbc3a1d9880e9449e7f8088058953568cffa2e14b4cc4204c292e07a015d6c84099b391075a6236bf521b9a931c2b0d283b8a106f79a
7
- data.tar.gz: 247a921c9096a10eda1df39b950eab655bb795438da89b650548f113d46ae206cd0bfe9786a4e07f4b31d4c65c1c5f012e12edd023b04306f3814fb613adb040
6
+ metadata.gz: d689eb0ee848ae374046adadce1280a6612e97cb884d075c762b8c514e379a837bcdadcf0afcb27add81d6e50e3c75bd808ac6df9e9bb3eefc43c6ed2b8fbe92
7
+ data.tar.gz: 5b39c6f7598bf01a87dec86769f28a8c6497728524b3378f7a9c8c8841af23ba8c90855d5224c7fcb65b4574fe3585fdb066bb6b627537b0a7988a9a34687505
@@ -0,0 +1,15 @@
1
+ version: 2.1
2
+
3
+ jobs:
4
+ test:
5
+ docker:
6
+ - image: cimg/ruby:2.7.4
7
+ steps:
8
+ - checkout
9
+ - run: bundle install
10
+ - run: bundle exec rspec
11
+
12
+ workflows:
13
+ test:
14
+ jobs:
15
+ - test
data/CODEOWNERS ADDED
@@ -0,0 +1,2 @@
1
+ # Comment line immediately above ownership line is reserved for related gus information. Please be careful while editing.
2
+ #ECCN:Open Source
@@ -40,7 +40,7 @@ module Logplex
40
40
  "Content-Type" => 'application/logplex-1',
41
41
  "Content-Length" => message.length,
42
42
  "Logplex-Msg-Count" => number_messages
43
- }, expects: [200, 204])
43
+ }, expects: [200, 202, 204])
44
44
  end
45
45
  end
46
46
  end
@@ -1,3 +1,3 @@
1
1
  module Logplex
2
- VERSION = "0.0.5".freeze
2
+ VERSION = "0.0.6".freeze
3
3
  end
@@ -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.5
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: 2021-09-13 00:00:00.000000000 Z
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
- - ".travis.yml"
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.0.3
100
+ rubygems_version: 3.3.4
100
101
  signing_key:
101
102
  specification_version: 4
102
103
  summary: Publish and Consume Logplex messages
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 2.3.1
5
- script: bundle exec rspec