Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Jeweler -> Bundler

  • Loading branch information...
commit bc384e0106b6247399f2000a2f66e191ad2a456e 1 parent acaaf2a
@joshfrench authored
View
1  .gitignore
@@ -7,3 +7,4 @@ tmtags
coverage
rdoc
pkg
+Gemfile.lock
View
8 Gemfile
@@ -0,0 +1,8 @@
+source "http://rubygems.org"
+
+gemspec
+
+group :test do
+ gem 'rake'
+ gem 'rspec', '~> 2'
+end
View
20 Rakefile
@@ -1,21 +1,5 @@
-require 'rubygems'
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "rakismet"
- gem.summary = %Q{Akismet and TypePad AntiSpam integration for Rails.}
- gem.description = %Q{Rakismet is the easiest way to integrate Akismet or TypePad's AntiSpam into your Rails app.}
- gem.email = "josh@digitalpulp.com"
- gem.homepage = "http://github.com/joshfrench/rakismet"
- gem.authors = ["Josh French"]
- gem.rubyforge_project = %q{rakismet}
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
-end
+require 'bundler'
+Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |spec|
View
6 VERSION.yml
@@ -1,6 +0,0 @@
----
-:minor: 1
-:build:
-:patch: 0
-:major: 1
-
View
9 lib/rakismet.rb
@@ -28,16 +28,9 @@ def clear_request
@request = Request.new
end
- def version
- @version ||= begin
- version = YAML.load_file(File.join(File.dirname(__FILE__), %w(.. VERSION.yml)))
- [version[:major], version[:minor], version[:patch]].join('.')
- end
- end
-
def headers
@headers ||= begin
- user_agent = "Rakismet/#{Rakismet.version}"
+ user_agent = "Rakismet/#{Rakismet::VERSION}"
user_agent = "Rails/#{Rails.version} | " + user_agent if defined?(Rails)
{ 'User-Agent' => user_agent, 'Content-Type' => 'application/x-www-form-urlencoded' }
end
View
3  lib/rakismet/version.rb
@@ -0,0 +1,3 @@
+module Rakismet
+ VERSION = "1.1.0"
+end
View
58 rakismet.gemspec
@@ -1,50 +1,24 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "rakismet/version"
Gem::Specification.new do |s|
- s.name = %q{rakismet}
- s.version = "1.1.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.name = "rakismet"
+ s.version = Rakismet::VERSION
+ s.platform = Gem::Platform::RUBY
s.authors = ["Josh French"]
- s.date = %q{2011-07-05}
- s.description = %q{Rakismet is the easiest way to integrate Akismet or TypePad's AntiSpam into your Rails app.}
- s.email = %q{josh@digitalpulp.com}
- s.extra_rdoc_files = [
- "README.md"
- ]
- s.files = [
- "CHANGELOG",
- "MIT-LICENSE",
- "README.md",
- "Rakefile",
- "VERSION.yml",
- "lib/rakismet.rb",
- "lib/rakismet/middleware.rb",
- "lib/rakismet/model.rb",
- "lib/rakismet/railtie.rb",
- "rakismet.gemspec",
- "spec/.rspec",
- "spec/rakismet_middleware_spec.rb",
- "spec/rakismet_model_spec.rb",
- "spec/rakismet_spec.rb",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/joshfrench/rakismet}
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{rakismet}
- s.rubygems_version = %q{1.6.2}
- s.summary = %q{Akismet and TypePad AntiSpam integration for Rails.}
+ s.email = "josh@vitamin-j.com"
+ s.homepage = "http://github.com/joshfrench/rakismet"
+ s.summary = "Akismet and TypePad AntiSpam integration for Rails."
+ s.description = "Rakismet is the easiest way to integrate Akismet or TypePad's AntiSpam into your Rails app."
+ s.date = "2011-07-07"
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ s.rubyforge_project = "rakismet"
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+ s.extra_rdoc_files = ["README.md"]
end
Please sign in to comment.
Something went wrong with that request. Please try again.