apod 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/exe/{apod-download → apod} +1 -1
- data/lib/apod.rb +1 -1
- data/lib/apod/version.rb +1 -1
- metadata +3 -4
- data/bin/apod-download +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22f1eba5aea4d52addd7df64b61f3ebe2cd4ceb9
|
4
|
+
data.tar.gz: ab0cf824509c4ed775a0159da097f53a49689821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f0d8078be4e12e7486f19cb14048075abe7f4cc82e325f498499ecd653fd8f8af4429db2b0f501fa9ee756229dd8e55cc1edbfdddc0bf286dbcb3656acedc7
|
7
|
+
data.tar.gz: 10a9b5ce3e4f358b0cb0e811f314b9b4cf252ae614756b52d63df0424ae1b8bf6c066f81f715239b41bece03b53246ff6564accf9f420daf1232b215d51181d3
|
data/README.md
CHANGED
data/exe/{apod-download → apod}
RENAMED
data/lib/apod.rb
CHANGED
data/lib/apod/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Prostko
|
@@ -56,7 +56,7 @@ description: A library to work with NASA's astronomy pictures of the day.
|
|
56
56
|
email:
|
57
57
|
- dougtko@gmail.com
|
58
58
|
executables:
|
59
|
-
- apod
|
59
|
+
- apod
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
@@ -69,10 +69,9 @@ files:
|
|
69
69
|
- README.md
|
70
70
|
- Rakefile
|
71
71
|
- apod.gemspec
|
72
|
-
- bin/apod-download
|
73
72
|
- bin/console
|
74
73
|
- bin/setup
|
75
|
-
- exe/apod
|
74
|
+
- exe/apod
|
76
75
|
- lib/apod.rb
|
77
76
|
- lib/apod/version.rb
|
78
77
|
- lib/pic.rb
|
data/bin/apod-download
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
#
|
3
|
-
# Grabs NASA's Astronomy Picture of the Day
|
4
|
-
#
|
5
|
-
|
6
|
-
require 'rubygems'
|
7
|
-
require 'lib/apod'
|
8
|
-
require 'optparse'
|
9
|
-
|
10
|
-
options = {}
|
11
|
-
opts = OptionParser.new do |opts|
|
12
|
-
opts.banner = "\nDownload NASA's Astronomy Picture of the Day"
|
13
|
-
|
14
|
-
opts.separator ""
|
15
|
-
opts.separator "Options:"
|
16
|
-
|
17
|
-
opts.on("-o <output file>", String, "Filename to save picture as") do |output|
|
18
|
-
options["o"] = output
|
19
|
-
end
|
20
|
-
|
21
|
-
opts.on_tail("-h", "--help", "Show this message") do
|
22
|
-
puts opts
|
23
|
-
exit
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
opts.parse(ARGV)
|
28
|
-
|
29
|
-
save_path = options["o"]
|
30
|
-
|
31
|
-
apod = Apod.new
|
32
|
-
apod.pictures.first.download(save_path)
|