bukkit 2.4.0 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d91a89a5486b4939f3772d524bbcdac423541696
4
- data.tar.gz: 34666baa89b9789b6f3ebdf0f399611014dd4232
3
+ metadata.gz: 8392883d62a6c2662cec7e4a1c7608cd0bcc2142
4
+ data.tar.gz: 8ac7005c32031430547b6200e4d61e79d1890b2c
5
5
  SHA512:
6
- metadata.gz: 7db58c7d226a1efcf91b0af527854ec69e65d2b59a6439e4cc5279670fa7b9a09434d52e341b620c7adb29ac7785d2e9e0163a2d84efc4e2a9b5b1ec23606bff
7
- data.tar.gz: 576bd272a425c7e1c0f93cb5cb251fcc418dc250186b86f43991f94386d53ae3065c4e1f8e5fffd482f5502b405bea07b22215f7b176e70e68b6f03c344c9248
6
+ metadata.gz: db6b1eb3801d451f20112e70c381b5ecd5c11ebf4300305c65790d5bf012b79431c91c0ce80a220f2b2cc95058d509cde143448b796a154cc3443a9e1c0523f1
7
+ data.tar.gz: 66f15f6200d65a77636f11a3e34b5600026445814b32b45351f3b00dd58f82ee228f51d751677a78f2749dad1911adc6fa2c48513d59bc742557194c3c15ef52
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Jesse Herrick
1
+ Copyright (c) 2014 Jesse Herrick
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -28,7 +28,9 @@ __To View Command Options run:__ `bukkit [command] [options: -[-h]elp]`
28
28
 
29
29
  `bukkit [--help, -h]` Display global help.
30
30
 
31
- `bukkit install my-favorite-plugin` Install a new bukkit plugin.
31
+ `bukkit install my-favorite-plugin` Install a new bukkit plugin. (case insensitive)
32
+
33
+ `bukkit uninstall my-not-so-favorite-plugin` Uninstall a plugin. (case insensitive)
32
34
 
33
35
  `bukkit new my-awesome-server-name [options: --rb, --beta, --dev, -[-f]orce (Overwrite any conflicting dirs.)], ` Create a new Bukkit server.
34
36
 
data/bin/bukkit CHANGED
@@ -20,12 +20,14 @@ command :new do |c|
20
20
  c.option "--beta", "Create a new server with the beta build."
21
21
  c.option "--dev", "Create a new server with the dev build."
22
22
  c.option "-f", "--force", "Overwrites the chosen directory if it already exists."
23
+ c.option "--nostart", "Just creates a new server, doesn't start it."
23
24
 
24
25
  c.action do |args, options|
25
- rb = options.rb
26
- beta = options.beta
27
- dev = options.dev
28
- force = options.force
26
+ rb = options.rb
27
+ beta = options.beta
28
+ dev = options.dev
29
+ force = options.force
30
+ nostart = options.nostart
29
31
 
30
32
  name = args.shift
31
33
 
@@ -63,7 +65,7 @@ command :new do |c|
63
65
  # Now finally send the options to the method.
64
66
  server = Bukkit::Server.new(name)
65
67
  server.create(new_options)
66
- Bukkit::Server.start
68
+ Bukkit::Server.start unless nostart == true
67
69
  end
68
70
  end
69
71
  alias_command :create, :new
@@ -0,0 +1,8 @@
1
+ Feature: Create Server
2
+ In order to manage a server better.
3
+ As a server admin.
4
+ I want to be able to create a new server easily.
5
+
6
+ Scenario: Create a new server
7
+ When I run "bukkit new MC" with the options "--rb --no-start"
8
+ Then the file "MC/craftbukkit.jar" should exist
@@ -0,0 +1,7 @@
1
+ When(/^I run "(.*?)" with the options "(.*?)"$/) do |command, options|
2
+ @output = `#{command} #{options}`
3
+ end
4
+
5
+ Then(/^the exit status should be (\d+)$/) do |exit_status|
6
+ @last_exit_status.should == exit_status.to_i
7
+ end
@@ -1,4 +1,4 @@
1
1
  module Bukkit
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.2"
3
3
  VERSION_FULL = "Bukkit-CLI v#{VERSION}"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bukkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Herrick
@@ -168,6 +168,8 @@ files:
168
168
  - Rakefile
169
169
  - bin/bukkit
170
170
  - bukkit.gemspec
171
+ - features/create.feature
172
+ - features/step_definitions/bukkit_steps.rb
171
173
  - lib/bukkit.rb
172
174
  - lib/bukkit/create.rb
173
175
  - lib/bukkit/download.rb
@@ -207,6 +209,8 @@ signing_key:
207
209
  specification_version: 4
208
210
  summary: A command line wrapper for CraftBukkit. Manage your server easier.
209
211
  test_files:
212
+ - features/create.feature
213
+ - features/step_definitions/bukkit_steps.rb
210
214
  - test/test_create.rb
211
215
  - test/test_download.rb
212
216
  - test/test_install.rb