service_skeleton 0.0.0.49.g47046b9 → 1.0.1

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
  SHA256:
3
- metadata.gz: 6595df8dcd6a5aa6f990cc07d2c75767847406839fce5a8e3db669b571a3eedf
4
- data.tar.gz: 7594270e8c1ae655c52940034539a28aa3cefa91c6e2b5adf165dcbfa84082ab
3
+ metadata.gz: 5ed3c72438e33a325a29df44b7b2eba93132e9337b48731852fc89923991184a
4
+ data.tar.gz: d797ef75931811bc31b279f10f04c437bb887741ead4713a42d9cc51784efda6
5
5
  SHA512:
6
- metadata.gz: ab6d5545797c52b34f6ee43be6dbc86523fa5351f9cc0fa37f217fcdb17eddc005cb3ea73698f57958460490aa3c14bc357a7541675c71d67ea1a2441fc23629
7
- data.tar.gz: 151394f7ae7a38d8cc9121c96431085d1cb9129c7162d9fc8052f025179dc717f9bccf810c9cf1277e70e93651a53974a1c2a41657f480e4cbc578839eb94e38
6
+ metadata.gz: 10d9a89e15ff340034e77598b822064c1779c9c1ff360ce66cabdda431cbc41e1733ad7a1cd656fc93968c0deaf61f2a3ff377a608c049c622ccebc2168d82d6
7
+ data.tar.gz: 2558d43f93cb080aedb23e08679c757ebbd14fd74699fce2ef87e2ebfa802b12548ab7e0f8b6f8c74de4e684f7850283967967a85b16cb007aaef2ea0cefe9bf
data/README.md CHANGED
@@ -244,7 +244,7 @@ variables:
244
244
  class GenericHelloService
245
245
  include ServiceSkeleton
246
246
 
247
- string :RECIPIENT, matches: /\A\w+\z/
247
+ string :RECIPIENT, match: /\A\w+\z/
248
248
 
249
249
  def run
250
250
  loop do
@@ -268,7 +268,7 @@ default for a config variable, like so:
268
268
  class GenericHelloService
269
269
  include ServiceSkeleton
270
270
 
271
- string :RECIPIENT, matches: /\a\w+\z/, default: "Anonymous Coward"
271
+ string :RECIPIENT, match: /\a\w+\z/, default: "Anonymous Coward"
272
272
 
273
273
  # ...
274
274
 
@@ -299,7 +299,7 @@ extending the above example a little more, you could do something like this:
299
299
  class GenericHelloService
300
300
  include ServiceSkeleton
301
301
 
302
- string :GENERIC_HELLO_SERVICE_RECIPIENT, matches: /\A\w+\z/
302
+ string :GENERIC_HELLO_SERVICE_RECIPIENT, match: /\A\w+\z/
303
303
 
304
304
  def run
305
305
  loop do
@@ -534,7 +534,7 @@ such a metric like this:
534
534
  class GenericHelloService
535
535
  include ServiceSkeleton
536
536
 
537
- string :GENERIC_HELLO_SERVICE_RECIPIENT, matches: /\A\w+\z/
537
+ string :GENERIC_HELLO_SERVICE_RECIPIENT, match: /\A\w+\z/
538
538
 
539
539
  counter :greetings_total, docstring: "How many greetings we have sent", labels: %i{recipient}
540
540
 
@@ -547,7 +547,7 @@ to increment our greeting counter, you simply do:
547
547
  class GenericHelloService
548
548
  include ServiceSkeleton
549
549
 
550
- string :GENERIC_HELLO_SERVICE_RECIPIENT, matches: /\A\w+\z/
550
+ string :GENERIC_HELLO_SERVICE_RECIPIENT, match: /\A\w+\z/
551
551
 
552
552
  counter :greetings_total, docstring: "How many greetings we have sent", labels: %i{recipient}
553
553
 
@@ -568,7 +568,7 @@ before defining the metric accessor method, which keeps typing to a minimum:
568
568
  class GenericHelloService
569
569
  include ServiceSkeleton
570
570
 
571
- string :GENERIC_HELLO_SERVICE_RECIPIENT, matches: /\A\w+\z/
571
+ string :GENERIC_HELLO_SERVICE_RECIPIENT, match: /\A\w+\z/
572
572
 
573
573
  counter :generic_hello_service_greetings_total, docstring: "How many greetings we have sent", labels: %i{recipient}
574
574
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ServiceSkeleton
2
4
  module UltravisorChildren
