Permalink
Browse files

rubybuntu-gedit

  • Loading branch information...
0 parents commit 9c4d596a79fb89ca30cb0375fe3c4ce8f25e17aa @janlelis committed Aug 18, 2011
Showing with 64 additions and 0 deletions.
  1. +20 −0 README.rdoc
  2. +28 −0 Rakefile
  3. +16 −0 rubybuntu-gedit.gemspec
20 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
28 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
16 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

0 comments on commit 9c4d596

Please sign in to comment.