ruby-duration 0.5.0 → 0.5.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.
- data/.gitignore +1 -1
- data/lib/duration/version.rb +1 -1
- data/lib/duration.rb +8 -5
- data/ruby-duration.gemspec +2 -2
- metadata +4 -2
data/.gitignore
CHANGED
data/lib/duration/version.rb
CHANGED
data/lib/duration.rb
CHANGED
@@ -114,11 +114,14 @@ class Duration
|
|
114
114
|
# %~d => locale-dependent "days" terminology
|
115
115
|
# %~w => locale-dependent "weeks" terminology
|
116
116
|
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
117
|
+
# You can also use the I18n support.
|
118
|
+
# The %~s, %~m, %~h, %~d and %~w can be translated with I18n.
|
119
|
+
# If you are using Ruby on Rails, the support is ready out of the box, so just change your locale file. Otherwise you can try:
|
120
|
+
#
|
121
|
+
# I18n.load_path << "path/to/your/locale"
|
122
|
+
# I18n.locale = :your_locale
|
123
|
+
#
|
124
|
+
# And you must use the following structure (example) for your locale file:
|
122
125
|
# pt:
|
123
126
|
# ruby_duration:
|
124
127
|
# second: segundo
|
data/ruby-duration.gemspec
CHANGED
@@ -5,8 +5,8 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.name = "ruby-duration"
|
6
6
|
s.version = Duration::VERSION
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
|
-
s.authors = ["Jose Peleteiro"]
|
9
|
-
s.email = ["jose@peleteiro.net"]
|
8
|
+
s.authors = ["Jose Peleteiro", "Bruno Azisaka Maciel"]
|
9
|
+
s.email = ["jose@peleteiro.net", "bruno@bubble.com.br"]
|
10
10
|
s.homepage = "http://github.com/peleteiro/ruby-duration"
|
11
11
|
s.summary = "Duration type"
|
12
12
|
s.description = "Duration type"
|
metadata
CHANGED
@@ -5,11 +5,12 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 1
|
9
|
+
version: 0.5.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jose Peleteiro
|
13
|
+
- Bruno Azisaka Maciel
|
13
14
|
autorequire:
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
@@ -132,6 +133,7 @@ dependencies:
|
|
132
133
|
description: Duration type
|
133
134
|
email:
|
134
135
|
- jose@peleteiro.net
|
136
|
+
- bruno@bubble.com.br
|
135
137
|
executables: []
|
136
138
|
|
137
139
|
extensions: []
|