roman 0.2.0 → 0.3.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a2740bc0eb000da703f3bf721de613123d38ac74542466322e60e151f24aaa3c
4
+ data.tar.gz: aec35eb87d85e1e8134b26f93c30ee527b87146ea684136b69331c263c25fe8c
5
+ SHA512:
6
+ metadata.gz: b2b91061db4db0e45a363f72a7ba131dc7bd64dd2c54b3fd10da2824fde2004b65fce8ab933eb5bf28a66c9998c8b97ac3f8d5ebdc0fc9f673e605840ef86e50
7
+ data.tar.gz: e826a5d13ca5fb92b3f4407febe6917377f6d8ce6e1aa1562068cbc38ed634b57a62d2f136ee17f73eb3d7432c39b814f206d7b3368ceb3f4aaf411833a7cd07
data/HISTORY.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # RELEASE HISTORY
2
2
 
3
3
 
4
+ ## 0.3.0 / 2026-04-02
5
+
6
+ Maintenance release. Modernized project tooling.
7
+
8
+ Changes:
9
+
10
+ * Replace custom Indexer system with standard gemspec.
11
+ * Replace Travis CI with GitHub Actions.
12
+ * Add Rakefile.
13
+ * Update URLs to HTTPS.
14
+ * Clean up obsolete files and .gitignore.
15
+
16
+
4
17
  ## 0.2.0 / 2013-03-10
5
18
 
6
19
  This release fixes the conversion of lower-case letters.
data/README.md CHANGED
@@ -1,15 +1,10 @@
1
1
  # Roman Numerals
2
2
 
