parsi-date 0.2.3 → 0.2.4
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.
- data/.gitignore +1 -0
- data/.travis.yml +6 -0
- data/lib/parsi-date.rb +4 -4
- data/lib/version.rb +1 -1
- data/spec/parsi-date/constants_spec.rb +4 -4
- data/spec/spec_helper.rb +0 -1
- metadata +4 -4
- data/Gemfile.lock +0 -27
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/lib/parsi-date.rb
CHANGED
@@ -94,22 +94,22 @@ module Parsi
|
|
94
94
|
# gives the name of that month (hence the first element is nil).
|
95
95
|
MONTHNAMES = [nil] + %w(فروردین اردیبهشت خرداد تیر مرداد شهریور مهر آبان آذر دی بهمن اسفند)
|
96
96
|
# Full month names, in English. Months count from 1 to 12;
|
97
|
-
EN_MONTHNAMES = [nil] + %w(farvardin ordibehesht khordad tir mordad
|
97
|
+
EN_MONTHNAMES = [nil] + %w(farvardin ordibehesht khordad tir mordad shahrivar mehr aban azar day bahman esfand)
|
98
98
|
|
99
99
|
# Full names of days of the week, in Farsi. Days of the week
|
100
100
|
# count from 0 to 6; a day's numerical representation indexed into this array gives
|
101
101
|
# the name of that day.
|
102
|
-
DAYNAMES = %w(یکشنبه دوشنبه سهشنبه چهارشنبه
|
102
|
+
DAYNAMES = %w(یکشنبه دوشنبه سهشنبه چهارشنبه چنجشنبه جمعه شنبه)
|
103
103
|
|
104
104
|
# Full names of days of the week, in English. Days of the week
|
105
105
|
# count from 0 to 6; a day's numerical representation indexed into this array gives
|
106
106
|
# the name of that day.
|
107
|
-
EN_DAYNAMES = %w(
|
107
|
+
EN_DAYNAMES = %w(yekshanbe doshanbe seshanbe chaharshanbe panjshanbe jomee shanbe)
|
108
108
|
|
109
109
|
# Abbreviated month names, in English.
|
110
110
|
#
|
111
111
|
# We don't have Farsi abbreviated month names, as they are not useful
|
112
|
-
ABBR_MONTHNAMES = [nil] + %w(far ord kho tir mor sha meh abn azr
|
112
|
+
ABBR_MONTHNAMES = [nil] + %w(far ord kho tir mor sha meh abn azr day bah esf)
|
113
113
|
|
114
114
|
# Abbreviated day names, in Farsi.
|
115
115
|
ABBR_DAYNAMES = %w(۱ش ۲ش ۳ش ۴ش ۵ش ج ش)
|
data/lib/version.rb
CHANGED
@@ -9,20 +9,20 @@ describe "Date constants" do
|
|
9
9
|
|
10
10
|
it "defines EN_MONTHNAMES" do
|
11
11
|
Parsi::Date::EN_MONTHNAMES.should == [nil] +
|
12
|
-
%w(farvardin ordibehesht khordad tir mordad
|
12
|
+
%w(farvardin ordibehesht khordad tir mordad shahrivar mehr aban azar day bahman esfand)
|
13
13
|
end
|
14
14
|
|
15
15
|
it "defines ABBR_MONTHNAMES" do
|
16
16
|
Parsi::Date::ABBR_MONTHNAMES.should == [nil] +
|
17
|
-
%w(far ord kho tir mor sha meh abn azr
|
17
|
+
%w(far ord kho tir mor sha meh abn azr day bah esf)
|
18
18
|
end
|
19
19
|
|
20
20
|
it "defines DAYNAMES" do
|
21
|
-
Parsi::Date::DAYNAMES.should == %w(یکشنبه دوشنبه سهشنبه چهارشنبه
|
21
|
+
Parsi::Date::DAYNAMES.should == %w(یکشنبه دوشنبه سهشنبه چهارشنبه چنجشنبه جمعه شنبه)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "defines EN_DAYNAMES" do
|
25
|
-
Parsi::Date::EN_DAYNAMES.should == %w(
|
25
|
+
Parsi::Date::EN_DAYNAMES.should == %w(yekshanbe doshanbe seshanbe chaharshanbe panjshanbe jomee shanbe)
|
26
26
|
end
|
27
27
|
|
28
28
|
it "defines ABBR_DAYNAMES" do
|
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,6 @@ require 'parsi-date'
|
|
3
3
|
RSpec.configure do |config|
|
4
4
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
5
5
|
config.run_all_when_everything_filtered = true
|
6
|
-
config.filter_run :focus
|
7
6
|
|
8
7
|
# Run specs in random order to surface order dependencies. If you find an
|
9
8
|
# order dependency and want to debug it, you can fix the order by providing
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parsi-date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -68,8 +68,8 @@ extra_rdoc_files: []
|
|
68
68
|
files:
|
69
69
|
- .gitignore
|
70
70
|
- .rspec
|
71
|
+
- .travis.yml
|
71
72
|
- Gemfile
|
72
|
-
- Gemfile.lock
|
73
73
|
- MIT-LICENSE
|
74
74
|
- README.rdoc
|
75
75
|
- TODO
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.8.
|
111
|
+
rubygems_version: 1.8.25
|
112
112
|
signing_key:
|
113
113
|
specification_version: 3
|
114
114
|
summary: Solar Hijri (Jalali, Persian, Parsi) date library for Ruby
|
data/Gemfile.lock
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
parsi-date (0.2.2)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: http://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.1.3)
|
10
|
-
rake (0.9.2.2)
|
11
|
-
rspec (2.11.0)
|
12
|
-
rspec-core (~> 2.11.0)
|
13
|
-
rspec-expectations (~> 2.11.0)
|
14
|
-
rspec-mocks (~> 2.11.0)
|
15
|
-
rspec-core (2.11.1)
|
16
|
-
rspec-expectations (2.11.3)
|
17
|
-
diff-lcs (~> 1.1.3)
|
18
|
-
rspec-mocks (2.11.3)
|
19
|
-
|
20
|
-
PLATFORMS
|
21
|
-
ruby
|
22
|
-
|
23
|
-
DEPENDENCIES
|
24
|
-
bundler
|
25
|
-
parsi-date!
|
26
|
-
rake
|
27
|
-
rspec
|