standard 1.30.0 → 1.30.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/standard/version.rb +1 -1
- data/lib/standard.rb +0 -1
- metadata +1 -3
- data/lib/standard/plugin_support/merges_upstream_metadata.rb +0 -23
- data/lib/standard/plugin_support.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c00678665803420723c8674b59d3c618e2164a9e469946ccccabed971f56149
|
4
|
+
data.tar.gz: 738c3f9610cb74a41aac35aec29348e6282b6f8018ed83dd80f831e723081e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69eb144ed7790c19699edaf481ab4caf3b3805039ef94b180d711846767a352cdb87cdc71daeafd5240a78b6cda85573ee248605257d05641046d3a22165667a
|
7
|
+
data.tar.gz: 7ea6b6cd83b1768181ab075fa7f408281da76b22dff644c2ff1e7425543a8606a2a0f6ee81b59f69e46bcab53d0c176caa2d7034bc6dc16f57bb893797ffaa38
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.30.1
|
4
|
+
|
5
|
+
* Just kidding about about `Standard::PluginSupport`. Moving it to `LintRoller::Support`
|
6
|
+
to avoid circular dependencies between Standard Ruby and its plugins
|
7
|
+
|
3
8
|
## 1.30.0
|
4
9
|
|
5
10
|
* Add `Standard::PluginSupport` module of classes designed to make it a little
|
data/Gemfile.lock
CHANGED
data/lib/standard/version.rb
CHANGED
data/lib/standard.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.30.
|
4
|
+
version: 1.30.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
@@ -148,8 +148,6 @@ files:
|
|
148
148
|
- lib/standard/plugin/initializes_plugins.rb
|
149
149
|
- lib/standard/plugin/merges_plugins_into_rubocop_config.rb
|
150
150
|
- lib/standard/plugin/standardizes_configured_plugins.rb
|
151
|
-
- lib/standard/plugin_support.rb
|
152
|
-
- lib/standard/plugin_support/merges_upstream_metadata.rb
|
153
151
|
- lib/standard/railtie.rb
|
154
152
|
- lib/standard/rake.rb
|
155
153
|
- lib/standard/resolves_yaml_option.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Standard
|
2
|
-
module PluginSupport
|
3
|
-
class MergesUpstreamMetadata
|
4
|
-
def merge(plugin_yaml, upstream_yaml)
|
5
|
-
common_upstream_values = upstream_yaml.select { |key| plugin_yaml.key?(key) }
|
6
|
-
|
7
|
-
plugin_yaml.merge(common_upstream_values) { |key, plugin_value, upstream_value|
|
8
|
-
if plugin_value.is_a?(Hash) && upstream_value.is_a?(Hash)
|
9
|
-
plugin_value.merge(upstream_value) { |sub_key, plugin_sub_value, upstream_sub_value|
|
10
|
-
if plugin_value.key?(sub_key)
|
11
|
-
plugin_sub_value
|
12
|
-
else
|
13
|
-
upstream_sub_value
|
14
|
-
end
|
15
|
-
}
|
16
|
-
else
|
17
|
-
plugin_value
|
18
|
-
end
|
19
|
-
}
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
require "standard/plugin_support/merges_upstream_metadata"
|