csstats 1.0.6 → 1.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62ca403d7af2f0c4e360b2aad4b7aa8b4c0d1adb
4
- data.tar.gz: a105d30eabbae88b37c8e78b4517bf52da96dd0a
3
+ metadata.gz: c7c268ffc0f969fd2c385d3d3f5ffb54ea1acb17
4
+ data.tar.gz: fcbe5fc8300570713f890c6c3f20084b5ca4b57f
5
5
  SHA512:
6
- metadata.gz: 64915feabd7078daea341085c861ea05ef04d0324ec0ffbece9586975fa85d1ef529a28ce9b69e26edea59614e198701c1357c85cb348b13eb9f2688fcc42e5b
7
- data.tar.gz: adfe45bb877909a1d9aa7bc27a65fac035485b1be9fc9d5393d143e1cd2894a07565a9ddbeb822553f2c0bdbc77957218a793600ec86852cdb629b77dd02e829
6
+ metadata.gz: f96bea67867c16803c117a0604104a6783e7d48be899842bbf6d86b95995b541547cd9c2c24103c263f752bf5159fe6a6c10f63d2f01051315948fbd0193038e
7
+ data.tar.gz: 2b0a039d59c8b378d90dfb97eccfa0d37195abe9fc2ffce97deec0375ecdb5f9ebb2ac7b2001ad97b3c8d6f480eca10379788fd6be0fa2ba2b30bde8c51b99c7
@@ -1,13 +1,18 @@
1
+ sudo: false
2
+
3
+ before_install:
4
+ - gem install bundler
5
+
1
6
  bundler_args: --without development
2
7
 
3
8
  language: ruby
4
9
 
5
10
  rvm:
6
- - 1.9.2
7
11
  - 1.9.3
8
12
  - 2.0.0
9
13
  - 2.1.0
10
14
  - 2.2.0
15
+ - 2.3.0
11
16
  - ruby-head
12
17
  - jruby-19mode
13
18
  - jruby-head
data/Gemfile CHANGED
@@ -3,9 +3,10 @@ source 'https://rubygems.org'
3
3
  gem 'rake'
4
4
 
5
5
  group :test do
6
- gem 'coveralls', '~> 0.8.1', require: false
7
- gem 'rspec', '~> 3.2.0'
8
- gem 'simplecov', '~> 0.10.0', require: false
6
+ gem 'codeclimate-test-reporter', require: false
7
+ gem 'coveralls', '~> 0.8.13', require: false
8
+ gem 'rspec', '~> 3.4.0'
9
+ gem 'simplecov', '~> 0.11.2', require: false
9
10
  end
10
11
 
11
12
  gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Justas Palumickas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # CSstats
2
2
 
