Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

switch from jeweler to bundler

  • Loading branch information...
commit c081107c6161316e4a2fa135cd5001430e0dccf1 1 parent ae78dc6
Michael Grosser authored
7 Gemfile
... ... @@ -1,7 +1,4 @@
1 1 source :rubygems
2 2
3   -group :dev do # not development <-> would add unneeded development dependencies in gemspec
4   - gem 'rake'
5   - gem 'rspec', '~>2'
6   - gem 'jeweler'
7   -end
  3 +gem 'rake'
  4 +gem 'rspec', '~>2'
6 Gemfile.lock
@@ -2,11 +2,6 @@ GEM
2 2 remote: http://rubygems.org/
3 3 specs:
4 4 diff-lcs (1.1.2)
5   - git (1.2.5)
6   - jeweler (1.5.2)
7   - bundler (~> 1.0.0)
8   - git (>= 1.2.5)
9   - rake
10 5 rake (0.8.7)
11 6 rspec (2.3.0)
12 7 rspec-core (~> 2.3.0)
@@ -21,6 +16,5 @@ PLATFORMS
21 16 ruby
22 17
23 18 DEPENDENCIES
24   - jeweler
25 19 rake
26 20 rspec (~> 2)
18 Rakefile
... ... @@ -1,3 +1,6 @@
  1 +require "bundler/setup"
  2 +require "bundler/gem_tasks"
  3 +
1 4 task :default => :spec
2 5 require "rspec/core/rake_task"
3 6 RSpec::Core::RakeTask.new(:spec) do |t|
@@ -7,18 +10,3 @@ end
7 10 task :run do
8 11 exec "./bin/tic_tac_toe"
9 12 end
10   -
11   -begin
12   - require 'jeweler'
13   - Jeweler::Tasks.new do |gem|
14   - gem.name = 'tic_tac_toe'
15   - gem.summary = "Play Tic-Tac-Toe using Curses"
16   - gem.email = "michael@grosser.it"
17   - gem.homepage = "http://github.com/grosser/#{gem.name}"
18   - gem.authors = ["Michael Grosser"]
19   - end
20   -
21   - Jeweler::GemcutterTasks.new
22   -rescue LoadError
23   - puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
24   -end
1  VERSION
... ... @@ -1 +0,0 @@
1   -0.2.0
6 lib/tic_tac_toe.rb
... ... @@ -1,6 +1,6 @@
1   -class TicTacToe
2   - VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
  1 +require 'tic_tac_toe/version'
3 2
  3 +class TicTacToe
4 4 BOARD = <<BOARD
5 5 -------------
6 6 | X | X | X |
@@ -108,4 +108,4 @@ def next_player
108 108 next_index = (current_index + 1) % PLAYERS.size
109 109 PLAYERS[next_index]
110 110 end
111   -end
  111 +end
3  lib/tic_tac_toe/version.rb
... ... @@ -0,0 +1,3 @@
  1 +class TicTacToe
  2 + VERSION = "0.2.0"
  3 +end
52 tic_tac_toe.gemspec
... ... @@ -1,47 +1,15 @@
1   -# Generated by jeweler
2   -# DO NOT EDIT THIS FILE DIRECTLY
3   -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4   -# -*- encoding: utf-8 -*-
  1 +$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
5 2
6   -Gem::Specification.new do |s|
7   - s.name = %q{tic_tac_toe}
8   - s.version = "0.2.0"
  3 +name = "tic_tac_toe"
  4 +require "#{name}/version"
9 5
10   - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  6 +Gem::Specification.new name, TicTacToe::VERSION do |s|
  7 + s.summary = "Play Tic-Tac-Toe using Curses"
  8 + s.email = "michael@grosser.it"
  9 + s.homepage = "http://github.com/grosser/#{name}"
11 10 s.authors = ["Michael Grosser"]
12   - s.date = %q{2011-01-02}
13   - s.default_executable = %q{tic_tac_toe}
14   - s.email = %q{michael@grosser.it}
15   - s.executables = ["tic_tac_toe"]
16   - s.files = [
17   - "Gemfile",
18   - "Gemfile.lock",
19   - "Rakefile",
20   - "Readme.md",
21   - "VERSION",
22   - "bin/tic_tac_toe",
23   - "lib/tic_tac_toe.rb",
24   - "spec/spec_helper.rb",
25   - "spec/tic_tac_toe_spec.rb",
26   - "tic_tac_toe.gemspec"
27   - ]
28   - s.homepage = %q{http://github.com/grosser/tic_tac_toe}
29   - s.require_paths = ["lib"]
30   - s.rubygems_version = %q{1.3.7}
31   - s.summary = %q{Play Tic-Tac-Toe using Curses}
32   - s.test_files = [
33   - "spec/spec_helper.rb",
34   - "spec/tic_tac_toe_spec.rb"
35   - ]
36   -
37   - if s.respond_to? :specification_version then
38   - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
39   - s.specification_version = 3
40   -
41   - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42   - else
43   - end
44   - else
45   - end
  11 + s.executables = [name]
  12 + s.files = `git ls-files`.split("\n")
  13 + s.license = "MIT"
46 14 end
47 15

0 comments on commit c081107

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