autoaudio 0.0.2 → 0.0.3

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: 6397593ce6dee328f61aef1f0eee1e4f94c67f07
4
- data.tar.gz: 03c18147f88a255e2f915ec3241a6b4141e2b602
3
+ metadata.gz: cec5b85de4f30b18b7eade498b1461f5c9c15747
4
+ data.tar.gz: 369e5d5c2b9b3b0a1d28efb3662390ec1b5b35db
5
5
  SHA512:
6
- metadata.gz: 2150faae00c537fd69d5296e4a9fc2b2df2aa09cf7637acf96c1a9982aec2b075ab9cf8e3b468809d4f07370524e3dd90ab7dbf3fcde2363e7daa5763afdcea1
7
- data.tar.gz: 75e1e9fd3085119ae9c5efc54ab25f289370cf25f702ed1e7df6b4807070e9c96347e37a106bfc4fe13e537d78113ebd739f8207d306cf52706467bfbe956bb0
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
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- gem 'autoaudio'
12
-
13
- And then execute:
7
+ ![alt text](https://raw.github.com/GeneLocklin/autoaudio/master/etc/aa.jpg "Autoaudio")
14
8
 
15
- $ bundle
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 display_configuration_settings` Displays application configuration settings
28
- * `autoaudio make_feeds` Downloads all feeds into the database
29
- * `autoaudio display_feeds` Displays all feeds
30
- * `autoaudio destroy_feeds` Destroys all feeds
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
@@ -14,7 +14,7 @@ require 'autoaudio/download'
14
14
 
15
15
  module Autoaudio
16
16
  extend self
17
- Mongoid.load!("config/mongoid.yml", :development)
17
+ Mongoid.load!("./config/mongoid.yml", :development)
18
18
  end
19
19
 
20
20
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Autoaudio
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-17 00:00:00.000000000 Z
11
+ date: 2014-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize