farsifu 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock ADDED
@@ -0,0 +1,25 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ farsifu (0.2.1)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.1.2)
10
+ rspec (2.1.0)
11
+ rspec-core (~> 2.1.0)
12
+ rspec-expectations (~> 2.1.0)
13
+ rspec-mocks (~> 2.1.0)
14
+ rspec-core (2.1.0)
15
+ rspec-expectations (2.1.0)
16
+ diff-lcs (~> 1.1.2)
17
+ rspec-mocks (2.1.0)
18
+
19
+ PLATFORMS
20
+ ruby
21
+
22
+ DEPENDENCIES
23
+ bundler (~> 1.0.0)
24
+ farsifu!
25
+ rspec (~> 2.1.0)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  farsifu is a toolbox for developing ruby applications in Persian (Farsi) language.
3
3
 
4
4
  ## Features
5
- * Coverting numbers to Persian numbers
5
+ * Converting numbers to Persian numbers
6
6
  * Spelling numbers in Persian
7
7
  * List of Iran's provinces, cities, counties
8
8
  * List of countries in Persian
@@ -29,6 +29,8 @@ farsifu is a toolbox for developing ruby applications in Persian (Farsi) languag
29
29
  gem install farsifu
30
30
 
31
31
  ## History
32
+ ### 0.2.2 - 11.APR.2011
33
+ * added ruby 1.9 compatibility, courtesy of Brian Kaney
32
34
 
33
35
  ### 0.2.1 - 11.JAN.2011
34
36
  * updated readme
@@ -1,3 +1,3 @@
1
1
  module FarsiFu
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/farsifu.rb CHANGED
@@ -1,11 +1,15 @@
1
+ # encoding: UTF-8
2
+
1
3
  #:title: Farsifu
2
4
  module FarsiFu
3
5
 
4
6
  module NumbersExtensions
5
7
  module InstanceMethods
6
8
  # :stopdoc:
7
- require 'jcode'
8
- $KCODE = 'u'
9
+ if RUBY_VERSION < '1.9'
10
+ require 'jcode'
11
+ $KCODE = 'u'
12
+ end
9
13
  PERSIAN_CHARS = "۱۲۳۴۵۶۷۸۹۰،؛"
10
14
  ENGLISH_CHARS = "1234567890,;"
11
15
  PERSIAN_DIGIT_JOINT = " و "
data/spec/farsifu_spec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
4
 
3
5
  describe "Farsifu" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farsifu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Allen A. Bargi
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-12 00:00:00 +01:00
19
- default_executable:
18
+ date: 2011-04-11 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rspec
@@ -62,6 +61,7 @@ extra_rdoc_files:
62
61
  files:
63
62
  - .gitignore
64
63
  - Gemfile
64
+ - Gemfile.lock
65
65
  - LICENSE
66
66
  - README.md
67
67
  - Rakefile
@@ -71,7 +71,6 @@ files:
71
71
  - lib/farsifu/version.rb
72
72
  - spec/farsifu_spec.rb
73
73
  - spec/spec_helper.rb
74
- has_rdoc: true
75
74
  homepage: http://github.com/aziz/farsifu
76
75
  licenses: []
77
76
 
@@ -101,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
100
  requirements: []
102
101
 
103
102
  rubyforge_project: farsifu
104
- rubygems_version: 1.4.1
103
+ rubygems_version: 1.7.2
105
104
  signing_key:
106
105
  specification_version: 3
107
106
  summary: a toolbox for developing ruby applications in Persian (Farsi) language, see readme file for features