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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d78829046c048c067d9754e837820344db6459bc
4
- data.tar.gz: d25684e0310d4e0f192b7bfb5ce2cf9f46c8d27f
3
+ metadata.gz: 8585feaf6ab7987fd8f5e51948a85bda3ad48732
4
+ data.tar.gz: 7e7aee4104de0ce1dc86a2b95875c03207cd34ea
5
5
  SHA512:
6
- metadata.gz: ee5ce52473522da18e953ed1ec3dd62401e3d55eeb29114437cdc2a7b90117f821bd14c2b5495848960fd127825478cf5976b776265af93b08fca0e7faa89729
7
- data.tar.gz: 862c34f7f0d227cf70a6801da73706d2cd1929cb61bb72ae102c6ca10499042b590d21adcc50080189586cfb33f7eb75ee94081d048185822f08544a589ba6da
6
+ metadata.gz: 49fb7861c15e0892a65a9577744d0448cf8b14a87f9355822918b85d9b24d6d700d0703c113cdb8d18d6ed439bd03cbcc13d594bbca2ba8a571c019f4b8417ef
7
+ data.tar.gz: eafc03cbcb91442e2895354fbc3b2b6005a75b9dbb256b5fed045d29fb2a72e4b7db25fc03d11f9aa12f4ec52bb706d5a342b91845dfbd856a320235af7b8acc
@@ -1 +1 @@
1
- ruby-2.0.0
1
+ 2.0.0-p353
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 1.9.3
4
+ - 1.9.3
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
- Bukkit::Server.start
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
 
@@ -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 much easier.}
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
 
@@ -25,6 +25,9 @@ module Bukkit
25
25
 
26
26
  # Download build.
27
27
  Bukkit::Server.download("http://dl.bukkit.org/latest-#{options[:build].to_s}/craftbukkit.jar")
28
+
29
+ # Give some friendly output.
30
+ puts "New server build at: ".blue + "#{Dir.pwd}/".light_blue
28
31
  end
29
32
  end
30
33
  end
@@ -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
- puts "Starting your CraftBukkit server.".green
7
- system 'java -jar craftbukkit.jar'
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
@@ -1,4 +1,4 @@
1
1
  module Bukkit
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  VERSION_FULL = "Bukkit-CLI v#{VERSION}"
4
4
  end
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.2.0
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-01 00:00:00.000000000 Z
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.1.11
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 much easier.
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:
Binary file