Permalink
Browse files

Gemify

  • Loading branch information...
1 parent 7610108 commit 9fd8befdcd0c9fdec0c400f4d3fb18c3bfeac471 Kyle Kingsbury committed Jul 27, 2012
Showing with 65 additions and 0 deletions.
  1. +7 −0 LICENSE
  2. 0 README → README.markdown
  3. +53 −0 Rakefile.rb
  4. +2 −0 lib/salticid.rb
  5. +3 −0 lib/salticid/version.rb
View
7 LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2012 Kyle Kingsbury
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
0 README → README.markdown
File renamed without changes.
View
53 Rakefile.rb
@@ -0,0 +1,53 @@
+$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
+
+require 'rubygems'
+require 'rake/gempackagetask'
+require 'rake/rdoctask'
+require 'salticid/version'
+require 'find'
+
+# Don't include resource forks in tarballs on Mac OS X.
+ENV['COPY_EXTENDED_ATTRIBUTES_DISABLE'] = 'true'
+ENV['COPYFILE_DISABLE'] = 'true'
+
+# Gemspec
+gemspec = Gem::Specification.new do |s|
+ s.name = 'salticid'
+ s.version = Salticid::VERSION
+ s.author = 'Kyle Kingsbury'
+ s.email = 'aphyr@aphyr.com'
+ s.homepage = 'https://github.com/aphyr/salticid'
+ s.platform = Gem::Platform::RUBY
+ s.summary = 'Run commands over SSH, with Ruby magic.'
+
+ s.files = FileList['{lib}/**/*', 'LICENSE', 'README.markdown'].to_a
+ s.executables = []
+ s.require_path = 'lib'
+ s.has_rdoc = true
+
+ s.required_ruby_version = '>= 1.8.7'
+
+ s.add_dependency('trollop', '~> 1.16.2')
+ s.add_dependency('net-scp', '~> 1.0.4')
+ s.add_dependency('net-ssh', '~> 2.5.2')
+ s.add_dependency('net-ssh-gateway', '~> 1.1.0')
+ s.add_dependency('net-ssh-multi', '~> 1.1')
+ s.add_dependency('ncurses', '~> 0.9.1')
+end
+
+Rake::GemPackageTask.new(gemspec) do |p|
+ p.need_tar_gz = true
+end
+
+Rake::RDocTask.new do |rd|
+ rd.main = 'Risky'
+ rd.title = 'Risky'
+ rd.rdoc_dir = 'doc'
+
+ rd.rdoc_files.include('lib/**/*.rb')
+end
+
+desc "install Risky"
+task :install => :gem do
+ sh "gem install #{File.dirname(__FILE__)}/pkg/risky-#{Risky::VERSION}.gem"
+end
View
2 lib/salticid.rb
@@ -5,6 +5,8 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'salticid/version'
+
class Salticid
def self.log(str)
File.open('salticid.log', 'a') do |f|
View
3 lib/salticid/version.rb
@@ -0,0 +1,3 @@
+class Salticid
+ VERSION = "0.9.0"
+end

0 comments on commit 9fd8bef

Please sign in to comment.