librex 0.0.23 → 0.0.25

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.
Files changed (2) hide show
  1. data/Rakefile +11 -6
  2. metadata +1 -1
data/Rakefile CHANGED
@@ -16,11 +16,11 @@ end
16
16
 
17
17
  task :update do
18
18
  puts "[*] Removing old rex code"
19
- system "git rm lib/rex.rb"
20
- system "git rm lib/rex.rb.ts.rb"
21
- system "git rm -rf lib/"
22
- system "rm -rf lib/" #So there is a cvs file in the msf stuff that breaks things
23
- system "mkdir lib"
19
+ system "git rm lib/rex.rb > /dev/null"
20
+ system "git rm lib/rex.rb.ts.rb > /dev/null"
21
+ system "git rm -rf lib/ > /dev/null"
22
+ system "rm -rf lib/ > /dev/null" #So there is a cvs file in the msf stuff that breaks things
23
+ system "mkdir lib > /dev/null"
24
24
 
25
25
  puts "[*] Checking out Metasploit trunk"
26
26
  results = `svn co https://www.metasploit.com/svn/framework3/trunk/ /tmp/msftmp`
@@ -32,12 +32,14 @@ task :update do
32
32
  system "mv /tmp/msftmp/lib/rex.rb lib/"
33
33
  system "mv /tmp/msftmp/lib/rex.rb.ts.rb lib/"
34
34
  system "mv /tmp/msftmp/lib/rex/ lib/"
35
- system "find . -iname '.svn' -exec rm -rf {} \\;"
35
+ system "find . -iname '.svn' -exec rm -rf {} \\; > /dev/null"
36
36
  system "git add lib/"
37
37
 
38
38
  puts "[*] Cleaning up tmp files"
39
39
  system "rm -rf /tmp/msftmp"
40
40
 
41
+ version = ""
42
+
41
43
  puts "[*] Updating librex.gemspec with new Version and Revision Number"
42
44
  File.open("librex.gemspec.1", "w+") do |output|
43
45
  File.open("librex.gemspec", "r") do |input|
@@ -84,4 +86,7 @@ task :update do
84
86
  system "git commit -a -m \"Updated for Revision #{rev[1]}\""
85
87
  puts "Commiting and Pushing Updates for Revision #{rev[1]}"
86
88
  system "git push"
89
+
90
+ #Twitter tweet for the update, I am that lazy yes.
91
+ puts "Updated librex to v#{version} based on SVN Revision: #{rev[1]} of the Metasploit rex library. Available in rubygems."
87
92
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: librex
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.23
5
+ version: 0.0.25
6
6
  platform: ruby
7
7
  authors:
8
8
  - Metasploit Development Team