cent 2.2.0 → 3.0.0

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: b533a1550e369ce3cafb34965c09d01a66691249d58424306f1dddae06feb170
4
- data.tar.gz: 861d3619f6110bdea4892bd8c09be01e22466d6f951007a5a2d05e2d0ffb092f
3
+ metadata.gz: 9fadf11a9b2cdfa2b9c490e59adbf052515c9a0c4f5091405ffd3bca4f345bfb
4
+ data.tar.gz: 07e0c29ede9d249c0d8b36d3d432a37fa8048c82e54c7540b8ef67131b103d76
5
5
  SHA512:
6
- metadata.gz: d827bcc6f421a1f9ab5a70f3cb17025bd2986247112888dfc3d53af494f88930deb8caca2556ceda27696d5da9979867d2bea32a3f598597dccc96c0d3b8d812
7
- data.tar.gz: a7064d71efc537467ac5337182abe168e1d67a5e77365dac9a35d391f5d32a1e0094ca1176fed6940683f56643d073225a0ba5a6258cab6bb9578543d118437c
6
+ metadata.gz: f99f6ab6178fda5cce7adcac441e35313c2c2990fcfedbf685ddbfd4fc2c70bcd1098231c3ee1580b39154cca836ef590d05a8ac5032e8ca8946e16666ab6716
7
+ data.tar.gz: 6158ba6dc6ccd667b206f2d50ce7c7a832412bf5360686de0f0c8948df219c8a84d5d273a31fcaeb819e4474580a554eb40545e5512628a2eee445c7e5cba9b9
@@ -5,14 +5,16 @@ on: [push,pull_request]
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby-version: ['2.7', '3.3']
8
11
  steps:
9
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v4
10
13
  - name: Set up Ruby
11
14
  uses: ruby/setup-ruby@v1
12
15
  with:
13
- ruby-version: 2.7.1
16
+ ruby-version: ${{ matrix.ruby-version }}
14
17
  - name: Run the default task
15
18
  run: |
16
- gem install bundler -v 2.2.10
17
19
  bundle install
18
20
  bundle exec rake
@@ -14,13 +14,16 @@ jobs:
14
14
 
15
15
  steps:
16
16
  - name: Checkout
17
- uses: actions/checkout@v2
17
+ uses: actions/checkout@v4
18
18
 
19
- - name: Set up Ruby 2.6
20
- uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
21
  with:
22
- ruby-version: 2.6
23
- - run: bundle install
22
+ ruby-version: 3.3.0
23
+
24
+ - name: Bundle install
25
+ run: |
26
+ bundle install
24
27
 
25
28
  - name: Publish to RubyGems
26
29
  run: |
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 3.0.0
2
+ =====
3
+
4
+ Not using changelog anymore. See [Github releases](https://github.com/centrifugal/rubycent/releases) now.
5
+
1
6
  2.2.0
2
7
  =====
3
8
 
data/cent.gemspec CHANGED
@@ -30,8 +30,6 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.require_paths = ['lib']
32
32
 
33
- spec.add_dependency 'faraday', '<3.0.0', '> 1.0.0'
34
- # NOTE: Remove `faraday_middleware` after changing `faraday`'s minimum version to `2.0.0`.
35
- spec.add_dependency 'faraday_middleware', '<2.0.0', '~> 1.0'
36
- spec.add_dependency 'jwt', '~> 2.2'
33
+ spec.add_dependency 'faraday', '<3.0.0', '> 2.0.0'
34
+ spec.add_dependency 'jwt', '<3.0.0', '> 2.2.0'
37
35
  end
data/lib/cent/client.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
- require 'faraday_middleware' if Gem::Version.new(Faraday::VERSION) <= Gem::Version.new('2.0.0')
5
4
  require 'cent/http'
6
5
 
7
6
  module Cent
data/lib/cent/http.rb CHANGED
@@ -12,7 +12,7 @@ module Cent
12
12
 
13
13
  def initialize(code:, message:)
14
14
  @code = code
15
- super message
15
+ super(message)
16
16
  end
17
17
  end
18
18
 
data/lib/cent/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cent
4
- VERSION = '2.2.0'
4
+ VERSION = '3.0.0'
5
5
  end
metadata CHANGED
@@ -1,69 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cent
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Prikhodko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-28 00:00:00.000000000 Z
11
+ date: 2024-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">"
18
- - !ruby/object:Gem::Version
19
- version: 1.0.0
20
17
  - - "<"
21
18
  - !ruby/object:Gem::Version
22
19
  version: 3.0.0
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
20
  - - ">"
28
- - !ruby/object:Gem::Version
29
- version: 1.0.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 3.0.0
33
- - !ruby/object:Gem::Dependency
34
- name: faraday_middleware
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '1.0'
40
- - - "<"
41
21
  - !ruby/object:Gem::Version
42
22
  version: 2.0.0
43
23
  type: :runtime
44
24
  prerelease: false
45
25
  version_requirements: !ruby/object:Gem::Requirement
46
26
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '1.0'
50
27
  - - "<"
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.0
30
+ - - ">"
51
31
  - !ruby/object:Gem::Version
52
32
  version: 2.0.0
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: jwt
55
35
  requirement: !ruby/object:Gem::Requirement
56
36
  requirements:
57
- - - "~>"
37
+ - - "<"
58
38
  - !ruby/object:Gem::Version
59
- version: '2.2'
39
+ version: 3.0.0
40
+ - - ">"
41
+ - !ruby/object:Gem::Version
42
+ version: 2.2.0
60
43
  type: :runtime
61
44
  prerelease: false
62
45
  version_requirements: !ruby/object:Gem::Requirement
63
46
  requirements:
64
- - - "~>"
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: 3.0.0
50
+ - - ">"
65
51
  - !ruby/object:Gem::Version
66
- version: '2.2'
52
+ version: 2.2.0
67
53
  description: |
68
54
  Provides helper classes Cent::Client and Cent::Notary.
69
55
 
@@ -115,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
101
  - !ruby/object:Gem::Version
116
102
  version: '0'
117
103
  requirements: []
118
- rubygems_version: 3.0.3.1
104
+ rubygems_version: 3.5.3
119
105
  signing_key:
120
106
  specification_version: 4
121
107
  summary: Centrifugo API V2 Ruby Client