Skip to content

Commit

Permalink
Introduce jeweler.
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Jun 8, 2009
1 parent 6505f18 commit 1fb22c2
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .document
@@ -0,0 +1,5 @@
README.rdoc
lib/**/*.rb
bin/*
features/**/*.feature
LICENSE
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
*.sw?
.DS_Store
coverage
rdoc
pkg
4 changes: 4 additions & 0 deletions 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.
7 changes: 7 additions & 0 deletions 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.
62 changes: 62 additions & 0 deletions 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

1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
0.1.3
67 changes: 50 additions & 17 deletions 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
6 changes: 6 additions & 0 deletions test/friendfeed_test.rb
@@ -0,0 +1,6 @@
require 'test_helper'

class FriendFeedTest < Test::Unit::TestCase
def test_dummy
end
end
9 changes: 9 additions & 0 deletions 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.