bukkit 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG +3 -1
- data/bin/bukkit +8 -4
- data/bukkit.gemspec +1 -1
- data/lib/bukkit/create.rb +3 -0
- data/lib/bukkit/start.rb +9 -3
- data/lib/bukkit/version.rb +1 -1
- metadata +5 -5
- data/craftbukkit.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8585feaf6ab7987fd8f5e51948a85bda3ad48732
|
4
|
+
data.tar.gz: 7e7aee4104de0ce1dc86a2b95875c03207cd34ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49fb7861c15e0892a65a9577744d0448cf8b14a87f9355822918b85d9b24d6d700d0703c113cdb8d18d6ed439bd03cbcc13d594bbca2ba8a571c019f4b8417ef
|
7
|
+
data.tar.gz: eafc03cbcb91442e2895354fbc3b2b6005a75b9dbb256b5fed045d29fb2a72e4b7db25fc03d11f9aa12f4ec52bb706d5a342b91845dfbd856a320235af7b8acc
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0-p353
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -7,4 +7,6 @@ v1.0.0: Total revamp of the CLI and docs. Definitely v1.0.
|
|
7
7
|
v1.0.1: Got rid of the old docs.
|
8
8
|
v1.0.2: Fixed some cosmetic things and bugs.
|
9
9
|
v1.0.3: Just made the CLI little bit nicer.
|
10
|
-
v1.0.4: Better Windows support and '--force' option to the 'new' command.
|
10
|
+
v1.0.4: Better Windows support and '--force' option to the 'new' command.
|
11
|
+
v1.2.0: Code refactored.
|
12
|
+
v1.3.0: Friendly output and '--ram' option.
|
data/bin/bukkit
CHANGED
@@ -93,7 +93,7 @@ command :update do |c|
|
|
93
93
|
update_options.merge!(:build => :dev)
|
94
94
|
else
|
95
95
|
# If the user didn't give a build option then ask for it.
|
96
|
-
build = ask "Build [rb/beta/dev]: "
|
96
|
+
build = ask "Build [rb/beta/dev]: ".downcase!
|
97
97
|
case build
|
98
98
|
when "rb", "recommended"
|
99
99
|
update_options.merge!(:build => :rb)
|
@@ -114,12 +114,16 @@ command :start do |c|
|
|
114
114
|
c.syntax = "bukkit start"
|
115
115
|
c.summary = "Open the plugin's start in the default browser."
|
116
116
|
c.description = c.summary
|
117
|
-
c.example c.summary, "bukkit website plugin-name"
|
118
|
-
c.example "Show just the plugin's URL.", "bukkit website plugin-name --url"
|
119
117
|
c.option "--url", "Show just the plugin's URL."
|
118
|
+
c.option "-r", "--ram MEMORY", Integer, "Specify the amount of RAM."
|
119
|
+
c.example "Start a bukkit server.", "bukkit start"
|
120
|
+
c.example "Start a bukkit server with a specified amount of RAM (in megabytes.", "bukkit start --ram 1000"
|
120
121
|
|
121
122
|
c.action do |args, options|
|
122
|
-
|
123
|
+
@ram = options.default[:ram]
|
124
|
+
start_options = { :ram => @ram }
|
125
|
+
|
126
|
+
Bukkit::Server.start(start_options)
|
123
127
|
end
|
124
128
|
end
|
125
129
|
|
data/bukkit.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Jesse Herrick"]
|
9
9
|
spec.email = ["school@jessegrant.net"]
|
10
10
|
spec.description = %q{A command line wrapper for CraftBukkit.}
|
11
|
-
spec.summary = %q{A command line wrapper for CraftBukkit. Manage your server
|
11
|
+
spec.summary = %q{A command line wrapper for CraftBukkit. Manage your server easier.}
|
12
12
|
spec.homepage = "https://github.com/JesseHerrick/Bukkit-CLI"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
data/lib/bukkit/create.rb
CHANGED
data/lib/bukkit/start.rb
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
module Bukkit
|
2
2
|
class Server
|
3
3
|
# Start the server.
|
4
|
-
def self.start
|
4
|
+
def self.start(options = {})
|
5
5
|
if File.exists?("craftbukkit.jar")
|
6
|
-
|
7
|
-
|
6
|
+
ram = options[:ram]
|
7
|
+
|
8
|
+
puts "Starting your CraftBukkit server...".green
|
9
|
+
if ram.nil?
|
10
|
+
system 'java -jar craftbukkit.jar'
|
11
|
+
else
|
12
|
+
system 'java -Xmx#{ram}M -Xms#{ram}M -jar craftbukkit.jar'
|
13
|
+
end
|
8
14
|
else
|
9
15
|
abort "You're not in your server's root directory.".red
|
10
16
|
end
|
data/lib/bukkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bukkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Herrick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: archive-zip
|
@@ -141,7 +141,6 @@ files:
|
|
141
141
|
- Rakefile
|
142
142
|
- bin/bukkit
|
143
143
|
- bukkit.gemspec
|
144
|
-
- craftbukkit.jar
|
145
144
|
- lib/bukkit.rb
|
146
145
|
- lib/bukkit/create.rb
|
147
146
|
- lib/bukkit/download.rb
|
@@ -175,13 +174,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
174
|
version: '0'
|
176
175
|
requirements: []
|
177
176
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.0.14
|
179
178
|
signing_key:
|
180
179
|
specification_version: 4
|
181
|
-
summary: A command line wrapper for CraftBukkit. Manage your server
|
180
|
+
summary: A command line wrapper for CraftBukkit. Manage your server easier.
|
182
181
|
test_files:
|
183
182
|
- test/test_create.rb
|
184
183
|
- test/test_download.rb
|
185
184
|
- test/test_install.rb
|
186
185
|
- test/test_update.rb
|
187
186
|
- test/test_website.rb
|
187
|
+
has_rdoc:
|
data/craftbukkit.jar
DELETED
Binary file
|