Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gem packaging

  • Loading branch information...
commit 7afd8ec1ae91c8731beabb200aa0235f4bb8c891 1 parent c914287
@trusche authored
View
5 .gitignore
@@ -1,6 +1,3 @@
.bundle/
-log/*.log
+.rvmrc
pkg/
-test/dummy/db/*.sqlite3
-test/dummy/log/*.log
-test/dummy/tmp/
View
2  .rspec
@@ -0,0 +1,2 @@
+--format nested
+--color
View
14 Rakefile
@@ -11,7 +11,12 @@ rescue LoadError
require 'rake/rdoctask'
RDoc::Task = Rake::RDocTask
end
+require 'rspec/core/rake_task'
+desc "Run specs"
+RSpec::Core::RakeTask.new(:spec)
+
+desc "Generate documentation"
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'HttpLog'
@@ -20,7 +25,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
@@ -30,5 +34,11 @@ Rake::TestTask.new(:test) do |t|
t.verbose = false
end
+# ----- Packaging -----
+task :build do
+ sh "gem build httplog.gemspec"
+ mkdir_p 'pkg'
+ sh "mv *.gem pkg/ "
+end
-task :default => :test
+task :default => :spec
View
18 httplog.gemspec
@@ -1,10 +1,20 @@
# Provide a simple gemspec so you can easily use your
# project in your rails apps through git.
+
+$:.push File.expand_path("../lib", __FILE__)
+require "httplog/version"
+
Gem::Specification.new do |s|
- s.name = "httplog"
- s.summary = "Logs outgoing Net::HTTP requests."
- s.description = "Log outgoing HTTP requests made from your application. Helpful for tracking API calls of third party gems that don't provide their own log output."
- s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
+ s.name = "httplog"
+ s.version = HttpLog::VERSION
+ s.authors = ["Thilo Rusche"]
+ s.summary = %q{Logs outgoing Net::HTTP requests.}
+ s.homepage = %q{http://github.com/trusche/httplog}
+ s.description = %q{Log outgoing HTTP requests made from your application. Helpful for tracking API calls
+ of third party gems that don't provide their own log output.}
+ s.email = %q{thilorusche@gmail.com}
+
+ s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
s.add_development_dependency "rspec"
end
View
1  lib/httplog.rb
@@ -1 +1,2 @@
+require "httplog/version"
require "httplog/http_log"
Please sign in to comment.
Something went wrong with that request. Please try again.