sankhya 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78a4f985011da8598c53c68f0d3b0811f717d50c
4
- data.tar.gz: 553f1c68691e7e7a8413cf5ad1d2c42394ce8cf7
3
+ metadata.gz: 9f633c8fe0e823c5f3b348d601b3ea5bebc69586
4
+ data.tar.gz: 19c17dca7750feaacfe3597df03dace9bf7594bc
5
5
  SHA512:
6
- metadata.gz: 4b5db5eb2714e808c586fc155028717c2041e6044c32ce0400f1fcd1e8aed684f7fe2784fa69b4488c1ea98ac6c75fb568416c8d94a0e101f8fa9e13ebb1a01d
7
- data.tar.gz: 6f29b000505cdf23733284b73d720fb28e3c05be137498d6cb281dca9234d2878d0b0b1f528234d558ba818c0a5eb11f8d56e208ed976bd681d719fcdf80a58d
6
+ metadata.gz: 6c7ef2eed787b50fe71cac7e1e4a3d754e82647601337bad530f14e89ffc34331c79fb27a0b4bf0a80c7c9f99f1b2c0607642d399bbffa6026b47ed379a32a54
7
+ data.tar.gz: 42c443e851da1c2c9f77f929438ac4540be63d701c5ceaf1a1b419f32fef57ae1ca95f9536167631bd2e7fcc00582192d0f5a6fdf0819a6f0b9b8f465bad670f
@@ -0,0 +1,14 @@
1
+ Documentation:
2
+ Enabled: false
3
+
4
+ LineLength:
5
+ Max: 360
6
+
7
+ WordArray:
8
+ MinSize: 8
9
+
10
+ MethodLength:
11
+ Enabled: false
12
+
13
+ CyclomaticComplexity:
14
+ Enabled: false
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sankhya (0.2.0)
4
+ sankhya (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.2.5)
10
- rake (10.1.1)
10
+ rake (10.3.1)
11
11
  rspec (2.14.1)
12
12
  rspec-core (~> 2.14.0)
13
13
  rspec-expectations (~> 2.14.0)
14
14
  rspec-mocks (~> 2.14.0)
15
- rspec-core (2.14.7)
15
+ rspec-core (2.14.8)
16
16
  rspec-expectations (2.14.5)
17
17
  diff-lcs (>= 1.1.3, < 2.0)
18
- rspec-mocks (2.14.5)
18
+ rspec-mocks (2.14.6)
19
19
 
20
20
  PLATFORMS
21
21
  ruby
data/README.md CHANGED
@@ -18,7 +18,9 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Sankhya add a 'to_words' method to Integer and Float classes.
21
+ Sankhya adds a couple of methods to Integer and Float classes.
22
+
23
+ ### to_words
22
24
 
23
25
  10101101.to_words # "one crore, one lakh, one thousand, one hundred and one"
24
26
  0.to_words # "zero"
@@ -27,6 +29,11 @@ Sankhya add a 'to_words' method to Integer and Float classes.
27
29
  1.1.to_words # ["one", "one"]
28
30
  1.01.to_words # ["one", "one"]
29
31
 
32
+ ### to_amount
33
+
34
+ 10101101.to_amount # "10,101,101"
35
+ 10101.01.to_amount # "10,101.01"
36
+ 0.to_amount # "0.00"
30
37
 
31
38
  Please see the spec for more examples.
32
39
 
@@ -1,10 +1,14 @@
1
- require "sankhya/version"
2
- require "sankhya/words"
3
- require "sankhya/numbers"
1
+ require 'sankhya/version'
2
+ require 'sankhya/words'
3
+ require 'sankhya/numbers'
4
4
 
5
5
  module Sankhya
6
6
  def to_words(options = {})
7
- Numbers::translate self, options
7
+ Numbers.translate self, options
8
+ end
9
+
10
+ def to_amount(options = {})
11
+ Numbers.amount self, options
8
12
  end
9
13
  end
10
14
 
@@ -1,5 +1,4 @@
1
1
  module Sankhya
