Permalink
Browse files

make into a gem

  • Loading branch information...
1 parent 859bef3 commit b46c59519ebcae42e3bc0e1c3ce78e898f053b32 @DerGuteMoritz DerGuteMoritz committed Sep 30, 2010
Showing with 78 additions and 4 deletions.
  1. +3 −0 .document
  2. +4 −3 Rakefile
  3. +18 −0 Rakefile.jeweler
  4. +1 −1 VERSION
  5. +52 −0 lofis.gemspec
View
@@ -0,0 +1,3 @@
+README.markdown
+lofis.yml
+lib/**/*.rb
View
@@ -1,6 +1,9 @@
require 'yaml'
require 'pathname'
$KCODE = 'UTF8'
+root = Pathname.new(__FILE__).dirname
+
+load root.join('Rakefile.jeweler')
class String
def to_yaml( opts = {} )
@@ -23,8 +26,6 @@ task :default => :compile
desc 'compile multiple lofis files into one'
task :compile, :files do |t, args|
- root = Pathname.new(__FILE__).dirname
-
files = if args.files
Dir[args.files]
else
@@ -57,7 +58,7 @@ task :compile, :files do |t, args|
puts "writing lofis.yml"
root.join('lofis.yml').open('w') do |f|
- f.puts "# #{File.read('VERSION')} "
+ f.puts "# Lofis version #{File.read('VERSION')} "
f.puts "# compiled at #{Time.now.utc}"
f.puts "# "
f.puts "# included files:"
View
@@ -0,0 +1,18 @@
+require 'rubygems'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "lofis"
+ gem.summary = %Q{Lexicographical order for international sorting}
+ gem.description = %Q{Lofis is a small helper to fix lexicographical order for international sorting.}
+ gem.email = "moritz.heidkamp@bevuta.com"
+ gem.homepage = "http://github.com/wingfire/lofis"
+ gem.authors = ["Christof Spies", "Moritz Heidkamp"]
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+end
View
@@ -1 +1 @@
-version 0.1
+0.0.1
View
@@ -0,0 +1,52 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{lofis}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Christof Spies", "Moritz Heidkamp"]
+ s.date = %q{2010-09-30}
+ s.description = %q{Lofis is a small helper to fix lexicographical order for international sorting.}
+ s.email = %q{moritz.heidkamp@bevuta.com}
+ s.extra_rdoc_files = [
+ "README.markdown"
+ ]
+ s.files = [
+ "README.markdown",
+ "Rakefile",
+ "VERSION",
+ "lib/lofis.rb",
+ "lofis.yml",
+ "source/czech_slovak_slovenian.yml",
+ "source/french.yml",
+ "source/german.yml",
+ "source/greek.yml",
+ "source/hawaiian.yml",
+ "source/italian.yml",
+ "source/polish.yml",
+ "source/romanian.yml",
+ "source/russian.yml",
+ "source/spanish.yml",
+ "source/turkish.yml"
+ ]
+ s.homepage = %q{http://github.com/wingfire/lofis}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = %q{Lexicographical order for international sorting}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end
+

0 comments on commit b46c595

Please sign in to comment.