sys-proctable 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ############################################################################
2
4
  # sys_proctable_windows_spec.rb
3
5
  #
4
6
  # Test suite for the sys-proctable library for MS Windows. This should be
5
- # run via the 'rake test' task.
7
+ # run via the 'rake spec' task.
6
8
  ############################################################################
7
- require 'rspec'
8
- require 'sys-proctable'
9
+ require 'spec_helper'
9
10
  require 'socket'
10
- require_relative 'sys_proctable_all_spec'
11
11
 
12
- describe Sys::ProcTable do
12
+ RSpec.describe Sys::ProcTable, :windows do
13
13
  let(:hostname) { Socket.gethostname }
14
14
  let(:fields) {
15
15
  %w[
@@ -60,258 +60,258 @@ describe Sys::ProcTable do
60
60
  ]
61
61
  }
62
62
 
63
- context "fields" do
64
- it "responds to a fields method" do
63
+ context 'fields' do
64
+ it 'responds to a fields method' do
65
65
  expect(described_class).to respond_to(:fields)
66
66
  end
67
67
 
68
- it "returns the expected results for the fields method" do
68
+ it 'returns the expected results for the fields method' do
69
69
  expect(described_class.fields).to be_kind_of(Array)
70
70
  expect(described_class.fields).to eql(fields)
71
71
  end
72
72
  end
73
73
 
74
- context "ps" do
75
- it "accepts an optional host" do
76
- expect{ described_class.ps(host: hostname) }.to_not raise_error
74
+ context 'ps' do
75
+ it 'accepts an optional host' do
76
+ expect{ described_class.ps(:host => hostname) }.not_to raise_error
77
77
  end
78
78
 
79
- it "ignores unused options" do
80
- expect{ described_class.ps(:smaps => false) }.to_not raise_error
79
+ it 'ignores unused options' do
80
+ expect{ described_class.ps(:smaps => false) }.not_to raise_error
81
81
  end
82
82
  end
83
83
 
84
- context "ProcTable::Struct members" do
85
- subject { described_class.ps.first }
84
+ context 'ProcTable::Struct members' do
85
+ subject(:process){ described_class.ps.first }
86
86
 
87
- it "has a write_transfer_count struct member with the expected data type" do
88
- expect(subject).to respond_to(:write_transfer_count)
89
- expect(subject.write_transfer_count).to be_kind_of(Integer)
87
+ it 'has a write_transfer_count struct member with the expected data type' do
88
+ expect(process).to respond_to(:write_transfer_count)
89
+ expect(process.write_transfer_count).to be_kind_of(Integer)
90
90
  end
91
91
 
92
- it "has a write_operation_count struct member with the expected data type" do
93
- expect(subject).to respond_to(:write_operation_count)
94
- expect(subject.write_operation_count).to be_kind_of(Integer)
92
+ it 'has a write_operation_count struct member with the expected data type' do
93
+ expect(process).to respond_to(:write_operation_count)
94
+ expect(process.write_operation_count).to be_kind_of(Integer)
95
95
  end
96
96
 
97
- it "has a working_set_size struct member with the expected data type" do
98
- expect(subject).to respond_to(:working_set_size)
99
- expect(subject.working_set_size).to be_kind_of(Integer)
97
+ it 'has a working_set_size struct member with the expected data type' do
98
+ expect(process).to respond_to(:working_set_size)
99
+ expect(process.working_set_size).to be_kind_of(Integer)
100
100
  end
101
101
 
102
- it "has a windows_version struct member with the expected data type" do
103
- expect(subject).to respond_to(:windows_version)
104
- expect(subject.windows_version).to be_kind_of(String)
102
+ it 'has a windows_version struct member with the expected data type' do
103
+ expect(process).to respond_to(:windows_version)
104
+ expect(process.windows_version).to be_kind_of(String)
105
105
  end
106
106
 
