vnstat-ruby 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +49 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +7 -5
  6. data/Gemfile +4 -10
  7. data/Gemfile.lock +29 -75
  8. data/LICENSE.txt +18 -17
  9. data/README.md +1 -3
  10. data/Rakefile +4 -25
  11. data/lib/vnstat-ruby.rb +2 -0
  12. data/lib/vnstat.rb +17 -2
  13. data/lib/vnstat/configuration.rb +4 -2
  14. data/lib/vnstat/document.rb +6 -1
  15. data/lib/vnstat/error.rb +2 -0
  16. data/lib/vnstat/errors/executable_not_found.rb +2 -0
  17. data/lib/vnstat/errors/unknown_interface.rb +2 -0
  18. data/lib/vnstat/interface.rb +4 -1
  19. data/lib/vnstat/interface_collection.rb +2 -0
  20. data/lib/vnstat/parser.rb +4 -2
  21. data/lib/vnstat/result.rb +8 -5
  22. data/lib/vnstat/result/date_delegation.rb +2 -0
  23. data/lib/vnstat/result/day.rb +4 -1
  24. data/lib/vnstat/result/hour.rb +6 -2
  25. data/lib/vnstat/result/minute.rb +5 -2
  26. data/lib/vnstat/result/month.rb +6 -2
  27. data/lib/vnstat/result/time_comparable.rb +2 -0
  28. data/lib/vnstat/system_call.rb +10 -7
  29. data/lib/vnstat/traffic.rb +2 -0
  30. data/lib/vnstat/traffic/base.rb +2 -0
  31. data/lib/vnstat/traffic/daily.rb +2 -0
  32. data/lib/vnstat/traffic/hourly.rb +2 -0
  33. data/lib/vnstat/traffic/monthly.rb +2 -0
  34. data/lib/vnstat/traffic/tops.rb +2 -0
  35. data/lib/vnstat/utils.rb +2 -0
  36. data/lib/vnstat/version.rb +5 -0
  37. data/vnstat-ruby.gemspec +36 -109
  38. metadata +27 -65
  39. data/.codeclimate.yml +0 -14
  40. data/spec/lib/vnstat/configuration_spec.rb +0 -72
  41. data/spec/lib/vnstat/document_spec.rb +0 -54
  42. data/spec/lib/vnstat/errors/executable_not_found_spec.rb +0 -5
  43. data/spec/lib/vnstat/errors/unknown_interface_spec.rb +0 -5
  44. data/spec/lib/vnstat/interface_collection_spec.rb +0 -194
  45. data/spec/lib/vnstat/interface_spec.rb +0 -327
  46. data/spec/lib/vnstat/result/day_spec.rb +0 -39
  47. data/spec/lib/vnstat/result/hour_spec.rb +0 -43
  48. data/spec/lib/vnstat/result/minute_spec.rb +0 -54
  49. data/spec/lib/vnstat/result/month_spec.rb +0 -39
  50. data/spec/lib/vnstat/result_spec.rb +0 -86
  51. data/spec/lib/vnstat/system_call_spec.rb +0 -209
  52. data/spec/lib/vnstat/traffic/daily_spec.rb +0 -109
  53. data/spec/lib/vnstat/traffic/hourly_spec.rb +0 -153
  54. data/spec/lib/vnstat/traffic/monthly_spec.rb +0 -46
  55. data/spec/lib/vnstat/traffic/tops_spec.rb +0 -48
  56. data/spec/lib/vnstat/utils_spec.rb +0 -130
  57. data/spec/lib/vnstat_spec.rb +0 -61
  58. data/spec/spec_helper.rb +0 -98
  59. data/spec/support/shared_examples/shared_examples_for_date_delegation.rb +0 -19
  60. data/spec/support/shared_examples/shared_examples_for_traffic_collection.rb +0 -19
@@ -1,16 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  ##
3
5
  # A class representing a tracking result.
4
6
  #
5
- # @attr_reader [Integer] bytes_received The received bytes.
6
- # @attr_reader [Integer] bytes_sent The sent bytes.
7
+ # @!attribute [r] bytes_received
8
+ # @return [Integer] The received bytes.
9
+ # @!attribute [r] bytes_sent
10
+ # @return [Integer] The sent bytes.
7
11
  class Result
