makecal 0.0.6 → 0.0.7

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Makecal
2
2
 
3
- TODO: Write a gem description
3
+ This is just a simple wrapper for the pCal command line tool. This app uses sensible defaults for creating postscript calendars to print and sending the files to the desktop.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ type `makecal` in the terminal and a postscript calendar of the current month will be placed on your desktop.
22
22
 
23
23
  ## Contributing
24
24
 
@@ -7,8 +7,11 @@ class UI < Thor
7
7
  default_task :makecal
8
8
 
9
9
  desc "makecal", "Generates postscript calendar to your desktop"
10
+ method_option :month, aliases: "-m", desc: "Specify a particular month (1-12)", default: Time.now.month
11
+ method_option :year, aliases: "-y", desc: "Specify a particular year (YYYY)", default: Time.now.year
12
+
10
13
  def makecal
11
- run "pcal -B -b all -d Helvetica/8 -t Helvetica/16 -S #{Time.now.month} #{Time.now.year} > ~/Desktop/#{Time.now.month}-#{Time.now.year}"
14
+ run "pcal -B -b all -d Helvetica/8 -t Helvetica/16 -S #{options[:month]} #{options[:year]} > ~/Desktop/#{options[:month]}-#{options[:year]}"
12
15
  end
13
16
  end
14
17
 
@@ -1,3 +1,3 @@
1
1
  module Makecal
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -9,10 +9,13 @@ Gem::Specification.new do |gem|
9
9
  gem.homepage = ""
10
10
 
11
11
  # Requirements
12
- gem.requirements << "pcal"
12
+ gem.requirements << 'pcal'
13
13
 
14
14
  # Dependencies
15
- gem.add_dependency "thor"
15
+ gem.add_dependency 'thor'
16
+
17
+ # Development Dependencies
18
+ gem.add_development_dependency 'rspec'
16
19
 
17
20
  gem.files = `git ls-files`.split($\)
18
21
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makecal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-06 00:00:00.000000000 Z
12
+ date: 2012-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  description: Uses pcal to create a postscript calendar for printing
31
47
  email:
32
48
  - joshua.klina@gmail.com