107
- it "has a virtual_size struct member with the expected data type" do
108
- expect(subject).to respond_to(:virtual_size)
109
- expect(subject.virtual_size).to be_kind_of(Integer)
107
+ it 'has a virtual_size struct member with the expected data type' do
108
+ expect(process).to respond_to(:virtual_size)
109
+ expect(process.virtual_size).to be_kind_of(Integer)
110
110
  end
111
111
 
112
- it "has a user_mode_time struct member with the expected data type" do
113
- expect(subject).to respond_to(:user_mode_time)
114
- expect(subject.user_mode_time).to be_kind_of(Integer)
112
+ it 'has a user_mode_time struct member with the expected data type' do
113
+ expect(process).to respond_to(:user_mode_time)
114
+ expect(process.user_mode_time).to be_kind_of(Integer)
115
115
  end
116
116
 
117
- it "has a thread_count struct member with the expected data type" do
118
- expect(subject).to respond_to(:thread_count)
119
- expect(subject.thread_count).to be_kind_of(Integer)
117
+ it 'has a thread_count struct member with the expected data type' do
118
+ expect(process).to respond_to(:thread_count)
119
+ expect(process.thread_count).to be_kind_of(Integer)
120
120
  end
121
121
 
122
- it "has a termination_date struct member with the expected data type" do
123
- expect(subject).to respond_to(:termination_date)
124
- expect(subject.termination_date).to be_kind_of(Date) if subject.termination_date
122
+ it 'has a termination_date struct member with the expected data type' do
123
+ expect(process).to respond_to(:termination_date)
124
+ expect(process.termination_date).to be_kind_of(Date) if process.termination_date
125
125
  end
126
126
 
127
- it "has a status struct member with the expected data type" do
128
- expect(subject).to respond_to(:status)
129
- expect(subject.status).to be_nil # Always nil according to MSDN
127
+ it 'has a status struct member with the expected data type' do
128
+ expect(process).to respond_to(:status)
129
+ expect(process.status).to be_nil # Always nil according to MSDN
130
130
  end
131
131
 
132
- it "has a session_id struct member with the expected data type" do
133
- expect(subject).to respond_to(:session_id)
134
- expect(subject.session_id).to be_kind_of(Integer)
132
+ it 'has a session_id struct member with the expected data type' do
133
+ expect(process).to respond_to(:session_id)
134
+ expect(process.session_id).to be_kind_of(Integer)
135
135
  end
136
136
 
137
- it "has a read_transfer_count struct member with the expected data type" do
138
- expect(subject).to respond_to(:read_transfer_count)
139
- expect(subject.read_transfer_count).to be_kind_of(Integer)
137
+ it 'has a read_transfer_count struct member with the expected data type' do
138
+ expect(process).to respond_to(:read_transfer_count)
139
+ expect(process.read_transfer_count).to be_kind_of(Integer)
140
140
  end
141
141
 
142
- it "has a read_operation_count struct member with the expected data type" do
143
- expect(subject).to respond_to(:read_operation_count)
144
- expect(subject.read_operation_count).to be_kind_of(Integer)
142
+ it 'has a read_operation_count struct member with the expected data type' do
143
+ expect(process).to respond_to(:read_operation_count)
144
+ expect(process.read_operation_count).to be_kind_of(Integer)
145
145
  end
146
146
 
147
- it "has a quota_peak_paged_pool_usage struct member with the expected data type" do
148
- expect(subject).to respond_to(:quota_peak_paged_pool_usage)
149
- expect(subject.quota_peak_paged_pool_usage).to be_kind_of(Integer)
147
+ it 'has a quota_peak_paged_pool_usage struct member with the expected data type' do
148
+ expect(process).to respond_to(:quota_peak_paged_pool_usage)
149
+ expect(process.quota_peak_paged_pool_usage).to be_kind_of(Integer)
150
150
  end
151
151
 
152
- it "has a quota_peak_non_paged_pool_usage struct member with the expected data type" do
153
- expect(subject).to respond_to(:quota_peak_non_paged_pool_usage)
154
- expect(subject.quota_peak_non_paged_pool_usage).to be_kind_of(Integer)
152
+ it 'has a quota_peak_non_paged_pool_usage struct member with the expected data type' do
153
+ expect(process).to respond_to(:quota_peak_non_paged_pool_usage)
154
+ expect(process.quota_peak_non_paged_pool_usage).to be_kind_of(Integer)
155
155
  end
