autoaudio 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +10 -15
- data/lib/autoaudio.rb +1 -1
- data/lib/autoaudio/cli/application.rb +15 -5
- data/lib/autoaudio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec5b85de4f30b18b7eade498b1461f5c9c15747
|
4
|
+
data.tar.gz: 369e5d5c2b9b3b0a1d28efb3662390ec1b5b35db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c19f6ac9800dbc959f8809c5b03da6baa1e216406cb24fad5dc8d0899c10df7b612947997ed20ec261bd13ce14037a095e115e34ea41d868cd66e21bd6a17b54
|
7
|
+
data.tar.gz: 925c4642159d6ab1a7228f62b59027d017a67fa70bbc81a602d7514e99ecfba23e2c11960e176bd80096d7830332a1912f7ee6436b076063ff3ec5e4e7429003
|
data/README.md
CHANGED
@@ -4,17 +4,9 @@ Autoaudio parses [http://nfodb.net.ru/rss.php](http://nfodb.net.ru/rss.php) for
|
|
4
4
|
|
5
5
|
Releases are sorted by genre and album title and folders are created which hold `.nfo` and `.nzb` files for each release. A zip is created of each folder and is uploaded to [https://anonfiles.com/](https://anonfiles.com/). The resulting list is uploaded as an anonymous gist. A file called `download.thor`, which is a tiny robot that parses the anonymous gist and redownloads the files from [https://anonfiles.com/](https://anonfiles.com/), is uploaded with the album links. Finally, the gist url is tweeted.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
gem 'autoaudio'
|
12
|
-
|
13
|
-
And then execute:
|
7
|
+

|
14
8
|
|
15
|
-
|
16
|
-
|
17
|
-
Or install it yourself as:
|
9
|
+
## Installation
|
18
10
|
|
19
11
|
$ gem install autoaudio
|
20
12
|
|
@@ -24,16 +16,17 @@ Setings can be found in `/lib/autoaudio/settings.rb`. `NZB_DOWNLOAD_LOCATION` is
|
|
24
16
|
|
25
17
|
Autoaudio has a set of terminal commands:
|
26
18
|
|
27
|
-
* `autoaudio
|
28
|
-
* `autoaudio
|
29
|
-
* `autoaudio
|
30
|
-
* `autoaudio
|
19
|
+
* `autoaudio setup` Opens the config file in your editor of choice.
|
20
|
+
* `autoaudio display_configuration_settings` Displays application configuration settings.
|
21
|
+
* `autoaudio make_feeds` Downloads all feeds into the database.
|
22
|
+
* `autoaudio display_feeds` Displays all feeds.
|
31
23
|
* `autoaudio download` Downloads all feeds, creates `.nzb` and `.nfo` files, zips and uploads to [https://anonfiles.com/](https://anonfiles.com/), creates a list of upload urls and tweets an the url of anonymous gist containing the upload urls.
|
32
|
-
* `autoaudio download_genre GENRE` This command will open a single genre's `.nzb` files in your chosen newsreader, and update the database to reflect the change.
|
24
|
+
* `autoaudio download_genre GENRE` <- Where GENRE is your chosen genre. This command will open a single genre's `.nzb` files in your chosen newsreader, and update the database to reflect the change.
|
33
25
|
|
34
26
|
If you wish to tweet your results, you will need to install and set up [t](https://github.com/sferik/t). Autoaudio will automatically set your Twitter username, before tweeting.
|
35
27
|
|
36
28
|
## Gems Used
|
29
|
+
|
37
30
|
* [mongoid](https://github.com/mongoid/mongoid)
|
38
31
|
* [mechanize](https://github.com/sparklemotion/mechanize/)
|
39
32
|
* [gist](https://github.com/defunkt/gist)
|
@@ -42,7 +35,9 @@ If you wish to tweet your results, you will need to install and set up [t](https
|
|
42
35
|
|
43
36
|
## To do:
|
44
37
|
|
38
|
+
* help
|
45
39
|
* write a more understandable readme
|
40
|
+
* add more thor commands as well as more descriptions
|
46
41
|
* clean up the code - at the moment, it's a huge ball of crap
|
47
42
|
* error handling
|
48
43
|
* multithreading
|
data/lib/autoaudio.rb
CHANGED
@@ -4,6 +4,11 @@ module Autoaudio
|
|
4
4
|
module Cli
|
5
5
|
class Application < Thor
|
6
6
|
|
7
|
+
desc 'setup', 'Opens the application settings'
|
8
|
+
def setup
|
9
|
+
system("open #{File.expand_path("../../settings.rb", __FILE__)}")
|
10
|
+
end
|
11
|
+
|
7
12
|
desc 'display_configuration_settings', 'Displays the application configuration settings'
|
8
13
|
def display_configuration_settings
|
9
14
|
puts "Autoaudio::VERSION = #{Autoaudio::VERSION}"
|
@@ -19,16 +24,21 @@ module Autoaudio
|
|
19
24
|
Feed.make
|
20
25
|
end
|
21
26
|
|
27
|
+
desc 'destroy_feeds', 'Destroy all feeds'
|
28
|
+
def destroy_feeds
|
29
|
+
Feed.destroy_all
|
30
|
+
end
|
31
|
+
|
32
|
+
desc 'count_feeds', 'Count all feeds'
|
33
|
+
def count_feeds
|
34
|
+
Feed.count
|
35
|
+
end
|
36
|
+
|
22
37
|
desc 'display_feeds', 'Display all feeds'
|
23
38
|
def display_feeds
|
24
39
|
Feed.each { |f| pp f }
|
25
40
|
end
|
26
41
|
|
27
|
-
desc 'destroy_feeds', 'Destroy all feeds'
|
28
|
-
def destroy_feeds
|
29
|
-
Feed.each { |f| f.destroy }
|
30
|
-
end
|
31
|
-
|
32
42
|
desc 'download', 'Downloads all feeds'
|
33
43
|
def download
|
34
44
|
Feed.make
|
data/lib/autoaudio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoaudio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene Locklin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|