Skip to content

Commit a5fc883

Browse files
committed
Update the gem system to use bundler
1 parent 3dfa1cf commit a5fc883

File tree

5 files changed

+30
-61
lines changed

5 files changed

+30
-61
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pkg/*
2+
*.gem
3+
.bundle

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "http://rubygems.org"
2+
3+
# Specify your gem's dependencies in acts_as_keyed.gemspec
4+
gemspec

Rakefile

+2-53
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,2 @@
1-
require 'rubygems'
2-
require 'rake'
3-
require 'rake/testtask'
4-
require 'rake/gempackagetask'
5-
require 'rake/rdoctask'
6-
7-
desc 'Default: run unit tests.'
8-
task :default => :test
9-
10-
desc 'Test the split_tester plugin.'
11-
Rake::TestTask.new(:test) do |t|
12-
t.libs << 'lib'
13-
t.libs << 'test'
14-
t.pattern = 'test/**/*_test.rb'
15-
t.verbose = true
16-
end
17-
18-
desc 'Generate documentation for the split_tester plugin.'
19-
Rake::RDocTask.new(:rdoc) do |rdoc|
20-
rdoc.rdoc_dir = 'rdoc'
21-
rdoc.title = 'SplitTester'
22-
rdoc.options << '--line-numbers' << '--inline-source'
23-
rdoc.rdoc_files.include('README')
24-
rdoc.rdoc_files.include('lib/**/*.rb')
25-
end
26-
27-
PKG_FILES = FileList[
28-
'[a-zA-Z]*',
29-
'lib/**/*',
30-
'rails/**/*',
31-
'files/*',
32-
'test/**/*'
33-
]
34-
35-
spec = Gem::Specification.new do |s|
36-
s.name = "split_tester"
37-
s.version = "0.4"
38-
s.author = "Jeremy Hubert"
39-
s.email = "[email protected]"
40-
s.homepage = "http://jeremyhubert.com/"
41-
s.platform = Gem::Platform::RUBY
42-
s.summary = "Provides A/B split testing functionality for Rails"
43-
s.description = "Split Tester provides support for A/B Split testing your pages with integration into Google Analytics."
44-
s.files = PKG_FILES.to_a
45-
s.require_path = "lib"
46-
s.has_rdoc = false
47-
s.extra_rdoc_files = ["README"]
48-
end
49-
50-
desc 'Turn this plugin into a gem.'
51-
Rake::GemPackageTask.new(spec) do |pkg|
52-
pkg.gem_spec = spec
53-
end
1+
require 'bundler'
2+
Bundler::GemHelper.install_tasks

lib/split_tester/version.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module SplitTester
2+
VERSION = "0.4"
3+
end

split_tester.gemspec

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1+
# -*- encoding: utf-8 -*-
2+
$:.push File.expand_path("../lib", __FILE__)
3+
require "acts_as_keyed/version"
4+
15
Gem::Specification.new do |s|
6+
s.name = "split_tester"
7+
s.version = SplitTester::VERSION
28
s.platform = Gem::Platform::RUBY
3-
s.name = 'split_tester'
4-
s.version = '0.4'
5-
s.summary = 'Provides A/B split testing functionality for Rails'
6-
s.description = 'Split Tester provides support for A/B Split testing your pages with integration into Google Analytics.'
9+
s.authors = ["Jeremy Hubert"]
10+
s.email = ["[email protected]"]
11+
s.homepage = "http://github.com/jhubert/rails-split-tester"
12+
s.summary = %q{Provides A/B split testing functionality for Rails}
13+
s.description = %q{Split Tester provides support for A/B Split testing your pages with integration into Google Analytics.}
14+
15+
s.rubyforge_project = "rails_split_tester"
16+
17+
s.files = `git ls-files`.split("\n")
18+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20+
s.require_paths = ["lib"]
721

822
s.required_ruby_version = '>= 1.8.7'
923
s.required_rubygems_version = ">= 1.3.6"
1024

11-
s.author = 'Jeremy Hubert'
12-
s.email = '[email protected]'
13-
s.homepage = 'http://www.jeremyhubert.com'
14-
1525
s.add_dependency('rails', '>=3.0.0')
1626
end

0 commit comments

Comments
 (0)