8
- autoload :Minute, 'vnstat/result/minute'
12
+ autoload :DateDelegation, 'vnstat/result/date_delegation'
9
13
  autoload :Day, 'vnstat/result/day'
10
14
  autoload :Hour, 'vnstat/result/hour'
15
+ autoload :Minute, 'vnstat/result/minute'
11
16
  autoload :Month, 'vnstat/result/month'
12
-
13
- autoload :DateDelegation, 'vnstat/result/date_delegation'
14
17
  autoload :TimeComparable, 'vnstat/result/time_comparable'
15
18
 
16
19
  include Comparable
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  class Result
3
5
  ##
@@ -1,9 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  class Result
3
5
  ##
4
6
  # A class representing a tracking result for a specific day.
5
7
  #
6
- # @attr_reader [Date] date The date the result was captured on.
8
+ # @!attribute [r] date
9
+ # @return [Date] The date the result was captured on.
7
10
  class Day < Result
8
11
  include DateDelegation
9
12
 
@@ -1,10 +1,14 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  class Result
3
5
  ##
4
6
  # A class representing a tracking result for a specific hour.
5
7
  #
6
- # @attr_reader [Date] date The date the result was captured on.
7
- # @attr_reader [Integer] hour The hour the result was captured at.
8
+ # @!attribute [r] date
9
+ # @return [Date] The date the result was captured on.
10
+ # @!attribute [r] hour
11
+ # @return [Integer] The hour the result was captured at.
8
12
  class Hour < Result
9
13
  include DateDelegation
10
14
  include TimeComparable
@@ -1,9 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  class Result
3
5
  ##
4
6
  # A class representing a tracking result for a specific minute.
5
7
  #
6
- # @attr_reader [DateTime] time The time the result was captured at.
8
+ # @!attribute [r] time
9
+ # @return [DateTime] The time the result was captured at.
7
10
  class Minute < Result
8
11
  include DateDelegation
9
12
  include TimeComparable
@@ -55,7 +58,7 @@ module Vnstat
55
58
  #
56
59
  # @return [Integer]
57
60
  def minute
58
- time.minute
61
+ time.min
59
62
  end
60
63
  end
61
64
  end
@@ -1,10 +1,14 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  class Result
3
5
  ##
4
6
  # A class representing a tracking result for a specific month.
5
7
  #
6
- # @attr_reader [Integer] year The year the result was captured in.
7
- # @attr_reader [Integer] month The month the result was captured in.
8
+ # @!attribute [r] year
9
+ # @return [Integer] The year the result was captured in.
10
+ # @!attribute [r] month
11
+ # @return [Integer] The month the result was captured in.
8
12
  class Month < Result
9
13
  attr_reader :year, :month
10
14
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  class Result
3
5
  ##
@@ -1,16 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'open3'
2
4
 
3
5
  module Vnstat
4
6
  ##
5
7
  # A class responsible for communication with command line interfaces.
6
8
  #
7
- # @attr_reader [Array] args
8
- # @attr_reader [String, nil] success_result The STDOUT output of the called
9
- # command.
10
- # @attr_reader [String, nil] error_result The STDERR output of the called
11
- # command.
12
- # @attr_reader [Process::Status, nil] exit_status The exit status of the
13
- # called command.
9
+ # @!attribute [r] args
10
+ # @return [Array]
11
+ # @!attribute [r] success_result
12
+ # @return [String, nil] The STDOUT output of the called command.
13
+ # @!attribute [r] error_result
14
+ # @return [String, nil] The STDERR output of the called command.
15
+ # @!attribute [r] exit_status
16
+ # @return [Process::Status, nil] The exit status of the called command.
14
17
  class SystemCall
15
18
  attr_reader :args, :success_result, :error_result, :exit_status
16
19
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  ##
3
5
  # A namespace incorporating all kinds of traffic collections.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  module Traffic
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  module Traffic
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  module Traffic
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  module Traffic
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  module Traffic
3
5
  ##
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Vnstat
2
4
  ##
3
5
  # A module containing several utility methods.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Vnstat
