papla 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +0 -1
- data/CHANGELOG.md +7 -0
- data/lib/papla.rb +3 -3
- data/lib/papla/float_converter.rb +1 -1
- data/lib/papla/{fixnum_converter.rb → integer_converter.rb} +1 -1
- data/lib/papla/money_converter.rb +1 -1
- data/lib/papla/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ad8bc60cfbc7433ddf213f56f8552f8f4ec7c6fe6d16c69defe6a66f2cf89262
|
4
|
+
data.tar.gz: 9781f0eeaad5b0574d5d064956925089022d429e8d375806336b3fc0474de6f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3585afa7107b81096c31182e2e38d11de1e3069a9a49704b106794cc73c25121ae40e54af72c18b9271a369aea06855c7cd595d41ebab5493ab1cef25fbc9269
|
7
|
+
data.tar.gz: 81235bd5e501776861e8531f9d6f5de3d2a1c5bc1b160e5aba83e41605b36084fecfa7b8aa602d27db33608c34f7d41a030121f25da2f566c2ee91c287f8d1fe
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1
|
1
|
+
2.5.1
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/papla.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'papla/backend'
|
2
2
|
|
3
3
|
module Papla
|
4
|
-
autoload :
|
4
|
+
autoload :IntegerConverter, 'papla/integer_converter'
|
5
5
|
autoload :FloatConverter, 'papla/float_converter'
|
6
6
|
autoload :MoneyConverter, 'papla/money_converter'
|
7
7
|
|
@@ -68,8 +68,8 @@ module Papla
|
|
68
68
|
case number
|
69
69
|
when defined?(Money) && Money then MoneyConverter
|
70
70
|
when Float then FloatConverter
|
71
|
-
when
|
72
|
-
else raise ArgumentError, "Unsupported type: #{
|
71
|
+
when Integer then IntegerConverter
|
72
|
+
else raise ArgumentError, "Unsupported type: #{number.class}"
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
data/lib/papla/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olek Janiszewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -85,8 +85,8 @@ files:
|
|
85
85
|
- Rakefile
|
86
86
|
- lib/papla.rb
|
87
87
|
- lib/papla/backend.rb
|
88
|
-
- lib/papla/fixnum_converter.rb
|
89
88
|
- lib/papla/float_converter.rb
|
89
|
+
- lib/papla/integer_converter.rb
|
90
90
|
- lib/papla/locale/en.rb
|
91
91
|
- lib/papla/locale/en.yml
|
92
92
|
- lib/papla/locale/pl.rb
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project: papla
|
119
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.7.7
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Use Ruby to convert numbers into Polish and English words
|