redis-key_hash 0.0.4 → 0.0.5

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: af4659873609b59ab1f7caf0280ee74603724bcd
4
- data.tar.gz: 67795113e9239ec7697da473dbf57ae21d28c128
3
+ metadata.gz: 369363f1d9b4ef61fae6a378cb96070cd3fc9be7
4
+ data.tar.gz: 435e2a18a0eb2655a9998375dcba787a3fd3df68
5
5
  SHA512:
6
- metadata.gz: 75bb4c2afa6697f0dadf890c020566f2f2fa739b8e643958c91f76d6c982eaf2d42277f4126ce759135314cdd9ee4c25bb42613d4b62096c8bcb50a53dcb65e0
7
- data.tar.gz: dd77b81d539ed376e2601abf20cd3430bde9de6277ef3e82300e8923d5773b1c644ce59862c2d76f0f7ed41460241cc6b8a896f4d28707bdaf47c14cd986fda0
6
+ metadata.gz: fc85121e791b5a25ff08f85cb8fdb43b730c6e89c9e974574ecdf8ec1384a704ba04eea3c6b43b8d8077c5d41751b459fe3369518956dabdf15ed730a8e5c761
7
+ data.tar.gz: 32994fa88def5d7129429e39eaf6ca59983eeed6957e275a48d277bed85dfcc6e4de13bdaa37198ec4c314136ae240eb35898a383d187ad94b4a54ec0688e9be
@@ -12,6 +12,9 @@ AllCops:
12
12
  # with minimal friction, not forced to make a hard choice between
13
13
  # cutting tests or splitting up my test suites.
14
14
  #
15
+ Metrics/BlockLength:
16
+ Exclude:
17
+ - 'test/**/*.rb'
15
18
  Metrics/ClassLength:
16
19
  Max: 400
17
20
  Exclude:
@@ -47,95 +50,16 @@ Metrics/MethodLength:
47
50
  Layout:
48
51
  Enabled: false
49
52
 
50
- # I like a lot of the Lint tests, but not these.
51
- #
52
- Lint/AmbiguousBlockAssociation: # obnoxiously rejects idiomatic Ruby
53
- Enabled: false
54
-
55
- # This does no more than insist I type "format" instead of "sprintf",
56
- # where the two are aliases.
57
- #
58
- Style/FormatString:
59
- Enabled: false
60
-
61
- # There is nothing wrong with Ruby 1.9 Hash syntax.
62
- #
63
- Style/HashSyntax:
64
- Enabled: false
65
-
66
- # No. Indeed, postfix if can often drive a line over 80 columns wide.
67
- #
68
- Style/IfUnlessModifier:
69
- Enabled: false
70
-
71
- # No. There is nothing wrong with "if !foo".
72
- #
73
- # As far as I'm concerned, "unless" is in poor taste because it means
74
- # I have to think in English in two different logical senses - and
75
- # English is a poor language for logical senses.
76
- #
77
- Style/NegatedIf:
78
- Enabled: false
79
-
80
- # Too pedantic.
81
- #
82
- Style/NumericLiterals:
83
- Enabled: false
84
-
85
- # "Do not use semicolons to terminate expressions."
86
- #
87
- # That's great when I terminate a single-line expression with a
88
- # redundant semicolo because I forget I'm not using C.
89
- #
90
- # But when I'm using a semicolon to separate two expressions there is
91
- # no other choice. So this really ought to be Style/OneExprPerLine,
92
- # which I reject.
93
- #
94
- Style/Semicolon:
95
- Enabled: false
96
-
97
- # No.
98
- #
99
- # Some lines must have '\"'. It is ugly to use a mix of '"' and '\''
100
- # in LoCs which are close to one another. Therefore, banning '"' if
101
- # '"' is not strictly necessary drives visual inconsistency.
102
- #
103
- Style/StringLiterals:
104
- Enabled: false
105
-
106
- # This is the same kind of obnoxious pedantry which drove Hungarian
107
- # Notation.
108
- #
109
- # The [] literal syntax is perfectly servicable and there is no point
110
- # _tightly_ coupling it to the content of the array. That's why we
111
- # have context-free grammers!
112
- #
113
- Style/SymbolArray:
114
- Enabled: false
115
-
116
- # Shockingly, this cop requires us to *OMIT*, not *INCLUDE* parens in
117
- # ternery conditons.
53
+ # As a group, the Style cops are bewilderingly opiniated.
118
54
  #
119
- # IMO this one is actively harmful in that it discourages attention to
120
- # clarity and avoiding some nasty precedence surprises.
121
- #
122
- Style/TernaryParentheses:
123
- Enabled: false
124
-
125
- # I am a huge fan of using trailing commas when I break an argument
126
- # list down one-per line.
55
+ # In some cases IMO they are harmful e.g. Style/TernaryParentheses.
127
56
  #
128
- # As such, I reject this test.
57
+ # I reject these cops.
129
58
  #
130
- Style/TrailingCommaInLiteral:
59
+ Style:
131
60
  Enabled: false
132
61
 
133
- # Too pedantic. I am starting to think I should switch from "opt out"
134
- # to "opt in" on the Style family.
62
+ # I like a lot of the Lint tests, but not these.
135
63
  #
136
- Style/WordArray:
137
- Enabled: false
138
- Style/YodaCondition:
139
- Enabled: false
140
- Style/ZeroLengthPredicate:
64
+ Lint/AmbiguousBlockAssociation: # obnoxiously rejects idiomatic Ruby
141
65
  Enabled: false
@@ -1,10 +1,15 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  before_install:
4
- - gem install bundler -v 1.14.6
4
+ - gem install bundler -v 1.16.1
5
5
  - gem install rubocop
6
+ services:
7
+ - redis-server
6
8
  rvm:
7
9
  - 2.1.6
10
+ - 2.2.9
11
+ - 2.4.3
12
+ - 2.5.0
8
13
  script:
9
- - rubocop
10
- - rake test
14
+ - bundle exec rubocop --display-cop-names --display-style-guide
15
+ - bundle exec env REDIS_URL=redis://localhost:6379 rake test
@@ -0,0 +1,25 @@
1
+ # 0.0.5 (2018-03-26)
2
+ - Expanded .travis.yml to cover more rvm versions.
3
+ - Shrink Rubocop coverage to exclude `Style/*`.
4
+ - Moves version history out into CHANGELOG.md.
5
+
6
+ # 0.0.4 (2017-09-12)
7
+ - Verified existing behavior w/r/t Redis::Namespace.
8
+ - Added more details in Redis::ImpendingCrossSlotError.
9
+ - Rubocop polish and defiance.
10
+ - Redis::KeyHash::ClassMethods inner-inner class removed.
11
+ - Redis::KeyHash changed to a class, not a module.
12
+ - Redis::ImpendingCrossSlotError changed from ArgumentError to Redis::RuntimeError.
13
+
14
+ # 0.0.3 (2017-08-29)
15
+
16
+ - Fix :rc to match https://redis.io/topics/cluster-spec, added Rubocop checks.
17
+
18
+ # 0.0.2 (2017-08-28)
19
+
20
+ - Broke out into Prosperworks/redis-key_hash, make public.
21
+
22
+ # 0.0.1 (prehistory)
23
+
24
+ - Still in Prosperworks/ALI/vendor/gems/redis-key_hash.
25
+
@@ -1,33 +1,5 @@
1
1
  class Redis
2
2
  class KeyHash
