sixword 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fc9f0517fd216584e553dc2e71e960bdd0b25848
4
+ data.tar.gz: 31a69ccaf02db205bf290d384fe705491ac6be11
5
+ SHA512:
6
+ metadata.gz: 6d6cfc2a72925aaa382748c85d7e803668f5df4b9a41a6a1421ea3a26ffa738650f04013bb33ee6a6f9f5957cb09d1bf2c87610825249291d158d7d1846374c9
7
+ data.tar.gz: 952b8f2e92c338863d39e39e59a83c41aae3e5c24e592ea770426d7353561624474be41a96869fd67c833b5f4963cda738d79e58cc89d9731c3b5700322c7c10
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.3"
4
+ - "2.0.0"
5
+ - "2.1" # latest 2.1.x
6
+ - "2.2" # latest 2.2.x
7
+ - "jruby-19mode"
8
+ script:
9
+ bundle exec rake test
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Sixword
2
2
 
3
+ ![Build status](https://travis-ci.org/ab/sixword.svg)
4
+
3
5
  Sixword implements the 6-word binary encoding created for S/Key (tm) and
4
6
  standardized by RFC 2289, RFC 1760, and RFC 1751. Binary data may be
5
7
  encoded using a dictionary of 2048 English words of 1-4 characters in
@@ -62,6 +62,10 @@ Options:
62
62
  options[:mode] = :decode
63
63
  end
64
64
 
65
+ opts.on('-e', '--encode', 'Encode data (default)') do
66
+ options[:mode] = :encode
67
+ end
68
+
65
69
  opts.on('-p', '--no-pad', "Don't use custom padding scheme", ' ') do
66
70
  options[:pad] = false
67
71
  end
@@ -1,3 +1,3 @@
1
1
  module Sixword
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -30,4 +30,6 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'bundler', '~> 1.3'
31
31
  spec.add_development_dependency 'rake'
32
32
  spec.add_development_dependency 'rspec'
33
+
34
+ spec.required_ruby_version = '>= 1.9.3'
33
35
  end
@@ -1,3 +1,4 @@
1
+ # coding: binary
1
2
  require_relative '../rspec_helper'
2
3
 
3
4
  describe Sixword::Hex do
@@ -1,3 +1,4 @@
1
+ # coding: binary
1
2
  require_relative 'rspec_helper'
2
3
 
3
4
  describe Sixword do
metadata CHANGED
@@ -1,71 +1,66 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sixword
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
5
- prerelease:
4
+ version: 0.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Andy Brody
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
- description: ! " Sixword implements the 6-word binary encoding created for S/Key
63
- (tm) and\n standardized by RFC 2289, RFC 1760, and RFC 1751. Binary data may
64
- be\n encoded using a dictionary of 2048 English words of 1-4 characters in\n
65
- \ length. Each block of 64 bits is encoded using 6 words, which includes 2\n parity
66
- bits. It is ideal for transmitting binary data such as cryptographic\n keys where
67
- humans must communicate or enter the values.\n\n See also: Bubble Babble, PGP
68
- Word List, Diceware, Base64, Base32\n"
55
+ description: |2
56
+ Sixword implements the 6-word binary encoding created for S/Key (tm) and
57
+ standardized by RFC 2289, RFC 1760, and RFC 1751. Binary data may be
58
+ encoded using a dictionary of 2048 English words of 1-4 characters in
59
+ length. Each block of 64 bits is encoded using 6 words, which includes 2
60
+ parity bits. It is ideal for transmitting binary data such as cryptographic
61
+ keys where humans must communicate or enter the values.
62
+
63
+ See also: Bubble Babble, PGP Word List, Diceware, Base64, Base32
69
64
  email:
70
65
  - abrody@abrody.com
71
66
  executables:
@@ -73,7 +68,9 @@ executables:
73
68
  extensions: []
74
69
  extra_rdoc_files: []
75
70
  files:
76
- - .gitignore
71
+ - ".gitignore"
72
+ - ".rspec"
73
+ - ".travis.yml"
77
74
  - Gemfile
78
75
  - LICENSE.txt
79
76
  - README.md
@@ -94,33 +91,26 @@ files:
94
91
  homepage: https://github.com/ab/sixword
95
92
  licenses:
96
93
  - GPL-3
94
+ metadata: {}
97
95
  post_install_message:
98
96
  rdoc_options: []
99
97
  require_paths:
100
98
  - lib
101
99
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
100
  requirements:
104
- - - ! '>='
101
+ - - ">="
105
102
  - !ruby/object:Gem::Version
106
- version: '0'
107
- segments:
108
- - 0
109
- hash: -2360590348015650263
103
+ version: 1.9.3
110
104
  required_rubygems_version: !ruby/object:Gem::Requirement
111
- none: false
112
105
  requirements:
113
- - - ! '>='
106
+ - - ">="
114
107
  - !ruby/object:Gem::Version
115
108
  version: '0'
116
- segments:
117
- - 0
118
- hash: -2360590348015650263
119
109
  requirements: []
120
110
  rubyforge_project:
121
- rubygems_version: 1.8.23
111
+ rubygems_version: 2.2.2
122
112
  signing_key:
123
- specification_version: 3
113
+ specification_version: 4
124
114
  summary: Implementation of RFC 2289 compatible 6-word encoding
125
115
  test_files:
126
116
  - spec/rspec_helper.rb