sixword 0.3.4 → 0.3.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: a5f8241501d3ec9a161b47b2b3d013de7eee6c7f
4
- data.tar.gz: 0df5938f25ccf57e734f53d0fce16dc87504121f
3
+ metadata.gz: 7cfd547e4e87c6fcc78c1400077dc59dd4122d8c
4
+ data.tar.gz: 495533f0f1e6b3235ac314c5450f4e58edb01288
5
5
  SHA512:
6
- metadata.gz: 50dd98d6d7c3ae1c0936c05be2cb0b21eb63141701fe329baa58b3eaf3224621817dd2406d7b4532e24e1e3a305aa849e181d47800ecf2370f8e932dfbf1191d
7
- data.tar.gz: e42402107439bdf45dbb38b79b039b08d8af4f7454f10486147684bb83a8873eacdc7cd83e91d257bf95f19448bd7af9ca01eed7a9b2d5c173738d35c4f3d5e0
6
+ metadata.gz: 22efaac565c893e67c73a44c97ca391c23eb4164bcefe686314453af220f26782e233d32ead10ac3cdd066e2cb88923a277cf396e6c34f7273e2306eacb2caf3
7
+ data.tar.gz: 32241db8faa21de8af1836fd0d1bd6b8acba0fca3d4d9cc4ab83bcbb45f654f3a12a58fee6327bbf76ccdc532f3ad9365803575c937696690ff01db95a52c432
@@ -120,13 +120,10 @@ Style/SpaceInsideBlockBraces:
120
120
  Style/SpaceInsideHashLiteralBraces:
121
121
  Enabled: false
122
122
 
123
- # TODO this is affected by rubocop bug
124
- # https://github.com/bbatsov/rubocop/issues/2448
125
- #
126
123
  # Offense count: 27
127
124
  # Cop supports --auto-correct.
128
125
  # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
129
- Style/TrailingComma:
126
+ Style/TrailingCommaInLiteral:
130
127
  # SupportedStyles:
131
128
  # - comma
132
129
  # - no_comma
@@ -136,6 +133,10 @@ Style/TrailingComma:
136
133
  Style/WordArray:
137
134
  Enabled: false
138
135
 
136
+ # Definitely do NOT assign variables within a conditional. Christ.
137
+ Style/ConditionalAssignment:
138
+ Enabled: false
139
+
139
140
  # ********************************
140
141
 
141
142
  # Configuration parameters: AllowedVariables.
@@ -1,11 +1,25 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "1.9.3"
4
3
  - "2.0.0"
5
4
  - "2.1" # latest 2.1.x
6
5
  - "2.2" # latest 2.2.x
7
- - "jruby-19mode"
6
+ - "2.3.0"
7
+ - "2.4.0"
8
+ - "jruby-9.1.5.0"
8
9
  - "jruby-head"
9
10
  script:
10
11
  bundle exec rake test
11
12
  sudo: false
13
+
14
+ before_install:
15
+ # get latest rubygems due to weird bugs
16
+ - gem update --system
17
+ # bundler installation needed for jruby-head
18
+ # https://github.com/travis-ci/travis-ci/issues/5861
19
+ - gem install bundler
20
+ - unset _JAVA_OPTIONS
21
+
22
+ env:
23
+ # avoid jruby unknown property jruby.cext.enabled
24
+ # https://github.com/travis-ci/travis-ci/issues/6471
25
+ - JRUBY_OPTS=''
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org).
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.3.5] -- 2018-03-28
8
+
9
+ - Fix up rubocop config etc.
10
+
7
11
  ## [0.3.4] -- 2015-12-06
8
12
 
9
13
  - Add multi-sentence output option for encoding mode (-w, --line-width). This
@@ -96,7 +96,8 @@ module Sixword
96
96
 
97
97
  # check parity
98
98
  unless parity_int(int) == parity
99
- raise InvalidParity.new("Parity bits do not match")
99
+ raise InvalidParity.new("Parity bits do not match: " +
100
+ word_array.join(' ').inspect)
100
101
  end
101
102
 
102
103
  # omit padding bits, if any
@@ -1,4 +1,4 @@
1
1
  module Sixword
2
2
  # version string
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.5'.freeze
4
4
  end
@@ -258,11 +258,7 @@ module Sixword
258
258
  "WITH", "WOLF", "WONT", "WOOD", "WOOL", "WORD", "WORE", "WORK",
259
259
  "WORM", "WORN", "WOVE", "WRIT", "WYNN", "YALE", "YANG", "YANK",
260
260
  "YARD", "YARN", "YAWL", "YAWN", "YEAH", "YEAR", "YELL", "YOGA",
261
- "YOKE" ]
262
-
263
- # mutability sucks
264
- WORDS.freeze
265
- WORDS.each(&:freeze)
261
+ "YOKE" ].map(&:freeze).freeze
266
262
 
267
263
  # A mapping from Word => Integer index in the word list
268
264
  WORDS_HASH = Hash[WORDS.each_with_index.to_a]
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'pry'
32
32
  spec.add_development_dependency 'rake'
33
33
  spec.add_development_dependency 'rspec', '~> 3.0'
34
- spec.add_development_dependency 'rubocop', '~> 0'
34
+ spec.add_development_dependency 'rubocop', '~> 0.49'
35
35
  spec.add_development_dependency 'yard'
36
36
 
37
37
  spec.required_ruby_version = '>= 1.9.3'
@@ -1,10 +1,10 @@
1
1
  RSpec.describe Sixword::CLI do
2
2
 
3
- @@test_warnings = Set.new
3
+ TestWarnings = Set.new
4
4
  def warn_once(label, message)
5
- unless @@test_warnings.include?(label)
5
+ unless TestWarnings.include?(label)
6
6
  warn message
7
- @@test_warnings << label
7
+ TestWarnings << label
8
8
  end
9
9
  end
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixword
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Brody
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-06 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.49'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.49'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: yard
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.4.5.1
157
+ rubygems_version: 2.6.12
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Implementation of RFC 2289 compatible 6-word encoding
@@ -165,4 +165,3 @@ test_files:
165
165
  - spec/unit/sixword/hex_spec.rb
166
166
  - spec/unit/sixword/lib_spec.rb
167
167
  - spec/unit/sixword_spec.rb
168
- has_rdoc: