arithmos 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 +4 -4
- data/.gitignore +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +13 -4
- data/arithmos.gemspec +2 -3
- data/lib/arithmos.rb +1 -1
- data/lib/arithmos/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b284f5f95d8a4b9d79096775ea6ba1d31c28b87adf1a14f5ed683dfd5fd4ca42
|
4
|
+
data.tar.gz: 0ad01e0ae14fbbd97af5c6da9103b331846282e13610ca1da6b74233ca66fe87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3d4bbd3a7df819ab916484b2feeae9bd12f6ebe148ae30142e78a02a755ae6a733696f5ed61fcead202c212d7d3f1b841ef86dc25c460ceded426004e6fc1ed
|
7
|
+
data.tar.gz: 0bc768b1da5bfb8c8726268d9516e28e9cbc0cb8a83ff01da00621c3f46c5cade118a62afcfe6003dd9c95a355e5da291e32397928d65c169bffe808542fe9aa
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Arithmos
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Convert numbers to [greek numerals](https://en.wikipedia.org/wiki/Greek_numerals#Table).
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,18 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
`Arithmos` is a module that is being included automatically to `Numeric` class. It adds a `#greek` method to each numeral:
|
24
|
+
|
25
|
+
```
|
26
|
+
>> 274.greek
|
27
|
+
=> "σοδ"
|
28
|
+
>> 666.greek
|
29
|
+
=> "χξϛ"
|
30
|
+
>> 12.greek
|
31
|
+
=> "ιβ"
|
32
|
+
>> 6.greek
|
33
|
+
=> "ϛ"
|
34
|
+
```
|
26
35
|
|
27
36
|
## Development
|
28
37
|
|
data/arithmos.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = %q{Converts numbers to greek numerals.}
|
12
12
|
spec.description = %q{Converts numbers to greek numerals.}
|
13
|
-
|
13
|
+
spec.homepage = "https://rubygems.org/gems/arithmos"
|
14
14
|
|
15
15
|
if spec.respond_to?(:metadata)
|
16
16
|
#spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
@@ -18,8 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
#spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
|
19
19
|
#spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
|
20
20
|
else
|
21
|
-
raise "RubyGems 2.0 or newer is required to protect against "
|
22
|
-
"public gem pushes."
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
22
|
end
|
24
23
|
|
25
24
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
data/lib/arithmos.rb
CHANGED
data/lib/arithmos/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arithmos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Placzyński
|
@@ -71,7 +71,7 @@ files:
|
|
71
71
|
- bin/setup
|
72
72
|
- lib/arithmos.rb
|
73
73
|
- lib/arithmos/version.rb
|
74
|
-
homepage:
|
74
|
+
homepage: https://rubygems.org/gems/arithmos
|
75
75
|
licenses: []
|
76
76
|
metadata: {}
|
77
77
|
post_install_message:
|