From 9c4d596a79fb89ca30cb0375fe3c4ce8f25e17aa Mon Sep 17 00:00:00 2001 From: Jan Lelis Date: Thu, 18 Aug 2011 17:20:18 +0200 Subject: [PATCH] rubybuntu-gedit --- README.rdoc | 20 ++++++++++++++++++++ Rakefile | 28 ++++++++++++++++++++++++++++ rubybuntu-gedit.gemspec | 16 ++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 README.rdoc create mode 100644 Rakefile create mode 100644 rubybuntu-gedit.gemspec diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..73360ac --- /dev/null +++ b/README.rdoc @@ -0,0 +1,20 @@ += Ruby/Rails/Web related gedit language definitions, mime types, styles and snippets. + +This is not meant to be an alternative to *gedit-plugins* or gmate[https://github.com/gmate/gmate.git], but an addition. It focuses on maintaining the base stuff to provide a foundation for customizing your gedit with plugins. + +=== Contains +* {language specifications}[https://github.com/janlelis/rubybuntu-language-specs] +* {mime types}[https://github.com/janlelis/rubybuntu-mime] +* {styles}[https://github.com/janlelis/rubybuntu-editor-styles] +* [snippets}[https://github.com/janlelis/rubybuntu-snippets] + +Might also contain plugins someday, but only ones directly related to Ruby/Rails/Web stuff. + +== Setup + +Either checkout the sub-repositories (in the data directory) and install each one manually or run + + gem install rubybuntu-gedit + rubybuntu-gedit install + +== J-_-L diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..45dfe6e --- /dev/null +++ b/Rakefile @@ -0,0 +1,28 @@ +require 'fileutils' +GEMSPEC = 'rubybuntu-gedit.gemspec' + +def gemspec + @gemspec ||= eval(File.read( GEMSPEC ), binding, GEMSPEC) +end + +desc "Build the gem" +task :gem => :gemspec do + sh "gem build #{GEMSPEC}" + FileUtils.mkdir_p 'pkg' + FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg' +end + +desc "Install the gem locally (without docs)" +task :install => :gem do + sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-rdoc --no-ri} +end + +desc "Generate the gemspec" +task :generate do + puts gemspec.to_ruby +end + +desc "Validate the gemspec" +task :gemspec do + gemspec.validate +end diff --git a/rubybuntu-gedit.gemspec b/rubybuntu-gedit.gemspec new file mode 100644 index 0000000..e38c5bf --- /dev/null +++ b/rubybuntu-gedit.gemspec @@ -0,0 +1,16 @@ +# encoding: utf-8 +require 'rubygems' unless defined? Gem + +Gem::Specification.new do |s| + s.name = "rubybuntu-gedit" + s.version = Date.today.strftime("%y.%m.%d") + s.authors = ["Jan Lelis"] + s.email = "mail@janlelis.de" + s.homepage = "https://github.com/janlelis/rubybuntu-gedit" + s.summary = "Ruby/Web devoloper's gedit" + s.description = "Ruby/Rails/Web related gedit language definitions, mime types, styles and snippets." + + s.files = Dir.glob(%w|bin/* [A-Z]*.{txt,rdoc} data/**/*|) + %w|Rakefile rubybuntu-gedit.gemspec| + s.executables = Dir['bin/*'].map{|f| File.basename f } + s.license = "GPL" +end