Skip to content

Commit 2c94483

Browse files
committed
made chess into ruby-chess gem
1 parent a05138b commit 2c94483

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

play.rb bin/ruby-chess.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env ruby
22

3-
require_relative 'lib/chess'
3+
require_relative '../lib/chess'
44

55
game = Game.new
66

ruby-chess-0.0.0.gem

11 KB
Binary file not shown.

ruby-chess.gemspec

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
files = Dir.glob(Dir.pwd + '/**/*.rb')
2+
files.collect! {|file| file.sub(Dir.pwd + '/', '')}
3+
files -= files.select {|file| file =~ /scripts/}
4+
files.push('LICENSE', 'README.md', 'rakefile')
5+
6+
Gem::Specification.new do |s|
7+
s.name = 'ruby-chess'
8+
s.version = '0.0.0'
9+
s.date = "#{Time.now.strftime("%Y-%m-%d")}"
10+
s.homepage = 'https://github.com/jphager2/chess'
11+
s.summary = 'Chess game logic in Ruby'
12+
s.description = 'A gem to play chess'
13+
s.authors = ['jphager2']
14+
s.email = '[email protected]'
15+
s.files = files
16+
s.executables << 'ruby-chess.rb'
17+
s.license = 'MIT'
18+
end

0 commit comments

Comments
 (0)