Skip to content
Browse files

switch from jeweler to bundler

  • Loading branch information...
1 parent ae78dc6 commit c081107c6161316e4a2fa135cd5001430e0dccf1 @grosser committed Dec 10, 2012
Showing with 21 additions and 72 deletions.
  1. +2 −5 Gemfile
  2. +0 −6 Gemfile.lock
  3. +3 −15 Rakefile
  4. +0 −1 VERSION
  5. +3 −3 lib/tic_tac_toe.rb
  6. +3 −0 lib/tic_tac_toe/version.rb
  7. +10 −42 tic_tac_toe.gemspec
View
7 Gemfile
@@ -1,7 +1,4 @@
source :rubygems
-group :dev do # not development <-> would add unneeded development dependencies in gemspec
- gem 'rake'
- gem 'rspec', '~>2'
- gem 'jeweler'
-end
+gem 'rake'
+gem 'rspec', '~>2'
View
6 Gemfile.lock
@@ -2,11 +2,6 @@ GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.2)
- git (1.2.5)
- jeweler (1.5.2)
- bundler (~> 1.0.0)
- git (>= 1.2.5)
- rake
rake (0.8.7)
rspec (2.3.0)
rspec-core (~> 2.3.0)
@@ -21,6 +16,5 @@ PLATFORMS
ruby
DEPENDENCIES
- jeweler
rake
rspec (~> 2)
View
18 Rakefile
@@ -1,3 +1,6 @@
+require "bundler/setup"
+require "bundler/gem_tasks"
+
task :default => :spec
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
@@ -7,18 +10,3 @@ end
task :run do
exec "./bin/tic_tac_toe"
end
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = 'tic_tac_toe'
- gem.summary = "Play Tic-Tac-Toe using Curses"
- gem.email = "michael@grosser.it"
- gem.homepage = "http://github.com/grosser/#{gem.name}"
- gem.authors = ["Michael Grosser"]
- end
-
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
-end
View
1 VERSION
@@ -1 +0,0 @@
-0.2.0
View
6 lib/tic_tac_toe.rb
@@ -1,6 +1,6 @@
-class TicTacToe
- VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
+require 'tic_tac_toe/version'
+class TicTacToe
BOARD = <<BOARD
-------------
| X | X | X |
@@ -108,4 +108,4 @@ def next_player
next_index = (current_index + 1) % PLAYERS.size
PLAYERS[next_index]
end
-end
+end
View
3 lib/tic_tac_toe/version.rb
@@ -0,0 +1,3 @@
+class TicTacToe
+ VERSION = "0.2.0"
+end
View
52 tic_tac_toe.gemspec
@@ -1,47 +1,15 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
+$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
-Gem::Specification.new do |s|
- s.name = %q{tic_tac_toe}
- s.version = "0.2.0"
+name = "tic_tac_toe"
+require "#{name}/version"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+Gem::Specification.new name, TicTacToe::VERSION do |s|
+ s.summary = "Play Tic-Tac-Toe using Curses"
+ s.email = "michael@grosser.it"
+ s.homepage = "http://github.com/grosser/#{name}"
s.authors = ["Michael Grosser"]
- s.date = %q{2011-01-02}
- s.default_executable = %q{tic_tac_toe}
- s.email = %q{michael@grosser.it}
- s.executables = ["tic_tac_toe"]
- s.files = [
- "Gemfile",
- "Gemfile.lock",
- "Rakefile",
- "Readme.md",
- "VERSION",
- "bin/tic_tac_toe",
- "lib/tic_tac_toe.rb",
- "spec/spec_helper.rb",
- "spec/tic_tac_toe_spec.rb",
- "tic_tac_toe.gemspec"
- ]
- s.homepage = %q{http://github.com/grosser/tic_tac_toe}
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Play Tic-Tac-Toe using Curses}
- s.test_files = [
- "spec/spec_helper.rb",
- "spec/tic_tac_toe_spec.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
- else
- end
- else
- end
+ s.executables = [name]
+ s.files = `git ls-files`.split("\n")
+ s.license = "MIT"
end

0 comments on commit c081107

Please sign in to comment.
Something went wrong with that request. Please try again.