rubocop-sketchup 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/sketchup/features.rb +13 -0
- data/lib/rubocop/sketchup/sketchup_version.rb +6 -1
- data/lib/rubocop/sketchup/version.rb +1 -1
- data/rubocop-sketchup.gemspec +1 -1
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f41cde091e8436d91f8401f489bda6daed828f7dbef89f645620f325b6a188d
|
4
|
+
data.tar.gz: 8f13f01611e868c0b4bb3ad904d5679de3c4aa7c38869d42e38cddab05971b8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7dd283a2ff010bafbea36e15c57c58f3ce72e17787da27e5b4e80e7dc0b545e81ae55edecad18d91be0e50d54130c90bf8bdeef03834168627608ff96368a53
|
7
|
+
data.tar.gz: 5007bf166f68996827c4f9c0782ca0214cfc36a669e03c3573a8c15912a331ed088e759e434b89a0223897c0134d0e042923395e7dcfa51cd39cb142d329fba4
|
@@ -34,6 +34,18 @@ module RuboCop
|
|
34
34
|
|
35
35
|
FEATURES = [
|
36
36
|
|
37
|
+
{
|
38
|
+
version: 'SketchUp 2019.2',
|
39
|
+
types: {
|
40
|
+
method: [
|
41
|
+
'Sketchup.format_volume',
|
42
|
+
'Sketchup::Material#owner_type',
|
43
|
+
'Sketchup::Selection#invert',
|
44
|
+
'Sketchup::Tool#onMouseWheel',
|
45
|
+
],
|
46
|
+
},
|
47
|
+
},
|
48
|
+
|
37
49
|
{
|
38
50
|
version: 'LayOut 2019',
|
39
51
|
types: {
|
@@ -1126,6 +1138,7 @@ module RuboCop
|
|
1126
1138
|
offset_vector
|
1127
1139
|
offset_vector=
|
1128
1140
|
outer_shell
|
1141
|
+
owner_type
|
1129
1142
|
persistent_id
|
1130
1143
|
persistent_id_path
|
1131
1144
|
refresh_thumbnail
|
@@ -63,8 +63,12 @@ module RuboCop
|
|
63
63
|
# running the `versions` template on the API stubs repository;
|
64
64
|
#
|
65
65
|
# yardoc -t versions -f text
|
66
|
+
#
|
67
|
+
# The second item in the array is maintenance annotation
|
66
68
|
VALID_VERSIONS = [
|
67
|
-
[2019, 0],
|
69
|
+
[2019.2, 0],
|
70
|
+
[2019.0, 0], # SketchUp dropped M notation as of SU2019.
|
71
|
+
[2019, 0], # Documentation still refer to SU2019 instead of SU2019.0
|
68
72
|
[2018, 0],
|
69
73
|
[2017, 0],
|
70
74
|
[2016, 1],
|
@@ -105,6 +109,7 @@ module RuboCop
|
|
105
109
|
# @param [Array(Float, Integer)] version_parts
|
106
110
|
def validate(version_parts)
|
107
111
|
unless VALID_VERSIONS.include?(version_parts)
|
112
|
+
version = version_parts.join('.')
|
108
113
|
raise InvalidVersion, "#{version} is not a valid SketchUp version"
|
109
114
|
end
|
110
115
|
|
data/rubocop-sketchup.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-sketchup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trimble Inc, SketchUp Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.13'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '3.0'
|
34
37
|
type: :development
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '1.13'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3.0'
|
41
47
|
description: RuboCop rules for SketchUp extensions.
|
42
48
|
email:
|
43
49
|
executables: []
|
@@ -132,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
138
|
- !ruby/object:Gem::Version
|
133
139
|
version: '0'
|
134
140
|
requirements: []
|
135
|
-
|
136
|
-
rubygems_version: 2.7.3
|
141
|
+
rubygems_version: 3.0.3
|
137
142
|
signing_key:
|
138
143
|
specification_version: 4
|
139
144
|
summary: RuboCop rules for SketchUp extensions.
|