scriptup 2024.0.6 → 2024.0.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/ext/entity.c +4 -0
  3. data/ext/extconf.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bfb2ee4c449272de70df28c0f673a2f6d3288bd1ca499899839dab5ad774ec1
4
- data.tar.gz: b63caaa6e708d9cf377f3447ff2e9c50ac006ca0055be7d75ff35fa02f73eea0
3
+ metadata.gz: 6597ffd855e1a87875e86744453c200a9aeceee06dd747ac0cb0a6b25607b554
4
+ data.tar.gz: 2f4ade8f2b5603aa1e00ffe10463c58cac08072fb1a84f82ce4f6a275df72cb3
5
5
  SHA512:
6
- metadata.gz: c986c9d97ea409612e2bc83fed57b52b66cc9dfe8a8681e3c5447d02552dcde03bd9b856bce2f88829c32b635255874bb654ff30803213748c4562f97e557fad
7
- data.tar.gz: ca1b23690c4a780b99927eed9ee9010b2c164d630bd264d0262936b96e71939226dc0aa263ee53b7c753cd57855d40684d28a7f2c2775802efbf7d52d8bde3ab
6
+ metadata.gz: aa296640ed6edcd606e7ce9c7aacad26b2f23d1fac2e450495ad7c88ccbd1dc281db92c2ef69a97788aebc102bf2a627a79376040fca4a4f989293abbd7acd98
7
+ data.tar.gz: 3b887ba13ef1f3002218d4a7ea4ff4e6585884e29c01d6f843dabca81ec685841ed74bafedae6ab6b36605c541edc164a102a5f69a79f5291de544a63e4fbdca
data/ext/entity.c CHANGED
@@ -159,6 +159,10 @@ void Sketchup_Entity_attribute_dictionary_Iterator(SUAttributeDictionaryRef dict
159
159
 
160
160
  static VALUE Sketchup_Entity_attribute_dictionary(int argc, VALUE* argv, VALUE self)
161
161
  {
162
+ if (rb_obj_is_kind_of(self, rb_path2class(SKETCHUP_MATERIALS)))
163
+ return Qnil;
164
+ if (rb_obj_is_kind_of(self, rb_path2class(SKETCHUP_DEFINITIONLIST)))
165
+ return Qnil;
162
166
  SUEntityRef entity = {DATA_PTR(self)};
163
167
  struct AttributeDictionaryIterationContext attribute_dictionary_struct = {argv[0], SU_INVALID};
164
168
  FOREACH(SUEntityGetNumAttributeDictionaries, SUEntityGetAttributeDictionaries, SUAttributeDictionaryRef, entity, Sketchup_Entity_attribute_dictionary_Iterator, &attribute_dictionary_struct);
data/ext/extconf.rb CHANGED
@@ -27,7 +27,7 @@ $CFLAGS << " #{'-Werror' if MAC } -O0 " if ENV['SCRIPTUP_DEVELOPMENT']
27
27
 
28
28
  if MAC
29
29
  $DLDFLAGS.gsub!('-Wl,-multiply_defined,suppress', '')
30
- $DLDFLAGS << ' -Wl,-ld_classic'
30
+ $DLDFLAGS << ' -Wl'
31
31
  $DLDFLAGS << " -F#{sdk_path} -framework SketchUpAPI"
32
32
  $DLDFLAGS << " -Wl,-rpath,#{sdk_path}"
33
33
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scriptup
3
3
  version: !ruby/object:Gem::Version
4
- version: 2024.0.6
4
+ version: 2024.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Warren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler