quarterweek 0.0.3 → 0.0.4
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/bin/quarterweek +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc987cd4fc9b30c0f4ed0a99b9af8fff9ebe71d5
|
4
|
+
data.tar.gz: 7120db7394ac0261a7cb8765b80a6284fef4e257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f014729cff26dc9ec4fad9513d5fbfd55b0d475e6486634708e52efef1ce9d0768a5f247fbba17782bc95319d26c59880f0916ef384a43c56eeaac89fa6bf085
|
7
|
+
data.tar.gz: c9d6cccfb86b25a0ded4d8964d95619afd90ce1de9a872220245b8dd06e56421621156c7a9d6c098171806d85e2282df243a03bf10545c531a4bb932b956aca0
|
data/bin/quarterweek
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'quarterweek'
|
4
|
-
|
4
|
+
|
5
|
+
begin
|
6
|
+
File.open("#{ARGV[0]}-quarterweeks.ics", 'w') { |file| file.write(Quarterweek.to_ical ARGV[0])}
|
7
|
+
rescue ArgumentError
|
8
|
+
puts "This quarterweek command should have an argument that contains a valid Saxion teacher code, in order to generate an ical file with quarter weeks"
|
9
|
+
else
|
10
|
+
puts "Generated #{ARGV[0]}-quarterweeks.ics successfully!"
|
11
|
+
end
|
12
|
+
|