3
- [![Gem Version](http://img.shields.io/gem/v/csstats.svg?style=flat-square)][rubygems]
4
- [![Build Status](http://img.shields.io/travis/jpalumickas/csstats/master.svg?style=flat-square)][travis]
5
- [![Dependency Status](http://img.shields.io/gemnasium/jpalumickas/csstats.svg?style=flat-square)][gemnasium]
3
+ [![Gem Version](https://img.shields.io/gem/v/csstats.svg?style=flat-square)][rubygems]
4
+ [![Build Status](https://img.shields.io/travis/jpalumickas/csstats.svg?style=flat-square)][travis]
5
+ [![Dependency Status](https://img.shields.io/gemnasium/jpalumickas/csstats.svg?style=flat-square)][gemnasium]
6
6
  [![Coverage Status](https://img.shields.io/coveralls/jpalumickas/csstats.svg?branch=master&style=flat-square)][coveralls]
7
7
  [![Code Climate](https://img.shields.io/codeclimate/github/jpalumickas/csstats.svg?style=flat-square)][codeclimate]
8
8
 
@@ -54,15 +54,15 @@ puts player_stats.kills
54
54
  This library aims to support and is [tested against][travis] the following Ruby
55
55
  implementations:
56
56
 
57
- * Ruby 1.9.2
58
57
  * Ruby 1.9.3
59
58
  * Ruby 2.0.0
60
59
  * Ruby 2.1.0
61
60
  * Ruby 2.2.0
61
+ * Ruby 2.3.0
62
62
 
63
63
  ## Copyright
64
- Copyright (c) 2013 Justas Palumickas.
65
- See [LICENSE][] for details.
64
+ Copyright (c) 2013-2016 Justas Palumickas.
65
+ See [LICENSE][license] for details.
66
66
 
67
67
  [rubygems]: https://rubygems.org/gems/csstats
68
68
  [travis]: http://travis-ci.org/jpalumickas/csstats
@@ -71,4 +71,4 @@ See [LICENSE][] for details.
71
71
  [codeclimate]: https://codeclimate.com/github/jpalumickas/csstats
72
72
 
73
73
  [amxx]: http://www.amxmodx.org/
74
- [license]: LICENSE.md
74
+ [license]: https://raw.githubusercontent.com/jpalumickas/csstats/master/LICENSE
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.required_ruby_version = '>= 1.9.2'
18
18
 
19
19
  gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
20
- gem.executables = gem.files.grep(/^bin\//).map { |f| File.basename(f) }
21
- gem.test_files = gem.files.grep(/^(test|spec|features)\//)
20
+ gem.executables = gem.files.grep(%r{^bin\/}).map { |f| File.basename(f) }
21
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)\/})
22
22
  gem.require_paths = ['lib']
23
23
 
24
24
  gem.add_dependency 'hashie', '~> 3.4'
@@ -16,7 +16,7 @@ module CSstats
16
16
  @maxplayers = options[:maxplayers] || 0
17
17
 
18
18
  @players = []
19
- fail CSstats::FileNotExist unless File.exist?(path.to_s)
19
+ raise CSstats::FileNotExist unless File.exist?(path.to_s)
20
20
 
21
21
  @file = File.new(path, 'r')
22
22
  _file_version = read_short_data(@file)
@@ -133,7 +133,7 @@ module CSstats
133
133
  # Returns the Integer.
134
134
  def read_int_data(handle)
135
135
  data = handle.read(4)
136
- fail CSstats::Error, 'Cannot read int data.' unless data
136
+ raise CSstats::Error, 'Cannot read int data.' unless data
137
137
 
138
138
  data.unpack('V').first
139
139
  end
@@ -145,7 +145,7 @@ module CSstats
145
145
  # Returns the Integer.
146
146
  def read_short_data(handle)
147
147
  data = handle.read(2)
148
- fail CSstats::Error, 'Cannot read short data.' unless data
148
+ raise CSstats::Error, 'Cannot read short data.' unless data
149
149
 
150
150
  data.unpack('v').first
151
151
  end
@@ -158,7 +158,7 @@ module CSstats
158
158
  # Returns the String.
159
159
  def read_string_data(handle, length)
160
160
  data = handle.read(length)
161
- fail CSstats::Error, 'Cannot read string data.' unless data
161
+ raise CSstats::Error, 'Cannot read string data.' unless data
162
162
 
163
163
  data.strip
164
164
  end
@@ -1,3 +1,3 @@
1
1
  module CSstats
2
- VERSION = '1.0.6' unless defined?(CSstats::VERSION)
2
+ VERSION = '1.0.7'.freeze
3
3
  end
@@ -1,10 +1,13 @@
1
1
  require 'simplecov'
2
2
  require 'coveralls'
3
+ require 'codeclimate-test-reporter'
3
4
 
4
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
5
+ SimpleCov.formatters = [
5
6
  SimpleCov::Formatter::HTMLFormatter,
6
- Coveralls::SimpleCov::Formatter
7
+ Coveralls::SimpleCov::Formatter,
8
+ CodeClimate::TestReporter::Formatter
7
9
  ]
10
+
8
11
  SimpleCov.start
9
12
 
10
13
  require 'csstats'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justas Palumickas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2016-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -51,7 +51,7 @@ files:
51
51
  - ".travis.yml"
52
52
  - CONTRIBUTING.md
53
53
  - Gemfile
54
- - LICENSE.md
54
+ - LICENSE
55
55
  - README.md
56
56
  - Rakefile
57
57
  - csstats.gemspec
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.4.5
86
+ rubygems_version: 2.5.1
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: ''
data/LICENSE.md DELETED
@@ -1,20 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2013 Justas Palumickas
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
- the Software, and to permit persons to whom the Software is furnished to do so,
10
- subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.