156
156
 
157
- it "has a quota_paged_pool_usage struct member with the expected data type" do
158
- expect(subject).to respond_to(:quota_paged_pool_usage)
159
- expect(subject.quota_paged_pool_usage).to be_kind_of(Integer)
157
+ it 'has a quota_paged_pool_usage struct member with the expected data type' do
158
+ expect(process).to respond_to(:quota_paged_pool_usage)
159
+ expect(process.quota_paged_pool_usage).to be_kind_of(Integer)
160
160
  end
161
161
 
162
- it "has a quota_non_paged_pool_usage struct member with the expected data type" do
163
- expect(subject).to respond_to(:quota_non_paged_pool_usage)
164
- expect(subject.quota_non_paged_pool_usage).to be_kind_of(Integer)
162
+ it 'has a quota_non_paged_pool_usage struct member with the expected data type' do
163
+ expect(process).to respond_to(:quota_non_paged_pool_usage)
164
+ expect(process.quota_non_paged_pool_usage).to be_kind_of(Integer)
165
165
  end
166
166
 
167
- it "has a pid struct member with the expected data type" do
168
- expect(subject).to respond_to(:pid)
169
- expect(subject.pid).to be_kind_of(Integer)
167
+ it 'has a pid struct member with the expected data type' do
168
+ expect(process).to respond_to(:pid)
169
+ expect(process.pid).to be_kind_of(Integer)
170
170
  end
171
171
 
172
- it "has a private_page_count struct member with the expected data type" do
173
- expect(subject).to respond_to(:private_page_count)
174
- expect(subject.private_page_count).to be_kind_of(Integer)
172
+ it 'has a private_page_count struct member with the expected data type' do
173
+ expect(process).to respond_to(:private_page_count)
174
+ expect(process.private_page_count).to be_kind_of(Integer)
175
175
  end
176
176
 
177
- it "has a priority struct member with the expected data type" do
178
- expect(subject).to respond_to(:priority)
179
- expect(subject.priority).to be_kind_of(Integer)
177
+ it 'has a priority struct member with the expected data type' do
178
+ expect(process).to respond_to(:priority)
179
+ expect(process.priority).to be_kind_of(Integer)
180
180
  end
181
181
 
182
- it "has a peak_working_set_size struct member with the expected data type" do
183
- expect(subject).to respond_to(:peak_working_set_size)
184
- expect(subject.peak_working_set_size).to be_kind_of(Integer)
182
+ it 'has a peak_working_set_size struct member with the expected data type' do
183
+ expect(process).to respond_to(:peak_working_set_size)
184
+ expect(process.peak_working_set_size).to be_kind_of(Integer)
185
185
  end
186
186
 
187
- it "has a peak_virtual_size struct member with the expected data type" do
188
- expect(subject).to respond_to(:peak_virtual_size)
189
- expect(subject.peak_virtual_size).to be_kind_of(Integer)
187
+ it 'has a peak_virtual_size struct member with the expected data type' do
188
+ expect(process).to respond_to(:peak_virtual_size)
189
+ expect(process.peak_virtual_size).to be_kind_of(Integer)
190
190
  end
191
191
 
192
- it "has a peak_page_file_usage struct member with the expected data type" do
193
- expect(subject).to respond_to(:peak_page_file_usage)
194
- expect(subject.peak_page_file_usage).to be_kind_of(Integer)
192
+ it 'has a peak_page_file_usage struct member with the expected data type' do
193
+ expect(process).to respond_to(:peak_page_file_usage)
194
+ expect(process.peak_page_file_usage).to be_kind_of(Integer)
195
195
  end
196
196
 
