redis_counters-dumpers 1.2.0 → 1.2.1

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: 9768a6973b5c7597061b0c9979577504ad5724e6
4
- data.tar.gz: 5e9940f0b1cd4d21f605f9d5ef75134228e1b393
3
+ metadata.gz: 8f9e7a48c4a5744051a571af5bda53bcadb83828
4
+ data.tar.gz: 4218fab18de8290d51d3fc685ba997ac964e6224
5
5
  SHA512:
6
- metadata.gz: 7f49176f615448b7d0b796b9de61192d775d92e0a2e920a22e324666a2a99c1460335d3cf7fbe8fc2b61a082129e91dc256b9a53a2637a8e560a829ea90270db
7
- data.tar.gz: 842d8c7fefc9bba5b821572fd5ba995c82e57a3670aa29b114aa867ccfd90ed4c6781562ef0fb01d9b956cc8d90a7533fc7fd4f6fffffcb25352b41b1c68b897
6
+ metadata.gz: cff6a03f6a5d7f7037e90a5cf953806d05227d247e1bb12261b0dd2d78a10ad59b3e5851f87f61a7e6ebbfb20d4f87d5494f81799804a501996decaa0e5da3fc
7
+ data.tar.gz: 7454b1bfe68aea37df4cd14aefc65c41ff6586a278738d0da60348e77c60fa51a0e8945ea39ebd794d5e6e1e662bc7b1e64a86db1d7ea28f56f9a9ec10a2824a
data/.drone.yml CHANGED
@@ -19,3 +19,14 @@ build:
19
19
 
20
20
  - dip provision
21
21
  - dip rspec
22
+
23
+ release:
24
+ image: abakpress/gem-publication
25
+ pull: true
26
+ when:
27
+ event: push
28
+ branch: master
29
+ volumes:
30
+ - /home/data/drone/rubygems:/root/.gem
31
+ commands:
32
+ - release-gem --public
data/CHANGELOG.md CHANGED
@@ -1,25 +1,42 @@
1
+ # v1.2.1
1
2
 
2
- #### [Current]
3
+ * 2018-12-27 [dca67bc](../../commit/dca67bc) - __(Andrew N. Shalaev)__ feature: add autopublication to rubygems.org
4
+ * 2018-12-21 [f4e57f5](../../commit/f4e57f5) - __(Andrew N. Shalaev)__ Release v1.2.1
5
+ * 2018-12-26 [21b57c8](../../commit/21b57c8) - __(Andrew N. Shalaev)__ fix: constraint pg gem
6
+ * 2018-12-21 [2f4ceab](../../commit/2f4ceab) - __(Andrew N. Shalaev)__ feature: add support for redis >= v4
3
7
 
8
+ # v1.2.0
4
9
 
5
- #### v1.1.0
6
- * 2017-07-07 [ae5ffbf](../../commit/ae5ffbf) - __(Pavel Galkin)__ Release 1.1.0
7
- * 2017-06-21 [fc29058](../../commit/fc29058) - __(Pavel Galkin)__ feat: matching_expr option for destination
8
- * 2017-06-20 [d21a7d8](../../commit/d21a7d8) - __(Pavel Galkin)__ chore: update infrastructure
10
+ * 2017-11-13 [bd94a94](../../commit/bd94a94) - __(Artem Napolskih)__ fix: specs for redis_counters 1.5
11
+ * 2017-11-13 [5641228](../../commit/5641228) - __(Artem Napolskih)__ chore: remove hstore dependency
9
12
 
10
- #### v1.0.0
11
- * 2016-10-14 [704ad6d](../../commit/704ad6d) - __(Semyon Pupkov)__ Bump version
12
- * 2016-09-05 [0bf4850](../../commit/0bf4850) - __(vadshalamov)__ feature: позволит не задавать increment_fields
13
- * 2016-08-31 [b5c9bd9](../../commit/b5c9bd9) - __(vadshalamov)__ feature: добавит hstore в список возможных полей
14
- * 2016-08-31 [3b0235c](../../commit/3b0235c) - __(vadshalamov)__ feature: позволит передавать набор аргументов для дампа
15
- * 2016-07-18 [caa913e](../../commit/caa913e) - __(Stanislav Gordanov)__ feat: добавит enum тип в список возможных полей
16
- * 2016-05-27 [bbb7119](../../commit/bbb7119) - __(Michail Merkushin)__ fix: Remove CTE favor temp table
13
+ # v1.1.0
17
14
 
