Permalink
Browse files

fix building

  • Loading branch information...
1 parent 7de7e08 commit 4a1315b6f2856f1a25f2385119e974bb0f223084 @jweiss jweiss committed Aug 23, 2011
Showing with 92 additions and 61 deletions.
  1. +8 −0 CHANGELOG.md
  2. +9 −2 Gemfile
  3. +36 −29 Rakefile
  4. +34 −29 happening.gemspec
  5. +5 −1 lib/happening.rb
View
@@ -1,6 +1,14 @@
Changelog
=============
+0.2.5
+
+- fix building
+
+0.2.3
+
+- yank older version
+
0.2.2
- Refactor version and build code
View
11 Gemfile
@@ -1,2 +1,9 @@
-source :rubygems
-gemspec
+source "http://rubygems.org"
+gem "em-http-request"
+
+group :development do
+ gem "shoulda", ">= 0"
+ gem "bundler", "~> 1.0.0"
+ gem "jeweler", "~> 1.6.4"
+ gem "mocha"
+end
View
@@ -1,40 +1,47 @@
+# encoding: utf-8
+
+require 'rubygems'
+require 'bundler'
+begin
+ Bundler.setup(:default, :development)
+rescue Bundler::BundlerError => e
+ $stderr.puts e.message
+ $stderr.puts "Run `bundle install` to install missing gems"
+ exit e.status_code
+end
require 'rake'
-require 'rake/testtask'
-task :default => [:test]
+require 'jeweler'
+require File.expand_path("./lib/happening")
+Jeweler::Tasks.new do |gem|
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
+ gem.name = "happening"
+ gem.homepage = "http://github.com/peritor/happening"
+ gem.license = "BSD"
+ gem.summary = %Q{An EventMachine based S3 client }
+ gem.description = %Q{An EventMachine based S3 client }
+ gem.email = "jw@innerewut.de"
+ gem.authors = ["Jonathan Weiss"]
+ gem.version = Happening::VERSION
+ # dependencies defined in Gemfile
+end
+Jeweler::RubygemsDotOrgTasks.new
+require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.pattern = "test/**/*_test.rb"
t.verbose = true
end
-def source_version
- line = File.read("lib/#{name.gsub(/-/, "/")}.rb")[/^\s*VERSION\s*=\s*.*/]
- line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
-end
+task :default => :test
-def name
- 'happening'
-end
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = "happening"
- s.summary = %Q{An EventMachine based S3 client }
- s.email = "info@peritor.com"
- s.homepage = "http://github.com/peritor/happening"
- s.description = "An EventMachine based S3 client - using em-http-request"
- s.authors = ["Jonathan Weiss"]
- s.files = FileList["[A-Z]*.*", "{lib}/**/*"] - ["Gemfile.lock"]
- s.add_dependency('em-http-request')
- s.add_development_dependency('jeweler')
- s.add_development_dependency('shoulda')
- s.add_development_dependency('mocha')
- s.version = source_version
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler not available. Install it with: [sudo] gem install jeweler"
-end
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "hello-gem #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
View
@@ -1,64 +1,69 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{happening}
- s.version = "0.2.0"
+ s.version = "0.2.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Jonathan Weiss"]
- s.date = %q{2011-05-20}
- s.description = %q{An EventMachine based S3 client - using em-http-request}
- s.email = %q{info@peritor.com}
+ s.authors = [%q{Jonathan Weiss}]
+ s.date = %q{2011-08-23}
+ s.description = %q{An EventMachine based S3 client }
+ s.email = %q{jw@innerewut.de}
s.extra_rdoc_files = [
"LICENSE.txt",
- "README.md"
+ "README.md"
]
s.files = [
+ "CHANGELOG.md",
+ "Gemfile",
"LICENSE.txt",
- "README.md",
- "lib/happening.rb",
- "lib/happening/aws.rb",
- "lib/happening/log.rb",
- "lib/happening/s3.rb",
- "lib/happening/s3/item.rb",
- "lib/happening/s3/request.rb",
- "lib/happening/utils.rb"
+ "README.md",
+ "Rakefile",
+ "benchmark/right_aws.rb",
+ "happening.gemspec",
+ "lib/happening.rb",
+ "lib/happening/aws.rb",
+ "lib/happening/log.rb",
+ "lib/happening/s3.rb",
+ "lib/happening/s3/item.rb",
+ "lib/happening/s3/request.rb",
+ "lib/happening/utils.rb",
+ "test/aws_test.rb",
+ "test/s3/item_test.rb",
+ "test/s3/request_test.rb",
+ "test/s3_test.rb",
+ "test/test_helper.rb"
]
s.homepage = %q{http://github.com/peritor/happening}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
+ s.licenses = [%q{BSD}]
+ s.require_paths = [%q{lib}]
+ s.rubygems_version = %q{1.8.7}
s.summary = %q{An EventMachine based S3 client}
- s.test_files = [
- "test/aws_test.rb",
- "test/s3/item_test.rb",
- "test/s3/request_test.rb",
- "test/s3_test.rb",
- "test/test_helper.rb"
- ]
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
s.add_runtime_dependency(%q<em-http-request>, [">= 0"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_development_dependency(%q<mocha>, [">= 0"])
else
s.add_dependency(%q<em-http-request>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<mocha>, [">= 0"])
end
else
s.add_dependency(%q<em-http-request>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
s.add_dependency(%q<mocha>, [">= 0"])
end
end
View
@@ -13,7 +13,11 @@
require File.expand_path(File.dirname(__FILE__) + '/happening/s3/item')
module Happening
- VERSION = '0.2.2'
+ MAJOR = 0
+ MINOR = 2
+ PATCH = 5
+
+ VERSION = [MAJOR, MINOR, PATCH].compact.join('.')
class Error < RuntimeError; end
end
end

0 comments on commit 4a1315b

Please sign in to comment.