197
- it "has a ppid struct member with the expected data type" do
198
- expect(subject).to respond_to(:ppid)
199
- expect(subject.ppid).to be_kind_of(Integer)
197
+ it 'has a ppid struct member with the expected data type' do
198
+ expect(process).to respond_to(:ppid)
199
+ expect(process.ppid).to be_kind_of(Integer)
200
200
  end
201
201
 
202
- it "has a page_file_usage struct member with the expected data type" do
203
- expect(subject).to respond_to(:page_file_usage)
204
- expect(subject.page_file_usage).to be_kind_of(Integer)
202
+ it 'has a page_file_usage struct member with the expected data type' do
203
+ expect(process).to respond_to(:page_file_usage)
204
+ expect(process.page_file_usage).to be_kind_of(Integer)
205
205
  end
206
206
 
207
- it "has a page_faults struct member with the expected data type" do
208
- expect(subject).to respond_to(:page_faults)
209
- expect(subject.page_faults).to be_kind_of(Integer)
207
+ it 'has a page_faults struct member with the expected data type' do
208
+ expect(process).to respond_to(:page_faults)
209
+ expect(process.page_faults).to be_kind_of(Integer)
210
210
  end
211
211
 
212
- it "has a other_transfer_count struct member with the expected data type" do
213
- expect(subject).to respond_to(:other_transfer_count)
214
- expect(subject.other_transfer_count).to be_kind_of(Integer)
212
+ it 'has a other_transfer_count struct member with the expected data type' do
213
+ expect(process).to respond_to(:other_transfer_count)
214
+ expect(process.other_transfer_count).to be_kind_of(Integer)
215
215
  end
216
216
 
217
- it "has a other_operation_count struct member with the expected data type" do
218
- expect(subject).to respond_to(:other_operation_count)
219
- expect(subject.other_operation_count).to be_kind_of(Integer)
217
+ it 'has a other_operation_count struct member with the expected data type' do
218
+ expect(process).to respond_to(:other_operation_count)
219
+ expect(process.other_operation_count).to be_kind_of(Integer)
220
220
  end
221
221
 
222
- it "has a os_name struct member with the expected data type" do
223
- expect(subject).to respond_to(:os_name)
224
- expect(subject.os_name).to be_kind_of(String)
222
+ it 'has a os_name struct member with the expected data type' do
223
+ expect(process).to respond_to(:os_name)
224
+ expect(process.os_name).to be_kind_of(String)
225
225
  end
226
226
 
227
- it "has a os_creation_class_name struct member with the expected data type" do
228
- expect(subject).to respond_to(:os_creation_class_name)
229
- expect(subject.os_creation_class_name).to be_kind_of(String)
227
+ it 'has a os_creation_class_name struct member with the expected data type' do
228
+ expect(process).to respond_to(:os_creation_class_name)
229
+ expect(process.os_creation_class_name).to be_kind_of(String)
230
230
  end
231
231
 
232
- it "has a name struct member with the expected data type" do
233
- expect(subject).to respond_to(:name)
234
- expect(subject.name).to be_kind_of(String)
232
+ it 'has a name struct member with the expected data type' do
233
+ expect(process).to respond_to(:name)
234
+ expect(process.name).to be_kind_of(String)
235
235
  end
236
236
 
237
- it "has a minimum_working_set_size struct member with the expected data type" do
238
- expect(subject).to respond_to(:minimum_working_set_size)
239
- expect(subject.minimum_working_set_size).to be_kind_of(Integer) if subject.minimum_working_set_size
237
+ it 'has a minimum_working_set_size struct member with the expected data type' do
238
+ expect(process).to respond_to(:minimum_working_set_size)
239
+ expect(process.minimum_working_set_size).to be_kind_of(Integer) if process.minimum_working_set_size
240
240
  end
241
241
 
242
- it "has a maximum_working_set_size struct member with the expected data type" do
243
- expect(subject).to respond_to(:maximum_working_set_size)
244
- expect(subject.maximum_working_set_size).to be_kind_of(Integer) if subject.maximum_working_set_size
242
+ it 'has a maximum_working_set_size struct member with the expected data type' do
243
+ expect(process).to respond_to(:maximum_working_set_size)
244
+ expect(process.maximum_working_set_size).to be_kind_of(Integer) if process.maximum_working_set_size
245
245
  end