2
-
3
2
  class Numbers
4
3
  extend Words
5
4
 
@@ -10,57 +9,70 @@ module Sankhya
10
9
  words_of(number)
11
10
  else # if float
12
11
  integer = number.floor
13
- decimal = (number * (10 ** @scale)).floor - (integer * (10 ** @scale))
12
+ decimal = (number * (10**@scale)).floor - (integer * (10**@scale))
14
13
  [words_of(integer), words_of(decimal)]
15
14
  end
16
15
  end
17
16
 
18
- private
17
+ def self.amount(number, options)
18
+ parse options
19
+
20
+ numbers = format "%.#{@scale}f", number
21
+ integers, decimals = numbers.split('.')
19
22
 
20
- def self.is_number?(number)
21
- true if Float(number) rescue false
22
- end
23
+ result = []
24
+ result << integers.reverse[3..-1].to_s.gsub(/(\d{2})(?=\d)/, '\\1,').reverse
25
+ result << integers.reverse[0..2].reverse
23
26
 
24
- def self.parse(options)
25
- @comma = options.has_key?(:comma) ? options[:comma] : true
26
- @scale = is_number?(options[:scale]) ? ([options[:scale], 0].max) : 2
27
+ result.select { |x| !x.empty? }.join(',') + '.' + decimals
27
28
  end
28
29
 
29
- def self.words_of(number)
30
- if number < 20
31
- self.to_english(number)
32
- else
33
- words = []
30
+ class << self
31
+ private
34
32
 
35
- units = [{divisor: 100, prefix: ', and' },
36
- {divisor: 10, suffix: 'hundred,' },
37
- {divisor: 100, suffix: 'thousand,' },
38
- {divisor: 100, suffix: 'lakh,' }]
33
+ def number?(number)
34
+ true if Float(number) rescue false
35
+ end
36
+
37
+ def parse(options)
38
+ @comma = options.key?(:comma) ? options[:comma] : true
39
+ @scale = number?(options[:scale]) ? ([options[:scale], 0].max) : 2
40
+ end
39
41
 
40
- i = 0
41
- while i < units.length
42
- number, segment = number.divmod(units[i][:divisor])
43
- parts = segment < 20 ? segment.divmod(100) : segment.divmod(10)
42
+ def words_of(number)
43
+ if number < 20
44
+ to_english(number)
45
+ else
46
+ words = []
44
47
 
45
- words << units[i][:suffix] if units[i][:suffix] and segment > 0
46
- words << self.to_english(parts.last) if parts.last > 0
47
- words << self.to_english(10 * parts.first) if parts.first > 0
48
- words << units[i][:prefix] if units[i][:prefix] and segment > 0 and number > 0
48
+ units = [{ divisor: 100, prefix: ', and' },
49
+ { divisor: 10, suffix: 'hundred,' },
50
+ { divisor: 100, suffix: 'thousand,' },
51
+ { divisor: 100, suffix: 'lakh,' }]
49
52
 
50
- if i == units.length - 1 and number > 0
51
- # suffix crore and and start over
52
- words << 'crore,'
53
- i = 0
54
- else
55
- i += 1
53
+ i = 0
54
+ while i < units.length
55
+ number, segment = number.divmod(units[i][:divisor])
56
+ parts = segment < 20 ? segment.divmod(100) : segment.divmod(10)
57
+
58
+ words << units[i][:suffix] if units[i][:suffix] && segment > 0
59
+ words << to_english(parts.last) if parts.last > 0
60
+ words << to_english(10 * parts.first) if parts.first > 0
61
+ words << units[i][:prefix] if units[i][:prefix] && segment > 0 && number > 0
62
+
63
+ if i == units.length - 1 && number > 0
64
+ # suffix crore and start over
65
+ words << 'crore,'
66
+ i = 0
67
+ else
68
+ i += 1
69
+ end
56
70
  end
57
- end
58
71
 
