descartes 0.6.1.4 → 0.6.2

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: ec09cd223c181da83ba78f62402c9b94db1cd531
4
- data.tar.gz: 274d9455c72ae1e2d07c43d5da3147757fa9d81e
3
+ metadata.gz: 63533c99efd2b6597df7d210483428264ba25a10
4
+ data.tar.gz: ee933aca019c00efb33a281ad594922d122ea123
5
5
  SHA512:
6
- metadata.gz: 2f3a3c6b70d9f3c20dc6d2a5016cbfd71d3b36584915d3ec9466170ef6dd84cd08a9864ae8cec248d66c5e7cb5e605afd56dbe3ecb3e9b30636de6104aa385f7
7
- data.tar.gz: 60ba684310ca5848ba8673e05938ce972a98b49360c18b1909c1d3d6e66868a68ea014a705627f0af513fade956f1092349f7f9e2798dc7c4c3d06415f4ac513
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,#chan3', 'target channels' do |channels|
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 password', 'target channel\'s password' do |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]
@@ -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
- require plugin
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|
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.6.1.4'
17
+ '0.6.2'
18
18
  end
19
19
  end
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.1.4
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-04 00:00:00.000000000 Z
11
+ date: 2014-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cinch