4
+ VERSION = '2.0.0'
5
+ end
@@ -1,116 +1,43 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: vnstat-ruby 1.1.0 ruby lib
1
+ # frozen_string_literal: true
6
2
 
7
- Gem::Specification.new do |s|
8
- s.name = "vnstat-ruby".freeze
9
- s.version = "1.1.0"
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'vnstat/version'
10
6
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib".freeze]
13
- s.authors = ["Tobias Casper".freeze]
14
- s.date = "2017-04-27"
15
- s.description = "Uses the the vnstat CLI to track your network traffic.".freeze
16
- s.email = "tobias.casper@gmail.com".freeze
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.md"
20
- ]
21
- s.files = [
22
- ".codeclimate.yml",
23
- ".document",
24
- ".rspec",
25
- ".rubocop.yml",
26
- ".travis.yml",
27
- "Gemfile",
28
- "Gemfile.lock",
29
- "LICENSE.txt",
30
- "README.md",
31
- "Rakefile",
32
- "VERSION",
33
- "lib/vnstat-ruby.rb",
34
- "lib/vnstat.rb",
35
- "lib/vnstat/configuration.rb",
36
- "lib/vnstat/document.rb",
37
- "lib/vnstat/error.rb",
38
- "lib/vnstat/errors/executable_not_found.rb",
39
- "lib/vnstat/errors/unknown_interface.rb",
40
- "lib/vnstat/interface.rb",
41
- "lib/vnstat/interface_collection.rb",
42
- "lib/vnstat/parser.rb",
43
- "lib/vnstat/result.rb",
44
- "lib/vnstat/result/date_delegation.rb",
45
- "lib/vnstat/result/day.rb",
46
- "lib/vnstat/result/hour.rb",
47
- "lib/vnstat/result/minute.rb",
48
- "lib/vnstat/result/month.rb",
49
- "lib/vnstat/result/time_comparable.rb",
50
- "lib/vnstat/system_call.rb",
51
- "lib/vnstat/traffic.rb",
52
- "lib/vnstat/traffic/base.rb",
53
- "lib/vnstat/traffic/daily.rb",
54
- "lib/vnstat/traffic/hourly.rb",
55
- "lib/vnstat/traffic/monthly.rb",
56
- "lib/vnstat/traffic/tops.rb",
57
- "lib/vnstat/utils.rb",
58
- "spec/lib/vnstat/configuration_spec.rb",
59
- "spec/lib/vnstat/document_spec.rb",
60
- "spec/lib/vnstat/errors/executable_not_found_spec.rb",
61
- "spec/lib/vnstat/errors/unknown_interface_spec.rb",
62
- "spec/lib/vnstat/interface_collection_spec.rb",
63
- "spec/lib/vnstat/interface_spec.rb",
64
- "spec/lib/vnstat/result/day_spec.rb",
65
- "spec/lib/vnstat/result/hour_spec.rb",
66
- "spec/lib/vnstat/result/minute_spec.rb",
67
- "spec/lib/vnstat/result/month_spec.rb",
68
- "spec/lib/vnstat/result_spec.rb",
69
- "spec/lib/vnstat/system_call_spec.rb",
70
- "spec/lib/vnstat/traffic/daily_spec.rb",
71
- "spec/lib/vnstat/traffic/hourly_spec.rb",
72
- "spec/lib/vnstat/traffic/monthly_spec.rb",
73
- "spec/lib/vnstat/traffic/tops_spec.rb",
74
- "spec/lib/vnstat/utils_spec.rb",
75
- "spec/lib/vnstat_spec.rb",
76
- "spec/spec_helper.rb",
77
- "spec/support/shared_examples/shared_examples_for_date_delegation.rb",
78
- "spec/support/shared_examples/shared_examples_for_traffic_collection.rb",
79
- "vnstat-ruby.gemspec"
80
- ]
81
- s.homepage = "http://github.com/tlux/vnstat-ruby".freeze
82
- s.licenses = ["MIT".freeze]
83
- s.rubygems_version = "2.6.11".freeze
84
- s.summary = "A Ruby wrapper for vnstat.".freeze
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'vnstat-ruby'
9
+ spec.version = Vnstat::VERSION
10
+ spec.authors = ['Tobias Casper']
11
+ spec.email = ['tobias.casper@gmail.com']
85
12
 
86
- if s.respond_to? :specification_version then
87
- s.specification_version = 4
13
+ spec.summary = 'A library to track your network traffic using vnstat.'
14
+ spec.description =
15
+ 'Utilizes the the vnstat CLI to track your network traffic.'
16
+ spec.homepage = 'https://github.com/tlux/vnstat-ruby'
17
+ spec.license = 'MIT'
88
18
 
89
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
90
- s.add_runtime_dependency(%q<nokogiri>.freeze, ["~> 1.6"])
91
- s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
92
- s.add_development_dependency(%q<codeclimate-test-reporter>.freeze, ["= 0.6.0"])
93
- s.add_development_dependency(%q<jeweler>.freeze, [">= 2.0.1", "~> 2.0"])
94
- s.add_development_dependency(%q<rspec>.freeze, ["~> 3.0"])
95
- s.add_development_dependency(%q<rubocop>.freeze, ["~> 0"])
96
- s.add_development_dependency(%q<yard>.freeze, ["~> 0"])
97
- else
98
- s.add_dependency(%q<nokogiri>.freeze, ["~> 1.6"])
99
- s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
100
- s.add_dependency(%q<codeclimate-test-reporter>.freeze, ["= 0.6.0"])
101
- s.add_dependency(%q<jeweler>.freeze, [">= 2.0.1", "~> 2.0"])
102
- s.add_dependency(%q<rspec>.freeze, ["~> 3.0"])
103
- s.add_dependency(%q<rubocop>.freeze, ["~> 0"])
104
- s.add_dependency(%q<yard>.freeze, ["~> 0"])
105
- end
19
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the
20
+ # 'allowed_push_host' to allow pushing to a single host or delete this section
21
+ # to allow pushing to any host.
22
+ if spec.respond_to?(:metadata)
23
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
106
24
  else
107
- s.add_dependency(%q<nokogiri>.freeze, ["~> 1.6"])
108
- s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
109
- s.add_dependency(%q<codeclimate-test-reporter>.freeze, ["= 0.6.0"])
110
- s.add_dependency(%q<jeweler>.freeze, [">= 2.0.1", "~> 2.0"])
111
- s.add_dependency(%q<rspec>.freeze, ["~> 3.0"])
112
- s.add_dependency(%q<rubocop>.freeze, ["~> 0"])
113
- s.add_dependency(%q<yard>.freeze, ["~> 0"])
25
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
26
+ 'public gem pushes.'
114
27
  end
115
- end
116
28
 
29
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
30
+ f.match(%r{^(test|spec|features)/})
31
+ end
32
+ spec.bindir = 'exe'
33
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ['lib']
35
+
36
+ spec.add_dependency 'nokogiri', '~> 1.8'
37
+
38
+ spec.add_development_dependency 'bundler', '~> 1.14'
39
+ spec.add_development_dependency 'rake', '~> 10.0'
40
+ spec.add_development_dependency 'rspec', '~> 3.0'
41
+ spec.add_development_dependency 'rubocop', '~> 0.53'
42
+ spec.add_development_dependency 'yard', '~> 0.9.12'
43
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vnstat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Casper
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,62 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.14'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
- name: codeclimate-test-reporter
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
46
- - !ruby/object:Gem::Version
47
- version: 0.6.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '='
53
- - !ruby/object:Gem::Version
54
- version: 0.6.0
55
- - !ruby/object:Gem::Dependency
56
- name: jeweler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 2.0.1
62
45
  - - "~>"
63
46
  - !ruby/object:Gem::Version
64
- version: '2.0'
47
+ version: '10.0'
65
48
  type: :development
66
49
  prerelease: false
67
50
  version_requirements: !ruby/object:Gem::Requirement
68
51
  requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: 2.0.1
72
52
  - - "~>"
73
53
  - !ruby/object:Gem::Version
74
- version: '2.0'
54
+ version: '10.0'
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: rspec
77
57
  requirement: !ruby/object:Gem::Requirement
@@ -92,40 +72,41 @@ dependencies:
92
72
  requirements:
93
73
  - - "~>"
94
74
  - !ruby/object:Gem::Version