3
- #
4
- # Version plan/history:
5
- #
6
- # 0.0.1 - Still in Prosperworks/ALI/vendor/gems/redis-key_hash.
7
- #
8
- # 0.0.2 - Broke out into Prosperworks/redis-key_hash, make public.
9
- #
10
- # 0.0.3 - Fix :rc to match https://redis.io/topics/cluster-spec,
11
- # added Rubocop checks.
12
- #
13
- # 0.0.4 - Verified existing behavior w/r/t Redis::Namespace.
14
- #
15
- # Added more details in Redis::ImpendingCrossSlotError.
16
- #
17
- # Rubocop polish and defiance.
18
- #
19
- # Redis::KeyHash::ClassMethods inner-inner class removed.
20
- #
21
- # Redis::KeyHash changed to a class, not a module.
22
- #
23
- # Redis::ImpendingCrossSlotError changed from
24
- # ArgumentError to Redis::RuntimeError.
25
- #
26
- # 0.1.0 - (future) Big README.md and Rdoc update, solicit feedback
27
- # from select external beta users.
28
- #
29
- # 0.2.0 - (future) Incorporate feedback, announce.
30
- #
31
- VERSION = '0.0.4'.freeze
3
+ VERSION = '0.0.5'.freeze
32
4
  end
33
5
  end
@@ -3,10 +3,10 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'redis/key_hash/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "redis-key_hash"
6
+ spec.name = 'redis-key_hash'
7
7
  spec.version = Redis::KeyHash::VERSION
8
- spec.authors = ["jhwillett"]
9
- spec.email = ["jhw@prosperworks.com"]
8
+ spec.authors = ['jhwillett']
9
+ spec.email = ['jhw@prosperworks.com']
10
10
  spec.license = 'MIT'
11
11
 
12
12
  spec.summary = 'Tests Redis Cluster key hash slot agreement'
@@ -17,16 +17,17 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
18
  f.match(%r{^(test|spec|features)/})
19
19
  end
20
- spec.require_paths = ["lib"]
20
+ spec.require_paths = ['lib']
21
21
 
22
22
  # We use "foo: bar" syntax liberally, not the older ":foo => bar".
23
23
  # Possibly other Ruby 2-isms as well.
24
24
  #
25
- spec.required_ruby_version = '~> 2.0'
25
+ spec.required_ruby_version = '>= 2.1'
26
26
 
27
- spec.add_development_dependency "bundler", "~> 1.14"
28
- spec.add_development_dependency "rake", "~> 10.5"
29
- spec.add_development_dependency "minitest", "~> 5.10"
27
+ spec.add_development_dependency 'bundler', '~> 1.16.0'
28
+ spec.add_development_dependency 'minitest', '~> 5.11.3'
29
+ spec.add_development_dependency 'rake', '~> 12.3.1'
30
+ spec.add_development_dependency 'rubocop', '~> 0.54.0'
30
31
 
31
32
  # This gem is pure Ruby, no weird dependencies.
32
33
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-key_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jhwillett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,42 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.14'
19
+ version: 1.16.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.14'
26
+ version: 1.16.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 5.11.3
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 5.11.3
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '10.5'
47
+ version: 12.3.1
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '10.5'
54
+ version: 12.3.1
41
55
  - !ruby/object:Gem::Dependency
42
- name: minitest
56
+ name: rubocop
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '5.10'
61
+ version: 0.54.0
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '5.10'
68
+ version: 0.54.0
55
69
  description: Hash slot tests for Redis Cluster and RedisLabs Enterprise Cluster.
56
70
  email:
57
71
  - jhw@prosperworks.com
@@ -62,6 +76,7 @@ files:
62
76
  - ".gitignore"
63
77
  - ".rubocop.yml"
64
78
  - ".travis.yml"
79
+ - CHANGELOG.md
65
80
  - Gemfile
66
81
  - LICENSE
67
82
  - README.md
@@ -82,9 +97,9 @@ require_paths:
82
97
  - lib
83
98
  required_ruby_version: !ruby/object:Gem::Requirement
84
99
  requirements:
85
- - - "~>"
100
+ - - ">="
86
101
  - !ruby/object:Gem::Version
87
- version: '2.0'
102
+ version: '2.1'
88
103
  required_rubygems_version: !ruby/object:Gem::Requirement
89
104
  requirements:
90
105
  - - ">="