246
246
 
247
- it "has a kernel_mode_time struct member with the expected data type" do
248
- expect(subject).to respond_to(:kernel_mode_time)
249
- expect(subject.kernel_mode_time).to be_kind_of(Integer)
247
+ it 'has a kernel_mode_time struct member with the expected data type' do
248
+ expect(process).to respond_to(:kernel_mode_time)
249
+ expect(process.kernel_mode_time).to be_kind_of(Integer)
250
250
  end
251
251
 
252
- it "has a install_date struct member with the expected data type" do
253
- expect(subject).to respond_to(:install_date)
254
- expect(subject.install_date).to be_kind_of(Date) if subject.install_date
252
+ it 'has a install_date struct member with the expected data type' do
253
+ expect(process).to respond_to(:install_date)
254
+ expect(process.install_date).to be_kind_of(Date) if process.install_date
255
255
  end
256
256
 
257
- it "has a handle_count struct member with the expected data type" do
258
- expect(subject).to respond_to(:handle_count)
259
- expect(subject.handle_count).to be_kind_of(Integer)
257
+ it 'has a handle_count struct member with the expected data type' do
258
+ expect(process).to respond_to(:handle_count)
259
+ expect(process.handle_count).to be_kind_of(Integer)
260
260
  end
261
261
 
262
- it "has a handle struct member with the expected data type" do
263
- expect(subject).to respond_to(:handle)
264
- expect(subject.handle).to be_kind_of(String)
262
+ it 'has a handle struct member with the expected data type' do
263
+ expect(process).to respond_to(:handle)
264
+ expect(process.handle).to be_kind_of(String)
265
265
  end
266
266
 
267
- it "has a execution_state struct member with the expected data type" do
268
- expect(subject).to respond_to(:execution_state)
269
- expect(subject.execution_state).to be_nil
267
+ it 'has a execution_state struct member with the expected data type' do
268
+ expect(process).to respond_to(:execution_state)
269
+ expect(process.execution_state).to be_nil
270
270
  end
271
271
 
272
- it "has a executable_path struct member with the expected data type" do
273
- expect(subject).to respond_to(:executable_path)
274
- expect(subject.executable_path).to be_kind_of(String) if subject.executable_path
272
+ it 'has a executable_path struct member with the expected data type' do
273
+ expect(process).to respond_to(:executable_path)
274
+ expect(process.executable_path).to be_kind_of(String) if process.executable_path
275
275
  end
276
276
 
277
- it "has a description struct member with the expected data type" do
278
- expect(subject).to respond_to(:description)
279
- expect(subject.description).to be_kind_of(String)
277
+ it 'has a description struct member with the expected data type' do
278
+ expect(process).to respond_to(:description)
279
+ expect(process.description).to be_kind_of(String)
280
280
  end
281
281
 
282
- it "has a cs_name struct member with the expected data type" do
283
- expect(subject).to respond_to(:cs_name)
284
- expect(subject.cs_name).to be_kind_of(String)
282
+ it 'has a cs_name struct member with the expected data type' do
283
+ expect(process).to respond_to(:cs_name)
284
+ expect(process.cs_name).to be_kind_of(String)
285
285
  end
286
286
 
287
- it "has a cs_creation_class_name struct member with the expected data type" do
288
- expect(subject).to respond_to(:cs_creation_class_name)
289
- expect(subject.cs_creation_class_name).to be_kind_of(String)
287
+ it 'has a cs_creation_class_name struct member with the expected data type' do
288
+ expect(process).to respond_to(:cs_creation_class_name)
289
+ expect(process.cs_creation_class_name).to be_kind_of(String)
290
290
  end
291
291
 