95
- version: '0'
75
+ version: '0.53'
96
76
  type: :development
97
77
  prerelease: false
98
78
  version_requirements: !ruby/object:Gem::Requirement
99
79
  requirements:
100
80
  - - "~>"
101
81
  - !ruby/object:Gem::Version
102
- version: '0'
82
+ version: '0.53'
103
83
  - !ruby/object:Gem::Dependency
104
84
  name: yard
105
85
  requirement: !ruby/object:Gem::Requirement
106
86
  requirements:
107
87
  - - "~>"
108
88
  - !ruby/object:Gem::Version
109
- version: '0'
89
+ version: 0.9.12
110
90
  type: :development
111
91
  prerelease: false
112
92
  version_requirements: !ruby/object:Gem::Requirement
113
93
  requirements:
114
94
  - - "~>"
115
95
  - !ruby/object:Gem::Version
116
- version: '0'
117
- description: Uses the the vnstat CLI to track your network traffic.
118
- email: tobias.casper@gmail.com
96
+ version: 0.9.12
97
+ description: Utilizes the the vnstat CLI to track your network traffic.
98
+ email:
99
+ - tobias.casper@gmail.com
119
100
  executables: []
120
101
  extensions: []
121
- extra_rdoc_files:
122
- - LICENSE.txt
123
- - README.md
102
+ extra_rdoc_files: []
124
103
  files:
125
- - ".codeclimate.yml"
126
104
  - ".document"
105
+ - ".gitignore"
127
106
  - ".rspec"
128
107
  - ".rubocop.yml"
108
+ - ".ruby-gemset"
109
+ - ".ruby-version"
129
110
  - ".travis.yml"
130
111
  - Gemfile
131
112
  - Gemfile.lock
@@ -158,32 +139,13 @@ files:
158
139
  - lib/vnstat/traffic/monthly.rb
159
140
  - lib/vnstat/traffic/tops.rb
160
141
  - lib/vnstat/utils.rb
161
- - spec/lib/vnstat/configuration_spec.rb
162
- - spec/lib/vnstat/document_spec.rb
163
- - spec/lib/vnstat/errors/executable_not_found_spec.rb
164
- - spec/lib/vnstat/errors/unknown_interface_spec.rb
165
- - spec/lib/vnstat/interface_collection_spec.rb
166
- - spec/lib/vnstat/interface_spec.rb
167
- - spec/lib/vnstat/result/day_spec.rb
168
- - spec/lib/vnstat/result/hour_spec.rb
169
- - spec/lib/vnstat/result/minute_spec.rb
170
- - spec/lib/vnstat/result/month_spec.rb
171
- - spec/lib/vnstat/result_spec.rb
172
- - spec/lib/vnstat/system_call_spec.rb
173
- - spec/lib/vnstat/traffic/daily_spec.rb
174
- - spec/lib/vnstat/traffic/hourly_spec.rb
175
- - spec/lib/vnstat/traffic/monthly_spec.rb
176
- - spec/lib/vnstat/traffic/tops_spec.rb
177
- - spec/lib/vnstat/utils_spec.rb
178
- - spec/lib/vnstat_spec.rb
179
- - spec/spec_helper.rb
180
- - spec/support/shared_examples/shared_examples_for_date_delegation.rb
181
- - spec/support/shared_examples/shared_examples_for_traffic_collection.rb
142
+ - lib/vnstat/version.rb
182
143
  - vnstat-ruby.gemspec
183
- homepage: http://github.com/tlux/vnstat-ruby
144
+ homepage: https://github.com/tlux/vnstat-ruby
184
145
  licenses:
185
146
  - MIT
186
- metadata: {}
147
+ metadata:
148
+ allowed_push_host: https://rubygems.org
187
149
  post_install_message:
188
150
  rdoc_options: []
189
151
  require_paths:
@@ -200,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
162
  version: '0'
201
163
  requirements: []
202
164
  rubyforge_project:
203
- rubygems_version: 2.6.11
165
+ rubygems_version: 2.7.3
204
166
  signing_key:
205
167
  specification_version: 4
206
- summary: A Ruby wrapper for vnstat.
168
+ summary: A library to track your network traffic using vnstat.
207
169
  test_files: []