18
- #### v0.1.0
19
- * 2015-09-15 [bf8cde3](../../commit/bf8cde3) - __(ZhidkovDenis)__ Release 0.1.0
20
- * 2015-09-10 [1f96c39](../../commit/1f96c39) - __(Zhidkov Denis)__ feat: add source_conditions method
21
- * 2015-02-19 [8885300](../../commit/8885300) - __(bibendi)__ add group_by method
15
+ Ограничение activesupport нужно, чтобы собрался бандл.
22
16
 
23
- #### v0.0.1
24
- * 2015-01-26 [86918bd](../../commit/86918bd) - __(bibendi)__ initial code base
25
- * 2015-01-26 [a238032](../../commit/a238032) - __(bibendi)__ initial
17
+ * 2017-06-21 [fc29058](../../commit/fc29058) - __(Pavel Galkin)__ feat: matching_expr option for destination
18
+ https://jira.railsc.ru/browse/CK-862 - пункт 4.
19
+
20
+ * 2017-06-20 [d21a7d8](../../commit/d21a7d8) - __(Pavel Galkin)__ chore: update infrastructure
21
+
22
+ # v1.0.0
23
+
24
+ * 2016-10-14 [704ad6d](../../commit/704ad6d) - __(Semyon Pupkov)__ Bump version
25
+ * 2016-09-05 [0bf4850](../../commit/0bf4850) - __(vadshalamov)__ feature: позволит не задавать increment_fields
26
+ * 2016-08-31 [b5c9bd9](../../commit/b5c9bd9) - __(vadshalamov)__ feature: добавит hstore в список возможных полей
27
+ * 2016-08-31 [3b0235c](../../commit/3b0235c) - __(vadshalamov)__ feature: позволит передавать набор аргументов для дампа
28
+ * 2016-07-18 [caa913e](../../commit/caa913e) - __(Stanislav Gordanov)__ feat: добавит enum тип в список возможных полей
29
+ * 2016-05-27 [bbb7119](../../commit/bbb7119) - __(Michail Merkushin)__ fix: Remove CTE favor temp table
30
+ https://jira.railsc.ru/browse/PC4-17052
31
+
32
+ # v0.1.0
33
+
34
+ * 2015-09-10 [1f96c39](../../commit/1f96c39) - __(Zhidkov Denis)__ feat: add source_conditions method
35
+ Adds ability to specify WHERE-clause for select query from source tmp-table
36
+
37
+ * 2015-02-19 [8885300](../../commit/8885300) - __(bibendi)__ add group_by method
38
+
39
+ # v0.0.1
40
+
41
+ * 2015-01-26 [86918bd](../../commit/86918bd) - __(bibendi)__ initial code base
42
+ * 2015-01-26 [a238032](../../commit/a238032) - __(bibendi)__ initial
data/Gemfile CHANGED
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem 'activerecord-postgres-hstore', require: false
4
4
  gem 'simple_hstore_accessor', '~> 0.2', require: false
5
+ gem 'pg', '~> 0.11'
5
6
 
6
7
  gemspec
@@ -234,10 +234,16 @@ module RedisCounters
234
234
  end
235
235
 
236
236
  def redis_session
237
- @redis_session ||= begin
238
- redis = ::Redis.new(counter.redis.client.options)
239
- ::Redis::Namespace.new(counter.redis.namespace, :redis => redis)
240
- end
237
+ return @redis_session if defined?(@redis_session)
238
+
239
+ client = if Gem::Version.new(::Redis::VERSION) < Gem::Version.new('4')
240
+ counter.redis.client
241
+ else
242
+ counter.redis._client
243
+ end
244
+ redis = ::Redis.new(client.options)
245
+
246
+ @redis_session = ::Redis::Namespace.new(counter.redis.namespace, redis: redis)
241
247
  end
242
248
 
243
249
  def create_temp_table
@@ -1,5 +1,5 @@
1
1
  module RedisCounters
2
2
  module Dumpers
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.2.1'.freeze
4
4
  end
5
5
  end
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.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Merkushin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2018-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  version: '0'
299
299
  requirements: []
300
300
  rubyforge_project:
301
- rubygems_version: 2.5.1
301
+ rubygems_version: 2.6.1
302
302
  signing_key:
303
303
  specification_version: 4
304
304
  summary: Dump statistics from Redis to DB