dougsko-apod 0.1.1 → 0.1.2

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/Rakefile CHANGED
@@ -38,6 +38,7 @@ task :spec => :check_dependencies
38
38
  task :default => :spec
39
39
 
40
40
  require 'rake/rdoctask'
41
+ require 'darkfish-rdoc'
41
42
  Rake::RDocTask.new do |rdoc|
42
43
  if File.exist?('VERSION')
43
44
  version = File.read('VERSION')
@@ -49,4 +50,8 @@ Rake::RDocTask.new do |rdoc|
49
50
  rdoc.title = "apod #{version}"
50
51
  rdoc.rdoc_files.include('README*')
51
52
  rdoc.rdoc_files.include('lib/**/*.rb')
53
+ rdoc.options += [
54
+ '-N',
55
+ '-f', 'darkfish',
56
+ ]
52
57
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
data/apod.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{apod}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["dougsko"]
12
- s.date = %q{2009-09-08}
12
+ s.date = %q{2009-09-09}
13
13
  s.default_executable = %q{apod-download}
14
14
  s.description = %q{A library to work with NASA's astronomy pictures of the day.}
15
15
  s.email = %q{dougtko@gmail.com}
data/bin/apod-download CHANGED
@@ -4,7 +4,7 @@
4
4
  #
5
5
 
6
6
  require 'rubygems'
7
- require 'lib/apod'
7
+ require 'apod'
8
8
  require 'optparse'
9
9
 
10
10
  options = {}
data/lib/pic.rb CHANGED
@@ -1,16 +1,19 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # class to hold an entry's information
3
+ # Class to hold an entry's information
4
4
  #
5
5
 
6
6
  class Pic
7
7
  attr_reader(:title, :website)
8
8
 
9
+ # Takes two strings, the title of the picture and the URL to its
10
+ # website.
9
11
  def initialize(title, website)
10
12
  @title = title
11
13
  @website = website
12
14
  end
13
15
 
16
+ # Download a picture to a file
14
17
  def download(save_path)
15
18
  doc = Hpricot(open(self.website))
16
19
  link = "http://apod.nasa.gov/" + doc.at("//center/p[2]/a")["href"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dougsko-apod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dougsko
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-08 00:00:00 -07:00
12
+ date: 2009-09-09 00:00:00 -07:00
13
13
  default_executable: apod-download
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency