bagua 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NmI4ZTQxZTI2ODM0YTI3ZWQyN2QwMTkyYzdjYjk3NTNhYzNjOTg3NA==
5
- data.tar.gz: !binary |-
6
- MjExZDQzODliNzhhNDE2MTE2Nzk3MDUyODVjYWNiYzZmZmM4ZTIwOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZmExMDczZmU0MDBhMzBmYmVjMjI3OWNkNjYzOTgxMWVkNDc0YTg3ZWFiZTYw
10
- NDUzZjhlZDBkZjkwYWFjYmEzNGVkN2NiNWZiMjU1YzQzNGRjNGU1MjdlYWU4
11
- Nzk1NTY5Y2Q2OWQ2ZTdjZDkwZjY5NTMwYTY4ZjBmYmIxMmVmOTk=
12
- data.tar.gz: !binary |-
13
- OTIzYWU4MjQ2ODQ0MDRkOTdjYjIwNDU0NjE1NGM3YzQ2ZmUwMTE1OGExZTZj
14
- YTg1ODg1MDRiY2VmYmE2MDAxMzc1ODY4M2Y5ZWNiYmNkMjE5Mzc5ZTY3Y2Jk
15
- YjRmZmE5OWU5N2Q5ZDEyNzQwNGNlZjBiNmU2ZmExNTI5Y2FjMWE=
2
+ SHA256:
3
+ metadata.gz: d3122225692be8d74f9a7eba59c0f2e207b69ba43b39f87dd34a673c4ede062c
4
+ data.tar.gz: 7950916784285366f4e75426f7930e407ca566e16832a8f7730c3404759a8420
5
+ SHA512:
6
+ metadata.gz: d2ed0badf7269956f8f07a96043db00cb063c9fac9d73714a78e90dc21f73437a18d46fff24c971a143012d40e25136f8b10c2c06ae141388c6e8234009bcbbb
7
+ data.tar.gz: a18a094bdfa3c0402b716b4365c174a3061941f89ae822e838e8bb9e0e6bf502c9193687fb41c1c9bb8a6909dcf7bacc9d2e05dd8872906c1bf5460d19713f5e
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *.sublime-project
1
2
  .DS_Store
2
3
  .yardoc
3
4
  Gemfile.lock
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_development_dependency 'bundler', '~> 1.3'
22
- spec.add_development_dependency 'rake', '~> 10.0.3'
23
- spec.add_development_dependency 'yard', '~> 0.8.3'
24
- spec.add_development_dependency 'redcarpet', '~> 2.2.2'
25
- spec.add_development_dependency 'rspec', '~> 2.13.0'
21
+ spec.add_development_dependency 'bundler', '~> 1.16'
22
+ spec.add_development_dependency 'rake', '~> 12.3'
23
+ spec.add_development_dependency 'yard', '~> 0.9.12'
24
+ spec.add_development_dependency 'redcarpet', '~> 3.4'
25
+ spec.add_development_dependency 'rspec', '~> 3.7'
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Bagua
2
- VERSION = "0.1.0" # Version number of this module.
2
+ VERSION = "0.1.1" # Version number of this module.
3
3
  end
@@ -14,13 +14,13 @@ module Bagua
14
14
 
15
15
  it "works for all King Wen sequence examples" do
16
16
  @examples_wen.each do |row|
17
- Hex.from_bytes(row[0..-2],:wen).should == row[-1]
17
+ expect(Hex.from_bytes(row[0..-2],:wen)).to eq row[-1]
18
18
  end
19
19
  end
20
20
 
21
21
  it "works for all binary sequence examples" do
22
22
  @examples_bin.each do |row|
23
- Hex.from_bytes(row[0..-2],:binary).should == row[-1]
23
+ expect(Hex.from_bytes(row[0..-2],:binary)).to eq row[-1]
24
24
  end
25
25
  end
26
26
  end
@@ -13,7 +13,7 @@ module Bagua
13
13
 
14
14
  it "works for all example valid inputs" do
15
15
  @examples.each do |row|
16
- Hex.gram(row[0]).should == row[1]
16
+ expect(Hex.gram(row[0])).to eq row[1]
17
17
  end
18
18
  end
19
19
  end
@@ -27,7 +27,7 @@ module Bagua
27
27
 
28
28
  it "works for all example valid inputs" do
29
29
  @examples.each do |row|