292
- it "has a creation_date struct member with the expected data type" do
293
- expect(subject).to respond_to(:creation_date)
294
- expect(subject.creation_date).to be_kind_of(Date) if subject.creation_date
292
+ it 'has a creation_date struct member with the expected data type' do
293
+ expect(process).to respond_to(:creation_date)
294
+ expect(process.creation_date).to be_kind_of(Date) if process.creation_date
295
295
  end
296
296
 
297
- it "has a creation_class_name struct member with the expected data type" do
298
- expect(subject).to respond_to(:creation_class_name)
299
- expect(subject.creation_class_name).to be_kind_of(String)
297
+ it 'has a creation_class_name struct member with the expected data type' do
298
+ expect(process).to respond_to(:creation_class_name)
299
+ expect(process.creation_class_name).to be_kind_of(String)
300
300
  end
301
301
 
302
- it "has a comm struct member with the expected data type" do
303
- expect(subject).to respond_to(:comm)
304
- expect(subject.comm).to be_kind_of(String)
302
+ it 'has a comm struct member with the expected data type' do
303
+ expect(process).to respond_to(:comm)
304
+ expect(process.comm).to be_kind_of(String)
305
305
  end
306
306
 
307
- it "has a cmdline struct member with the expected data type" do
308
- expect(subject).to respond_to(:cmdline)
309
- expect(subject.cmdline).to be_kind_of(String) if subject.cmdline
307
+ it 'has a cmdline struct member with the expected data type' do
308
+ expect(process).to respond_to(:cmdline)
309
+ expect(process.cmdline).to be_kind_of(String) if process.cmdline
310
310
  end
311
311
 
312
- it "has a caption struct member with the expected data type" do
313
- expect(subject).to respond_to(:caption)
314
- expect(subject.caption).to be_kind_of(String)
312
+ it 'has a caption struct member with the expected data type' do
313
+ expect(process).to respond_to(:caption)
314
+ expect(process.caption).to be_kind_of(String)
315
315
  end
316
316
  end
317
317
  end
data/spec/sys_top_spec.rb CHANGED
@@ -3,49 +3,48 @@
3
3
  #
4
4
  # Test suite for the sys-top library that is included with this distribution.
5
5
  ##############################################################################
6
- require 'rspec'
7
- require 'sys/top'
6
+ require 'spec_helper'
8
7
 
9
- describe Sys::Top do
10
- context "constants" do
11
- it "sets the version to the expected value" do
8
+ RSpec.describe Sys::Top do
9
+ context 'constants' do
10
+ it 'sets the version to the expected value' do
12
11
  expect(Sys::Top::VERSION).to eql('1.0.5')
13
12
  end
14
13
  end
15
14
 
16
- context "top" do
17
- it "defines a top method" do
18
- expect(described_class).to respond_to(:top)
15
+ context 'top' do
16
+ it 'defines a top method' do
17
+ expect(described_class).to respond_to(:top)
19
18
  end
20
19
 
21
- it "returns an array" do
20
+ it 'returns an array' do
22
21
  expect(described_class.top).to be_kind_of(Array)
23
22
  end
24
23
 
25
- it "works with no arguments" do
26
- expect{ described_class.top }.to_not raise_error
24
+ it 'works with no arguments' do
25
+ expect{ described_class.top }.not_to raise_error
27
26
  end
28
27
 
29
- it "accepts a maximum of two arguments" do
28
+ it 'accepts a maximum of two arguments' do
30
29
  expect{ described_class.top(1, 'foo', 2) }.to raise_error(ArgumentError)
31
30
  end
32
31
 
33
- it "accepts optional arguments" do
34
- expect{ described_class.top(5) }.to_not raise_error
35
- expect{ described_class.top(5, 'cmdline') }.to_not raise_error
32
+ it 'accepts optional arguments' do
33
+ expect{ described_class.top(5) }.not_to raise_error
34
+ expect{ described_class.top(5, 'cmdline') }.not_to raise_error
36
35
  end
37
36
 