3
- [Website](http://rubyworks.github.com/roman) /
4
- [Documentation](http://rubydoc.info/gems/roman/frames) /
5
- [Report Issue](http://github.com/rubyworks/roman/issues) /
6
- [Source Code](http://github.com/rubyworks/roman)    
7
- [![Flattr Me](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/324911/Rubyworks-Ruby-Development-Fund)
3
+ [Source Code](https://github.com/rubyworks/roman) |
4
+ [Report Issue](https://github.com/rubyworks/roman/issues)
8
5
 
9
- ## STATUS
10
-
11
- [![Gem Version](https://badge.fury.io/rb/roman.png)](http://badge.fury.io/rb/roman)
12
- [![Build Status](https://travis-ci.org/rubyworks/roman.png)](https://travis-ci.org/rubyworks/roman)
6
+ [![Gem Version](https://img.shields.io/gem/v/roman.svg?style=flat)](https://rubygems.org/gems/roman)
7
+ [![Build Status](https://github.com/rubyworks/roman/actions/workflows/test.yml/badge.svg)](https://github.com/rubyworks/roman/actions/workflows/test.yml)
13
8
 
14
9
 
15
10
  ## ABOUT
@@ -18,7 +13,7 @@ The Roman library provides a full-fledged Numeric subclass
18
13
  for working in Roman Numerals.
19
14
 
20
15
  In most cases this library is probably overkill. Instead,
21
- [Ruby Facets](http://rubyworks.github.com/facets) provides Roman numeral
16
+ [Ruby Facets](https://github.com/rubyworks/facets) provides Roman numeral
22
17
  core extension methods for the `Integer` and `String` classes which are
23
18
  likely to do everything that one really needs. However, the RomanNumeral
24
19
  class has one advantage. It can be maniputated like any other Numeric
data/lib/roman.yml ADDED
@@ -0,0 +1 @@
1
+ ../.index
metadata CHANGED
@@ -1,142 +1,101 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Trans
9
- autorequire:
10
8
  bindir: bin
11
9
  cert_chain: []
12
- date: 2013-03-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
13
11
  dependencies:
14
12
  - !ruby/object:Gem::Dependency
15
- name: detroit
13
+ name: rake
16
14
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
15
  requirements:
19
- - - ! '>='
16
+ - - ">="
20
17
  - !ruby/object:Gem::Version
21
- version: '0'
18
+ version: '13'
22
19
  type: :development
23
20
  prerelease: false
24
21
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
22
  requirements:
27
- - - ! '>='
23
+ - - ">="
28
24
  - !ruby/object:Gem::Version
29
- version: '0'
25
+ version: '13'
30
26
  - !ruby/object:Gem::Dependency
31
- name: ergo
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: rubytest-cli
27
+ name: lemon
48
28
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
29
  requirements:
51
- - - ! '>='
30
+ - - ">="
52
31
  - !ruby/object:Gem::Version
53
- version: '0'
32
+ version: '0.9'
54
33
  type: :development
55
34
  prerelease: false
56
35
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
36
  requirements:
59
- - - ! '>='
37
+ - - ">="
60
38
  - !ruby/object:Gem::Version
61
- version: '0'
39
+ version: '0.9'
62
40
  - !ruby/object:Gem::Dependency
63
- name: lemon
41
+ name: ae
64
42
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
43
  requirements:
67
- - - ! '>='
44
+ - - ">="
68
45
  - !ruby/object:Gem::Version
69
- version: '0'
46
+ version: '1.8'
70
47
  type: :development
71
48
  prerelease: false
72
49
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
50
  requirements:
75
- - - ! '>='
51
+ - - ">="
76
52
  - !ruby/object:Gem::Version
77
- version: '0'
53
+ version: '1.8'
78
54
  - !ruby/object:Gem::Dependency
79
- name: ae
55
+ name: rubytest
80
56
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
57
  requirements:
83
- - - ! '>='
58
+ - - ">="
84
59
  - !ruby/object:Gem::Version
85
- version: '0'
60
+ version: '0.8'
86
61
  type: :development
87
62
  prerelease: false
88
63
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
64
  requirements:
91
- - - ! '>='
65
+ - - ">="
92
66
  - !ruby/object:Gem::Version
93
- version: '0'
67
+ version: '0.8'
94
68
  description: RomanNumeral class for working with roman numerals in a native form.
95
69
  email:
96
70
  - transfire@gmail.com
97
71
  executables: []
98
72
  extensions: []
99
- extra_rdoc_files:
100
- - LICENSE.txt
73
+ extra_rdoc_files: []
74
+ files:
101
75
  - HISTORY.md
76
+ - LICENSE.txt
102
77
  - README.md
103
- files:
104
- - .index
105
78
  - lib/roman.rb
106
79
  - lib/roman.yml
107
- - test/string_case.rb
108
- - test/fixnum_case.rb
109
- - test/roman_case.rb
110
- - LICENSE.txt
111
- - HISTORY.md
112
- - README.md
113
- homepage: http://rubyworks.github.com/roman
80
+ homepage: https://github.com/rubyworks/roman
114
81
  licenses:
115
82
  - BSD-2-Clause
116
- post_install_message:
83
+ metadata: {}
117
84
  rdoc_options: []
118
85
  require_paths:
119
86
  - lib
120
87
  required_ruby_version: !ruby/object:Gem::Requirement
121
- none: false
122
88
  requirements:
123
- - - ! '>='
89
+ - - ">="
124
90
  - !ruby/object:Gem::Version
125
- version: '0'
91
+ version: '3.1'
126
92
  required_rubygems_version: !ruby/object:Gem::Requirement
127
- none: false
128
93
  requirements:
129
- - - ! '>='
94
+ - - ">="
130
95
  - !ruby/object:Gem::Version
131
96
  version: '0'
132
97
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 1.8.24
135
- signing_key:
136
- specification_version: 3
98
+ rubygems_version: 3.6.9
99
+ specification_version: 4
137
100
  summary: Real Roman Numerals
138
- test_files:
139
- - test/string_case.rb
140
- - test/fixnum_case.rb
141
- - test/roman_case.rb
142
- has_rdoc:
101
+ test_files: []
data/.index DELETED
@@ -1,72 +0,0 @@
1
- ---
2
- revision: 2013
3
- type: ruby
4
- sources:
5
- - var
6
- authors:
7
- - name: Trans
8
- email: transfire@gmail.com
9
- organizations:
10
- - name: Rubyworks
11
- requirements:
12
- - groups:
13
- - build
14
- development: true
15
- name: detroit
16
- - groups:
17
- - build
18
- development: true
19
- name: ergo
20
- - groups:
21
- - test
22
- development: true
23
- name: rubytest-cli
24
- - groups:
25
- - test
26
- development: true
27
- name: lemon
28
- - groups:
29
- - test
30
- development: true
31
- name: ae
32
- conflicts: []
33
- alternatives: []
34
- resources:
35
- - type: home
36
- uri: http://rubyworks.github.com/roman
37
- label: Homepage
38
- - type: code
39
- uri: http://github.com/rubyworks/roman
40
- label: Source Code
41
- - type: docs
42
- uri: http://rubydoc.info/gems/roman
43
- label: Documentation
44
- - type: wiki
45
- uri: http://wiki.github.com/rubyworks/roman
46
- label: User Guide
47
- - type: bugs
48
- uri: http://github.com/rubyworks/roman/issues
49
- label: Issue Tracker
50
- - type: mail
51
- uri: http://groups.google.com/group/rubyworks-mailinglist
52
- label: Mailing List
53
- repositories:
54
- - name: upstream
55
- scm: git
56
- uri: git://github.com/rubyworks/roman.git
57
- categories: []
58
- copyrights:
59
- - holder: Rubyworks
60
- year: '2007'
61
- license: BSD-2-Clause
62
- customs: []
63
- paths:
64
- lib:
65
- - lib
66
- created: '2010-03-02'
67
- summary: Real Roman Numerals
68
- title: Roman
69
- version: 0.2.0
70
- name: roman
71
- description: RomanNumeral class for working with roman numerals in a native form.
72
- date: '2013-03-09'
data/lib/roman.yml DELETED
@@ -1,72 +0,0 @@
1
- ---
2
- revision: 2013
3
- type: ruby
4
- sources:
5
- - var
6
- authors:
7
- - name: Trans
8
- email: transfire@gmail.com
9
- organizations:
10
- - name: Rubyworks
11
- requirements:
12
- - groups:
13
- - build
14
- development: true
15
- name: detroit
16
- - groups:
17
- - build
18
- development: true
19
- name: ergo
20
- - groups:
21
- - test
22
- development: true
23
- name: rubytest-cli
24
- - groups:
25
- - test
26
- development: true
27
- name: lemon
28
- - groups:
29
- - test
30
- development: true
31
- name: ae
32
- conflicts: []
33
- alternatives: []
34
- resources:
35
- - type: home
36
- uri: http://rubyworks.github.com/roman
37
- label: Homepage
38
- - type: code
39
- uri: http://github.com/rubyworks/roman
40
- label: Source Code
41
- - type: docs
42
- uri: http://rubydoc.info/gems/roman
43
- label: Documentation
44
- - type: wiki
45
- uri: http://wiki.github.com/rubyworks/roman
46
- label: User Guide
47
- - type: bugs
48
- uri: http://github.com/rubyworks/roman/issues
49
- label: Issue Tracker
50
- - type: mail
51
- uri: http://groups.google.com/group/rubyworks-mailinglist
52
- label: Mailing List
53
- repositories:
54
- - name: upstream
55
- scm: git
56
- uri: git://github.com/rubyworks/roman.git
57
- categories: []
58
- copyrights:
59
- - holder: Rubyworks
60
- year: '2007'
61
- license: BSD-2-Clause
62
- customs: []
63
- paths:
64
- lib:
65
- - lib
66
- created: '2010-03-02'
67
- summary: Real Roman Numerals
68
- title: Roman
69
- version: 0.2.0
70
- name: roman
71
- description: RomanNumeral class for working with roman numerals in a native form.
72
- date: '2013-03-09'
data/test/fixnum_case.rb DELETED
@@ -1,13 +0,0 @@
1
- require 'roman'
2
-
3
- TestCase Fixnum do
4
-
5
- Method :to_roman do
6
- test do
7
- 1.to_roman.assert == RomanNumeral.new(1)
8
- 2.to_roman.assert == RomanNumeral.new(2)
9
- end
10
- end
11
-
12
- end
13
-
data/test/roman_case.rb DELETED
@@ -1,59 +0,0 @@
1
- require 'roman'
2
-
3
- TestCase RomanNumeral do
4
-
5
- Method :to_s do
6
- test "one to three" do
7
- 1.to_roman.to_s.assert == 'I'
8
- 2.to_roman.to_s.assert == 'II'
9
- 3.to_roman.to_s.assert == 'III'
10
- end
11
- end
12
-
13
- Method :to_s do
14
- test "four" do
15
- 4.to_roman.to_s.assert == 'IV'
16
- end
17
- end
18
-
19
- Method :to_s do
20
- test "five to eight" do
21
- 5.to_roman.to_s.assert == 'V'
22
- 6.to_roman.to_s.assert == 'VI'
23
- 7.to_roman.to_s.assert == 'VII'
24
- 8.to_roman.to_s.assert == 'VIII'
25
- end
26
- end
27
-
28
- Method :to_s do
29
- test "nine" do
30
- 9.to_roman.to_s.assert == 'IX'
31
- end
32
- end
33
-
34
- Method :to_s do
35
- test "ten to thriteen" do
36
- 10.to_roman.to_s.assert == 'X'
37
- 11.to_roman.to_s.assert == 'XI'
38
- 12.to_roman.to_s.assert == 'XII'
39
- 13.to_roman.to_s.assert == 'XIII'
40
- end
41
- end
42
-
43
- Method :to_s do
44
- test "fourteen plus" do
45
- 14.to_roman.to_s.assert == 'XIV'
46
- 15.to_roman.to_s.assert == 'XV'
47
- 16.to_roman.to_s.assert == 'XVI'
48
- end
49
- end
50
-
51
- Method :+ do
52
- test do
53
- (5.to_roman + 6).assert == 11
54
- (2.to_roman + 3.to_roman).assert == 5
55
- end
56
- end
57
-
58
- end
59
-
data/test/string_case.rb DELETED
@@ -1,33 +0,0 @@
1
- require 'roman'
2
-
3
- TestCase String do
4
-
5
- Method :to_roman do
6
- test "single digit conversions" do
7
- "I".to_roman.assert == RomanNumeral.new(1)
8
- "V".to_roman.assert == RomanNumeral.new(5)
9
- "X".to_roman.assert == RomanNumeral.new(10)
10
-
11
- "i".to_roman.assert == RomanNumeral.new(1)
12
- "v".to_roman.assert == RomanNumeral.new(5)
13
- "x".to_roman.assert == RomanNumeral.new(10)
14
- end
15
-
16
- test "simple mulit-digit conversions" do
17
- "IV".to_roman.assert == RomanNumeral.new(4)
18
- "VI".to_roman.assert == RomanNumeral.new(6)
19
- "VII".to_roman.assert == RomanNumeral.new(7)
20
- "VIII".to_roman.assert == RomanNumeral.new(8)
21
- "IX".to_roman.assert == RomanNumeral.new(9)
22
- "XI".to_roman.assert == RomanNumeral.new(11)
23
- "XII".to_roman.assert == RomanNumeral.new(12)
24
- "XIII".to_roman.assert == RomanNumeral.new(13)
25
- end
26
-
27
- test "complex conversions" do
28
- "XXIV".to_roman.assert == RomanNumeral.new(24)
29
- end
30
- end
31
-
32
- end
33
-