SnoobyPlus 0.2 → 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.
- data/lib/snoobyplus.rb +3 -2
- metadata +20 -38
data/lib/snoobyplus.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
%w[json net/http/persistent].each { |dep| require dep }
|
|
2
2
|
|
|
3
|
-
CONFIG_FILE = '.
|
|
3
|
+
CONFIG_FILE = '.snoobyplus/config.json'
|
|
4
4
|
|
|
5
5
|
# Creates and initializes configuration and caching on a per-directory basis.
|
|
6
6
|
# Doesn't update if they already exist, but this might need to be fleshed out
|
|
7
7
|
# a bit in future to merge values to be kept with new defaults in upgrades.
|
|
8
8
|
unless File.exists? CONFIG_FILE
|
|
9
|
-
|
|
9
|
+
puts "DataDir = #{$GEM_PATH}"
|
|
10
|
+
DEFAULT_CONFIG = File.join((Gem.datadir('snoobyslus') ? Gem.datadir('snoobyplus') : RbConfig.datadir('snoobyplus')), 'config.json')
|
|
10
11
|
%w[.snooby .snooby/cache].each { |dir| Dir.mkdir dir }
|
|
11
12
|
File.open(CONFIG_FILE, 'w') { |file| file << File.read(DEFAULT_CONFIG) }
|
|
12
13
|
end
|
metadata
CHANGED
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: SnoobyPlus
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: '0.3'
|
|
5
5
|
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 0
|
|
8
|
-
- 2
|
|
9
|
-
version: "0.2"
|
|
10
6
|
platform: ruby
|
|
11
|
-
authors:
|
|
7
|
+
authors:
|
|
12
8
|
- King Bowser
|
|
13
9
|
- andkerosine
|
|
14
10
|
autorequire:
|
|
15
11
|
bindir: bin
|
|
16
12
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
date: 2013-08-05 00:00:00 Z
|
|
13
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
|
19
14
|
dependencies: []
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
description: All the features of Snooby, along with TopRisingNewControversial list
|
|
16
|
+
grabbing.
|
|
22
17
|
email: backseat.rapist@gmail.com
|
|
23
18
|
executables: []
|
|
24
|
-
|
|
25
19
|
extensions: []
|
|
26
|
-
|
|
27
20
|
extra_rdoc_files: []
|
|
28
|
-
|
|
29
|
-
files:
|
|
21
|
+
files:
|
|
30
22
|
- lib/snoobyplus.rb
|
|
31
23
|
- lib/snooby/actions.rb
|
|
32
24
|
- lib/snooby/client.rb
|
|
@@ -36,36 +28,26 @@ files:
|
|
|
36
28
|
- lib/snooby/user.rb
|
|
37
29
|
homepage: https://github.com/KingBowser/snooby
|
|
38
30
|
licenses: []
|
|
39
|
-
|
|
40
31
|
post_install_message:
|
|
41
32
|
rdoc_options: []
|
|
42
|
-
|
|
43
|
-
require_paths:
|
|
33
|
+
require_paths:
|
|
44
34
|
- lib
|
|
45
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
46
36
|
none: false
|
|
47
|
-
requirements:
|
|
48
|
-
- -
|
|
49
|
-
- !ruby/object:Gem::Version
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- 0
|
|
53
|
-
version: "0"
|
|
54
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ! '>='
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
42
|
none: false
|
|
56
|
-
requirements:
|
|
57
|
-
- -
|
|
58
|
-
- !ruby/object:Gem::Version
|
|
59
|
-
|
|
60
|
-
segments:
|
|
61
|
-
- 0
|
|
62
|
-
version: "0"
|
|
43
|
+
requirements:
|
|
44
|
+
- - ! '>='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
63
47
|
requirements: []
|
|
64
|
-
|
|
65
48
|
rubyforge_project:
|
|
66
|
-
rubygems_version: 1.8.
|
|
49
|
+
rubygems_version: 1.8.25
|
|
67
50
|
signing_key:
|
|
68
51
|
specification_version: 3
|
|
69
52
|
summary: All the features of Snooby, along with TopRisingNewControversial list grabbing.
|
|
70
53
|
test_files: []
|
|
71
|
-
|