number_to_indian_currency 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,9 +33,9 @@ module NumberToIndianCurrency
33
33
  end
34
34
 
35
35
  module CurrencyHelper
36
- def number_to_indian_currency(number, html=false)
37
- txt = html ? content_tag(:span, 'Rs.', :class => :WebRupee) : 'Rs.' "#{txt}
38
- #{number.to_s.gsub(/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/, "\\1,")}"
36
+ def number_to_indian_currency(number, html=true)
37
+ txt = html ? content_tag(:span, 'Rs.', :class => :WebRupee) : 'Rs.'
38
+ "#{txt} #{number.to_s.gsub(/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/, "\\1,")}"
39
39
  end
40
40
  end
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module NumberToIndianCurrency
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: number_to_indian_currency
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sandip Ransing