async-redis 0.4.3 → 0.5.0

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: 846a8f4d10913acf2d43343efb35a4ca9306db6a5fda6d9794774181939e6535
4
- data.tar.gz: 0d25f58941fc326a9500e50a63ead3ac017d734f8292e4ebcf63f1cad3ff6280
3
+ metadata.gz: d6d0663e06a759b527cd94e0098f963e74c6c5c24dfc0f36f77a03bc5c719776
4
+ data.tar.gz: 88530a16ce78f5a55399010f287be6008350adabc7f911e39560e45f3d11a595
5
5
  SHA512:
6
- metadata.gz: d8881dfb830d61c74b55415d693f2eda5a5caf04daf789400df7d8e7229468c929300264d305b5182a706b44cca1677ae930ea757ca139dcfe2b7b639f0bc6c0
7
- data.tar.gz: b51195073ead610e2b95e67b9280c1b13472d51156985624782de72e9b3e57764ba2ad53b5758cedd9617e3ffc11a0668f89d6ee476e118f3300a600051c5973
6
+ metadata.gz: f8bc38e694669b220071a3b50f555e6e485d4eb66656be2ab8d8680615d01f46501ae92a00081b75e8206913b013d1985c61716de0a40af105da882cc3b54500
7
+ data.tar.gz: 509b6e77d40be0858035cf2a1e53667830f4c106d0f7235aee8a1c7a2493d6e87622a06fb0c6f420088366e196ef0d85bb758aa66b56b79003aac3895f06c120
@@ -0,0 +1,36 @@
1
+ name: Development
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ strategy:
8
+ matrix:
9
+ os:
10
+ - ubuntu
11
+ - macos
12
+
13
+ ruby:
14
+ - 2.4
15
+ - 2.5
16
+ - 2.6
17
+ - 2.7
18
+
19
+ include:
20
+ - os: 'ubuntu'
21
+ ruby: '2.6'
22
+ env: COVERAGE=PartialSummary,Coveralls
23
+
24
+ runs-on: ${{matrix.os}}-latest
25
+
26
+ steps:
27
+ - uses: actions/checkout@v1
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{matrix.ruby}}
31
+ - name: Install dependencies
32
+ run: bundle install
33
+ - name: Setup redis
34
+ uses: shogo82148/actions-setup-redis@v1
35
+ - name: Run tests
36
+ run: ${{matrix.env}} bundle exec rspec
data/README.md CHANGED
@@ -2,8 +2,7 @@
2
2
 
3
3
  An asynchronous client for Redis including TLS. Support for streaming requests and responses. Built on top of [async] and [async-io].
4
4
 
5
- [![Build Status](https://secure.travis-ci.org/socketry/async-redis.svg)](https://travis-ci.org/socketry/async-redis)
6
- [![Code Climate](https://codeclimate.com/github/socketry/async-redis.svg)](https://codeclimate.com/github/socketry/async-redis)
5
+ [![Actions Status](https://github.com/socketry/async-redis/workflows/Development/badge.svg)](https://github.com/socketry/async-redis/actions?workflow=Development)
7
6
  [![Coverage Status](https://coveralls.io/repos/socketry/async-redis/badge.svg)](https://coveralls.io/r/socketry/async-redis)
8
7
 
9
8
  [async]: https://github.com/socketry/async
@@ -2,36 +2,35 @@
2
2
  require_relative 'lib/async/redis/version'
3
3
 
4
4
  Gem::Specification.new do |spec|
5
- spec.name = "async-redis"
6
- spec.version = Async::Redis::VERSION
7
- spec.authors = ["Samuel Williams", "Huba Nagy"]
8
- spec.email = ["samuel.williams@oriontransfer.co.nz", "12huba@gmail.com"]
9
-
10
- spec.summary = "A Redis client library."
11
- spec.homepage = "https://github.com/socketry/async-redis"
12
-
13
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
5
+ spec.name = "async-redis"
6
+ spec.version = Async::Redis::VERSION
7
+ spec.authors = ["Samuel Williams", "Huba Nagy"]
8
+ spec.email = ["samuel.williams@oriontransfer.co.nz", "12huba@gmail.com"]
9
+
10
+ spec.summary = "A Redis client library."
11
+ spec.homepage = "https://github.com/socketry/async-redis"
12
+
13
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
14
14
  f.match(%r{^(test|spec|features)/})
15
15
  end
16
16
 
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
17
  spec.require_paths = ["lib"]
19
18
 
20
19
  spec.add_dependency("async", "~> 1.8")
21
20
  spec.add_dependency("async-io", "~> 1.10")
22
21
  spec.add_dependency("async-pool", "~> 0.2")
23
22
 
24
- spec.add_dependency("protocol-redis", "~> 0.4.0")
23
+ spec.add_dependency("protocol-redis", "~> 0.5.0")
25
24
 
26
25
  spec.add_development_dependency "async-rspec", "~> 1.1"
27
26
  spec.add_development_dependency "redis"
28
27
  spec.add_development_dependency "benchmark-ips"
29
-
28
+
30
29
  spec.add_development_dependency "covered"
31
30
  spec.add_development_dependency "bundler"
32
31
  spec.add_development_dependency "rspec", "~> 3.6"
33
32
  spec.add_development_dependency "rake"
34
-
33
+
35
34
  # Dependencies with C extensions
36
35
  if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
37
36
  spec.add_development_dependency "hiredis"
@@ -90,18 +90,6 @@ module Async
90
90
  end
91
91
  end
92
92
 
93
- def multi(&block)
94
- context = Context::Multi.new(@pool)
95
-
96
- return context unless block_given?
97
-
98
- begin
99
- yield context
100
- ensure
101
- context.close
102
- end
103
- end
104
-
105
93
  def transaction(&block)
106
94
  context = Context::Transaction.new(@pool)
107
95
 
@@ -113,6 +101,7 @@ module Async
113
101
  context.close
114
102
  end
115
103
  end
104
+ alias multi transaction
116
105
 
117
106
  def pipeline(&block)
118
107
  context = Context::Pipeline.new(@pool)
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module Redis
25
- VERSION = "0.4.3"
25
+ VERSION = "0.5.0"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-02-11 00:00:00.000000000 Z
12
+ date: 2020-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: async
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 0.4.0
62
+ version: 0.5.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.4.0
69
+ version: 0.5.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: async-rspec
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -188,9 +188,9 @@ extensions: []
188
188
  extra_rdoc_files: []
189
189
  files:
190
190
  - ".editorconfig"
191
+ - ".github/workflows/development.yml"
191
192
  - ".gitignore"
192
193
  - ".rspec"
193
- - ".travis.yml"
194
194
  - Gemfile
195
195
  - README.md
196
196
  - Rakefile
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  requirements: []
225
- rubygems_version: 3.0.6
225
+ rubygems_version: 3.1.2
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: A Redis client library.
@@ -1,23 +0,0 @@
1
- language: ruby
2
- dist: xenial
3
- cache: bundler
4
-
5
- services:
6
- - redis-server
7
-
8
- matrix:
9
- include:
10
- - rvm: 2.3
11
- - rvm: 2.4
12
- - rvm: 2.5
13
- - rvm: 2.6
14
- - rvm: 2.6
15
- env: COVERAGE=BriefSummary,Coveralls
16
- - rvm: ruby-head
17
- - rvm: truffleruby
18
- - rvm: jruby-head
19
- env: JRUBY_OPTS="--debug -X+O"
20
- allow_failures:
21
- - rvm: ruby-head
22
- - rvm: truffleruby
23
- - rvm: jruby-head