reddit_image_downloader 0.1.0 → 0.1.1
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
|
@@ -81,6 +81,12 @@ every few hours.
|
|
|
81
81
|
|
|
82
82
|
https://gist.github.com/bloudermilk/6943858
|
|
83
83
|
|
|
84
|
+
## Thanks
|
|
85
|
+
|
|
86
|
+
This gem was developed during my open source time at [philosophie][philosophie].
|
|
87
|
+
|
|
88
|
+
[![philosophie][logo]][philosophie]
|
|
89
|
+
|
|
84
90
|
## Contributing
|
|
85
91
|
|
|
86
92
|
1. Fork it
|
|
@@ -89,9 +95,6 @@ https://gist.github.com/bloudermilk/6943858
|
|
|
89
95
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
90
96
|
5. Create new Pull Request
|
|
91
97
|
|
|
92
|
-
[earthporn]: http://reddit.com/r/EarthPorn
|
|
93
|
-
[awww]: http://reddit.com/r/awww
|
|
94
|
-
|
|
95
98
|
## License
|
|
96
99
|
|
|
97
100
|
Copyright (c) 2013 Brendan Loudermilk
|
|
@@ -116,3 +119,8 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
116
119
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
117
120
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
118
121
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
122
|
+
|
|
123
|
+
[earthporn]: http://reddit.com/r/EarthPorn
|
|
124
|
+
[awww]: http://reddit.com/r/awww
|
|
125
|
+
[philosophie]: http://gophilosophie.com
|
|
126
|
+
[logo]: http://patbenatar.github.io/showoff/images/philosophie.png
|
|
@@ -13,7 +13,7 @@ module RedditImageDownloader
|
|
|
13
13
|
|
|
14
14
|
reader << download.body
|
|
15
15
|
|
|
16
|
-
if reader.width
|
|
16
|
+
if reader.width >= options[:min_width] && reader.height >= options[:min_height]
|
|
17
17
|
filename = "#{listing["id"]}.#{reader.type}"
|
|
18
18
|
destination = File.join(options[:destination], filename)
|
|
19
19
|
|
|
@@ -7,11 +7,15 @@ Gem::Specification.new do |spec|
|
|
|
7
7
|
spec.name = "reddit_image_downloader"
|
|
8
8
|
spec.version = RedditImageDownloader::VERSION
|
|
9
9
|
spec.authors = ["Brendan Loudermilk"]
|
|
10
|
-
spec.email = ["
|
|
11
|
-
spec.
|
|
12
|
-
spec.summary = %q{Download images from Reddit}
|
|
10
|
+
spec.email = ["bloudermilk@gmail.com"]
|
|
11
|
+
spec.summary = %q{Command line tool to download images from Reddit}
|
|
13
12
|
spec.homepage = "https://github.com/bloudermilk/reddit_image_downloader"
|
|
14
13
|
spec.license = "MIT"
|
|
14
|
+
spec.description = <<-EOF
|
|
15
|
+
Reddit Image Downloader is a command line tool for downloading images from
|
|
16
|
+
Reddit. Users can specify one or more subreddits, minimum dimensions, a
|
|
17
|
+
destination path, and a maximum age for images.
|
|
18
|
+
EOF
|
|
15
19
|
|
|
16
20
|
spec.files = `git ls-files`.split($/)
|
|
17
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: reddit_image_downloader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Brendan Loudermilk
|
|
@@ -107,9 +107,11 @@ dependencies:
|
|
|
107
107
|
- !ruby/object:Gem::Version
|
|
108
108
|
version: 1.2.0
|
|
109
109
|
none: false
|
|
110
|
-
description:
|
|
110
|
+
description: ! " Reddit Image Downloader is a command line tool for downloading
|
|
111
|
+
images from\n Reddit. Users can specify one or more subreddits, minimum dimensions,
|
|
112
|
+
a\n destination path, and a maximum age for images.\n"
|
|
111
113
|
email:
|
|
112
|
-
-
|
|
114
|
+
- bloudermilk@gmail.com
|
|
113
115
|
executables:
|
|
114
116
|
- reddit_image_downloader
|
|
115
117
|
extensions: []
|
|
@@ -151,5 +153,5 @@ rubyforge_project:
|
|
|
151
153
|
rubygems_version: 1.8.25
|
|
152
154
|
signing_key:
|
|
153
155
|
specification_version: 3
|
|
154
|
-
summary:
|
|
156
|
+
summary: Command line tool to download images from Reddit
|
|
155
157
|
test_files: []
|