rf-stylez 0.7.0 → 0.7.2

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
  SHA256:
3
- metadata.gz: f92d0ba5f4a8ec00e64a3f2280daa15baeb6c3873a4f55b53d48691f6cd8b792
4
- data.tar.gz: a67749dfab66ba1de4c95ceb853503223a175b7795396c7387c478d4bb6d43a7
3
+ metadata.gz: d41bbdffe2897bb3b7d32975e73735513cb451644553a3fd9d242d16b0c73242
4
+ data.tar.gz: e5698297fd6b44d0a8b0148c8bf61d418aafa5298bdf8349ae4a8784bb02b333
5
5
  SHA512:
6
- metadata.gz: 2ad7499c787d5124a0f6565dc8d4df374593557d262d803e6ff705ed5456353efbf9714d790e731c3f0c5365d37d41e07454e8e34947ed6cf5c94f57aa4664c8
7
- data.tar.gz: 3eb379170742ad5cfbcb3f756826358c8d9c4c4c6a8490f0e7e45aec4f4051690adf72d46215bae2afe3282fee6d6fe435991bfe867df7c36744747a709e0e82
6
+ metadata.gz: f65238e181bdaa9a51c3c0bca60ad1ed67a11d136cb82d8e6b897cbba9103a78c02ea067c3c1f989bd6cda92e223c7dc1daabbd906afcedeabf4c594503801da
7
+ data.tar.gz: e1e7b933cf9ab20ce314ac196ff3566e59fe85106765e509d8670bf7ba55302e3f164fc4b7b3a3970f4261c3a19d8e93c45a5f919ba3151eaedb06fc1fd4313a
@@ -3,7 +3,7 @@ version: 2
3
3
  jobs:
4
4
  style_check:
5
5
  docker:
6
- - image: rainforestapp/circlemator:latest
6
+ - image: gcr.io/rf-public-images/circlemator:latest
7
7
  steps:
8
8
  - checkout
9
9
  - run:
@@ -3,7 +3,6 @@
3
3
  require 'rf/stylez/version'
4
4
  require 'rf/stylez/update_check'
5
5
  require 'rubocop'
6
- require 'rubocop/cop/lint/no_env'
7
6
  require 'rubocop/cop/lint/no_json'
8
7
  require 'rubocop/cop/lint/no_http_party'
9
8
  require 'rubocop/cop/lint/obscure'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rf
4
4
  module Stylez
5
- VERSION = '0.7.0'
5
+ VERSION = '0.7.2'
6
6
  end
7
7
  end
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency 'rubocop', '>= 0.59', '< 0.81'
23
23
  spec.add_runtime_dependency 'rubocop-rails', '~> 2.5.0'
24
24
  spec.add_runtime_dependency 'rubocop-rspec', '~> 1.39.0'
25
+ spec.add_runtime_dependency 'get_env', '~> 0.2.0'
25
26
  spec.add_runtime_dependency 'semantic_versioning', '~> 0.2'
26
27
 
27
28
  spec.add_development_dependency 'bundler', '~> 1.10'
@@ -18,6 +18,8 @@ inherit_from:
18
18
 
19
19
  require:
20
20
  - rf/stylez
21
+ - rubocop-rspec
22
+ - get_env/cops
21
23
 
22
24
  # Custom cops
23
25
  Lint/NoENV:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rf-stylez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emanuel Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-23 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: 1.39.0
61
+ - !ruby/object:Gem::Dependency
62
+ name: get_env
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.2.0
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.2.0
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: semantic_versioning
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +179,6 @@ files:
165
179
  - lib/rf/stylez/update_check.rb
166
180
  - lib/rf/stylez/version.rb
167
181
  - lib/rubocop/cop/lint/no_bang_state_machine_events.rb
168
- - lib/rubocop/cop/lint/no_env.rb
169
182
  - lib/rubocop/cop/lint/no_grape_api.rb
170
183
  - lib/rubocop/cop/lint/no_http_party.rb
171
184
  - lib/rubocop/cop/lint/no_json.rb
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RuboCop
4
- module Cop
5
- module Lint
6
- # @example
7
- # # bad
8
- # ENV[]
9
- #
10
- # # bad
11
- # ENV.fetch(..)
12
- #
13
- # # good
14
- # GetEnv[]
15
- #
16
- # # good
17
- # GetEnv.fetch(...)
18
- class NoENV < Cop
19
- MSG = 'Use `GetEnv` instead of `ENV`.'.freeze
20
-
21
- def_node_matcher :is_ENV?, '(const nil? :ENV)'
22
-
23
- def on_const(node)
24
- return unless is_ENV?(node)
25
- add_offense(node)
26
- end
27
- end
28
- end
29
- end
30
- end