number_to_indian_currency 1.0 → 1.0.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.
@@ -1,3 +1,3 @@
1
1
  module NumberToIndianCurrency
2
- VERSION = "1.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -9,22 +9,22 @@ module NumberToIndianCurrency
9
9
 
10
10
  def self.install
11
11
  require 'fileutils'
12
- orig = File.join(File.dirname(__FILE__), '..', 'public', 'stylesheets')
13
- dest = File.join(Rails.root.to_s, 'public', 'stylesheets')
12
+ orig = File.join(File.dirname(__FILE__), '../public/stylesheets/.')
13
+ dest = 'public/stylesheets'
14
14
  rupees_css = File.join(dest, 'rupees.css')
15
15
  unless File.exists?(rupees_css) && FileUtils.identical?(File.join(orig, 'rupees.css'), rupees_css)
16
16
  if File.exists?(rupees_css)
17
17
  begin
18
18
  puts "Removing..."
19
19
  FileUtils.rm rupees_css
20
- FileUtils.cp_r "#{orig}/.", dest
20
+ FileUtils.cp_r orig, dest
21
21
  rescue Exception => e
22
22
  puts e.message
23
23
  end
24
24
  else
25
25
  begin
26
- puts "Adding..."
27
- FileUtils.cp_r "#{orig}/.", dest
26
+ puts "Copying #{rupess_css}..."
27
+ FileUtils.cp_r orig, dest
28
28
  rescue Exception => e
29
29
  puts e.message
30
30
  end
@@ -10,20 +10,21 @@ Gem::Specification.new do |s|
10
10
  s.email = ["sandip@funonrails.com"]
11
11
  s.homepage = ""
12
12
  s.summary = %q{Helper that coverts number to indian currency with rupees symbol with css}
13
- s.description = %q{
14
- Number to Indian Currency with rupees symbol
15
-
16
- Example Usage
17
- --------------------------------------------------------
18
- >> number_to_indian_currency(400)
19
- => "<span class="WebRupee">Rs.</span> 400"
20
- >> number_to_indian_currency(5921, false)
21
- => "Rs. 5,921" >> helper.number_to_indian_currency(9921)
22
- => "<span class="WebRupee">Rs.</span> 9,921"
23
- >> number_to_indian_currency(1222040.54, false)
24
- => "Rs.12,22,040.54"
13
+ description = "Converts number to indian currency with rupee style"
14
+ description << "<br/><br/>"
15
+ description << %{
16
+ Example Usage
17
+ --------------------------------------------------------
18
+ >> number_to_indian_currency(400)
19
+ => "<span class="WebRupee">Rs.</span> 400"
20
+ >> number_to_indian_currency(5921, false)
21
+ => "Rs. 5,921" >> helper.number_to_indian_currency(9921)
22
+ => "<span class="WebRupee">Rs.</span> 9,921"
23
+ >> number_to_indian_currency(1222040.54, false)
24
+ => "Rs.12,22,040.54"
25
25
  }
26
26
 
27
+ s.description = description
27
28
  s.rubyforge_project = "number_to_indian_currency"
28
29
 
29
30
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: number_to_indian_currency
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- version: "1.0"
9
+ - 1
10
+ version: 1.0.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Sandip Ransing
@@ -18,7 +19,7 @@ date: 2011-03-18 00:00:00 +05:30
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
21
- description: "\n Number to Indian Currency with rupees symbol\n\n Example Usage\n --------------------------------------------------------\n >> number_to_indian_currency(400)\n => \"<span class=\"WebRupee\">Rs.</span> 400\" \n >> number_to_indian_currency(5921, false)\n => \"Rs. 5,921\" >> helper.number_to_indian_currency(9921)\n => \"<span class=\"WebRupee\">Rs.</span> 9,921\"\n >> number_to_indian_currency(1222040.54, false) \n => \"Rs.12,22,040.54\"\n "
22
+ description: "Converts number to indian currency with rupee style<br/><br/>\n Example Usage\n --------------------------------------------------------\n >> number_to_indian_currency(400)\n => \"<span class=\"WebRupee\">Rs.</span> 400\" \n >> number_to_indian_currency(5921, false)\n => \"Rs. 5,921\" >> helper.number_to_indian_currency(9921)\n => \"<span class=\"WebRupee\">Rs.</span> 9,921\"\n >> number_to_indian_currency(1222040.54, false) \n => \"Rs.12,22,040.54\"\n "
22
23
  email:
23
24
  - sandip@funonrails.com
24
25
  executables: []