cronex 0.6.1 → 0.7.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/cronex/exp_descriptor.rb +1 -2
- data/lib/cronex/version.rb +1 -1
- data/spec/exp_descriptor_en_spec.rb +2 -2
- data/spec/exp_descriptor_fr_spec.rb +2 -2
- data/spec/exp_descriptor_pt_BR_spec.rb +2 -2
- data/spec/exp_descriptor_ro_spec.rb +2 -2
- data/spec/exp_descriptor_ru_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29978d178bd1bb48a3a10583b197d09a0bd768ea
|
4
|
+
data.tar.gz: 7efd313aecf280cfe7d6817b392cc51e571a7c29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa456bfec078001cc6b12cc6c7d950e6dd1b8746d69f7341f3ffa6a2834add6ac72ebdb96364713f9d0818eab7dd1c6e6a857cf281a88c7447b1079ac75b68b6
|
7
|
+
data.tar.gz: b4dd39b0fce8599164262e26000bad29b2eeecfc964e82675f353c6af1a886cec1c7f8ba22a494e195fb5ceaa3182978de2306eff54cc73cbc5f4563e08f4bdf
|
data/CHANGELOG.md
CHANGED
@@ -162,8 +162,7 @@ module Cronex
|
|
162
162
|
month_desc = month_description(expression_parts)
|
163
163
|
dow_desc = day_of_week_description(expression_parts)
|
164
164
|
year_desc = year_description(expression_parts)
|
165
|
-
|
166
|
-
description = format('%s%s%s%s', time_segment, day_desc, month_desc, year_desc)
|
165
|
+
description = format('%s%s%s%s%s', time_segment, dom_desc, dow_desc, month_desc, year_desc)
|
167
166
|
description = transform_verbosity(description, options[:verbose])
|
168
167
|
description = transform_case(description, options[:casing])
|
169
168
|
description
|
data/lib/cronex/version.rb
CHANGED
@@ -180,8 +180,8 @@ module Cronex
|
|
180
180
|
expect(desc('23 12 15 * *')).to eq('At 12:23 PM, on day 15 of the month')
|
181
181
|
end
|
182
182
|
|
183
|
-
it 'day of month
|
184
|
-
expect(desc('23 12 15 * SUN')).to eq('At 12:23 PM, on day 15 of the month')
|
183
|
+
it 'day of month with day of week' do
|
184
|
+
expect(desc('23 12 15 * SUN')).to eq('At 12:23 PM, on day 15 of the month, only on Sunday')
|
185
185
|
end
|
186
186
|
|
187
187
|
it 'month name' do
|
@@ -180,8 +180,8 @@ module Cronex
|
|
180
180
|
expect(desc('23 12 15 * *')).to eq('À 12:23 PM, le 15 de chaque mois')
|
181
181
|
end
|
182
182
|
|
183
|
-
it 'day of month
|
184
|
-
expect(desc('23 12 15 * SUN')).to eq('À 12:23 PM, le 15 de chaque mois')
|
183
|
+
it 'day of month with day of week' do
|
184
|
+
expect(desc('23 12 15 * SUN')).to eq('À 12:23 PM, le 15 de chaque mois, seulement le dimanche')
|
185
185
|
end
|
186
186
|
|
187
187
|
it 'month name' do
|
@@ -180,8 +180,8 @@ module Cronex
|
|
180
180
|
expect(desc('23 12 15 * *')).to eq('Às 12:23 PM, no dia 15 do mês')
|
181
181
|
end
|
182
182
|
|
183
|
-
it 'day of month
|
184
|
-
expect(desc('23 12 15 * SUN')).to eq('Às 12:23 PM, no dia 15 do mês')
|
183
|
+
it 'day of month with day of week' do
|
184
|
+
expect(desc('23 12 15 * SUN')).to eq('Às 12:23 PM, no dia 15 do mês, todo(a) domingo')
|
185
185
|
end
|
186
186
|
|
187
187
|
it 'month name' do
|
@@ -180,8 +180,8 @@ module Cronex
|
|
180
180
|
expect(desc('23 12 15 * *')).to eq('La 12:23 PM, în a 15-a zi a lunii')
|
181
181
|
end
|
182
182
|
|
183
|
-
it 'day of month
|
184
|
-
expect(desc('23 12 15 * SUN')).to eq('La 12:23 PM, în a 15-a zi a lunii')
|
183
|
+
it 'day of month with day of week' do
|
184
|
+
expect(desc('23 12 15 * SUN')).to eq('La 12:23 PM, în a 15-a zi a lunii, numai duminică')
|
185
185
|
end
|
186
186
|
|
187
187
|
it 'month name' do
|
@@ -180,8 +180,8 @@ module Cronex
|
|
180
180
|
expect(desc('23 12 15 * *')).to eq('В 12:23 PM, 15 число месяца')
|
181
181
|
end
|
182
182
|
|
183
|
-
it 'day of month
|
184
|
-
expect(desc('23 12 15 * SUN')).to eq('В 12:23 PM, 15 число
|
183
|
+
it 'day of month with day of week' do
|
184
|
+
expect(desc('23 12 15 * SUN')).to eq('В 12:23 PM, 15 число месяца, только воскресенье')
|
185
185
|
end
|
186
186
|
|
187
187
|
it 'month name' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cronex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrian Kazaku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.
|
134
|
+
rubygems_version: 2.6.14
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: Ruby library that converts cron expressions into human readable strings
|