rubocop-sketchup 2.0.0 → 2.1.0
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 +4 -4
- data/lib/rubocop/sketchup/features.rb +210 -0
- data/lib/rubocop/sketchup/sketchup_version.rb +4 -0
- data/lib/rubocop/sketchup/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c66b91ae2f5056ef609c39db88b840882f2851d527d81da3945286729057e2b
|
|
4
|
+
data.tar.gz: a81182571e69ab415c3f4479a8728b9d802bd6d228ec4d747d3eb1ab7c951f6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e12ed63bc17f8d1e9968b4d8a86748e718d0189f0529c4aedc27f3f40b1a464573b83ab31d734a71b4f1ad2aca3142ed14cc8c7d6d19940171dfb2c4f4b675f7
|
|
7
|
+
data.tar.gz: 037bea071ddccafbb5cdea79d7fe69a513da277a2d661e8a959e9fa33e47f142c15cd77f4a8988d89f0cae93597e6c5dd42e10f259ff9ae7945053e6d9adce46
|
|
@@ -41,6 +41,168 @@ module RuboCop
|
|
|
41
41
|
|
|
42
42
|
FEATURES = [
|
|
43
43
|
|
|
44
|
+
{
|
|
45
|
+
version: 'SketchUp 2026.1',
|
|
46
|
+
types: {
|
|
47
|
+
method: [
|
|
48
|
+
'UI.show_extension_warehouse',
|
|
49
|
+
'UI::HtmlDialog#hide',
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
{
|
|
55
|
+
version: 'LayOut 2026.0',
|
|
56
|
+
types: {
|
|
57
|
+
class: [
|
|
58
|
+
'Layout::Dictionary',
|
|
59
|
+
],
|
|
60
|
+
method: [
|
|
61
|
+
'Layout::Dictionary#[]',
|
|
62
|
+
'Layout::Dictionary#[]=',
|
|
63
|
+
'Layout::Dictionary#delete_key',
|
|
64
|
+
'Layout::Dictionary#each',
|
|
65
|
+
'Layout::Dictionary#each_key',
|
|
66
|
+
'Layout::Dictionary#each_pair',
|
|
67
|
+
'Layout::Dictionary#empty?',
|
|
68
|
+
'Layout::Dictionary#initialize',
|
|
69
|
+
'Layout::Dictionary#keys',
|
|
70
|
+
'Layout::Dictionary#length',
|
|
71
|
+
'Layout::Dictionary#size',
|
|
72
|
+
'Layout::Dictionary#values',
|
|
73
|
+
'Layout::Document#attribute_dictionary',
|
|
74
|
+
'Layout::Document#delete_attribute',
|
|
75
|
+
'Layout::Document#get_attribute',
|
|
76
|
+
'Layout::Document#set_attribute',
|
|
77
|
+
'Layout::Entity#attribute_dictionary',
|
|
78
|
+
'Layout::Entity#delete_attribute',
|
|
79
|
+
'Layout::Entity#get_attribute',
|
|
80
|
+
'Layout::Entity#set_attribute',
|
|
81
|
+
'Layout::LinearDimension#leader_line_visible?',
|
|
82
|
+
'Layout::Page#attribute_dictionary',
|
|
83
|
+
'Layout::Page#delete_attribute',
|
|
84
|
+
'Layout::Page#get_attribute',
|
|
85
|
+
'Layout::Page#set_attribute',
|
|
86
|
+
'Layout::Style#text_strikethrough',
|
|
87
|
+
'Layout::Style#text_strikethrough=',
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
{
|
|
93
|
+
version: 'SketchUp 2026.0',
|
|
94
|
+
types: {
|
|
95
|
+
method: [
|
|
96
|
+
'Sketchup::Model#active_section_planes',
|
|
97
|
+
'Sketchup::Page#active_section_planes',
|
|
98
|
+
'Sketchup::Pages#unique_name',
|
|
99
|
+
'Sketchup::Styles#remove_style',
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
{
|
|
105
|
+
version: 'SketchUp 2025.0.2',
|
|
106
|
+
types: {
|
|
107
|
+
method: [
|
|
108
|
+
'Sketchup::Material#ao_enabled=',
|
|
109
|
+
'Sketchup::Material#normal_enabled=',
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
{
|
|
115
|
+
version: 'SketchUp 2025.0',
|
|
116
|
+
types: {
|
|
117
|
+
class: [
|
|
118
|
+
'Sketchup::Environment',
|
|
119
|
+
'Sketchup::Environments',
|
|
120
|
+
'Sketchup::EnvironmentsObserver',
|
|
121
|
+
'Sketchup::Snap',
|
|
122
|
+
],
|
|
123
|
+
method: [
|
|
124
|
+
'Sketchup::AttributeDictionary#empty?',
|
|
125
|
+
'Sketchup::ComponentDefinition#load_time',
|
|
126
|
+
'Sketchup::Entities#add_snap',
|
|
127
|
+
'Sketchup::Environment#description',
|
|
128
|
+
'Sketchup::Environment#description=',
|
|
129
|
+
'Sketchup::Environment#linked_sun=',
|
|
130
|
+
'Sketchup::Environment#linked_sun?',
|
|
131
|
+
'Sketchup::Environment#linked_sun_position',
|
|
132
|
+
'Sketchup::Environment#linked_sun_position=',
|
|
133
|
+
'Sketchup::Environment#name',
|
|
134
|
+
'Sketchup::Environment#name=',
|
|
135
|
+
'Sketchup::Environment#path',
|
|
136
|
+
'Sketchup::Environment#reflection_exposure',
|
|
137
|
+
'Sketchup::Environment#reflection_exposure=',
|
|
138
|
+
'Sketchup::Environment#rotation=',
|
|
139
|
+
'Sketchup::Environment#skydome_exposure',
|
|
140
|
+
'Sketchup::Environment#skydome_exposure=',
|
|
141
|
+
'Sketchup::Environment#thumbnail',
|
|
142
|
+
'Sketchup::Environment#use_as_skydome=',
|
|
143
|
+
'Sketchup::Environment#use_as_skydome?',
|
|
144
|
+
'Sketchup::Environment#use_for_reflections=',
|
|
145
|
+
'Sketchup::Environment#use_for_reflections?',
|
|
146
|
+
'Sketchup::Environment#write_hdr',
|
|
147
|
+
'Sketchup::Environments#[]',
|
|
148
|
+
'Sketchup::Environments#add',
|
|
149
|
+
'Sketchup::Environments#add_observer',
|
|
150
|
+
'Sketchup::Environments#current',
|
|
151
|
+
'Sketchup::Environments#current=',
|
|
152
|
+
'Sketchup::Environments#each',
|
|
153
|
+
'Sketchup::Environments#length',
|
|
154
|
+
'Sketchup::Environments#purge_unused',
|
|
155
|
+
'Sketchup::Environments#remove',
|
|
156
|
+
'Sketchup::Environments#remove_observer',
|
|
157
|
+
'Sketchup::Environments#size',
|
|
158
|
+
'Sketchup::EnvironmentsObserver#onEnvironmentAdd',
|
|
159
|
+
'Sketchup::EnvironmentsObserver#onEnvironmentChange',
|
|
160
|
+
'Sketchup::EnvironmentsObserver#onEnvironmentRemove',
|
|
161
|
+
'Sketchup::EnvironmentsObserver#onEnvironmentSetCurrent',
|
|
162
|
+
'Sketchup::Face#coplanar_with?',
|
|
163
|
+
'Sketchup::Material#ao_enabled?',
|
|
164
|
+
'Sketchup::Material#ao_strength',
|
|
165
|
+
'Sketchup::Material#ao_strength=',
|
|
166
|
+
'Sketchup::Material#ao_texture',
|
|
167
|
+
'Sketchup::Material#ao_texture=',
|
|
168
|
+
'Sketchup::Material#metallic_factor',
|
|
169
|
+
'Sketchup::Material#metallic_factor=',
|
|
170
|
+
'Sketchup::Material#metallic_texture',
|
|
171
|
+
'Sketchup::Material#metallic_texture=',
|
|
172
|
+
'Sketchup::Material#metalness_enabled=',
|
|
173
|
+
'Sketchup::Material#metalness_enabled?',
|
|
174
|
+
'Sketchup::Material#normal_enabled?',
|
|
175
|
+
'Sketchup::Material#normal_scale',
|
|
176
|
+
'Sketchup::Material#normal_scale=',
|
|
177
|
+
'Sketchup::Material#normal_style',
|
|
178
|
+
'Sketchup::Material#normal_style=',
|
|
179
|
+
'Sketchup::Material#normal_texture',
|
|
180
|
+
'Sketchup::Material#normal_texture=',
|
|
181
|
+
'Sketchup::Material#roughness_enabled=',
|
|
182
|
+
'Sketchup::Material#roughness_enabled?',
|
|
183
|
+
'Sketchup::Material#roughness_factor',
|
|
184
|
+
'Sketchup::Material#roughness_factor=',
|
|
185
|
+
'Sketchup::Material#roughness_texture',
|
|
186
|
+
'Sketchup::Material#roughness_texture=',
|
|
187
|
+
'Sketchup::Material#workflow',
|
|
188
|
+
'Sketchup::Model#environments',
|
|
189
|
+
'Sketchup::Page#environment',
|
|
190
|
+
'Sketchup::Page#environment=',
|
|
191
|
+
'Sketchup::Page#use_environment=',
|
|
192
|
+
'Sketchup::Page#use_environment?',
|
|
193
|
+
'Sketchup::Pages#reorder',
|
|
194
|
+
'Sketchup::Snap#direction',
|
|
195
|
+
'Sketchup::Snap#position',
|
|
196
|
+
'Sketchup::Snap#set',
|
|
197
|
+
'Sketchup::Snap#up',
|
|
198
|
+
'Sketchup::Style#path',
|
|
199
|
+
'Sketchup::View#device_height',
|
|
200
|
+
'Sketchup::View#device_width',
|
|
201
|
+
'Sketchup::ViewObserver#onScaleFactorChange',
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
|
|
44
206
|
{
|
|
45
207
|
version: 'SketchUp 2024.0',
|
|
46
208
|
types: {
|
|
@@ -1358,6 +1520,12 @@ module RuboCop
|
|
|
1358
1520
|
add_section_plane
|
|
1359
1521
|
aligned_text_position
|
|
1360
1522
|
aligned_text_position=
|
|
1523
|
+
ao_enabled?
|
|
1524
|
+
ao_enabled=
|
|
1525
|
+
ao_strength
|
|
1526
|
+
ao_strength=
|
|
1527
|
+
ao_texture
|
|
1528
|
+
ao_texture=
|
|
1361
1529
|
arc_curve
|
|
1362
1530
|
arc_curve=
|
|
1363
1531
|
attached_to
|
|
@@ -1377,6 +1545,8 @@ module RuboCop
|
|
|
1377
1545
|
count_used_instances
|
|
1378
1546
|
dash_scale
|
|
1379
1547
|
days_remaining
|
|
1548
|
+
device_height
|
|
1549
|
+
device_width
|
|
1380
1550
|
drawing_element_visible?
|
|
1381
1551
|
each_folder
|
|
1382
1552
|
each_layer
|
|
@@ -1420,6 +1590,10 @@ module RuboCop
|
|
|
1420
1590
|
line_style
|
|
1421
1591
|
line_style=
|
|
1422
1592
|
line_styles
|
|
1593
|
+
linked_sun?
|
|
1594
|
+
linked_sun=
|
|
1595
|
+
linked_sun_position
|
|
1596
|
+
linked_sun_position=
|
|
1423
1597
|
live_component?
|
|
1424
1598
|
load_from_url
|
|
1425
1599
|
load_on_start?
|
|
@@ -1430,6 +1604,12 @@ module RuboCop
|
|
|
1430
1604
|
major_color=
|
|
1431
1605
|
major_spacing=
|
|
1432
1606
|
menu_text
|
|
1607
|
+
metallic_factor
|
|
1608
|
+
metallic_factor=
|
|
1609
|
+
metallic_texture
|
|
1610
|
+
metallic_texture=
|
|
1611
|
+
metalness_enabled?
|
|
1612
|
+
metalness_enabled=
|
|
1433
1613
|
minor_color=
|
|
1434
1614
|
minor_divisions=
|
|
1435
1615
|
mipmapping?
|
|
@@ -1438,6 +1618,14 @@ module RuboCop
|
|
|
1438
1618
|
navigation_buttons_enabled=
|
|
1439
1619
|
no_scale_mask?
|
|
1440
1620
|
no_scale_mask=
|
|
1621
|
+
normal_enabled?
|
|
1622
|
+
normal_enabled=
|
|
1623
|
+
normal_scale
|
|
1624
|
+
normal_scale=
|
|
1625
|
+
normal_style
|
|
1626
|
+
normal_style=
|
|
1627
|
+
normal_texture
|
|
1628
|
+
normal_texture=
|
|
1441
1629
|
number_faces
|
|
1442
1630
|
offset_vector
|
|
1443
1631
|
offset_vector=
|
|
@@ -1445,6 +1633,8 @@ module RuboCop
|
|
|
1445
1633
|
owner_type
|
|
1446
1634
|
persistent_id
|
|
1447
1635
|
persistent_id_path
|
|
1636
|
+
reflection_exposure
|
|
1637
|
+
reflection_exposure=
|
|
1448
1638
|
refresh_thumbnail
|
|
1449
1639
|
remove_classification
|
|
1450
1640
|
remove_folder
|
|
@@ -1452,6 +1642,12 @@ module RuboCop
|
|
|
1452
1642
|
reset_effects
|
|
1453
1643
|
reset_layers
|
|
1454
1644
|
reset_style
|
|
1645
|
+
roughness_enabled?
|
|
1646
|
+
roughness_enabled=
|
|
1647
|
+
roughness_factor
|
|
1648
|
+
roughness_factor=
|
|
1649
|
+
roughness_texture
|
|
1650
|
+
roughness_texture=
|
|
1455
1651
|
same_direction?
|
|
1456
1652
|
scale_2d
|
|
1457
1653
|
screen_scale_factor
|
|
@@ -1466,7 +1662,10 @@ module RuboCop
|
|
|
1466
1662
|
set_texture_projection
|
|
1467
1663
|
set_upload_progress_callback
|
|
1468
1664
|
set_uv
|
|
1665
|
+
skydome_exposure
|
|
1666
|
+
skydome_exposure=
|
|
1469
1667
|
show_differences
|
|
1668
|
+
show_extension_warehouse
|
|
1470
1669
|
show_major=
|
|
1471
1670
|
show_minor=
|
|
1472
1671
|
sketch_plane
|
|
@@ -1479,6 +1678,10 @@ module RuboCop
|
|
|
1479
1678
|
thumbnail_camera
|
|
1480
1679
|
unit_vector?
|
|
1481
1680
|
unload_schema
|
|
1681
|
+
use_as_skydome?
|
|
1682
|
+
use_as_skydome=
|
|
1683
|
+
use_for_reflections?
|
|
1684
|
+
use_for_reflections=
|
|
1482
1685
|
upper_left
|
|
1483
1686
|
upper_right
|
|
1484
1687
|
vertex_at
|
|
@@ -1486,6 +1689,8 @@ module RuboCop
|
|
|
1486
1689
|
visible_on_new_pages=
|
|
1487
1690
|
winding
|
|
1488
1691
|
window_pick
|
|
1692
|
+
workflow
|
|
1693
|
+
write_hdr
|
|
1489
1694
|
].freeze
|
|
1490
1695
|
|
|
1491
1696
|
OBSERVER_METHODS = %i[
|
|
@@ -1494,6 +1699,10 @@ module RuboCop
|
|
|
1494
1699
|
onAfterComponentSaveAs
|
|
1495
1700
|
onBeforeComponentSaveAs
|
|
1496
1701
|
onElementModified
|
|
1702
|
+
onEnvironmentAdd
|
|
1703
|
+
onEnvironmentChange
|
|
1704
|
+
onEnvironmentRemove
|
|
1705
|
+
onEnvironmentSetCurrent
|
|
1497
1706
|
onExtensionsLoaded
|
|
1498
1707
|
onExplode
|
|
1499
1708
|
onLayerChanged
|
|
@@ -1505,6 +1714,7 @@ module RuboCop
|
|
|
1505
1714
|
onPlaceComponent
|
|
1506
1715
|
onPostSaveModel
|
|
1507
1716
|
onPreSaveModel
|
|
1717
|
+
onScaleFactorChange
|
|
1508
1718
|
onTextChanged
|
|
1509
1719
|
onUnloadExtension
|
|
1510
1720
|
].freeze
|
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: 2.
|
|
4
|
+
version: 2.1.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: 2026-
|
|
11
|
+
date: 2026-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
158
|
version: '0'
|
|
159
159
|
requirements: []
|
|
160
|
-
rubygems_version: 3.
|
|
160
|
+
rubygems_version: 3.4.19
|
|
161
161
|
signing_key:
|
|
162
162
|
specification_version: 4
|
|
163
163
|
summary: RuboCop rules for SketchUp extensions.
|