lunar_lander 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -4,12 +4,17 @@ Ruby version of 1979 Atari video game Lunar Lander
4
4
 
5
5
  == Install instructions
6
6
 
7
+
8
+ # From github
7
9
  git clone git://github.com/lucasmundim/lunar_lander.git
8
10
  cd lunar_lander
9
11
  gem install bundler
10
12
  bundle install
11
13
  rake run
12
14
 
15
+ # From rubygems
16
+ (sudo) gem install lunar_lander
17
+
13
18
  == Contributing to lunar_lander
14
19
 
15
20
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
data/Rakefile CHANGED
@@ -1,8 +1,18 @@
1
1
  $LOAD_PATH.unshift('lib')
2
- require 'bundler'
3
- require 'lunar_lander'
2
+ begin
3
+ require "bundler"
4
+ rescue LoadError
5
+ raise "Could not load the bundler gem. Install it with `gem install bundler`."
6
+ end
4
7
 
8
+ if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
9
+ raise RuntimeError, "Your bundler version is too old." +
10
+ "Run `gem install bundler` to upgrade."
11
+ end
12
+
13
+ gemfile = File.expand_path('../Gemfile', __FILE__)
5
14
  begin
15
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
16
  Bundler.setup(:default, :development)
7
17
  rescue Bundler::BundlerError => e
8
18
  $stderr.puts e.message
@@ -10,6 +20,8 @@ rescue Bundler::BundlerError => e
10
20
  exit e.status_code
11
21
  end
12
22
 
23
+ require 'lunar_lander'
24
+
13
25
  Bundler::GemHelper.install_tasks
14
26
 
15
27
  desc "Run game"
data/bin/lunar_lander CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
- require 'bundler'
3
2
  require 'lunar_lander'
4
3
  LunarLander::Game.new.show
@@ -1,3 +1,3 @@
1
1
  module LunarLander
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/lunar_lander.rb CHANGED
@@ -1,22 +1,3 @@
1
- begin
2
- require "bundler"
3
- rescue LoadError
4
- raise "Could not load the bundler gem. Install it with `gem install bundler`."
5
- end
6
-
7
- if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
8
- raise RuntimeError, "Your bundler version is too old." +
9
- "Run `gem install bundler` to upgrade."
10
- end
11
-
12
- begin
13
- Bundler.setup(:default)
14
- rescue Bundler::BundlerError => e
15
- $stderr.puts e.message
16
- $stderr.puts "Run `bundle install` to install missing gems"
17
- exit e.status_code
18
- end
19
-
20
1
  require 'chingu'
21
2
  require 'lunar_lander/game'
22
3
  require 'lunar_lander/game_states/play'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lunar_lander
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lucas Roxo Mundim