59
- regex = @comma ? /, ,|,$/ : /, ,|,/
60
- words.reverse.join(' ').gsub(/#{regex}/, '')
72
+ regex = @comma ? /, ,|,$/ : /, ,|,/
73
+ words.reverse.join(' ').gsub(/#{regex}/, '')
74
+ end
61
75
  end
62
76
  end
63
-
64
77
  end
65
-
66
78
  end
@@ -1,3 +1,3 @@
1
1
  module Sankhya
2
- VERSION = "0.2.0"
2
+ VERSION = '0.3.0'
3
3
  end
@@ -1,39 +1,39 @@
1
1
  module Sankhya
2
2
  module Words
3
3
  def to_english(number)
4
- {0 => 'zero',
5
- 1 => 'one',
6
- 2 => 'two',
7
- 3 => 'three',
8
- 4 => 'four',
9
- 5 => 'five',
10
- 6 => 'six',
11
- 7 => 'seven',
12
- 8 => 'eight',
13
- 9 => 'nine',
14
- 10 => 'ten',
15
- 11 => 'eleven',
16
- 12 => 'twelve',
17
- 13 => 'thirteen',
18
- 14 => 'fourteen',
19
- 15 => 'fifteen',
20
- 16 => 'sixteen',
21
- 17 => 'seventeen',
22
- 18 => 'eighteen',
23
- 19 => 'nineteen',
24
- 10 => 'ten',
25
- 20 => 'twenty',
26
- 30 => 'thirty',
27
- 40 => 'forty',
28
- 50 => 'fifty',
29
- 60 => 'sixty',
30
- 70 => 'seventy',
31
- 80 => 'eighty',
32
- 90 => 'ninety',
33
- 100 => 'hundred',
34
- 1000 => 'thousand',
35
- 100000 => 'lakh',
36
- 10000000 => 'crore'
4
+ { 0 => 'zero',
5
+ 1 => 'one',
6
+ 2 => 'two',
7
+ 3 => 'three',
8
+ 4 => 'four',
9
+ 5 => 'five',
10
+ 6 => 'six',
11
+ 7 => 'seven',
12
+ 8 => 'eight',
13
+ 9 => 'nine',
14
+ 10 => 'ten',
15
+ 11 => 'eleven',
16
+ 12 => 'twelve',
17
+ 13 => 'thirteen',
18
+ 14 => 'fourteen',
19
+ 15 => 'fifteen',
20
+ 16 => 'sixteen',
21
+ 17 => 'seventeen',
22
+ 18 => 'eighteen',
23
+ 19 => 'nineteen',
24
+ 10 => 'ten',
25
+ 20 => 'twenty',
26
+ 30 => 'thirty',
27
+ 40 => 'forty',
28
+ 50 => 'fifty',
29
+ 60 => 'sixty',
30
+ 70 => 'seventy',
31
+ 80 => 'eighty',
32
+ 90 => 'ninety',
33
+ 100 => 'hundred',
34
+ 1_000 => 'thousand',
35
+ 100_000 => 'lakh',
36
+ 10_000_000 => 'crore'
37
37
  }[number]
38
38
  end
39
39
  end
@@ -2,111 +2,147 @@ require 'spec_helper'
2
2
 
3
3
  describe Sankhya do
4
4
 
5
- it "converts 0 to words" do
6
- 0.to_words.should eql("zero")
5
+ it 'converts 0 to words' do
6
+ 0.to_words.should eql('zero')
7
7
  end
8
8
 
9
- it "converts 5,36,24,133 to words" do
10
- 53624133.to_words.should eql("five crore, thirty six lakh, twenty four thousand, one hundred and thirty three")
9
+ it 'converts 5,36,24,133 to words' do
10
+ 53_624_133.to_words.should eql('five crore, thirty six lakh, twenty four thousand, one hundred and thirty three')
11
11
  end
12
12
 
13
- it "converts 12,12,012 to words" do
14
- 1212012.to_words.should eql("twelve lakh, twelve thousand and twelve")
13
+ it 'converts 12,12,012 to words' do
14
+ 1_212_012.to_words.should eql('twelve lakh, twelve thousand and twelve')
15
15
  end
16
16
 
17
- it "converts 7,00,007 to words" do
18
- 700007.to_words.should eql("seven lakh and seven")
17
+ it 'converts 7,00,007 to words' do
18
+ 700_007.to_words.should eql('seven lakh and seven')
19
19
  end
20
20
 
21
- it "converts 1,01,01,101 to words" do
22
- 10101101.to_words.should eql("one crore, one lakh, one thousand, one hundred and one")
21
+ it 'converts 1,01,01,101 to words' do
22
+ 10_101_101.to_words.should eql('one crore, one lakh, one thousand, one hundred and one')
23
23
  end
24
24
 
25
- it "converts 33,00,00,000 to words" do
26
- 330000000.to_words.should eql("thirty three crore")
25
+ it 'converts 33,00,00,000 to words' do
26
+ 330_000_000.to_words.should eql('thirty three crore')
27
27
  end
28
28
 
29
- it "converts 10,00,000 to words" do
30
- 1000000.to_words.should eql("ten lakh")
29
+ it 'converts 10,00,000 to words' do
30
+ 1_000_000.to_words.should eql('ten lakh')
31
31
  end
32
32
 
33
- it "converts 99,000 to words" do
34
- 99000.to_words.should eql("ninety nine thousand")
33
+ it 'converts 99,000 to words' do
34
+ 99_000.to_words.should eql('ninety nine thousand')
35
35
  end
36
36
 
37
- it "converts 0.0 to words" do
38
- (0.0).to_words.should eql(["zero", "zero"])
37
+ it 'converts 0.0 to words' do
38
+ (0.0).to_words.should eql(['zero', 'zero'])
39
39
  end
40
40
 
41
- it "converts 1.1 to words" do
42
- (1.1).to_words.should eql(["one", "ten"])
41
+ it 'converts 1.1 to words' do
42
+ (1.1).to_words.should eql(['one', 'ten'])
43
43
  end
44
44
 
45
- it "converts 1.1 with scale 1 to words" do
46
- (1.1).to_words(scale: 1).should eql(["one", "one"])
45
+ it 'converts 1.1 with scale 1 to words' do
46
+ (1.1).to_words(scale: 1).should eql(['one', 'one'])
47
47
  end
48
48
 
49
- it "converts 1.01 with scale 2 to words" do
50
- (1.01).to_words(scale: 2).should eql(["one", "one"])
49
+ it 'converts 1.01 with scale 2 to words' do
50
+ (1.01).to_words(scale: 2).should eql(['one', 'one'])
51
51
  end
52
52
 
53
- it "converts 3.14 to words" do
54
- (3.14).to_words.should eql(["three", "fourteen"])
53
+ it 'converts 3.14 to words' do
54
+ (3.14).to_words.should eql(['three', 'fourteen'])
55
55
  end
56
56
 
57
- it "converts 29,97,924.58 to words" do
58
- (2997924.58).to_words.should eql(["twenty nine lakh, ninety seven thousand, nine hundred and twenty four", "fifty eight"])
57
+ it 'converts 29,97,924.58 to words' do
58
+ (2_997_924.58).to_words.should eql(['twenty nine lakh, ninety seven thousand, nine hundred and twenty four', 'fifty eight'])
59
59
  end
60
60
 
61
- it "converts 143,29,97,924.58 to words" do
62
- (1432997924.58).to_words.should eql(["one hundred and forty three crore, twenty nine lakh, ninety seven thousand, nine hundred and twenty four", "fifty eight"])
61
+ it 'converts 143,29,97,924.58 to words' do
62
+ (1_432_997_924.58).to_words.should eql(['one hundred and forty three crore, twenty nine lakh, ninety seven thousand, nine hundred and twenty four', 'fifty eight'])
63
63
  end
64
64
 
65
- it "converts 2,07,143,29,97,924.58 to words" do
66
- (2071432997924.58).to_words.should eql(["two lakh, seven thousand, one hundred and forty three crore, twenty nine lakh, ninety seven thousand, nine hundred and twenty four", "fifty eight"])
65
+ it 'converts 2,07,143,29,97,924.58 to words' do
66
+ (2_071_432_997_924.58).to_words.should eql(['two lakh, seven thousand, one hundred and forty three crore, twenty nine lakh, ninety seven thousand, nine hundred and twenty four', 'fifty eight'])
67
67
  end
68
68
 
69
- # it "converts 22,99,11,123,45,67,890.76 to words" do
70
- # (2299111234567890.76).to_words.should eql(["twenty two crore, ninety nine lakh, eleven thousand, one hundred and twenty three crore, forty five lakh, sixty seven thousand, eight hundred and ninety", "seventy six"])
69
+ # it 'converts 22,99,11,123,45,67,890.76 to words' do
70
+ # (2299111234567890.76).to_words.should eql(['twenty two crore, ninety nine lakh, eleven thousand, one hundred and twenty three crore, forty five lakh, sixty seven thousand, eight hundred and ninety', 'seventy six'])
71
71
  # end
72
72
 
73
- it "converts 21,89,14,967,50,95,052.8 to words" do
74
- (2189149675095052.8).to_words.should eql(["twenty one crore, eighty nine lakh, fourteen thousand, nine hundred and sixty seven crore, fifty lakh, ninety five thousand and fifty two", "eighty"])
73
+ it 'converts 21,89,14,967,50,95,052.8 to words' do
74
+ (2_189_149_675_095_052.8).to_words.should eql(['twenty one crore, eighty nine lakh, fourteen thousand, nine hundred and sixty seven crore, fifty lakh, ninety five thousand and fifty two', 'eighty'])
75
75
  end
76
76
 
77
- it "converts 10,10,110.10 to words without comma" do
78
- (1010110.10).to_words(comma: false).should eql(["ten lakh ten thousand one hundred and ten", "ten"])
77
+ it 'converts 10,10,110.10 to words without comma' do
78
+ (1_010_110.10).to_words(comma: false).should eql(['ten lakh ten thousand one hundred and ten', 'ten'])
79
79
  end
80
80
 
81
- it "converts 10,10,110.10 to words without comma, if comma option is a truthy value" do
82
- (1010110.10).to_words(comma: "false").should eql(["ten lakh, ten thousand, one hundred and ten", "ten"])
81
+ it 'converts 10,10,110.10 to words without comma, if comma option is a truthy value' do
82
+ (1_010_110.10).to_words(comma: 'false').should eql(['ten lakh, ten thousand, one hundred and ten', 'ten'])
83
83
  end
84
84
 
85
- it "converts 10,10,110.10 to words with scale -2" do
86
- (1010110.10).to_words(scale: -2).should eql(["ten lakh, ten thousand, one hundred and ten", "zero"])
85
+ it 'converts 10,10,110.10 to words with scale -2' do
86
+ (1_010_110.10).to_words(scale: -2).should eql(['ten lakh, ten thousand, one hundred and ten', 'zero'])
87
87
  end
88
88
 
89
- it "converts 10,10,110.10 to words with scale -1" do
90
- (1010110.10).to_words(scale: -1).should eql(["ten lakh, ten thousand, one hundred and ten", "zero"])
89
+ it 'converts 10,10,110.10 to words with scale -1' do
90
+ (1_010_110.10).to_words(scale: -1).should eql(['ten lakh, ten thousand, one hundred and ten', 'zero'])
91
91
  end
92
92
 
93
- it "converts 10,10,110.10 to words with scale 0" do
94
- (1010110.10).to_words(scale: 0).should eql(["ten lakh, ten thousand, one hundred and ten", "zero"])
93
+ it 'converts 10,10,110.10 to words with scale 0' do
94
+ (1_010_110.10).to_words(scale: 0).should eql(['ten lakh, ten thousand, one hundred and ten', 'zero'])
95
95
  end
96
96
 
97
- it "converts 10,10,110.10 to words with scale 2, if scale option is an invalid value" do
98
- (1010110.10).to_words(scale: "one").should eql(["ten lakh, ten thousand, one hundred and ten", "ten"])
97
+ it 'converts 10,10,110.10 to words with scale 2, if scale option is an invalid value' do
98
+ (1_010_110.10).to_words(scale: 'one').should eql(['ten lakh, ten thousand, one hundred and ten', 'ten'])
99
99
  end
100
100
 
101
- it "converts 10,10,110.10 to words with scale 1" do
102
- (1010110.10).to_words(scale: 1).should eql(["ten lakh, ten thousand, one hundred and ten", "one"])
101
+ it 'converts 10,10,110.10 to words with scale 1' do
102
+ (1_010_110.10).to_words(scale: 1).should eql(['ten lakh, ten thousand, one hundred and ten', 'one'])
103
103
  end
104
104
 
105
- it "converts 10,10,110.10 to words with scale 2" do
106
- (1010110.10).to_words(scale: 2).should eql(["ten lakh, ten thousand, one hundred and ten", "ten"])
105
+ it 'converts 10,10,110.10 to words with scale 2' do
106
+ (1_010_110.10).to_words(scale: 2).should eql(['ten lakh, ten thousand, one hundred and ten', 'ten'])
107
107
  end
108
108
 
109
- it "converts 10,10,110.10 to words with scale 3" do
110
- (1010110.10).to_words(scale: 3).should eql(["ten lakh, ten thousand, one hundred and ten", "one hundred"])
109
+ it 'converts 10,10,110.10 to words with scale 3' do
110
+ (1_010_110.10).to_words(scale: 3).should eql(['ten lakh, ten thousand, one hundred and ten', 'one hundred'])
111
+ end
112
+
113
+ it 'converts 1 to amount' do
114
+ (1).to_amount.should eql('1.00')
115
+ end
116
+
117
+ it 'converts 10.10 to amount' do
118
+ (10.10).to_amount.should eql('10.10')
119
+ end
120
+
121
+ it 'converts 10.100 to amount' do
122
+ (10.100).to_amount.should eql('10.10')
123
+ end
124
+
125
+ it 'converts 100.10 to amount' do
126
+ (100.10).to_amount.should eql('100.10')
127
+ end
128
+
129
+ it 'converts 1000.10 to amount' do
130
+ (1_000.10).to_amount.should eql('1,000.10')
131
+ end
132
+
133
+ it 'converts 10000.10 to amount' do
134
+ (10_000.10).to_amount.should eql('10,000.10')
135
+ end
136
+
137
+ it 'converts 10000000.10 to amount' do
138
+ (10_000_000.10).to_amount.should eql('1,00,00,000.10')
139
+ end
140
+
141
+ it 'converts 100000000.10 to amount' do
142
+ (100_000_000.10).to_amount.should eql('10,00,00,000.10')
143
+ end
144
+
145
+ it 'converts 100000000.10 to amount' do
146
+ (100_000_000.10).to_amount(scale: 3).should eql('10,00,00,000.100')
111
147
  end
112
148
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sankhya
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geordee Naliyath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-21 00:00:00.000000000 Z
11
+ date: 2014-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: Sankhya means numbers in Sanskrit and other Indian languages. This is
@@ -60,7 +60,8 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
+ - ".rubocop.yml"
64
65
  - Gemfile
65
66
  - Gemfile.lock
66
67
  - LICENSE.txt
@@ -83,17 +84,17 @@ require_paths:
83
84
  - lib
84
85
  required_ruby_version: !ruby/object:Gem::Requirement
85
86
  requirements:
86
- - - '>='
87
+ - - ">="
87
88
  - !ruby/object:Gem::Version
88
89
  version: '0'
89
90
  required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  requirements:
91
- - - '>='
92
+ - - ">="
92
93
  - !ruby/object:Gem::Version
93
94
  version: '0'
94
95
  requirements: []
95
96
  rubyforge_project:
96
- rubygems_version: 2.0.6
97
+ rubygems_version: 2.2.2
97
98
  signing_key:
98
99
  specification_version: 4
99
100
  summary: A little gem to convert number to words in Indian English