numbers_in_words 0.5.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71344514fae412865a50ec69a9b58335ac9249aadf29bd5145a8455f503473b0
4
- data.tar.gz: 128abd6b5546902d819c11b9105d573a564e6e1679c84bbeb8910bb6f28c03f8
3
+ metadata.gz: 1e91e42469c0ee0e2823b441671b67204b7a2f2cdfee120b4d59eaf9850debd8
4
+ data.tar.gz: a597b79351735dd2f9572c9983b9c7dc67bf80a6714f0f339c2996f2a4def05a
5
5
  SHA512:
6
- metadata.gz: 2cb8730bc67b4be3a3aba9a63e4198c1a2e11e9664879d9f859fc4cf11b26743671abb97d180d411cd6a2dfaa6309afadf9f2d61a584c6ef2d5b05ecbbbfab16
7
- data.tar.gz: 1c50db96276a5a9a9211bdb460c1f9e686fb35436a180d0aaf8de34961061cfd400421680a227558642b124d9be88eaa9f5a67ff3dfbbf65e4ba8ebfed5293d1
6
+ metadata.gz: b9f1db947aa91cd85535f08cf3042fe61809a754e1265651460c8687173565867a9d6b125056c3ce24db1b179b332c9cae38f189a734b07e3ce97c4405a3a153
7
+ data.tar.gz: df69f1a4ad948f40f9f0b6564cea3460e13f2246d9999904b238164589c62708248f67c838feb93fad00c9291b441c3130aac2514a33b7e459804eeb08e05393
@@ -4,6 +4,8 @@ env:
4
4
  sudo: false
5
5
  language: ruby
6
6
  rvm:
7
+ - "2.4.10"
8
+ - "2.5.8"
7
9
  - "2.6.6"
8
10
  - "2.7.1"
9
11
  before_script:
@@ -45,7 +45,7 @@ module NumbersInWords
45
45
 
46
46
  def split_googols
47
47
  googols = @number.to_s[0..-LENGTH_OF_GOOGOL].to_i
48
- remainder = @number.to_s[(1 - LENGTH_OF_GOOGOL)..].to_i
48
+ remainder = @number.to_s[(1 - LENGTH_OF_GOOGOL)..-1].to_i
49
49
  [googols, remainder]
50
50
  end
51
51
 
@@ -27,7 +27,7 @@ module NumbersInWords
27
27
  end
28
28
 
29
29
  def fractions
30
- nums[index_of_fraction..]
30
+ nums[index_of_fraction..-1]
31
31
  end
32
32
 
33
33
  def just_fraction
@@ -45,5 +45,5 @@ module NumbersInWords
45
45
  GOOGOL => 'googolplex'
46
46
  }.freeze
47
47
 
48
- POWERS_RX = Regexp.union(POWERS_OF_TEN.values[1..]).freeze
48
+ POWERS_RX = Regexp.union(POWERS_OF_TEN.values[1..-1]).freeze
49
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NumbersInWords
4
- VERSION = '0.5.1'
4
+ VERSION = '1.0.0'
5
5
  end
@@ -19,7 +19,6 @@ Gem::Specification.new do |gem|
19
19
  gem.add_development_dependency 'rubocop'
20
20
 
21
21
  gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
22
- gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
23
22
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
24
23
  gem.require_paths = ['lib']
25
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numbers_in_words
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Burns
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-06 00:00:00.000000000 Z
12
+ date: 2020-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -43,8 +43,7 @@ description: convert written numbers into Integers and vice-versa
43
43
  email:
44
44
  - markthedeveloper@gmail.com
45
45
  - dimidd@gmail.com
46
- executables:
47
- - spec
46
+ executables: []
48
47
  extensions: []
49
48
  extra_rdoc_files: []
50
49
  files: