service_skeleton 0.0.0.11.gc1cf3ce → 0.0.0.13.ga523c90

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
- SHA1:
3
- metadata.gz: 733289761d1f15b438936f57b041d6f4e73d2c40
4
- data.tar.gz: '0288060cedb6ab925ecf065664e5a0cf9d05b0cc'
2
+ SHA256:
3
+ metadata.gz: 94cd0747b43b1e3a0bb4e6389d718162d215d01d20b886cd11d4aa91b1b51ad3
4
+ data.tar.gz: f9d6822b05a11164d1ea7a70db162d441d892feb09a4a6b0923a06ae56741fb0
5
5
  SHA512:
6
- metadata.gz: 33a7cc2a0fdfc7857112535afee6bad77f70ebed29940bd19e1d3cbd1a46aac6e91dfe5b068deac41556a03db49eb6b021df6740fb52515c6f7dd71b3dc2f582
7
- data.tar.gz: 4b19813cefae124c893a740fed6e81b9c8ef14b09800f1c8f345d1c9fca763f28b263e6c9dabdfdae522259a246fbb4ec104ace65b8c387988d953d318208069
6
+ metadata.gz: 6a87671573ffe95194fc2ac0824dfa77fce0e10622b4d0763d5f5a95da92f7a530c84cc355be29c73937e4139e7c5ff69893b25db138d8e047f31e3f4df88837
7
+ data.tar.gz: 0fe1c50c1bad8f34ad7bf12d3670caa7dd8742859b2266c58f83e32a25a67df9087c41d96534b6854a56ed18b7a0e81bd7bd80d7267d2406ea5b75431a297783
data/.gitignore CHANGED
@@ -5,3 +5,5 @@ Gemfile.lock
5
5
  /coverage
6
6
  /.bundle
7
7
  /tmp
8
+
9
+ .rubocop-https---raw-githubusercontent-com-discourse-discourse-master--rubocop-yml
@@ -1,116 +1 @@
1
- AllCops:
2
- TargetRubyVersion: 2.4
3
- DisabledByDefault: true
4
- Exclude:
5
- - 'db/schema.rb'
6
- - 'bundle/**/*'
7
- - 'vendor/**/*'
8
- - 'node_modules/**/*'
9
- - 'public/**/*'
10
-
11
- # Prefer &&/|| over and/or.
12
- Style/AndOr:
13
- Enabled: true
14
-
15
- # Do not use braces for hash literals when they are the last argument of a
16
- # method call.
17
- Style/BracesAroundHashParameters:
18
- Enabled: true
19
-
20
- # Align `when` with `case`.
21
- Layout/CaseIndentation:
22
- Enabled: true
23
-
24
- # Align comments with method definitions.
25
- Layout/CommentIndentation:
26
- Enabled: true
27
-
28
- # No extra empty lines.
29
- Layout/EmptyLines:
30
- Enabled: true
31
-
32
- # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
33
- Style/HashSyntax:
34
- Enabled: true
35
-
36
- # Two spaces, no tabs (for indentation).
37
- Layout/IndentationWidth:
38
- Enabled: true
39
-
40
- Layout/SpaceAfterColon:
41
- Enabled: true
42
-
43
- Layout/SpaceAfterComma:
44
- Enabled: true
45
-
46
- Layout/SpaceAroundEqualsInParameterDefault:
47
- Enabled: true
48
-
49
- Layout/SpaceAroundKeyword:
50
- Enabled: true
51
-
52
- Layout/SpaceAroundOperators:
53
- Enabled: true
54
-
55
- Layout/SpaceBeforeFirstArg:
56
- Enabled: true
57
-
58
- # Defining a method with parameters needs parentheses.
59
- Style/MethodDefParentheses:
60
- Enabled: true
61
-
62
- # Use `foo {}` not `foo{}`.
63
- Layout/SpaceBeforeBlockBraces:
64
- Enabled: true
65
-
66
- # Use `foo { bar }` not `foo {bar}`.
67
- Layout/SpaceInsideBlockBraces:
68
- Enabled: true
69
-
70
- # Use `{ a: 1 }` not `{a:1}`.
71
- Layout/SpaceInsideHashLiteralBraces:
72
- Enabled: true
73
-
74
- Layout/SpaceInsideParens:
75
- Enabled: true
76
-
77
- # Detect hard tabs, no hard tabs.
78
- Layout/Tab:
79
- Enabled: true
80
-
81
- # Blank lines should not have any spaces.
82
- Layout/TrailingBlankLines:
83
- Enabled: true
84
-
85
- # No trailing whitespace.
86
- Layout/TrailingWhitespace:
87
- Enabled: true
88
-
89
- Lint/Debugger:
90
- Enabled: true
91
-
92
- Layout/BlockAlignment:
93
- Enabled: true
94
-
95
- # Align `end` with the matching keyword or starting expression except for
96
- # assignments, where it should be aligned with the LHS.
97
- Layout/EndAlignment:
98
- Enabled: true
99
- EnforcedStyleAlignWith: variable
100
-
101
- # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
102
- Lint/RequireParentheses:
103
- Enabled: true
104
-
105
- Lint/ShadowingOuterLocalVariable:
106
- Enabled: true
107
-
108
- Layout/MultilineMethodCallIndentation:
109
- Enabled: true
110
- EnforcedStyle: indented
111
-
112
- Layout/AlignHash:
113
- Enabled: true
114
-
115
- Bundler/OrderedGems:
116
- Enabled: false
1
+ inherit_from: https://raw.githubusercontent.com/discourse/discourse/master/.rubocop.yml
@@ -9,10 +9,10 @@ class ServiceSkeleton
9
9
  attr_reader :logger, :env
10
10
 
11
11
  def initialize(env, svc)
12
- @env = env.to_hash.dup.freeze
13
12
  @svc = svc
14
13
 
15
14
  parse_registered_variables(env)
15
+ @env = env.to_hash.dup.freeze
16
16
  setup_logger
17
17
  end
18
18
 
@@ -34,7 +34,7 @@ class ServiceSkeleton
34
34
  raise ServiceSkeleton::Error::CannotSanitizeEnvironmentError,
35
35
  "Attempted to sanitize sensitive variable #{var.name}, but was not passed the ENV object"
36
36
  end
37
- env.delete(var.name.to_s)
37
+ env[var.name.to_s] = "*SENSITIVE*"
38
38
  end
39
39
  end
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_skeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.11.gc1cf3ce
4
+ version: 0.0.0.13.ga523c90
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-02 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: frankenstein
@@ -299,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  version: 1.3.1
300
300
  requirements: []
301
301
  rubyforge_project:
302
- rubygems_version: 2.5.2.1
302
+ rubygems_version: 2.7.7
303
303
  signing_key:
304
304
  specification_version: 4
305
305
  summary: The bare bones of a service