30
- Hex.gram_bin(row[0]).should == row[1]
30
+ expect(Hex.gram_bin(row[0])).to eq row[1]
31
31
  end
32
32
  end
33
33
  end
@@ -12,19 +12,19 @@ module Bagua
12
12
 
13
13
  it "decode(encode(str)) should equal str" do
14
14
  @examples.each do |row|
15
- Hex.decode(Hex.encode(row[0])).should == row[0]
15
+ expect(Hex.decode(Hex.encode(row[0]))).to eq row[0]
16
16
  end
17
17
  end
18
18
 
19
19
  it "decode(encode(str,:wen),:wen) should equal str" do
20
20
  @examples.each do |row|
21
- Hex.decode(Hex.encode(row[0],:wen),:wen).should == row[0]
21
+ expect(Hex.decode(Hex.encode(row[0],:wen),:wen)).to eq row[0]
22
22
  end
23
23
  end
24
24
 
25
25
  it "decode(encode(str,:binary),:binary) should equal str" do
26
26
  @examples.each do |row|
27
- Hex.decode(Hex.encode(row[0],:binary),:binary).should == row[0]
27
+ expect(Hex.decode(Hex.encode(row[0],:binary),:binary)).to eq row[0]
28
28
  end
29
29
  end
30
30
  end
@@ -13,7 +13,7 @@ module Bagua
13
13
 
14
14
  it "works for all example valid inputs" do
15
15
  @examples.each do |row|
16
- Tri.from_bytes(row[0..-2]).should == row[-1]
16
+ expect(Tri.from_bytes(row[0..-2])).to eq row[-1]
17
17
  end
18
18
  end
19
19
  end
@@ -13,7 +13,7 @@ module Bagua
13
13
 
14
14
  it "works for all example valid inputs" do
15
15
  @examples.each do |row|
16
- Tri.gram(row[0]).should == row[1]
16
+ expect(Tri.gram(row[0])).to eq row[1]
17
17
  end
18
18
  end
19
19
  end
@@ -12,7 +12,7 @@ module Bagua
12
12
 
13
13
  it "decode(encode(str)) should equal str" do
14
14
  @examples.each do |row|
15
- Tri.decode(Tri.encode(row[0])).should == row[0]
15
+ expect(Tri.decode(Tri.encode(row[0]))).to eq row[0]
16
16
  end
17
17
  end
18
18
  end
@@ -3,16 +3,8 @@
3
3
  lib = File.expand_path('../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
- # This file was generated by the `rspec --init` command. Conventionally, all
7
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
8
- # Require this file using `require "spec_helper"` to ensure that it is only
9
- # loaded once.
10
- #
11
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
12
6
  RSpec.configure do |config|
13
- config.treat_symbols_as_metadata_keys_with_true_values = true
14
7
  config.run_all_when_everything_filtered = true
15
- config.filter_run :focus
16
8
 
17
9
  # Run specs in random order to surface order dependencies. If you find an
18
10
  # order dependency and want to debug it, you can fix the order by providing
metadata CHANGED
@@ -1,85 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bagua
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Bai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-25 00:00:00.000000000 Z
11
+ date: 2017-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.16'
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.3'
26
+ version: '1.16'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 10.0.3
33
+ version: '12.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 10.0.3
40
+ version: '12.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yard
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.8.3
47
+ version: 0.9.12
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.8.3
54
+ version: 0.9.12
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: redcarpet
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.2.2
61
+ version: '3.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.2.2
68
+ version: '3.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.13.0
75
+ version: '3.7'
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: 2.13.0
82
+ version: '3.7'
83
83
  description: Encodes plain text as sequences of trigrams or hexagrams.
84
84
  email:
85
85
  - hyperplanedrifter@gmail.com
@@ -87,9 +87,9 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .rspec
92
- - .yardopts
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".yardopts"
93
93
  - Gemfile
94
94
  - LICENSE
95
95
  - README.md
@@ -123,17 +123,17 @@ require_paths:
123
123
  - lib
124
124
  required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ! '>='
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ! '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.0.7
136
+ rubygems_version: 2.7.3
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Trigram/hexagram encoder
@@ -152,4 +152,3 @@ test_files:
152
152
  - spec/bagua/tri/gram_spec.rb
153
153
  - spec/bagua/tri/tri_spec.rb
154
154
  - spec/spec_helper.rb
155
- has_rdoc: