chronic-l10n 0.0.1.pre.1 → 0.1.0.rc
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/README.md +5 -2
- data/chronic-l10n.gemspec +1 -1
- data/lib/chronic-l10n/pt_br.rb +3 -2
- data/lib/chronic-l10n.rb +1 -1
- metadata +5 -6
data/README.md
CHANGED
|
@@ -3,12 +3,15 @@ Chronic
|
|
|
3
3
|
|
|
4
4
|
## DESCRIPTION
|
|
5
5
|
|
|
6
|
-
Chronic is a natural language date/time parser written in pure Ruby.
|
|
7
|
-
|
|
6
|
+
[Chronic](https://github.com/mojombo/chronic) is a natural language date/time parser written in pure Ruby.
|
|
7
|
+
Chronic L10n aims to add translations to [Chronics](https://github.com/mojombo/chronic) abilities.
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
## INSTALLATION
|
|
11
11
|
|
|
12
|
+
*WARNING*: This gem will only work when and **IF** [this fork](https://github.com/luan/chronic) of chronic gets merged and released.
|
|
13
|
+
Meanwhile you can install the [chronic](https://github.com/luan/chronic) gem from the forks source to get it going.
|
|
14
|
+
|
|
12
15
|
### RubyGems
|
|
13
16
|
|
|
14
17
|
$ [sudo] gem install chronic-l10n
|
data/chronic-l10n.gemspec
CHANGED
data/lib/chronic-l10n/pt_br.rb
CHANGED
|
@@ -173,7 +173,7 @@ module Chronic
|
|
|
173
173
|
[/\bsegundo (de|dia|mes|hora|ninuto|segundo)\b/, '2nd \1']
|
|
174
174
|
],
|
|
175
175
|
:pos_numerize => [
|
|
176
|
-
[
|
|
176
|
+
[/\-(\d{2}:?\d{2})\b/, 'tzminus\1'],
|
|
177
177
|
[/([\/\-\,\@])/, ' \1 '],
|
|
178
178
|
[/(?:^|\s)0(\d+:\d+\s*pm?\b)/, ' \1'],
|
|
179
179
|
[/\bhoje\b/, 'este dia'],
|
|
@@ -206,7 +206,8 @@ module Chronic
|
|
|
206
206
|
:comma => /^,$/,
|
|
207
207
|
:at => /^(as|@)$/,
|
|
208
208
|
:in => /^em$/,
|
|
209
|
-
:on => /^em
|
|
209
|
+
:on => /^em$/,
|
|
210
|
+
:and => /^e$/
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
end
|
data/lib/chronic-l10n.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chronic-l10n
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.0.rc
|
|
5
5
|
prerelease: 6
|
|
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-01-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
@@ -50,7 +50,7 @@ dependencies:
|
|
|
50
50
|
requirements:
|
|
51
51
|
- - ! '>='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.
|
|
53
|
+
version: 0.9.0
|
|
54
54
|
type: :runtime
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -58,7 +58,7 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - ! '>='
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 0.
|
|
61
|
+
version: 0.9.0
|
|
62
62
|
description: Pack of locales for localizing Chronics date parsing.
|
|
63
63
|
email:
|
|
64
64
|
- luan@luansantos.com
|
|
@@ -100,11 +100,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
version: 1.3.1
|
|
101
101
|
requirements: []
|
|
102
102
|
rubyforge_project:
|
|
103
|
-
rubygems_version: 1.8.
|
|
103
|
+
rubygems_version: 1.8.24
|
|
104
104
|
signing_key:
|
|
105
105
|
specification_version: 3
|
|
106
106
|
summary: Localization for Chronic.
|
|
107
107
|
test_files:
|
|
108
108
|
- test/helper.rb
|
|
109
109
|
- test/test_parsing_pt_br.rb
|
|
110
|
-
has_rdoc:
|