-
Notifications
You must be signed in to change notification settings - Fork 9
/
metro.gemspec
65 lines (54 loc) · 2.18 KB
/
metro.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'metro/version'
Struct.new("Changes",:date,:changes)
Gem::Specification.new do |gem|
gem.name = "metro"
gem.version = Metro::VERSION
gem.authors = ["Franklin Webber"]
gem.email = Metro::CONTACT_EMAILS
gem.license = "MIT"
gem.summary = <<-EOS
Metro is a 2D Gaming framework built around gosu (game development library).
Metro makes it easy to create games by enforcing common conceptual structures
and conventions.
EOS
gem.description = <<-EOS
Metro is a 2D Gaming framework built around gosu (game development library).
Metro makes it easy to create games by enforcing common conceptual structures
and conventions.
EOS
gem.homepage = Metro::WEBSITE
gem.add_dependency 'gosu', '~> 0.7'
if RUBY_PLATFORM == "i386-mingw32"
gem.add_dependency 'texplay', '~> 0.4'
else
gem.add_dependency 'texplay', '~> 0.4.4.pre'
end
gem.add_dependency 'chipmunk', '~> 6.1.3.1'
gem.add_dependency 'tmx', '~> 0.1.2'
gem.add_dependency 'thor', '~> 0.19.1'
gem.add_dependency 'i18n', '~> 0.6.1'
gem.add_dependency 'activesupport', '~> 4.1.4'
gem.add_dependency 'listen', '~> 0.6.0'
gem.add_development_dependency 'rspec', '~> 2.11'
gem.add_development_dependency 'rspec-its', '~> 1.0.1'
gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
changes = Metro.changes_for_version(::Metro::VERSION)
gem.post_install_message = <<-EOM
______ ___ _____
___ |/ /_____ __ /_______________
__ /|_/ / _ _ \\_ __/__ ___/_ __ \\
_ / / / / __// /_ _ / / /_/ /
/_/ /_/ \\___/ \\__/ /_/ \\____/
Thank you for installing metro #{::Metro::VERSION} / #{changes.date}.
---------------------------------------------------------------------
Changes:
#{changes.changes.map{|change| " #{change}"}.join("")}
---------------------------------------------------------------------
EOM
end