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 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. See below
7
- for the wide variety of formats Chronic-L10n will parse.
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
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.add_development_dependency 'rake'
19
19
  s.add_development_dependency 'minitest'
20
- s.add_dependency 'chronic', '>= 0.7.0'
20
+ s.add_dependency 'chronic', '>= 0.9.0'
21
21
  end
@@ -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
- [/ \-(\d{4})\b/, ' tzminus\1'],
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
@@ -2,7 +2,7 @@ require 'chronic'
2
2
 
3
3
  module Chronic
4
4
  module L10n
5
- VERSION = "0.0.1.pre.1"
5
+ VERSION = "0.1.0.rc"
6
6
 
7
7
  class << self
8
8
  end
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.0.1.pre.1
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: 2012-08-01 00:00:00.000000000 Z
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.7.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.7.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.23
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: