schedulability 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2736340b5f60a3116e2fe6713c08af773e5f6faff502df65940e85b505865aef
4
- data.tar.gz: 01fb6188317d16f202b80ce08a300190661fb8cd504ebfae0fda59014bbfa058
3
+ metadata.gz: b207762c9d0a79e5f7a2cd221c11b95d95607572bca0e53b840f6662c60bb863
4
+ data.tar.gz: bf68c4954995a64f6a6a7b94d9c6c2088f59675befc60ed3fc12d3853b68d1cf
5
5
  SHA512:
6
- metadata.gz: a65842a501f73634cf298eef89fc8ba7edbab811d00d1132a10c98dad22bb144844dd73fc570025672b8d4d6c19bb4aab7817d94836c3a4dfc20cc43a7ca9c3d
7
- data.tar.gz: c82386a866e4baf96d9c92131a1da670ba91de8491af9035e2f67121875109d2352a15d05d6f190574e905359fea0c0eb38843f707b607e148d05e6c40df6116
6
+ metadata.gz: ed9e94391dd7fd360c36d19201286afc35c76af2471649b3c6ed04575f90b09b4cd9d5a16e1620c668a98424b3bae0b8d0054354a6b3cf403e335f18e273ee2f
7
+ data.tar.gz: '09eba10f7fd489880252cecaca7d15a6bd66c21c46d034a9a94f0259841f6fef78b4e515b1fa02b525f95e4442160f980154bfde7040c032e745d7779b123b4c'
Binary file
data.tar.gz.sig CHANGED
Binary file
data/History.md CHANGED
@@ -1,3 +1,14 @@
1
+ # Release History for schedulability
2
+
3
+ ---
4
+
5
+ ## v0.5.0 [2020-03-04] Michael Granger <ged@faeriemud.org>
6
+
7
+ Improvements:
8
+
9
+ - Update for Ruby 2.7
10
+
11
+
1
12
  ## v0.4.1 [2018-09-12] Michael Granger <ged@FaerieMUD.org>
2
13
 
3
14
  Bugfixes:
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # schedulability
2
2
 
3
3
  home
4
- : http://deveiate.org/projects/schedulability
4
+ : https://hg.sr.ht/~ged/Schedulability
5
5
 
6
6
  code
7
- : http://bitbucket.org/ged/schedulability
7
+ : https://hg.sr.ht/~ged/Schedulability
8
8
 
9
9
  docs
10
- : http://deveiate.org/code/schedulability
10
+ : https://deveiate.org/code/schedulability
11
11
 
12
12
  github
13
- : http://github.com/ged/schedulability
13
+ : https://github.com/ged/schedulability
14
14
 
15
15
 
16
16
  ## Description
@@ -109,7 +109,7 @@ Values for week days and months can be abbreviated to three characters
109
109
  <dd>Monday through Friday, 9am to 5pm</dd>
110
110
 
111
111
  <dt><code>wd {Mon Wed Fri} hr {9am-4pm}, wd{Tue Thu} hr {9am-2pm}</code></dt>
112
- <dd>Monday through Friday, 9:00:00am to 3:59:59pm on Monday, Wednesday, and
112
+ <dd>Monday through Friday, 9:00:00am to 3:59:59pm on Monday, Wednesday, and
113
113
  Friday, and 9:00:00am to 1:59:59pm on Tuesday and Thursday</dd>
114
114
 
115
115
  <dt><code>wk {1 3 5} wd {Mon-Fri} hr {9am-5pm}</code></dt>
@@ -143,14 +143,14 @@ Values for week days and months can be abbreviated to three characters
143
143
  <dd>Alternating 5-second periods every hour.</dd>
144
144
 
145
145
  <dt><code>wd {mon wed fri} hr {8am - 5pm}, except day {1}</code></dt>
146
- <dd>Every Monday, Wednesday, and Friday from 8am until 4:59:59 PM, except on
146
+ <dd>Every Monday, Wednesday, and Friday from 8am until 4:59:59 PM, except on
147
147
  the first of the month.</dd>
148
148
 
149
149
  <dt><code>wd {1 3 5 7} min {0-29}, wd {2 4 6} min {30-59}</code></dt>
150
150
  <dd>Every first half-hour on alternating week days, and the second half-hour the
151
151
  rest of the week.</dd>
152
152
  </dl>
153
-
153
+
154
154
 
155
155
  ### Schedule Objects
156
156
 
@@ -218,6 +218,12 @@ This task will install any missing dependencies, run the tests/specs,
218
218
  and generate the API documentation.
219
219
 
220
220
 
221
+ ## Authors
222
+
223
+ - Michael Granger <ged@faeriemud.org>
224
+ - Mahlon E. Smith <mahlon@martini.nu>
225
+
226
+
221
227
  ## License
222
228
 
223
229
  This library borrows much of its schedule description syntax and several
@@ -226,14 +232,14 @@ used under the terms of the Perl Artistic License.
226
232
 
227
233
  > Patrick Ryan <perl@pryan.org> wrote it.
228
234
  > Paul Boyd <pboyd@cpan.org> fixed a few bugs.
229
- >
230
- > Copyright (c) 1997 Patrick Ryan. All rights reserved. This Perl
235
+ >
236
+ > Copyright (c) 1997 Patrick Ryan. All rights reserved. This Perl
231
237
  > module uses the conditions given by Perl. This module may only
232
238
  > be distributed and or modified under the conditions given by Perl.
233
239
 
234
240
  The rest is:
235
241
 
236
- Copyright (c) 2015-2018, Michael Granger and Mahlon E. Smith
242
+ Copyright (c) 2015-2020, Michael Granger and Mahlon E. Smith
237
243
  All rights reserved.
238
244
 
239
245
  Redistribution and use in source and binary forms, with or without
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
+ # frozen_string_literal: true
2
3
  # vim: set nosta noet ts=4 sw=4:
3
- # encoding: utf-8
4
4
 
5
5
  require 'loggability'
6
6
 
@@ -10,10 +10,10 @@ module Schedulability
10
10
  extend Loggability
11
11
 
12
12
  # Package version constant
13
- VERSION = '0.4.1'
13
+ VERSION = '0.5.0'
14
14
 
15
15
  # VCS revision
16
- REVISION = %q$Revision: 7fa470aea04e $
16
+ REVISION = %q$Revision$
17
17
 
18
18
 
19
19
  # Loggability API -- set up a logger for Schedulability objects
@@ -1,5 +1,5 @@
1
1
  # -*- ruby -*-
2
- #encoding: utf-8
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'schedulability' unless defined?( Schedulability )
5
5
 
@@ -1,5 +1,5 @@
1
1
  # -*- ruby -*-
2
- #encoding: utf-8
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'loggability'
5
5
  require 'schedulability' unless defined?( Schedulability )
@@ -62,7 +62,7 @@ module Schedulability::Parser
62
62
  periods.each do |period|
63
63
  period_string = []
64
64
  period.sort_by{|k, v| k}.each do |scale, ranges|
65
- range_string = ""
65
+ range_string = String.new( encoding: 'utf-8' )
66
66
  range_string << "%s { " % [ scale.to_s ]
67
67
 
68
68
  range_strings = ranges.each_with_object( [] ).each do |range, acc|
@@ -1,5 +1,5 @@
1
1
  # -*- ruby -*-
2
- #encoding: utf-8
2
+ # frozen_string_literal: true
3
3
 
4
4
  require 'strscan'
5
5
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # vim: set nosta noet ts=4 sw=4:
3
- # encoding: utf-8
3
+ # frozen_string_literal: true
4
4
 
5
5
  BEGIN {
6
6
  require 'pathname'
@@ -30,17 +30,23 @@ end # module Schedulability::SpecHelpers
30
30
 
31
31
 
32
32
  ### Mock with RSpec
33
- RSpec.configure do |c|
34
- c.run_all_when_everything_filtered = true
35
- c.filter_run :focus
36
- c.order = 'random'
37
- c.warnings = true
33
+ RSpec.configure do |config|
38
34
 
39
- c.mock_with( :rspec ) do |mock|
35
+ config.mock_with( :rspec ) do |mock|
40
36
  mock.syntax = :expect
41
37
  end
42
38
 
43
- c.include( Loggability::SpecHelpers )
44
- c.include( Schedulability::SpecHelpers )
39
+ config.disable_monkey_patching!
40
+ config.example_status_persistence_file_path = "spec/.status"
41
+ config.filter_run :focus
42
+ config.filter_run_when_matching :focus
43
+ config.order = :random
44
+ config.profile_examples = 5
45
+ config.run_all_when_everything_filtered = true
46
+ config.shared_context_metadata_behavior = :apply_to_host_groups
47
+ config.warnings = true
48
+
49
+ config.include( Loggability::SpecHelpers )
50
+ config.include( Schedulability::SpecHelpers )
45
51
  end
46
52
 
@@ -5,7 +5,7 @@ require_relative '../helpers'
5
5
  require 'schedulability/parser'
6
6
 
7
7
 
8
- describe Schedulability::Parser do
8
+ RSpec.describe Schedulability::Parser do
9
9
 
10
10
 
11
11
  it "can parse a single time period structure from a string" do
@@ -7,7 +7,7 @@ require 'timecop'
7
7
  require 'schedulability/schedule'
8
8
 
9
9
 
10
- describe Schedulability::Schedule do
10
+ RSpec.describe Schedulability::Schedule do
11
11
 
12
12
  before( :all ) do
13
13
  @actual_zone = ENV['TZ']
@@ -7,7 +7,9 @@ require 'rspec'
7
7
  require 'schedulability'
8
8
 
9
9
 
10
- describe Schedulability do
10
+ RSpec.describe Schedulability do
11
+
12
+ # This is just a namespace so there isn't anything to test
11
13
 
12
14
  end
13
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schedulability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -11,32 +11,31 @@ bindir: bin
11
11
  cert_chain:
12
12
  - |
13
13
  -----BEGIN CERTIFICATE-----
14
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
15
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
16
- HhcNMTcwOTI3MDAzMDQ0WhcNMTgwOTI3MDAzMDQ0WjA+MQwwCgYDVQQDDANnZWQx
17
- GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
18
- ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC/JWGRHO+USzR97vXjkFgt
19
- 83qeNf2KHkcvrRTSnR64i6um/ziin0I0oX23H7VYrDJC9A/uoUa5nGRJS5Zw/+wW
20
- ENcvWVZS4iUzi4dsYJGY6yEOsXh2CcF46+QevV8iE+UmbkU75V7Dy1JCaUOyizEt
21
- TH5UHsOtUU7k9TYARt/TgYZKuaoAMZZd5qyVqhF1vV+7/Qzmp89NGflXf2xYP26a
22
- 4MAX2qqKX/FKXqmFO+AGsbwYTEds1mksBF3fGsFgsQWxftG8GfZQ9+Cyu2+l1eOw
23
- cZ+lPcg834G9DrqW2zhqUoLr1MTly4pqxYGb7XoDhoR7dd1kFE2a067+DzWC/ADt
24
- +QkcqWUm5oh1fN0eqr7NsZlVJDulFgdiiYPQiIN7UNsii4Wc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HrhGlyfMr7xjKW1Q3gll+pMN1DT6Ajx/t3JDSEg7BnnEW
33
+ r7AciSO6J4ApUdqyG+coLFlGdtgFTgRHv7ihbQtDI7Z/LV7A4Spn1j2PK3j0Omri
34
+ kSl1hPVigRytfgdVGiLXzvkkrkgj9EknCaj5UHbac7XvVBrljXj9hsnnqTANaKsg
35
+ jBZSA+N+xUTgUWpXjjwsLZjzJkhWATJWq+krNXcqpwXo6HsjmdUxoFMt63RBb+sI
36
+ XrxOxp8o0uOkU7FdLSGsyqJ2LzsR4obN
38
37
  -----END CERTIFICATE-----
39
- date: 2018-09-12 00:00:00.000000000 Z
38
+ date: 2020-03-04 00:00:00.000000000 Z
40
39
  dependencies:
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: loggability
@@ -44,56 +43,14 @@ dependencies:
44
43
  requirements:
45
44
  - - "~>"
46
45
  - !ruby/object:Gem::Version
47
- version: '0.11'
46
+ version: '0.15'
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '0.11'
55
- - !ruby/object:Gem::Dependency
56
- name: hoe-mercurial
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.4'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.4'
69
- - !ruby/object:Gem::Dependency
70
- name: hoe-deveiate
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.9'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.9'
83
- - !ruby/object:Gem::Dependency
84
- name: hoe-highline
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.2'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '0.2'
53
+ version: '0.15'
97
54
  - !ruby/object:Gem::Dependency
98
55
  name: timecop
99
56
  requirement: !ruby/object:Gem::Requirement
@@ -109,68 +66,45 @@ dependencies:
109
66
  - !ruby/object:Gem::Version
110
67
  version: '0.8'
111
68
  - !ruby/object:Gem::Dependency
112
- name: rdoc
69
+ name: rake-deveiate
113
70
  requirement: !ruby/object:Gem::Requirement
114
71
  requirements:
115
72
  - - "~>"
116
73
  - !ruby/object:Gem::Version
117
- version: '4.2'
74
+ version: '0.8'
118
75
  type: :development
119
76
  prerelease: false
120
77
  version_requirements: !ruby/object:Gem::Requirement
121
78
  requirements:
122
79
  - - "~>"
123
80
  - !ruby/object:Gem::Version
124
- version: '4.2'
81
+ version: '0.8'
125
82
  - !ruby/object:Gem::Dependency
126
83
  name: simplecov
127
84
  requirement: !ruby/object:Gem::Requirement
128
85
  requirements:
129
86
  - - "~>"
130
87
  - !ruby/object:Gem::Version
131
- version: '0.12'
88
+ version: '0.18'
132
89
  type: :development
133
90
  prerelease: false
134
91
  version_requirements: !ruby/object:Gem::Requirement
135
92
  requirements:
136
93
  - - "~>"
137
94
  - !ruby/object:Gem::Version
138
- version: '0.12'
139
- - !ruby/object:Gem::Dependency
140
- name: hoe
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '3.16'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '3.16'
153
- description: |-
154
- Schedulability is a library for describing scheduled time. You can specify one
155
- or more periods of time using a simple syntax, then combine them to describe
95
+ version: '0.18'
96
+ description: Schedulability is a library for describing scheduled time. You can specify
97
+ one or more periods of time using a simple syntax, then combine them to describe
156
98
  more-complex schedules.
157
99
  email:
158
- - ged@FaerieMUD.org
100
+ - ged@faeriemud.org
159
101
  - mahlon@martini.nu
160
102
  executables: []
161
103
  extensions: []
162
- extra_rdoc_files:
163
- - History.md
164
- - Manifest.txt
165
- - README.md
104
+ extra_rdoc_files: []
166
105
  files:
167
- - ".editorconfig"
168
- - ".simplecov"
169
- - ChangeLog
170
106
  - History.md
171
- - Manifest.txt
172
107
  - README.md
173
- - Rakefile
174
108
  - lib/schedulability.rb
175
109
  - lib/schedulability/exceptions.rb
176
110
  - lib/schedulability/parser.rb
@@ -179,30 +113,32 @@ files:
179
113
  - spec/schedulability/parser_spec.rb
180
114
  - spec/schedulability/schedule_spec.rb
181
115
  - spec/schedulability_spec.rb
182
- homepage: http://deveiate.org/projects/schedulability
116
+ homepage: https://hg.sr.ht/~ged/Schedulability
183
117
  licenses:
184
118
  - BSD-3-Clause
185
- metadata: {}
119
+ metadata:
120
+ homepage_uri: https://hg.sr.ht/~ged/Schedulability
121
+ documentation_uri: https://deveiate.org/code/schedulability
122
+ changelog_uri: https://deveiate.org/code/schedulability/History_md.html
123
+ source_uri: https://hg.sr.ht/~ged/Schedulability
124
+ bug_tracker_uri: https://todo.sr.ht/~ged/Schedulability
186
125
  post_install_message:
187
- rdoc_options:
188
- - "--main"
189
- - README.md
126
+ rdoc_options: []
190
127
  require_paths:
191
128
  - lib
192
129
  required_ruby_version: !ruby/object:Gem::Requirement
193
130
  requirements:
194
131
  - - ">="
195
132
  - !ruby/object:Gem::Version
196
- version: 2.2.0
133
+ version: '0'
197
134
  required_rubygems_version: !ruby/object:Gem::Requirement
198
135
  requirements:
199
136
  - - ">="
200
137
  - !ruby/object:Gem::Version
201
138
  version: '0'
202
139
  requirements: []
203
- rubyforge_project:
204
- rubygems_version: 2.7.6
140
+ rubygems_version: 3.1.2
205
141
  signing_key:
206
142
  specification_version: 4
207
- summary: Schedulability is a library for describing scheduled time
143
+ summary: Schedulability is a library for describing scheduled time.
208
144
  test_files: []
metadata.gz.sig CHANGED
Binary file
@@ -1,16 +0,0 @@
1
- # EditorConfig: http://EditorConfig.org
2
-
3
- # top-most EditorConfig file
4
- root = true
5
-
6
- # Unix-style newlines with a newline ending every file
7
- [*]
8
- end_of_line = lf
9
- insert_final_newline = true
10
-
11
- # Tab indentation
12
- [**.*]
13
- indent_style = tab
14
-
15
- [**.rdoc]
16
- indent_style = space
data/.simplecov DELETED
@@ -1,9 +0,0 @@
1
- SimpleCov.start do
2
- add_filter 'spec'
3
- add_group "Tags" do |file|
4
- file.filename =~ /tag.rb$/
5
- end
6
- add_group "Needing tests" do |file|
7
- file.covered_percent < 90
8
- end
9
- end
data/ChangeLog DELETED
@@ -1,202 +0,0 @@
1
- 2018-09-12 Michael Granger <ged@FaerieMUD.org>
2
-
3
- * lib/schedulability/schedule.rb:
4
- Fix indentation warnings
5
- [b576d8683cf1] [tip]
6
-
7
- * .ruby-version:
8
- Use Ruby 2.5 for development
9
- [33f373ac276f]
10
-
11
- 2018-08-31 Mahlon E. Smith <mahlon@martini.nu>
12
-
13
- * README.md:
14
- Reflect reality in the README.
15
- [cad3559428fe]
16
-
17
- 2016-10-21 Michael Granger <ged@FaerieMUD.org>
18
-
19
- * .hgtags:
20
- Added tag v0.3.0 for changeset cc6c1906a6a4
21
- [62b3ca9f5313] [github/master]
22
-
23
- * .hgsigs:
24
- Added signature for changeset 4eb3e8287023
25
- [cc6c1906a6a4] [v0.3.0]
26
-
27
- * History.md, lib/schedulability.rb:
28
- Bump the minor version and update history.
29
- [4eb3e8287023]
30
-
31
- 2016-07-29 Meining Lu <meining@getupperhand.com>
32
-
33
- * lib/schedulability/parser.rb, spec/schedulability/schedule_spec.rb:
34
- [PATCH] Add support for 0th hour and 12am From
35
- 70ef3d9b003a736b26b4a57eae15393fa31516ef Mon Sep 17 00:00:00 2001
36
- --- lib/schedulability/parser.rb | 12 +++++---
37
- spec/schedulability/schedule_spec.rb | 57
38
- +++++++++++++++++++++++++++++++++++- 2 files changed, 64
39
- insertions(+), 5 deletions(-)
40
-
41
- Closes ged/schedulability#2 (Github).
42
- [67e0f911d188]
43
-
44
- 2016-07-20 Michael Granger <ged@FaerieMUD.org>
45
-
46
- * .hgtags:
47
- Added tag v0.2.0 for changeset 22dfe155d630
48
- [fca786536ff4]
49
-
50
- * .hgsigs:
51
- Added signature for changeset 9332ac7ab656
52
- [22dfe155d630] [v0.2.0]
53
-
54
- * schedulability.gemspec:
55
- Update gemspec
56
- [9332ac7ab656]
57
-
58
- * History.md, README.md, lib/schedulability.rb:
59
- Update history, copyright, and bump minor version.
60
- [bd7566ac26d5]
61
-
62
- * lib/schedulability/schedule.rb:
63
- Strip some more debug logging
64
- [29c266cf0066]
65
-
66
- 2016-07-17 Michael Granger <ged@FaerieMUD.org>
67
-
68
- * .gems, .ruby-gemset, .ruby-version, .rvmrc, Manifest.txt, Rakefile,
69
- schedulability.gemspec:
70
- Update manifest, switch to generic RVM setup.
71
- [f1f0dfcccfa8]
72
-
73
- * lib/schedulability/parser.rb:
74
- Remove a bunch of spammy debug logs
75
- [9bf76377c7b8]
76
-
77
- 2016-07-14 Jason Rogers <jacaetevha@gmail.com>
78
-
79
- * lib/schedulability/parser.rb, spec/schedulability/schedule_spec.rb:
80
- [PATCH] bug fixes for the 0th second or minute, and the 59th second
81
- From bc2864a832fa60bc39958b9aaa26e6f546936539 Mon Sep 17 00:00:00
82
- 2001 or minute
83
- --- lib/schedulability/parser.rb | 8 +++---
84
- spec/schedulability/schedule_spec.rb | 52
85
- ++++++++++++++++++++++++++++++++++++ 2 files changed, 57
86
- insertions(+), 3 deletions(-)
87
- [0f59486cf040]
88
-
89
- 2016-07-15 Michael Granger <ged@FaerieMUD.org>
90
-
91
- * README.md, Rakefile, lib/schedulability/schedule.rb,
92
- schedulability.gemspec, spec/schedulability/schedule_spec.rb:
93
- Fix some README discrepancies and implement some missing stuff
94
- [b99801aa4e3f]
95
-
96
- * lib/schedulability.rb, lib/schedulability/mixins.rb,
97
- lib/schedulability/parser.rb, lib/schedulability/schedule.rb,
98
- spec/schedulability/mixins_spec.rb,
99
- spec/schedulability/parser_spec.rb,
100
- spec/schedulability/schedule_spec.rb:
101
- Implement a simplistic Schedule#to_s, add some missing specs.
102
- [eda686d951b7]
103
-
104
- 2015-12-30 Michael Granger <ged@FaerieMUD.org>
105
-
106
- * .hgtags:
107
- Added tag v0.1.0 for changeset 45f35fbd585b
108
- [3e26b7e59243]
109
-
110
- * .hgsigs:
111
- Added signature for changeset 0f46dc0d8056
112
- [45f35fbd585b] [v0.1.0]
113
-
114
- * cert/ged.pem, cert/mahlon.pem:
115
- Add gem certs.
116
- [0f46dc0d8056]
117
-
118
- * .hgtags:
119
- Backed out tag for v0.1.0; trying again
120
- [342ac3d0b6db]
121
-
122
- * Rakefile, schedulability.gemspec:
123
- Explicitly set urls in the Hoespec, since Hoe can't read Markdown.
124
- [19eb06e85937]
125
-
126
- * .hgtags:
127
- Added tag v0.1.0 for changeset 99d3bb8480ac
128
- [c509bc778115]
129
-
130
- * .hgsigs:
131
- Added signature for changeset 39de155fb60f
132
- [99d3bb8480ac]
133
-
134
- * History.md, lib/schedulability.rb, lib/schedulability/schedule.rb:
135
- Fix the version, history file, and some comments.
136
- [39de155fb60f]
137
-
138
- * .hgtags:
139
- Backed out changeset 9def227667f5
140
-
141
- Fixing the version and some little aesthetic things.
142
- [c75030b1d915]
143
-
144
- * .hgtags:
145
- Added tag v0.11.0 for changeset efc2ba3917c1
146
- [9def227667f5]
147
-
148
- * .hgsigs:
149
- Added signature for changeset 9a401a820265
150
- [efc2ba3917c1]
151
-
152
- * README.md, lib/schedulability/parser.rb,
153
- lib/schedulability/schedule.rb,
154
- spec/schedulability/schedule_spec.rb:
155
- Implement negated periods; invert the meaning of empty schedule.
156
- [9a401a820265]
157
-
158
- * lib/schedulability/parser.rb, lib/schedulability/schedule.rb,
159
- spec/schedulability/schedule_spec.rb:
160
- Implement boolean operations for the Schedule object.
161
- [aaa0d5f6ed3f]
162
-
163
- * lib/schedulability/parser.rb, spec/schedulability/schedule_spec.rb:
164
- Fix the 12pm edge case for time parsing
165
- [8687eaead89b]
166
-
167
- * Manifest.txt, README.md, lib/schedulability.rb,
168
- lib/schedulability/parser.rb, lib/schedulability/schedule.rb:
169
- Break out schedule-parsing functions into a module.
170
- [6ae39f6f0e6d]
171
-
172
- * Manifest.txt, README.md, lib/schedulability/schedule.rb,
173
- spec/schedulability/schedule_spec.rb:
174
- Use counted week of month for `week` scale.
175
- [bdf32f4fb2ef]
176
-
177
- 2015-12-28 Michael Granger <ged@FaerieMUD.org>
178
-
179
- * README.md, lib/schedulability.rb, lib/schedulability/mixins.rb,
180
- lib/schedulability/schedule.rb, spec/helpers.rb,
181
- spec/schedulability/schedule_spec.rb:
182
- Finished up initial work on period parsing
183
- [19fcd47d5dbc]
184
-
185
- * Rakefile, schedulability.gemspec:
186
- Add missing loggability dependency.
187
- [8054ca4ee4a2]
188
-
189
- * Manifest.txt, schedulability.gemspec:
190
- Update build files, switch docs to Markdown.
191
- [2b12bb7ae802]
192
-
193
- 2015-12-26 Michael Granger <ged@FaerieMUD.org>
194
-
195
- * .editorconfig, .gems, .hgignore, .hgsigs, .hgtags, .pryrc, .rvmrc,
196
- .simplecov, .tm_properties, .travis.yml, Gemfile, History.md,
197
- Manifest.txt, README.md, Rakefile, lib/schedulability.rb,
198
- lib/schedulability/exceptions.rb, lib/schedulability/schedule.rb,
199
- spec/helpers.rb, spec/schedulability/schedule_spec.rb,
200
- spec/schedulability_spec.rb:
201
- Initial commit
202
- [eb1dd1197f1e]
@@ -1,15 +0,0 @@
1
- .editorconfig
2
- .simplecov
3
- ChangeLog
4
- History.md
5
- Manifest.txt
6
- README.md
7
- Rakefile
8
- lib/schedulability.rb
9
- lib/schedulability/exceptions.rb
10
- lib/schedulability/parser.rb
11
- lib/schedulability/schedule.rb
12
- spec/helpers.rb
13
- spec/schedulability/parser_spec.rb
14
- spec/schedulability/schedule_spec.rb
15
- spec/schedulability_spec.rb
data/Rakefile DELETED
@@ -1,88 +0,0 @@
1
- #!/usr/bin/env rake
2
-
3
- require 'rake/clean'
4
-
5
- begin
6
- require 'hoe'
7
- rescue LoadError
8
- abort "This Rakefile requires 'hoe' (gem install hoe)"
9
- end
10
-
11
- GEMSPEC = 'schedulability.gemspec'
12
-
13
- Hoe.plugin :mercurial
14
- Hoe.plugin :signing
15
- Hoe.plugin :deveiate
16
-
17
- Hoe.plugins.delete :rubyforge
18
-
19
- hoespec = Hoe.spec 'schedulability' do
20
- self.readme_file = 'README.md'
21
- self.history_file = 'History.md'
22
- self.extra_rdoc_files = FileList[ '*.md' ]
23
- self.urls = {
24
- home: 'http://deveiate.org/projects/schedulability',
25
- code: 'http://bitbucket.org/ged/schedulability',
26
- docs: 'http://deveiate.org/code/schedulability',
27
- github: 'http://github.com/ged/schedulability',
28
- }
29
-
30
- self.developer 'Michael Granger', 'ged@FaerieMUD.org'
31
- self.developer 'Mahlon E. Smith', 'mahlon@martini.nu'
32
-
33
- self.dependency 'loggability', '~> 0.11'
34
-
35
- self.dependency 'timecop', '~> 0.8', :developer
36
- self.dependency 'rdoc', '~> 4.2', :developer
37
- self.dependency 'hoe-deveiate', '~> 0.8', :developer
38
- self.dependency 'simplecov', '~> 0.12', :developer
39
-
40
- self.license "BSD-3-Clause"
41
- self.require_ruby_version( '>=2.2.0' )
42
- self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
43
- self.check_history_on_release = true if self.respond_to?( :check_history_on_release= )
44
-
45
- self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
46
- end
47
-
48
- ENV['VERSION'] ||= hoespec.spec.version.to_s
49
-
50
- # Ensure the specs pass before checking in
51
- task 'hg:precheckin' => [ :check_history, :check_manifest, :gemspec, :spec ]
52
-
53
-
54
- desc "Build a coverage report"
55
- task :coverage do
56
- ENV["COVERAGE"] = 'yes'
57
- Rake::Task[:spec].invoke
58
- end
59
- CLOBBER.include( 'coverage' )
60
-
61
-
62
- # Use the fivefish formatter for docs generated from development checkout
63
- if File.directory?( '.hg' )
64
- require 'rdoc/task'
65
-
66
- Rake::Task[ 'docs' ].clear
67
- RDoc::Task.new( 'docs' ) do |rdoc|
68
- rdoc.main = "README.md"
69
- rdoc.rdoc_files.include( "*.rdoc", "*.md", "ChangeLog", "lib/**/*.rb" )
70
- rdoc.generator = :fivefish
71
- rdoc.title = 'Schedulability'
72
- rdoc.rdoc_dir = 'doc'
73
- end
74
- end
75
-
76
- task :gemspec => GEMSPEC
77
- file GEMSPEC => __FILE__
78
- task GEMSPEC do |task|
79
- spec = $hoespec.spec
80
- spec.files.delete( '.gemtest' )
81
- spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
82
- File.open( task.name, 'w' ) do |fh|
83
- fh.write( spec.to_ruby )
84
- end
85
- end
86
-
87
- CLOBBER.include( GEMSPEC.to_s )
88
-