38
- it "returns the expected results with no arguments" do
39
- expect(described_class.top.size).to eql(10)
37
+ it 'returns the expected results with no arguments' do
38
+ expect(described_class.top.size).to be(10)
40
39
  expect(described_class.top.first).to be_kind_of(Struct::ProcTableStruct)
41
40
  end
42
41
 
43
- it "returns the expected result with a size argument" do
44
- expect(described_class.top(5).size).to eql(5)
42
+ it 'returns the expected result with a size argument' do
43
+ expect(described_class.top(5).size).to be(5)
45
44
  end
46
45
 
47
- it "returns the expected result with a size and sort_by argument" do
48
- expect(described_class.top(5, :cmdline).size).to eql(5)
46
+ it 'returns the expected result with a size and sort_by argument' do
47
+ expect(described_class.top(5, :cmdline).size).to be(5)
49
48
  end
50
49
  end
51
50
  end
@@ -1,41 +1,32 @@
1
1
  require 'rubygems'
2
+ require_relative 'lib/sys/proctable/version'
2
3
 
3
4
  Gem::Specification.new do |spec|
4
5
  spec.name = 'sys-proctable'
5
- spec.version = '1.2.6'
6
+ spec.version = Sys::ProcTable::VERSION
6
7
  spec.author = 'Daniel J. Berger'
7
8
  spec.license = 'Apache-2.0'
8
9
  spec.email = 'djberg96@gmail.com'
9
10
  spec.homepage = 'http://github.com/djberg96/sys-proctable'
10
11
  spec.summary = 'An interface for providing process table information'
11
- spec.test_files = FileList['spec/**/*.rb']
12
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
+ spec.test_files = Dir['spec/*.rb']
12
14
  spec.cert_chain = ['certs/djberg96_pub.pem']
13
15
 
14
- spec.files = FileList[
15
- "benchmarks/**/*.rb",
16
- "examples/**/*.rb",
17
- "lib/**/*.rb",
18
- 'CHANGES.rdoc',
19
- 'LICENSE',
20
- 'MANIFEST.rdoc',
21
- 'Rakefile',
22
- 'README.md',
23
- 'sys-proctable.gemspec'
24
- ]
25
-
26
- spec.extra_rdoc_files = ['CHANGES.rdoc', 'README.md', 'MANIFEST.rdoc']
27
-
28
- spec.add_dependency('ffi')
29
- spec.add_development_dependency('rspec')
16
+ spec.add_dependency('ffi', '~> 1.1')
17
+ spec.add_development_dependency('rspec', '~> 3.9')
30
18
  spec.add_development_dependency('rake')
19
+ spec.add_development_dependency('rubocop')
20
+ spec.add_development_dependency('rubocop-rspec')
31
21
 
32
22
  spec.metadata = {
33
- 'homepage_uri' => 'https://github.com/djberg96/sys-proctable',
34
- 'bug_tracker_uri' => 'https://github.com/djberg96/sys-proctable/issues',
35
- 'changelog_uri' => 'https://github.com/djberg96/sys-proctable/blob/master/CHANGES.rdoc',
36
- 'documentation_uri' => 'https://github.com/djberg96/sys-proctable/wiki',
37
- 'source_code_uri' => 'https://github.com/djberg96/sys-proctable',
38
- 'wiki_uri' => 'https://github.com/djberg96/sys-proctable/wiki'
23
+ 'homepage_uri' => 'https://github.com/djberg96/sys-proctable',
24
+ 'bug_tracker_uri' => 'https://github.com/djberg96/sys-proctable/issues',
25
+ 'changelog_uri' => 'https://github.com/djberg96/sys-proctable/blob/main/CHANGES.md',
26
+ 'documentation_uri' => 'https://github.com/djberg96/sys-proctable/wiki',
27
+ 'source_code_uri' => 'https://github.com/djberg96/sys-proctable',
28
+ 'wiki_uri' => 'https://github.com/djberg96/sys-proctable/wiki',
29
+ 'rubygems_mfa_required' => 'true'
39
30
  }
40
31
 
41
32
  spec.description = <<-EOF
data.tar.gz.sig CHANGED
Binary file