redis_counters-dumpers 1.2.2 → 1.2.3

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
  SHA1:
3
- metadata.gz: e14453e48ca15c05c626c6a9c2b267a50ef1e9da
4
- data.tar.gz: '0779a0ddb4eec188a21cf7fe163e565339898583'
3
+ metadata.gz: b0cf08857a7fe296b1ccb59f5472630235414c22
4
+ data.tar.gz: 2739dfa6ab87472f73c49e745c5a17934669e81d
5
5
  SHA512:
6
- metadata.gz: e7651d848f01b98b1f5e2c3086f2b46a17b54497fd7692c8f7108bf072fa79f696e498b00ae23c901376430a7d4995157426d2c931af6d922d9388949cc36783
7
- data.tar.gz: e972fb15ec3058bb99d53fb6341ae85f5b25f2a301a11257cbf51cfe4ca393fc1030564bf469cf7e05fd6c4680d5ed12049c1f654a146fe10c184d5f3d365f91
6
+ metadata.gz: e4a6bf161dd2330d8e6a2324ea6ae3ae7d8e4e6dd67bdcc9e27f42798749e3e403ade710f90ab991f6bb1aaf36b68623cd127508aeff8b0e77db3bf975f92015
7
+ data.tar.gz: 66f74d188bb8ed737efcdc9f07ad5e3a8f416f7463b2ef02a9d7dca9f0898617930f09360d377c44a2e8d724b2e9cb44e31d12694b72aa2aff494945fedbc512
data/.drone.yml CHANGED
@@ -1,32 +1,86 @@
1
- build:
2
- test:
3
- image: abakpress/dind-testing
4
- pull: true
5
- privileged: true
6
- volumes:
7
- - /home/data/drone/images:/images
8
- - /home/data/drone/gems:/bundle
1
+ name: build
2
+
3
+ kind: pipeline
4
+ type: docker
5
+
6
+ volumes:
7
+ - name: rubygems
8
+ host:
9
+ path: /home/data/drone/rubygems
10
+ - name: images
11
+ host:
12
+ path: /home/data/drone/images
13
+ - name: bundle
14
+ host:
15
+ path: /home/data/drone/gems
16
+ - name: keys
17
+ host:
18
+ path: /home/data/drone/key_cache
19
+
20
+ spec_step_common: &spec_step_common
21
+ image: abakpress/dind-testing:1.0.3
22
+ pull: if-not-exists
23
+ privileged: true
24
+ volumes:
25
+ - name: images
26
+ path: /images
27
+ - name: bundle
28
+ path: /bundle
29
+ - name: keys
30
+ path: /ssh_keys
31
+ commands:
32
+ - prepare-build
33
+
34
+ - fetch-images
35
+ --image whilp/ssh-agent
36
+ --image abakpress/ruby-app:$RUBY_IMAGE_TAG
37
+ --image abakpress/postgres-db:$POSTGRES_IMAGE_TAG
38
+ --image redis:$REDIS_IMAGE_TAG
39
+
40
+ - dip ssh add -T -v /ssh_keys -k /ssh_keys/id_rsa
41
+ - dip provision
42
+ - dip rspec
43
+
44
+ steps:
45
+ - name: Tests Ruby 2.2
9
46
  environment:
10
- - COMPOSE_FILE_EXT=drone
11
- - POSTGRES_IMAGE_TAG=9.6-latest
12
- - RUBY_IMAGE_TAG=2.2-latest
13
- commands:
14
- - wrapdocker docker -v
47
+ COMPOSE_FILE_EXT: drone
48
+ DOCKER_RUBY_VERSION: 2.2
49
+ RUBY_IMAGE_TAG: 2.2-latest
50
+ POSTGRES_IMAGE_TAG: 9.6-latest
51
+ REDIS_IMAGE_TAG: 4-alpine
52
+ RAILS_ENV: test
53
+ <<: *spec_step_common
15
54
 
