cousin_roman 1.0.5 → 1.0.6

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec3fa2cc7d9e4ab2b07e528b54976fb4133a8b92
4
- data.tar.gz: 9bdac0d47492a5a17cc9eee724a856364987e67c
3
+ metadata.gz: b45cae2540c90b30061a2e8e74e350f3b69bfcc5
4
+ data.tar.gz: c0c11c4d0f97d4314eea9ebfa1f55e622778bae2
5
5
  SHA512:
6
- metadata.gz: 5bebb3279b63fdca8189a5c1290a7ebb4baeb76abf42e88081e19614dc8bd7d386d8c70aefc7c416e91386566be700f96b0e17144d83469e8e4e043b64b6aa89
7
- data.tar.gz: f6834054b705eb3e16f7aeb9b93f01c90b2622cf7dc88524570a4fa02d4ccb779a49bcb0bdb028fcdcaea8d220d9b43a1de3eac088958f7a9d757ba815b6ea12
6
+ metadata.gz: e48cc37e421b0edcda6f46b6174c5a9e053970e3408b230b7726376d575db4dbc64865e5bc98876523f4ca126e34209853b73aa2e569dbab4ba0e9709404c5d5
7
+ data.tar.gz: dc558327fb0352bd5058058491b4135844f5c44d32088e93cb6a49e6e5a730167e25ee5e0c0c707d5d3cae16856c59c2cfbbf399068277ccc8169957f304e24b
@@ -1,3 +1,3 @@
1
1
  module CousinRoman
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -75,29 +75,29 @@ describe CousinRoman::Roman do
75
75
  describe 'ordering validation' do
76
76
  context 'when validating that factors are ordered by descreasing of power' do
77
77
  ORDERINGS_RIGHT = [
78
- 'md', 'mc',
79
- 'cl', 'cx',
80
- 'xv', 'xi',
81
- 'mcm', 'mcd',
82
- 'cxc', 'cxl',
83
- 'xix', 'xiv'
78
+ 'm-d', 'm-c',
79
+ 'c-l', 'c-x',
80
+ 'x-v', 'x-i',
81
+ 'm-cm', 'm-cd',
82
+ 'c-xc', 'c-xl',
83
+ 'x-ix', 'x-iv'
84
84
  ]
85
85
  ORDERINGS_WRONG = [
86
- 'dm', 'lc', 'vx',
87
- 'cmm', 'cdm',
88
- 'xcc', 'xlc',
89
- 'ixx', 'ivx'
86
+ 'd-m', 'l-c', 'v-x',
87
+ 'cm-m', 'cd-m',
88
+ 'xc-c', 'x-lc',
89
+ 'ix-x', 'iv-x'
90
90
  ]
91
91
 
92
92
  ORDERINGS_RIGHT.each do |pair|
93
- high, low = pair.split('', 2)
93
+ high, low = pair.split('-')
94
94
  it "should allow #{high}#{low}" do
95
95
  CousinRoman::Roman.valid?(high + low).should be_true
96
96
  end
97
97
  end
98
98
 
99
99
  ORDERINGS_WRONG.each do |pair|
100
- low, high = pair.split('', 2)
100
+ low, high = pair.split('-')
101
101
  it "should not allow #{low}#{high}" do
102
102
  CousinRoman::Roman.valid?(low + high).should be_false
103
103
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cousin_roman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Pyanykh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-13 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler