spigoter 0.4.1 → 0.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: 79747edbd2518cf8206729e3f1221eae117e3344
4
- data.tar.gz: 3b4f36ce4c493d8e030da9aedb875b1ce0572a91
3
+ metadata.gz: bb05263908c8b8fdcb88508c576d60fdc9525dfa
4
+ data.tar.gz: 0f07398dda7f4074bc2c5321d2e95237c8b0635a
5
5
  SHA512:
6
- metadata.gz: 24ebd04806a392d645ae7f10756046f8cb3ca4a18a43422a168ebfeaec9b46484db62bb2c2b9416d276263f3c349c5bdcb377b6612bedd3003ad5868df3c8638
7
- data.tar.gz: 43719e4f984dae43f0cb7ef4c5a53b27a0870f399e14a65b17699fc9d86258123fe9aa8b6aeef2a53f5491f13294bd27090dc3573d0812c53ef525ba3599c36a
6
+ metadata.gz: da58973644c6e0fda2cd178fc875867d31b3b326ff859cf8061dbb5db1856d108ffc69269410cc476579c0829f397518290093a00fb92ef3ca6ecfd1dd7314d1
7
+ data.tar.gz: c15b1ccd2ed4ab636dee62b8c940cc5270630a028e44a5742b87fdb1b8c7308bf57d5613b990da1b3856e652748c3ca55ccc03f5043fed3d3cd8b7fb58c61060
@@ -17,4 +17,4 @@ ratings:
17
17
  - "lib/**.rb"
18
18
  exclude_paths:
19
19
  - spec/
20
- - Guardfile
20
+ - Guardfile
File without changes
File without changes
data/Guardfile CHANGED
File without changes
File without changes
File without changes
@@ -44,7 +44,9 @@ module Spigoter
44
44
  def self.download_buildtools
45
45
  unless File.exist?('BuildTools.jar')
46
46
  file = Spigoter::Utils.download('https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar')
47
- File.open('BuildTools.jar', 'wb').write(file)
47
+ File.open('BuildTools.jar', 'wb') do |f|
48
+ f.write(file)
49
+ end
48
50
  end
49
51
  end
50
52
 
File without changes
File without changes
File without changes
File without changes
@@ -13,7 +13,10 @@ module Spigoter
13
13
  def self.loadyaml(path)
14
14
  raise "File #{path} doesn't exists" unless File.exist?(path)
15
15
 
16
- opts = YAML.load(File.open(path).read)
16
+ opts = {}
17
+ File.open(path, 'r') do |f|
18
+ opts = YAML.load(f)
19
+ end
17
20
 
18
21
  raise "Malformed YAML file #{path}" unless opts.class == Hash
19
22
  opts
@@ -1,3 +1,3 @@
1
1
  module Spigoter
2
- VERSION = '0.4.1'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spigoter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Ramos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -200,7 +200,6 @@ files:
200
200
  - lib/spigoter/webapi/devbukkit.rb
201
201
  - lib/spigoter/webapi/plugin.rb
202
202
  - lib/spigoter/webapi/spigot.rb
203
- - pkg/.gitignore
204
203
  - spigoter.gemspec
205
204
  - tmp/.gitignore
206
205
  homepage: https://github.com/DanielRamosAcosta/spigoter