16
- - fetch-images
17
- --image abakpress/ruby-app:$RUBY_IMAGE_TAG
18
- --image abakpress/postgres-db:$POSTGRES_IMAGE_TAG
55
+ - name: Tests Ruby 2.3
56
+ environment:
57
+ COMPOSE_FILE_EXT: drone
58
+ DOCKER_RUBY_VERSION: 2.3
59
+ RUBY_IMAGE_TAG: 2.3-latest
60
+ POSTGRES_IMAGE_TAG: 9.6-latest
61
+ REDIS_IMAGE_TAG: 4-alpine
62
+ RAILS_ENV: test
63
+ <<: *spec_step_common
19
64
 
20
- - dip provision
21
- - dip rspec
65
+ - name: Tests Ruby 2.4
66
+ environment:
67
+ COMPOSE_FILE_EXT: drone
68
+ DOCKER_RUBY_VERSION: 2.4
69
+ RUBY_IMAGE_TAG: 2.4-latest
70
+ POSTGRES_IMAGE_TAG: 9.6-latest
71
+ REDIS_IMAGE_TAG: 4-alpine
72
+ RAILS_ENV: test
73
+ <<: *spec_step_common
22
74
 
23
- release:
24
- image: abakpress/gem-publication
25
- pull: true
75
+ - name: release
76
+ image: abakpress/gem-publication:latest
77
+ pull: if-not-exists
26
78
  when:
27
79
  event: push
28
80
  branch: master
81
+ status: success
29
82
  volumes:
30
- - /home/data/drone/rubygems:/root/.gem
83
+ - name: rubygems
84
+ path: /root/.gem
31
85
  commands:
32
86
  - release-gem --public
data/.gitignore CHANGED
@@ -14,3 +14,4 @@
14
14
  *.o
15
15
  *.a
16
16
  mkmf.log
17
+ /.idea/
data/Appraisals CHANGED
@@ -1,14 +1,11 @@
1
- appraise 'rails3.2' do
2
- gem 'activesupport', '~> 3.2.14'
3
- gem 'activerecord', '~> 3.2.14'
1
+ if RUBY_VERSION < '2.4'
2
+ appraise 'rails4.0' do
3
+ gem 'activesupport', '~> 4.0.0'
4
+ gem 'activerecord', '~> 4.0.0'
5
+ end
4
6
  end
5
7
 
6
- appraise 'rails4.0' do
7
- gem 'activesupport', '~> 4.0.0'
8
- gem 'activerecord', '~> 4.0.0'
9
- end
10
-
11
- appraise 'rails4.1' do
12
- gem 'activesupport', '~> 4.1.0'
13
- gem 'activerecord', '~> 4.1.0'
8
+ appraise 'rails4.2' do
9
+ gem 'activesupport', '~> 4.2.0'
10
+ gem 'activerecord', '~> 4.2.0'
14
11
  end
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
+ # v1.2.3
2
+
3
+ * 2021-08-06 [fb93322](../../commit/fb93322) - __(TamarinEA)__ chore: add rubygems volume
4
+ * 2021-08-05 [ea4350e](../../commit/ea4350e) - __(TamarinEA)__ Release 1.2.3
5
+ * 2021-08-05 [06cc372](../../commit/06cc372) - __(TamarinEA)__ chore: add ruby 2.4 support
6
+
1
7
  # v1.2.2
2
8
 
3
- * 2019-02-26 [a57f56a](../../commit/a57f56a) - __(Oleg Perminov)__ Release v1.2.2
4
9
  * 2018-12-21 [6dd9509](../../commit/6dd9509) - __(Oleg Perminov)__ fix: add type text to updating expression
5
10
  https://jira.railsc.ru/browse/CRM-4532
6
11
 
data/dip.yml CHANGED
@@ -1,9 +1,10 @@
1
1
  version: '1'
2
2
 
3
3
  environment:
4
- DOCKER_RUBY_VERSION: 2.2
5
- RUBY_IMAGE_TAG: 2.2-latest
4
+ DOCKER_RUBY_VERSION: 2.4
5
+ RUBY_IMAGE_TAG: 2.4-latest
6
6
  POSTGRES_IMAGE_TAG: 9.6-latest
7
+ REDIS_IMAGE_TAG: 4-alpine
7
8
  COMPOSE_FILE_EXT: development
