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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18a7a4692a95e8d55d193db5ed2f4b7e4cef1efd
4
- data.tar.gz: 248a53fa1679a96d11886adc13cdc4d961777e77
3
+ metadata.gz: 22f1eba5aea4d52addd7df64b61f3ebe2cd4ceb9
4
+ data.tar.gz: ab0cf824509c4ed775a0159da097f53a49689821
5
5
  SHA512:
6
- metadata.gz: 2f075a907051f53258a0400c4c1aa7f9e8892108345bef5c256b0dc2caa8f595b026dc348bd5133da54dbe79626b7b07d6d4707e1f4635914d355bbd3df01941
7
- data.tar.gz: b88a6bd6b58600ae223e760872c6e1e9756862c1a9fe1cb449fa3611d52dcdd9b205cc34907c7103dbcadc5a603e491804a638a31e2e61dd721da11d224b8591
6
+ metadata.gz: 75f0d8078be4e12e7486f19cb14048075abe7f4cc82e325f498499ecd653fd8f8af4429db2b0f501fa9ee756229dd8e55cc1edbfdddc0bf286dbcb3656acedc7
7
+ data.tar.gz: 10a9b5ce3e4f358b0cb0e811f314b9b4cf252ae614756b52d63df0424ae1b8bf6c066f81f715239b41bece03b53246ff6564accf9f420daf1232b215d51181d3
data/README.md CHANGED
@@ -25,7 +25,7 @@ Or install it yourself as:
25
25
  This library comes with an executable, apod-download, which can be used
26
26
  to download the current picture of the day. For usage, run:
27
27
 
28
- ```apod-download -h```
28
+ ```apod -h```
29
29
 
30
30
  ## Development
31
31
 
@@ -3,7 +3,7 @@
3
3
  # Grabs NASA's Astronomy Picture of the Day
4
4
  #
5
5
 
6
- require_relative 'apod'
6
+ require 'apod'
7
7
  require 'optparse'
8
8
 
9
9
  options = {}
@@ -1,5 +1,5 @@
1
1
  require "apod/version"
2
- require_relative 'pic'
2
+ require 'pic'
3
3
  require 'nokogiri'
4
4
  require 'httpclient'
5
5
 
@@ -1,3 +1,3 @@
1
1
  class Apod
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-download
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-download
74
+ - exe/apod
76
75
  - lib/apod.rb
77
76
  - lib/apod/version.rb
78
77
  - lib/pic.rb
@@ -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)