descartes 0.6.10 → 0.7

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: 9448458a5112d9dd22829f11d21582da29e46675
4
- data.tar.gz: cb6737ba656879a206243df676ebe7698699d51c
3
+ metadata.gz: 94b706f7f63fa2638de81f8afd10c139c5d80bd5
4
+ data.tar.gz: 741010619fd2fa3155c2fda45bfc5cc4ade699de
5
5
  SHA512:
6
- metadata.gz: cc74fa3e629dd5551d8ad6cf35aa01b2e44d46953bba1ddde8f3547c4e6ed7c689614c9d8b15f5de7778fc30b1d73ef8fa9c721f4ba3c2082a75324cc65bf36e
7
- data.tar.gz: 9a6b8d5568c7502f0f2474cd39ce7ede47656462930125dd245524d3c941f4dded5caa25a22ca1db0fdff8a7e3348786961b0f76c7889c409604fdbec86ca1a6
6
+ metadata.gz: 975b98926325769276de665f13eaf4aad6b9551ddb5177cd9735a61c73b7b25297a36fa5aa5df83fe03116553f2354345c3b78dbd39ab6f8041da04c80e85ae0
7
+ data.tar.gz: 8defccc7b299cd308e7fe618eb547a46dfdfeabd876c9288a3fa0aa5896fefe407547c831be337bed5d628e6e6211f74b082318bf28fcb5ccaaddd8832148d72
data/bin/descartes CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
  ##
4
3
  # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
5
4
  # Version 2, December 2004
@@ -53,10 +52,19 @@ OptionParser.new { |o|
53
52
  end
54
53
  }.parse!
55
54
 
56
- unless File.directory? options[:dotfiles]
57
- files = File.join File.dirname(__FILE__), '../lib/descartes/modules/files'
58
- FileUtils.cp_r files, options[:dotfiles]
59
- end
55
+ files = File.join File.dirname(__FILE__), '../lib/descartes/modules/files'
56
+ FileUtils.cp_r(files, options[:dotfiles]) unless File.directory? options[:dotfiles]
57
+
58
+ Dir["#{options[:dotfiles]}/**/*"].each { |file|
59
+ lib = Dir["#{files}/**/*"].select { |f| File.basename(f) == File.basename(file) }
60
+ next if lib.empty?
61
+ next unless lib.first.end_with? '.txt'
62
+
63
+ if File.read(lib.first) != File.read(file)
64
+ FileUtils.cp lib.first, options[:dotfiles]
65
+ puts "'#{file}' has been updated."
66
+ end
67
+ }
60
68
 
61
69
  Cinch::Bot.new {
62
70
  configure do |c|
@@ -1 +1 @@
1
- http://pigro.omnivium.it:4567
1
+ http://pigro.omnivium.it
@@ -24,7 +24,7 @@ Straordinario.
24
24
  Ma ovviamente.
25
25
  Dovresti metterti una tarantola in gola, scellerato.
26
26
  Ma un gran sticazzi, no eh?
27
- Stai un po' zitto.
27
+ Stai un po' zitto.
28
28
  Sei per caso RoxasShadow in incognito? Il faggometro ha segnato un picco.
29
29
  Figghiu i bottana
30
- Non contare su di me.
30
+ Non contare su di me.
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.6.10'
17
+ '0.7'
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: descartes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.10
4
+ version: '0.7'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano