redis_counters-dumpers 1.1.0 → 1.2.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
  SHA1:
3
- metadata.gz: a60e1ec26471d5763627a8a3ab246e67ef0e9953
4
- data.tar.gz: e67d6186b99f2a423fc58ac4e3573aa273541f98
3
+ metadata.gz: 9768a6973b5c7597061b0c9979577504ad5724e6
4
+ data.tar.gz: 5e9940f0b1cd4d21f605f9d5ef75134228e1b393
5
5
  SHA512:
6
- metadata.gz: 60efde8a403440f3c6748ad59937ae3bd4d9c748c30e77e5bb531dd915ed30ffea1b2dab5654536bc07611007c7e2084a7d94e5a3dba9809d2652bd883dd4e9d
7
- data.tar.gz: ecaf2c8adc08a8bec2e48fa312bd58b7f015141c96c7d063580a410c3088f3f2c7b071fa37a34fd37fbfb83db95cde447a2d1d2d038efc9c7f5db13f64044853
6
+ metadata.gz: 7f49176f615448b7d0b796b9de61192d775d92e0a2e920a22e324666a2a99c1460335d3cf7fbe8fc2b61a082129e91dc256b9a53a2637a8e560a829ea90270db
7
+ data.tar.gz: 842d8c7fefc9bba5b821572fd5ba995c82e57a3670aa29b114aa867ccfd90ed4c6781562ef0fb01d9b956cc8d90a7533fc7fd4f6fffffcb25352b41b1c68b897
@@ -1,5 +1,22 @@
1
1
 
2
2
  #### [Current]
3
+
4
+
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
9
+
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
17
+
18
+ #### v0.1.0
19
+ * 2015-09-15 [bf8cde3](../../commit/bf8cde3) - __(ZhidkovDenis)__ Release 0.1.0
3
20
  * 2015-09-10 [1f96c39](../../commit/1f96c39) - __(Zhidkov Denis)__ feat: add source_conditions method
4
21
  * 2015-02-19 [8885300](../../commit/8885300) - __(bibendi)__ add group_by method
5
22
 
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'activerecord-postgres-hstore', require: false
4
+ gem 'simple_hstore_accessor', '~> 0.2', require: false
5
+
3
6
  gemspec
data/dip.yml CHANGED
@@ -42,5 +42,6 @@ interaction:
42
42
  provision:
43
43
  - docker volume create --name bundler_data
44
44
  - dip bundle config --local https://gems.railsc.ru/ ${APRESS_GEMS_CREDENTIALS}
45
- - dip bundle install --full-index
45
+ - dip clean
46
+ - dip bundle install
46
47
  - dip appraisal install
@@ -1,5 +1,5 @@
1
1
  module RedisCounters
2
2
  module Dumpers
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
@@ -23,8 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency 'redis-namespace', '>= 1.3'
24
24
  spec.add_runtime_dependency 'callbacks_rb', '>= 0.0.1'
25
25
  spec.add_runtime_dependency 'redis_counters', '>= 1.3'
26
- spec.add_runtime_dependency 'activerecord-postgres-hstore'
27
- spec.add_runtime_dependency 'simple_hstore_accessor', '~> 0.2'
28
26
 
29
27
  spec.add_development_dependency 'bundler', '>= 1.7'
30
28
  spec.add_development_dependency 'rake', '>= 10.0'
@@ -27,7 +27,7 @@ ActiveRecord::Schema.define do
27
27
  t.hstore :params
28
28
  end
29
29
 
30
- add_index :stats_by_days, [:record_id, :column_id, :date], unique: true
30
+ add_index :stats_by_days, [:record_id, :column_id, :date, :params], unique: true, name: :uq
31
31
 
32
32
  create_table :stats_totals do |t|
33
33
  t.integer :record_id, null: false
@@ -37,7 +37,7 @@ ActiveRecord::Schema.define do
37
37
  t.hstore :params
38
38
  end
39
39
 
40
- add_index :stats_totals, [:record_id, :column_id], unique: true
40
+ add_index :stats_totals, [:record_id, :column_id, :params], unique: true
41
41
 
42
42
  create_table :stats_agg_totals do |t|
43
43
  t.integer :record_id, null: false
@@ -26,6 +26,7 @@ describe RedisCounters::Dumpers::Engine do
26
26
  key_fields :record_id, :column_id, :params
27
27
  increment_fields :hits
28
28
  map :hits, to: :value
29
+ map :params, to: "COALESCE(params, '')"
29
30
  end
30
31
 
31
32
  destination do
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.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Merkushin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-11 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -114,34 +114,6 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '1.3'
117
- - !ruby/object:Gem::Dependency
118
- name: activerecord-postgres-hstore
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- type: :runtime
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '0'
131
- - !ruby/object:Gem::Dependency
132
- name: simple_hstore_accessor
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '0.2'
138
- type: :runtime
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '0.2'
145
117
  - !ruby/object:Gem::Dependency
146
118
  name: bundler
147
119
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
298
  version: '0'
327
299
  requirements: []
328
300
  rubyforge_project:
329
- rubygems_version: 2.4.6
301
+ rubygems_version: 2.5.1
330
302
  signing_key:
331
303
  specification_version: 4
332
304
  summary: Dump statistics from Redis to DB