8
9
 
9
10
  compose:
data/docker-compose.yml CHANGED
@@ -9,11 +9,17 @@ services:
9
9
  - TEST_DB_HOST=db
10
10
  - TEST_DB_NAME=docker
11
11
  - TEST_DB_USERNAME=postgres
12
+ - TEST_REDIS_HOST=redis
12
13
  command: bash
13
14
  depends_on:
14
15
  - db
16
+ - redis
15
17
 
16
18
  db:
17
19
  image: abakpress/postgres-db:$POSTGRES_IMAGE_TAG
18
20
  environment:
19
21
  - POSTGRES_DB=docker
22
+
23
+ redis:
24
+ image: redis:$REDIS_IMAGE_TAG
25
+ command: 'redis-server --bind 0.0.0.0'
@@ -1,5 +1,5 @@
1
1
  module RedisCounters
2
2
  module Dumpers
3
- VERSION = '1.2.2'.freeze
3
+ VERSION = '1.2.3'.freeze
4
4
  end
5
5
  end
@@ -26,10 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'bundler', '>= 1.7'
27
27
  spec.add_development_dependency 'rake', '>= 10.0'
28
28
  spec.add_development_dependency 'rspec', '>= 3.2'
29
- spec.add_development_dependency 'rspec-rails', '>= 3.2'
29
+ spec.add_development_dependency 'rspec-rails', '~> 3.9.1'
30
30
  spec.add_development_dependency 'appraisal', '>= 1.0.2'
31
31
  spec.add_development_dependency 'mock_redis'
32
32
  spec.add_development_dependency 'combustion'
33
33
  spec.add_development_dependency 'pry-byebug'
34
- spec.add_development_dependency 'test-unit'
35
34
  end
@@ -60,7 +60,7 @@ describe RedisCounters::Dumpers::Engine do
60
60
  end
61
61
 
62
62
  before do
63
- allow(dumper).to receive(:redis_session).and_return(MockRedis.new)
63
+ allow(dumper).to receive(:redis_session).and_return(Redis.new(host: ENV['TEST_REDIS_HOST']))
64
64
  end
65
65
 
66
66
  describe '#process!' do
data/spec/spec_helper.rb CHANGED
@@ -1,19 +1,13 @@
1
1
  require 'redis_counters/dumpers'
2
2
 
3
- if ::ActiveRecord::VERSION::MAJOR < 4
4
- require 'activerecord-postgres-hstore'
5
- require 'simple_hstore_accessor'
6
- end
7
-
8
3
  require 'combustion'
9
4
  Combustion.initialize! :active_record
10
5
 
11
6
  require 'rspec/rails'
12
7
  require 'pry-byebug'
13
8
 
14
- require 'mock_redis'
15
9
  require 'redis'
16
- Redis.current = MockRedis.new
10
+ Redis.current = Redis.new(host: ENV['TEST_REDIS_HOST'])
17
11
 
18
12
  RSpec.configure do |config|
19
13
  config.use_transactional_fixtures = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_counters-dumpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Merkushin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-25 00:00:00.000000000 Z
11
+ date: 2021-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -146,16 +146,16 @@ dependencies:
146
146
  name: rspec-rails
147
147
  requirement: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - ">="
149
+ - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '3.2'
151
+ version: 3.9.1
152
152
  type: :development
153
153
  prerelease: false
154
154
  version_requirements: !ruby/object:Gem::Requirement
155
155
  requirements:
156
- - - ">="
156
+ - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '3.2'
158
+ version: 3.9.1
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: appraisal
161
161
  requirement: !ruby/object:Gem::Requirement
@@ -212,20 +212,6 @@ dependencies:
212
212
  - - ">="
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
- - !ruby/object:Gem::Dependency
216
- name: test-unit
217
- requirement: !ruby/object:Gem::Requirement
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- type: :development
223
- prerelease: false
224
- version_requirements: !ruby/object:Gem::Requirement
225
- requirements:
226
- - - ">="
227
- - !ruby/object:Gem::Version
228
- version: '0'
229
215
  description:
230
216
  email:
231
217
  - bibendi@bk.ru