3
5
  def register_ultravisor_children(ultravisor, config:, metrics_registry:)
@@ -24,8 +24,8 @@ Gem::Specification.new do |s|
24
24
  common aspects of a system service.
25
25
  EOF
26
26
 
27
- s.authors = ["Matt Palmer"]
28
- s.email = ["matt.palmer@discourse.org"]
27
+ s.authors = ["Matt Palmer", "Sam Saffron"]
28
+ s.email = ["sam.saffron@discourse.org"]
29
29
  s.homepage = "https://github.com/discourse/service_skeleton"
30
30
 
31
31
  s.files = `git ls-files -z`.split("\0").reject { |f| f =~ /^(G|spec|Rakefile)/ }
@@ -45,10 +45,10 @@ Gem::Specification.new do |s|
45
45
  s.add_development_dependency 'guard-rspec'
46
46
  s.add_development_dependency 'guard-rubocop'
47
47
  s.add_development_dependency 'rack-test'
48
- s.add_development_dependency 'rake', "~> 12.0"
48
+ s.add_development_dependency 'rake'
49
49
  s.add_development_dependency 'redcarpet'
50
50
  s.add_development_dependency 'rspec'
51
- s.add_development_dependency 'rubocop', "~> 0.79"
51
+ s.add_development_dependency 'rubocop'
52
52
  s.add_development_dependency 'rubocop-discourse'
53
53
  s.add_development_dependency 'simplecov'
54
54
  s.add_development_dependency 'yard'
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_skeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.49.g47046b9
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
- autorequire:
8
+ - Sam Saffron
9
+ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2020-07-22 00:00:00.000000000 Z
12
+ date: 2020-10-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: frankenstein
@@ -188,16 +189,16 @@ dependencies:
188
189
  name: rake
189
190
  requirement: !ruby/object:Gem::Requirement
190
191
  requirements:
191
- - - "~>"
192
+ - - ">="
192
193
  - !ruby/object:Gem::Version
193
- version: '12.0'
194
+ version: '0'
194
195
  type: :development
195
196
  prerelease: false
196
197
  version_requirements: !ruby/object:Gem::Requirement
197
198
  requirements:
198
- - - "~>"
199
+ - - ">="
199
200
  - !ruby/object:Gem::Version
200
- version: '12.0'
201
+ version: '0'
201
202
  - !ruby/object:Gem::Dependency
202
203
  name: redcarpet
203
204
  requirement: !ruby/object:Gem::Requirement
@@ -230,16 +231,16 @@ dependencies:
230
231
  name: rubocop
231
232
  requirement: !ruby/object:Gem::Requirement
232
233
  requirements:
233
- - - "~>"
234
+ - - ">="
234
235
  - !ruby/object:Gem::Version
235
- version: '0.79'
236
+ version: '0'
236
237
  type: :development
237
238
  prerelease: false
238
239
  version_requirements: !ruby/object:Gem::Requirement
239
240
  requirements:
240
- - - "~>"
241
+ - - ">="
241
242
  - !ruby/object:Gem::Version
242
- version: '0.79'
243
+ version: '0'
243
244
  - !ruby/object:Gem::Dependency
244
245
  name: rubocop-discourse
245
246
  requirement: !ruby/object:Gem::Requirement
@@ -290,7 +291,7 @@ description: |
290
291
  for your services, as well as a collection of helper classes to manage
291
292
  common aspects of a system service.
292
293
  email:
293
- - matt.palmer@discourse.org
294
+ - sam.saffron@discourse.org
294
295
  executables: []
295
296
  extensions: []
296
297
  extra_rdoc_files: []
@@ -334,7 +335,7 @@ files:
334
335
  homepage: https://github.com/discourse/service_skeleton
335
336
  licenses: []
336
337
  metadata: {}
337
- post_install_message:
338
+ post_install_message:
338
339
  rdoc_options: []
339
340
  require_paths:
340
341
  - lib
@@ -345,12 +346,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
346
  version: 2.5.0
346
347
  required_rubygems_version: !ruby/object:Gem::Requirement
347
348
  requirements:
348
- - - ">"
349
+ - - ">="
349
350
  - !ruby/object:Gem::Version
350
- version: 1.3.1
351
+ version: '0'
351
352
  requirements: []
352
353
  rubygems_version: 3.0.3
353
- signing_key:
354
+ signing_key:
354
355
  specification_version: 4
355
356
  summary: The bare bones of a service
356
357
  test_files: []