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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5695e6afc392e79737154019b9829971a9657c78
4
- data.tar.gz: 081a03e92358d7c8a7fb66579339fc6959c3fa8d
3
+ metadata.gz: 29978d178bd1bb48a3a10583b197d09a0bd768ea
4
+ data.tar.gz: 7efd313aecf280cfe7d6817b392cc51e571a7c29
5
5
  SHA512:
6
- metadata.gz: ec3ae6a6b82dece4d6515b967cb82ab4b55dfceaa8170aff4545177640a2fe8c6b4cd2c39426ce0e313fb142dc34f5b4f9dacb8dc63b4a8c11191dc50ce4a6ce
7
- data.tar.gz: 8d508c90b05f6e1390426aba56b9b6f18927d122c734e9437ec63eefa71b7b8ac1234e56c1dd596ecd5ad171adf549de3344f19732a251bcc070b62cf44b5619
6
+ metadata.gz: fa456bfec078001cc6b12cc6c7d950e6dd1b8746d69f7341f3ffa6a2834add6ac72ebdb96364713f9d0818eab7dd1c6e6a857cf281a88c7447b1079ac75b68b6
7
+ data.tar.gz: b4dd39b0fce8599164262e26000bad29b2eeecfc964e82675f353c6af1a886cec1c7f8ba22a494e195fb5ceaa3182978de2306eff54cc73cbc5f4563e08f4bdf
@@ -1,3 +1,6 @@
1
+ ### [0.7.0] - 2018-11-22
2
+ * Include day of week when day of month is specified
3
+
1
4
  ### [0.6.1] - 2017-11-17
2
5
  * Fix 4th day spelling
3
6
 
@@ -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
- day_desc = expression_parts[3] == '*' ? dow_desc : dom_desc
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
@@ -1,3 +1,3 @@
1
1
  module Cronex
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.0'
3
3
  end
@@ -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 ignores day of week' do
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 ignores day of week' do
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 ignores day of week' do
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 ignores day of week' do
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 ignores day of week' do
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.6.1
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: 2017-11-17 00:00:00.000000000 Z
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.5.1
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