descartes 0.6.1.4 → 0.6.2
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/bin/descartes +8 -3
- data/lib/descartes/descartes.rb +2 -1
- data/lib/descartes/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: 63533c99efd2b6597df7d210483428264ba25a10
|
|
4
|
+
data.tar.gz: ee933aca019c00efb33a281ad594922d122ea123
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 494544434c88e3dee61236a81ccf314597f3027532c2e9338220db388b8444ee03a4940917c71f0c33aa83ba4a5521a2b4de9a8d8ec0d299fa7281d95b140c85
|
|
7
|
+
data.tar.gz: f4d7a53a27ca0dacba30f2255ed4662658f5167c2c8d507b34cbff551e48328982027727b29654415008049545ff6ab5dd671b36b3121073a6ea957953a91134
|
data/bin/descartes
CHANGED
|
@@ -23,7 +23,8 @@ options = {
|
|
|
23
23
|
:server => 'irc.rizon.net',
|
|
24
24
|
:channels => ['#aggvistnurummor'],
|
|
25
25
|
:dotfiles => File.join(ENV['HOME'], '.descartes'),
|
|
26
|
-
:password => 'dat_password'
|
|
26
|
+
:password => 'dat_password',
|
|
27
|
+
:exclude => []
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
OptionParser.new { |o|
|
|
@@ -35,7 +36,7 @@ OptionParser.new { |o|
|
|
|
35
36
|
options[:server] = server
|
|
36
37
|
end
|
|
37
38
|
|
|
38
|
-
o.on '-c', '--channel #chan1,#chan2
|
|
39
|
+
o.on '-c', '--channel #chan1,#chan2', 'target channels' do |channels|
|
|
39
40
|
options[:channels] = channels.split(?,).map { |s| s.strip }
|
|
40
41
|
end
|
|
41
42
|
|
|
@@ -43,9 +44,13 @@ OptionParser.new { |o|
|
|
|
43
44
|
options[:dotfiles] = dotfiles
|
|
44
45
|
end
|
|
45
46
|
|
|
46
|
-
o.on '-p', '--password
|
|
47
|
+
o.on '-p', '--password PASSWORD', 'target channel\'s password' do |password|
|
|
47
48
|
options[:password] = password
|
|
48
49
|
end
|
|
50
|
+
|
|
51
|
+
o.on '-e', '--exclude module1,module2', 'exclude modules' do |exclude|
|
|
52
|
+
options[:exclude] = exclude.split(?,).map { |s| s.strip.downcase }
|
|
53
|
+
end
|
|
49
54
|
}.parse!
|
|
50
55
|
|
|
51
56
|
unless File.directory? options[:dotfiles]
|
data/lib/descartes/descartes.rb
CHANGED
|
@@ -17,7 +17,8 @@ class Descartes
|
|
|
17
17
|
$options = options
|
|
18
18
|
|
|
19
19
|
Dir.glob(File.expand_path('../modules/*.rb', __FILE__)).each { |plugin|
|
|
20
|
-
|
|
20
|
+
name = plugin.split(?/).last.split(?.).first.downcase
|
|
21
|
+
require plugin unless $options[:exclude].include? name
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
return Descartes.constants.map { |p|
|
data/lib/descartes/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: descartes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Giovanni Capuano
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cinch
|