Permalink
Browse files

Introduce jeweler.

  • Loading branch information...
1 parent 6505f18 commit 1fb22c27a998319ddbe4e4fc70683ac098833b68 @knu knu committed Jun 8, 2009
Showing with 149 additions and 17 deletions.
  1. +5 −0 .document
  2. +5 −0 .gitignore
  3. +4 −0 LICENSE
  4. +7 −0 README.rdoc
  5. +62 −0 Rakefile
  6. +1 −0 VERSION
  7. +50 −17 friendfeed.gemspec
  8. +6 −0 test/friendfeed_test.rb
  9. +9 −0 test/test_helper.rb
View
5 .document
@@ -0,0 +1,5 @@
+README.rdoc
+lib/**/*.rb
+bin/*
+features/**/*.feature
+LICENSE
View
5 .gitignore
@@ -0,0 +1,5 @@
+*.sw?
+.DS_Store
+coverage
+rdoc
+pkg
View
4 LICENSE
@@ -0,0 +1,4 @@
+Copyright (c) 2009 Akinori MUSHA
+
+All rights reserved. You can redistribute and/or modify it under the
+same terms as Ruby.
View
7 README.rdoc
@@ -0,0 +1,7 @@
+= ruby-friendfeed
+
+This is a Ruby library to provide access to FriendFeed API's.
+
+== Copyright
+
+Copyright (c) 2009 Akinori MUSHA. See LICENSE for details.
View
62 Rakefile
@@ -0,0 +1,62 @@
+require 'rubygems'
+require 'rake'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "friendfeed"
+ gem.summary = %Q{A Ruby library to provide access to FriendFeed API's}
+ gem.description = <<-EOS
+This is a Ruby library to provide access to FriendFeed API's.
+
+It implements official API's as well as unofficial API's to allow
+manipulating friends, groups and services for your personal purposes.
+ EOS
+ gem.email = "knu@idaemons.org"
+ gem.homepage = "http://github.com/knu/ruby-friendfeed"
+ gem.authors = ["Akinori MUSHA"]
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/*_test.rb'
+ test.verbose = true
+ end
+rescue LoadError
+ task :rcov do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
+end
+
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ if File.exist?('VERSION.yml')
+ config = YAML.load(File.read('VERSION.yml'))
+ version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
+ else
+ version = ""
+ end
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "friendfeed #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
View
1 VERSION
@@ -0,0 +1 @@
+0.1.3
View
67 friendfeed.gemspec
@@ -1,23 +1,56 @@
+# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
- s.specification_version = 2
- s.name = "friendfeed"
+ s.name = %q{friendfeed}
s.version = "0.1.3"
- s.required_rubygems_version = Gem::Requirement.new(">= 0")
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Akinori MUSHA"]
- s.date = %q{2009-05-18}
- s.summary = "A Ruby module that provides access to FriendFeed API's."
- s.description = s.summary
- s.email = "knu@idaemons.org"
- s.homepage = %q{http://github.com/knu/ruby-friendfeed}
- s.files = %w[
- lib/friendfeed.rb
- lib/friendfeed/compat.rb
- lib/friendfeed/unofficial.rb
- bin/tw2ff
+ s.date = %q{2009-06-08}
+ s.default_executable = %q{tw2ff}
+ s.description = %q{This is a Ruby library to provide access to FriendFeed API's.
+
+It implements official API's as well as unofficial API's to allow
+manipulating friends, groups and services for your personal purposes.
+}
+ s.email = %q{knu@idaemons.org}
+ s.executables = ["tw2ff"]
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README.rdoc"
+ ]
+ s.files = [
+ ".document",
+ ".gitignore",
+ "LICENSE",
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "bin/tw2ff",
+ "friendfeed.gemspec",
+ "lib/friendfeed.rb",
+ "lib/friendfeed/compat.rb",
+ "lib/friendfeed/unofficial.rb",
+ "test/friendfeed_test.rb",
+ "test/test_helper.rb"
]
+ s.homepage = %q{http://github.com/knu/ruby-friendfeed}
+ s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
- s.executables = ["tw2ff"]
- s.has_rdoc = true
- s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
- s.rubyforge_project = "friendfeed"
+ s.rubygems_version = %q{1.3.4}
+ s.summary = %q{A Ruby library to provide access to FriendFeed API's}
+ s.test_files = [
+ "test/test_helper.rb",
+ "test/friendfeed_test.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
end
View
6 test/friendfeed_test.rb
@@ -0,0 +1,6 @@
+require 'test_helper'
+
+class FriendFeedTest < Test::Unit::TestCase
+ def test_dummy
+ end
+end
View
9 test/test_helper.rb
@@ -0,0 +1,9 @@
+require 'rubygems'
+require 'test/unit'
+
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'friendfeed'
+
+class Test::Unit::TestCase
+end

0 comments on commit 1fb22c2

Please sign in to comment.