metro 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/changelog.md +6 -0
- data/lib/chipmunk_ext/chipmunk.rb +7 -0
- data/lib/metro.rb +1 -0
- data/lib/metro/version.rb +1 -1
- data/metro.gemspec +2 -0
- data/spec/metro/image_spec.rb +3 -3
- data/spec/metro/models/properties/color_property_spec.rb +4 -4
- data/spec/metro/models/properties/dimensions_spec.rb +2 -2
- data/spec/metro/models/properties/font_property_spec.rb +10 -10
- data/spec/metro/models/properties/options_property/no_option_spec.rb +1 -1
- data/spec/metro/models/properties/options_property/options_property_spec.rb +9 -9
- data/spec/metro/models/properties/options_property/options_spec.rb +4 -4
- data/spec/metro/models/ui/label_spec.rb +3 -3
- data/spec/metro/parameters/command_line_args_parser_spec.rb +4 -4
- data/spec/metro/scene_views/json_view_spec.rb +1 -1
- data/spec/metro/scene_views/yaml_view_spec.rb +2 -2
- data/spec/metro/units/point_spec.rb +4 -4
- data/spec/metro/views/view_spec.rb +8 -8
- data/spec/setup_handlers/exit_if_dry_run_spec.rb +2 -2
- data/spec/setup_handlers/reload_game_on_game_file_changes_spec.rb +3 -3
- data/spec/spec_helper.rb +3 -0
- data/spec/tmx_ext/tile_set_spec.rb +2 -2
- metadata +59 -6
- checksums.yaml +0 -15
data/Gemfile
CHANGED
data/changelog.md
CHANGED
data/lib/metro.rb
CHANGED
data/lib/metro/version.rb
CHANGED
data/metro.gemspec
CHANGED
@@ -26,12 +26,14 @@ Gem::Specification.new do |gem|
|
|
26
26
|
|
27
27
|
gem.add_dependency 'gosu', '~> 0.7'
|
28
28
|
gem.add_dependency 'texplay', '~> 0.4'
|
29
|
+
gem.add_dependency 'chipmunk', '~> 6.1.3.1'
|
29
30
|
gem.add_dependency 'tmx', '~> 0.1.2'
|
30
31
|
gem.add_dependency 'thor', '~> 0.16.0'
|
31
32
|
gem.add_dependency 'i18n', '~> 0.6.1'
|
32
33
|
gem.add_dependency 'activesupport', '~> 3.0.0'
|
33
34
|
gem.add_dependency 'listen', '~> 0.6.0'
|
34
35
|
gem.add_development_dependency 'rspec', '~> 2.11'
|
36
|
+
gem.add_development_dependency 'rspec-its', '~> 1.0.1'
|
35
37
|
|
36
38
|
gem.files = `git ls-files`.split($/)
|
37
39
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/spec/metro/image_spec.rb
CHANGED
@@ -8,9 +8,9 @@ describe Metro::Image do
|
|
8
8
|
|
9
9
|
describe ".crop" do
|
10
10
|
|
11
|
-
let(:image) {
|
12
|
-
let(:window) {
|
13
|
-
let(:mock_image) {
|
11
|
+
let(:image) { double('Original Image') }
|
12
|
+
let(:window) { double('Gosu::Window') }
|
13
|
+
let(:mock_image) { double("TexPlay Created Image",refresh_cache: nil) }
|
14
14
|
let(:bounds) { Metro::Units::RectangleBounds.new(left: 2,top: 2,right: 30,bottom:30) }
|
15
15
|
|
16
16
|
let(:expected_crop_params) { [ bounds.left, bounds.top, bounds.right, bounds.bottom ]}
|
@@ -3,11 +3,11 @@ require 'spec_helper'
|
|
3
3
|
describe Metro::Model::ColorProperty do
|
4
4
|
|
5
5
|
subject { described_class.new model }
|
6
|
-
let(:model) {
|
7
|
-
let(:window) {
|
6
|
+
let(:model) { double("model", window: window) }
|
7
|
+
let(:window) { double('window') }
|
8
8
|
|
9
9
|
describe "#get" do
|
10
|
-
let(:expected_color) {
|
10
|
+
let(:expected_color) { double('color') }
|
11
11
|
|
12
12
|
context "when the value is nil" do
|
13
13
|
context "when no default value has been specified" do
|
@@ -47,7 +47,7 @@ describe Metro::Model::ColorProperty do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
describe "#set" do
|
50
|
-
let(:expected_color) {
|
50
|
+
let(:expected_color) { double('color') }
|
51
51
|
|
52
52
|
context "when the value is nil" do
|
53
53
|
|
@@ -3,9 +3,9 @@ require 'spec_helper'
|
|
3
3
|
describe Metro::Model::DimensionsProperty do
|
4
4
|
|
5
5
|
subject { desribed_class.new model }
|
6
|
-
let(:model) {
|
6
|
+
let(:model) { double("model", window: window) }
|
7
7
|
let(:window) do
|
8
|
-
|
8
|
+
double('window',dimensions: window_dimensions )
|
9
9
|
end
|
10
10
|
|
11
11
|
let(:window_dimensions) { Dimensions.of(1,1) }
|
@@ -3,18 +3,18 @@ require 'spec_helper'
|
|
3
3
|
describe Metro::Model::FontProperty do
|
4
4
|
|
5
5
|
subject { described_class.new model }
|
6
|
-
let(:model) {
|
7
|
-
let(:window) {
|
6
|
+
let(:model) { double("model", window: window) }
|
7
|
+
let(:window) { double('window') }
|
8
8
|
|
9
9
|
describe "#get" do
|
10
|
-
let(:expected_font) {
|
10
|
+
let(:expected_font) { double('font') }
|
11
11
|
let(:expected_options) { { name: expected_font_name, size: expected_font_size, window: window } }
|
12
|
-
|
12
|
+
|
13
13
|
context "when the value is nil" do
|
14
14
|
context "when no default value has been specified" do
|
15
15
|
let(:expected_font_name) { Gosu::default_font_name }
|
16
16
|
let(:expected_font_size) { 40 }
|
17
|
-
|
17
|
+
|
18
18
|
it "should return the default value" do
|
19
19
|
described_class.stub(:font_for).with(expected_options) { expected_font }
|
20
20
|
subject.get(nil).should eq expected_font
|
@@ -39,9 +39,9 @@ describe Metro::Model::FontProperty do
|
|
39
39
|
context "when the value is a hash" do
|
40
40
|
let(:expected_font_name) { 'Helvetica' }
|
41
41
|
let(:expected_font_size) { 80 }
|
42
|
-
|
42
|
+
|
43
43
|
let(:font_hash) { { name: expected_font_name, size: expected_font_size } }
|
44
|
-
|
44
|
+
|
45
45
|
it "should return the font value" do
|
46
46
|
described_class.stub(:font_for).with(expected_options) { expected_font }
|
47
47
|
subject.get(font_hash).should eq expected_font
|
@@ -51,7 +51,7 @@ describe Metro::Model::FontProperty do
|
|
51
51
|
context "when the same font is requested" do
|
52
52
|
let(:expected_font_name) { Gosu::default_font_name }
|
53
53
|
let(:expected_font_size) { 40 }
|
54
|
-
|
54
|
+
|
55
55
|
it "should not be created a second time (pullled from memory)" do
|
56
56
|
described_class.should_receive(:font_for).twice { expected_font }
|
57
57
|
subject.get(nil)
|
@@ -67,7 +67,7 @@ describe Metro::Model::FontProperty do
|
|
67
67
|
context "when no default value has been specified" do
|
68
68
|
let(:expected_font_name) { Gosu::default_font_name }
|
69
69
|
let(:expected_font_size) { 40 }
|
70
|
-
let(:expected_font) {
|
70
|
+
let(:expected_font) { double('font') }
|
71
71
|
|
72
72
|
let(:expected_result) { { name: expected_font_name, size: expected_font_size } }
|
73
73
|
let(:expected_options) { { name: expected_font_name, size: expected_font_size, window: window } }
|
@@ -97,7 +97,7 @@ describe Metro::Model::FontProperty do
|
|
97
97
|
context "when the value is a font" do
|
98
98
|
|
99
99
|
let(:gosu_font) do
|
100
|
-
font =
|
100
|
+
font = double('font', name: expected_font_name, height: expected_font_size)
|
101
101
|
font.stub(:class) { Metro::Font }
|
102
102
|
font
|
103
103
|
end
|
@@ -4,7 +4,7 @@ describe Metro::Model::OptionsProperty::NoOption do
|
|
4
4
|
|
5
5
|
context "when attempting to an attribute like color of the no option" do
|
6
6
|
|
7
|
-
let(:log) {
|
7
|
+
let(:log) { double('log') }
|
8
8
|
|
9
9
|
it "should generate a warning message" do
|
10
10
|
log.should_receive(:warn).with(subject.warning_message)
|
@@ -3,7 +3,7 @@ require 'spec_helper'
|
|
3
3
|
describe Metro::Model::OptionsProperty do
|
4
4
|
|
5
5
|
subject { described_class.new model }
|
6
|
-
let(:model) {
|
6
|
+
let(:model) { double("model", create: 'builds models for a living') }
|
7
7
|
|
8
8
|
describe "#get" do
|
9
9
|
context "when the value is nil" do
|
@@ -17,7 +17,7 @@ describe Metro::Model::OptionsProperty do
|
|
17
17
|
|
18
18
|
context "when the value is an array of options names" do
|
19
19
|
before do
|
20
|
-
model.stub(:create) { |model_type,options|
|
20
|
+
model.stub(:create) { |model_type,options| double(model_type,options) }
|
21
21
|
end
|
22
22
|
|
23
23
|
let(:names) { [ 'Start Game', 'Options', 'Exit Game' ] }
|
@@ -45,7 +45,7 @@ describe Metro::Model::OptionsProperty do
|
|
45
45
|
|
46
46
|
context "when the value is a hash which is a set of option names and the selected index" do
|
47
47
|
before do
|
48
|
-
model.stub(:create) { |model_type,options|
|
48
|
+
model.stub(:create) { |model_type,options| double(model_type,options) }
|
49
49
|
end
|
50
50
|
|
51
51
|
let(:names_and_selected_index) do
|
@@ -55,9 +55,9 @@ describe Metro::Model::OptionsProperty do
|
|
55
55
|
let(:names) { [ 'Start Game', 'Options', 'Exit Game' ] }
|
56
56
|
let(:actions) { [ :start_game, :options, :exit_game ] }
|
57
57
|
let(:selected_index) { 1 }
|
58
|
-
|
58
|
+
|
59
59
|
let(:label_model_class) { 'metro::ui::label' }
|
60
|
-
|
60
|
+
|
61
61
|
|
62
62
|
let(:options) { subject.get(names_and_selected_index) }
|
63
63
|
|
@@ -85,7 +85,7 @@ describe Metro::Model::OptionsProperty do
|
|
85
85
|
|
86
86
|
context "when the value is hash that contains a set of options (with specific ui details) and the seelcted index" do
|
87
87
|
before do
|
88
|
-
model.stub(:create) { |model_type,options|
|
88
|
+
model.stub(:create) { |model_type,options| double(model_type,options) }
|
89
89
|
end
|
90
90
|
|
91
91
|
let(:names_and_selected_index) do
|
@@ -97,14 +97,14 @@ describe Metro::Model::OptionsProperty do
|
|
97
97
|
{ model: 'metro::ui::image', text: 'Settings', action: 'open_settings' },
|
98
98
|
{ model: 'metro::ui::label', text: 'Exit' } ]
|
99
99
|
end
|
100
|
-
|
100
|
+
|
101
101
|
|
102
102
|
let(:names) { [ 'Start Game!', 'Settings', 'Exit' ] }
|
103
103
|
let(:actions) { [ :start_game, :open_settings, :exit ] }
|
104
104
|
let(:models) { [ 'metro::ui::label', 'metro::ui::image', 'metro::ui::label' ] }
|
105
|
-
|
105
|
+
|
106
106
|
let(:selected_index) { 1 }
|
107
|
-
|
107
|
+
|
108
108
|
let(:options) { subject.get(names_and_selected_index) }
|
109
109
|
|
110
110
|
it "should return an option for each name" do
|
@@ -105,17 +105,17 @@ describe Metro::Model::OptionsProperty::Options do
|
|
105
105
|
|
106
106
|
describe "#selected_action" do
|
107
107
|
context "when there are options defined" do
|
108
|
-
subject { described_class.new [
|
108
|
+
subject { described_class.new [ double('first-option',properties: { action: expected_action }), double('second-option') ] }
|
109
109
|
let(:expected_action) { :execute_this_action }
|
110
|
-
|
110
|
+
|
111
111
|
it "should return the action defined on the current selected item" do
|
112
112
|
subject.selected_action.should eq expected_action
|
113
113
|
end
|
114
114
|
end
|
115
|
-
|
115
|
+
|
116
116
|
context "when there are no options defined" do
|
117
117
|
subject { described_class.new [] }
|
118
|
-
|
118
|
+
|
119
119
|
it "should return the action on the NoOption" do
|
120
120
|
subject.selected_action.should eq :missing_menu_action
|
121
121
|
end
|
@@ -4,7 +4,7 @@ describe Metro::UI::Label do
|
|
4
4
|
|
5
5
|
subject do
|
6
6
|
label = described_class.new text: expected_text
|
7
|
-
label.window =
|
7
|
+
label.window = double('window')
|
8
8
|
label
|
9
9
|
end
|
10
10
|
|
@@ -79,7 +79,7 @@ describe Metro::UI::Label do
|
|
79
79
|
Metro::Font.stub(:find_or_create).and_return(font)
|
80
80
|
end
|
81
81
|
|
82
|
-
let(:font) {
|
82
|
+
let(:font) { double('font', name: expected_font_name, size: expected_font_size) }
|
83
83
|
|
84
84
|
let(:expected_font) { font }
|
85
85
|
its(:font) { should eq expected_font }
|
@@ -128,7 +128,7 @@ describe Metro::UI::Label do
|
|
128
128
|
let(:scale_x) { 1.0 }
|
129
129
|
let(:scale_y) { 1.0 }
|
130
130
|
|
131
|
-
let(:font) {
|
131
|
+
let(:font) { double('font') }
|
132
132
|
|
133
133
|
let(:line_height) { 20 }
|
134
134
|
|
@@ -26,12 +26,12 @@ describe Metro::Parameters::CommandLineArgsParser do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
it "should find all the flags" do
|
29
|
-
subject.upset_the_world?.should
|
30
|
-
subject.check_dependencies?.should
|
29
|
+
subject.upset_the_world?.should be_truthy
|
30
|
+
subject.check_dependencies?.should be_truthy
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
it "should return false when non-existant flags are present" do
|
34
|
-
subject.wants_food_mild?.should
|
34
|
+
subject.wants_food_mild?.should be_falsy
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -18,7 +18,7 @@ describe Metro::Views::YAMLView do
|
|
18
18
|
let(:filepath_that_exists) { "#{view_name}.yaml" }
|
19
19
|
|
20
20
|
it "should return true" do
|
21
|
-
subject.exists?(view_name).should
|
21
|
+
subject.exists?(view_name).should be_truthy
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|
@@ -30,7 +30,7 @@ describe Metro::Views::YAMLView do
|
|
30
30
|
let(:filepath_that_exists) { "#{view_name}.yml" }
|
31
31
|
|
32
32
|
it "should return true" do
|
33
|
-
subject.exists?(view_name).should
|
33
|
+
subject.exists?(view_name).should be_truthy
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -28,7 +28,7 @@ describe Metro::Units::Point do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
context "when adding it to another point-like object" do
|
31
|
-
let(:point) {
|
31
|
+
let(:point) { double('Point Like',x: 1, y: 2, z: 3) }
|
32
32
|
let(:summed_point) { described_class.at 13, 26, 39 }
|
33
33
|
|
34
34
|
it "should be a sum of the two points" do
|
@@ -38,7 +38,7 @@ describe Metro::Units::Point do
|
|
38
38
|
end
|
39
39
|
|
40
40
|
context "when adding it to something not like a point" do
|
41
|
-
let(:point) {
|
41
|
+
let(:point) { double('Not Point Like') }
|
42
42
|
let(:summed_point) { described_class.at 13, 26, 39 }
|
43
43
|
|
44
44
|
it "should raise an error" do
|
@@ -59,7 +59,7 @@ describe Metro::Units::Point do
|
|
59
59
|
end
|
60
60
|
|
61
61
|
context "when adding it to another point-like object" do
|
62
|
-
let(:point) {
|
62
|
+
let(:point) { double('Point Like',x: 1, y: 2, z: 3) }
|
63
63
|
let(:summed_point) { described_class.at 11, 22, 33 }
|
64
64
|
|
65
65
|
it "should be a sum of the two points" do
|
@@ -69,7 +69,7 @@ describe Metro::Units::Point do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
context "when adding it to something not like a point" do
|
72
|
-
let(:point) {
|
72
|
+
let(:point) { double('Not Point Like') }
|
73
73
|
let(:summed_point) { described_class.at 13, 26, 39 }
|
74
74
|
|
75
75
|
it "should raise an error" do
|
@@ -10,10 +10,10 @@ describe Metro::View do
|
|
10
10
|
|
11
11
|
describe "#parser" do
|
12
12
|
before do
|
13
|
-
subject.stub(:supported_parsers) { [
|
13
|
+
subject.stub(:supported_parsers) { [ double(exists?: false), expected_parser ] }
|
14
14
|
end
|
15
15
|
|
16
|
-
let(:expected_parser) {
|
16
|
+
let(:expected_parser) { double(exists?: true) }
|
17
17
|
|
18
18
|
it "should return the first parser which has a existing view" do
|
19
19
|
subject.parser.should eq expected_parser
|
@@ -24,11 +24,11 @@ describe Metro::View do
|
|
24
24
|
|
25
25
|
context "when the parser has a format that matches a writer" do
|
26
26
|
before do
|
27
|
-
subject.stub(:parser) {
|
28
|
-
subject.stub(:supported_writers) { [
|
27
|
+
subject.stub(:parser) { double(format: :json) }
|
28
|
+
subject.stub(:supported_writers) { [ double(format: :yaml), expected_writer ] }
|
29
29
|
end
|
30
30
|
|
31
|
-
let(:expected_writer) {
|
31
|
+
let(:expected_writer) { double(format: :json) }
|
32
32
|
|
33
33
|
it "should match the parser format" do
|
34
34
|
subject.writer.format.should eq :json
|
@@ -37,11 +37,11 @@ describe Metro::View do
|
|
37
37
|
|
38
38
|
context "when the format has been specified" do
|
39
39
|
before do
|
40
|
-
subject.stub(:parser) {
|
41
|
-
subject.stub(:supported_writers) { [ expected_writer,
|
40
|
+
subject.stub(:parser) { double(format: :json) }
|
41
|
+
subject.stub(:supported_writers) { [ expected_writer, double(format: :json) ] }
|
42
42
|
end
|
43
43
|
|
44
|
-
let(:expected_writer) {
|
44
|
+
let(:expected_writer) { double(format: :yaml) }
|
45
45
|
|
46
46
|
it "should match the format (ignoring the parser format)" do
|
47
47
|
subject.format = :yaml
|
@@ -5,7 +5,7 @@ describe Metro::SetupHandlers::ExitIfDryRun do
|
|
5
5
|
describe "#setup" do
|
6
6
|
context "when the options specify that this is a dry run" do
|
7
7
|
|
8
|
-
let(:options) {
|
8
|
+
let(:options) { double('Options', dry_run?: true) }
|
9
9
|
|
10
10
|
it "should exit the game" do
|
11
11
|
subject.should_receive(:exit)
|
@@ -15,7 +15,7 @@ describe Metro::SetupHandlers::ExitIfDryRun do
|
|
15
15
|
|
16
16
|
context "when the options DO NOT specify that this is a dry run" do
|
17
17
|
|
18
|
-
let(:options) {
|
18
|
+
let(:options) { double('Options', dry_run?: false) }
|
19
19
|
|
20
20
|
it "should not exit the game" do
|
21
21
|
subject.should_not_receive(:exit)
|
@@ -15,7 +15,7 @@ describe Metro::SetupHandlers::ReloadGameOnGameFileChanges do
|
|
15
15
|
Game.stub(:debug?).and_return(false)
|
16
16
|
end
|
17
17
|
|
18
|
-
let(:options) {
|
18
|
+
let(:options) { double('Options',packaged?: false) }
|
19
19
|
|
20
20
|
it "should not start the watcher" do
|
21
21
|
subject.should_not_receive(:start_watcher)
|
@@ -28,7 +28,7 @@ describe Metro::SetupHandlers::ReloadGameOnGameFileChanges do
|
|
28
28
|
Game.stub(:debug?).and_return(true)
|
29
29
|
end
|
30
30
|
|
31
|
-
let(:options) {
|
31
|
+
let(:options) { double('Options',packaged?: true) }
|
32
32
|
|
33
33
|
it "should not start the watcher" do
|
34
34
|
subject.should_not_receive(:start_watcher)
|
@@ -41,7 +41,7 @@ describe Metro::SetupHandlers::ReloadGameOnGameFileChanges do
|
|
41
41
|
Game.stub(:debug?).and_return(true)
|
42
42
|
end
|
43
43
|
|
44
|
-
let(:options) {
|
44
|
+
let(:options) { double('Options',packaged?: false) }
|
45
45
|
|
46
46
|
|
47
47
|
it "should start the watcher" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
require_relative '../lib/metro'
|
2
|
+
|
3
|
+
require 'rspec/its'
|
4
|
+
|
2
5
|
# # This file was generated by the `rspec --init` command. Conventionally, all
|
3
6
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
4
7
|
# Require this file using `require "spec_helper"` to ensure that it is only
|
@@ -2,7 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Tmx::TileSet do
|
4
4
|
|
5
|
-
let(:window) {
|
5
|
+
let(:window) { double('window') }
|
6
6
|
|
7
7
|
let(:subject) do
|
8
8
|
tile_set = described_class.new tilewidth: 10, tileheight: 20,
|
@@ -12,7 +12,7 @@ describe Tmx::TileSet do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
describe "#images" do
|
15
|
-
let(:raw_images) { [
|
15
|
+
let(:raw_images) { [ double("image-1"), double("image-2") ] }
|
16
16
|
|
17
17
|
it "returns an array of images" do
|
18
18
|
subject.should_receive(:raw_image_tiles).and_return(raw_images)
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Franklin Webber
|
@@ -13,6 +14,7 @@ dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: gosu
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: texplay
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,13 +38,31 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0.4'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: chipmunk
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 6.1.3.1
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 6.1.3.1
|
41
62
|
- !ruby/object:Gem::Dependency
|
42
63
|
name: tmx
|
43
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
44
66
|
requirements:
|
45
67
|
- - ~>
|
46
68
|
- !ruby/object:Gem::Version
|
@@ -48,6 +70,7 @@ dependencies:
|
|
48
70
|
type: :runtime
|
49
71
|
prerelease: false
|
50
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
51
74
|
requirements:
|
52
75
|
- - ~>
|
53
76
|
- !ruby/object:Gem::Version
|
@@ -55,6 +78,7 @@ dependencies:
|
|
55
78
|
- !ruby/object:Gem::Dependency
|
56
79
|
name: thor
|
57
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
58
82
|
requirements:
|
59
83
|
- - ~>
|
60
84
|
- !ruby/object:Gem::Version
|
@@ -62,6 +86,7 @@ dependencies:
|
|
62
86
|
type: :runtime
|
63
87
|
prerelease: false
|
64
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
65
90
|
requirements:
|
66
91
|
- - ~>
|
67
92
|
- !ruby/object:Gem::Version
|
@@ -69,6 +94,7 @@ dependencies:
|
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: i18n
|
71
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
72
98
|
requirements:
|
73
99
|
- - ~>
|
74
100
|
- !ruby/object:Gem::Version
|
@@ -76,6 +102,7 @@ dependencies:
|
|
76
102
|
type: :runtime
|
77
103
|
prerelease: false
|
78
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
79
106
|
requirements:
|
80
107
|
- - ~>
|
81
108
|
- !ruby/object:Gem::Version
|
@@ -83,6 +110,7 @@ dependencies:
|
|
83
110
|
- !ruby/object:Gem::Dependency
|
84
111
|
name: activesupport
|
85
112
|
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
86
114
|
requirements:
|
87
115
|
- - ~>
|
88
116
|
- !ruby/object:Gem::Version
|
@@ -90,6 +118,7 @@ dependencies:
|
|
90
118
|
type: :runtime
|
91
119
|
prerelease: false
|
92
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
93
122
|
requirements:
|
94
123
|
- - ~>
|
95
124
|
- !ruby/object:Gem::Version
|
@@ -97,6 +126,7 @@ dependencies:
|
|
97
126
|
- !ruby/object:Gem::Dependency
|
98
127
|
name: listen
|
99
128
|
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
100
130
|
requirements:
|
101
131
|
- - ~>
|
102
132
|
- !ruby/object:Gem::Version
|
@@ -104,6 +134,7 @@ dependencies:
|
|
104
134
|
type: :runtime
|
105
135
|
prerelease: false
|
106
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
107
138
|
requirements:
|
108
139
|
- - ~>
|
109
140
|
- !ruby/object:Gem::Version
|
@@ -111,6 +142,7 @@ dependencies:
|
|
111
142
|
- !ruby/object:Gem::Dependency
|
112
143
|
name: rspec
|
113
144
|
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
114
146
|
requirements:
|
115
147
|
- - ~>
|
116
148
|
- !ruby/object:Gem::Version
|
@@ -118,10 +150,27 @@ dependencies:
|
|
118
150
|
type: :development
|
119
151
|
prerelease: false
|
120
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
121
154
|
requirements:
|
122
155
|
- - ~>
|
123
156
|
- !ruby/object:Gem::Version
|
124
157
|
version: '2.11'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rspec-its
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ~>
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.0.1
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.0.1
|
125
174
|
description: ! " Metro is a 2D Gaming framework built around gosu (game development
|
126
175
|
library).\n Metro makes it easy to create games by enforcing common conceptual
|
127
176
|
structures\n and conventions.\n"
|
@@ -148,6 +197,7 @@ files:
|
|
148
197
|
- lib/assets/missing.png
|
149
198
|
- lib/assets/missing.wav
|
150
199
|
- lib/assets/missing_animation.png
|
200
|
+
- lib/chipmunk_ext/chipmunk.rb
|
151
201
|
- lib/commands/generate_game.rb
|
152
202
|
- lib/commands/generate_model.rb
|
153
203
|
- lib/commands/generate_scene.rb
|
@@ -322,30 +372,33 @@ files:
|
|
322
372
|
homepage: https://github.com/burtlo/metro
|
323
373
|
licenses:
|
324
374
|
- MIT
|
325
|
-
metadata: {}
|
326
375
|
post_install_message: ! " ______ ___ _____\n ___ |/ /_____ __ /_______________\n
|
327
376
|
\ __ /|_/ / _ _ \\_ __/__ ___/_ __ \\\n _ / / / / __// /_ _ / /
|
328
377
|
/_/ /\n /_/ /_/ \\___/ \\__/ /_/ \\____/\n\n Thank you for installing
|
329
|
-
metro 0.3.
|
330
|
-
\ Changes:\n \n * FIX
|
378
|
+
metro 0.3.6 / 2014-08-11.\n ---------------------------------------------------------------------\n
|
379
|
+
\ Changes:\n \n * FIX for chipmunk latest version missing CP::Vec2::ZERO\n *
|
380
|
+
FIX for specs and deprecations\n * FIX adding chipmunk to the gem dependencies
|
381
|
+
\n \n\n ---------------------------------------------------------------------\n"
|
331
382
|
rdoc_options: []
|
332
383
|
require_paths:
|
333
384
|
- lib
|
334
385
|
required_ruby_version: !ruby/object:Gem::Requirement
|
386
|
+
none: false
|
335
387
|
requirements:
|
336
388
|
- - ! '>='
|
337
389
|
- !ruby/object:Gem::Version
|
338
390
|
version: '0'
|
339
391
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
392
|
+
none: false
|
340
393
|
requirements:
|
341
394
|
- - ! '>='
|
342
395
|
- !ruby/object:Gem::Version
|
343
396
|
version: '0'
|
344
397
|
requirements: []
|
345
398
|
rubyforge_project:
|
346
|
-
rubygems_version:
|
399
|
+
rubygems_version: 1.8.23
|
347
400
|
signing_key:
|
348
|
-
specification_version:
|
401
|
+
specification_version: 3
|
349
402
|
summary: Metro is a 2D Gaming framework built around gosu (game development library).
|
350
403
|
Metro makes it easy to create games by enforcing common conceptual structures and
|
351
404
|
conventions.
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
ZmI2NDBlMjQ5MzRjZGM4ZTMwZmRkMGJjMDM3NDg2YzUwNGM4NmFmYw==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
N2IwMTFlODhlYzg1ODZkMmU1MzJiNDRkMTQ3Y2Q2ZTc2MWYyMzM5MQ==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
NzI4ZDMyOTBhZTdlOTcwYjgwMWQ3NDJiNWVlZTllNmNlYTY0YWI3ODc5YWNj
|
10
|
-
NGMzMmEwODY2YjBlYjkzMTkxZjUyMWJmNDYxYTMxZDlhOWQ2NjQ4OGIxMDBm
|
11
|
-
OTEwYTM0OTA3ODExNDVhNGFkYTkxNjFjOWU5MjViZWVkMTYyZmY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NjI1ZDY5MDMxNjNkZWU3NzQ5MjBhOTVmMTY2YzM2NWM3MzRmYzY4MWIzYTFj
|
14
|
-
NmRmYTBkOGE0OGI5ZWVlZTFhMmE0ZjljYjFhNzNjZjI4N2NlNTI1MGM2MjJl
|
15
|
-
OTEwODhiMTI5Y2UyMDYyZDg2NmI1MjYyNmU4NjJkZTdkMzg4N2E=
|