pingram 1.0.23 → 1.0.25
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/Gemfile.lock +2 -2
- data/lib/pingram/api/email_api.rb +5 -5
- data/lib/pingram/api/registrations_api.rb +209 -0
- data/lib/pingram/api/user_api.rb +0 -133
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +10 -0
- data/lib/pingram/models/account_get_response.rb +26 -4
- data/lib/pingram/models/billing_post_response_body.rb +23 -1
- data/lib/pingram/models/logs_get_response_logs_inner.rb +10 -10
- data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +378 -0
- data/lib/pingram/models/ten_dlc_brand_create_request.rb +41 -10
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +1 -0
- data/lib/pingram/models/ten_dlc_brand_update_request.rb +24 -38
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +2 -2
- data/vendor/bundle/ruby/3.2.0/cache/psych-5.5.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/gem_make.out +10 -10
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/README.md +53 -0
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/extconf.rb +22 -0
- data/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych/psych.c +68 -0
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych.h +4 -0
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_emitter.c +4 -0
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_parser.c +79 -18
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/class_loader.rb +1 -0
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/parser.rb +40 -1
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/scalar_scanner.rb +15 -3
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/to_ruby.rb +20 -9
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/yaml_tree.rb +0 -3
- data/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{psych-5.4.0.gemspec → psych-5.5.0.gemspec} +2 -2
- metadata +64 -64
- data/lib/pingram/models/delete_email_suppressions_response.rb +0 -192
- data/lib/pingram/models/slack_oauth_request.rb +0 -190
- data/vendor/bundle/ruby/3.2.0/cache/psych-5.4.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/psych-5.4.0/ext/psych/psych.c +0 -36
- data/vendor/bundle/ruby/3.2.0/gems/psych-5.4.0/lib/psych.so +0 -0
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/mkmf.log +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/CONTRIBUTING.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/Makefile +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/depend +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_emitter.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_parser.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_to_ruby.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_to_ruby.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_yaml_tree.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/ext/psych/psych_yaml_tree.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/coder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/core_ext.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/exception.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/handler.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/handlers/document_stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/handlers/recorder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/ruby_events.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/tree_builder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/json/yaml_events.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/alias.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/document.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/mapping.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/node.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/scalar.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/sequence.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes/stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/nodes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/omap.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/set.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/streaming.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/tree_builder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/depth_first.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/emitter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/json_tree.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors/visitor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/visitors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych/y.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.4.0 → psych-5.5.0}/lib/psych.rb +0 -0
|
@@ -16,8 +16,10 @@ require 'time'
|
|
|
16
16
|
module Pingram
|
|
17
17
|
# Request body for PATCH /registrations/us/10dlc/brand
|
|
18
18
|
class TenDlcBrandUpdateRequest < ApiModelBase
|
|
19
|
+
# Who the 10DLC brand is registered for. - own_brand: personal or company project - client_brand: agency or contractor
|
|
19
20
|
attr_accessor :scenario_id
|
|
20
21
|
|
|
22
|
+
# Legal entity type for a 10DLC brand. - PRIVATE_PROFIT: private for-profit (LLC, corp, etc.) - SOLE_PROPRIETOR: sole proprietorship - PUBLIC_PROFIT: publicly traded for-profit - NON_PROFIT: non-profit - GOVERNMENT: government
|
|
21
23
|
attr_accessor :business_type
|
|
22
24
|
|
|
23
25
|
attr_accessor :legal_name
|
|
@@ -29,14 +31,7 @@ module Pingram
|
|
|
29
31
|
|
|
30
32
|
attr_accessor :last_name
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
# Admin-only; legacy Other records. Ignored on customer PATCH.
|
|
35
|
-
attr_accessor :entity_type
|
|
36
|
-
|
|
37
|
-
# Pingram-side brand registration workflow status. - not_started: no customer submission yet - pending_review: customer submitted; Pingram has not submitted to carriers - in_progress: submitted for carrier review - approved | rejected | info_needed: review outcome
|
|
38
|
-
attr_accessor :brand_status
|
|
39
|
-
|
|
34
|
+
# For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier.
|
|
40
35
|
attr_accessor :tax_id
|
|
41
36
|
|
|
42
37
|
attr_accessor :website
|
|
@@ -86,9 +81,6 @@ module Pingram
|
|
|
86
81
|
:'display_name' => :'displayName',
|
|
87
82
|
:'first_name' => :'firstName',
|
|
88
83
|
:'last_name' => :'lastName',
|
|
89
|
-
:'vertical' => :'vertical',
|
|
90
|
-
:'entity_type' => :'entityType',
|
|
91
|
-
:'brand_status' => :'brandStatus',
|
|
92
84
|
:'tax_id' => :'taxId',
|
|
93
85
|
:'website' => :'website',
|
|
94
86
|
:'country' => :'country',
|
|
@@ -120,9 +112,6 @@ module Pingram
|
|
|
120
112
|
:'display_name' => :'String',
|
|
121
113
|
:'first_name' => :'String',
|
|
122
114
|
:'last_name' => :'String',
|
|
123
|
-
:'vertical' => :'String',
|
|
124
|
-
:'entity_type' => :'String',
|
|
125
|
-
:'brand_status' => :'String',
|
|
126
115
|
:'tax_id' => :'String',
|
|
127
116
|
:'website' => :'String',
|
|
128
117
|
:'country' => :'String',
|
|
@@ -181,18 +170,6 @@ module Pingram
|
|
|
181
170
|
self.last_name = attributes[:'last_name']
|
|
182
171
|
end
|
|
183
172
|
|
|
184
|
-
if attributes.key?(:'vertical')
|
|
185
|
-
self.vertical = attributes[:'vertical']
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
if attributes.key?(:'entity_type')
|
|
189
|
-
self.entity_type = attributes[:'entity_type']
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
if attributes.key?(:'brand_status')
|
|
193
|
-
self.brand_status = attributes[:'brand_status']
|
|
194
|
-
end
|
|
195
|
-
|
|
196
173
|
if attributes.key?(:'tax_id')
|
|
197
174
|
self.tax_id = attributes[:'tax_id']
|
|
198
175
|
end
|
|
@@ -242,19 +219,31 @@ module Pingram
|
|
|
242
219
|
# @return true if the model is valid
|
|
243
220
|
def valid?
|
|
244
221
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
245
|
-
|
|
246
|
-
return false unless
|
|
222
|
+
scenario_id_validator = EnumAttributeValidator.new('String', ["own_brand", "client_brand"])
|
|
223
|
+
return false unless scenario_id_validator.valid?(@scenario_id)
|
|
224
|
+
business_type_validator = EnumAttributeValidator.new('String', ["PRIVATE_PROFIT", "SOLE_PROPRIETOR", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"])
|
|
225
|
+
return false unless business_type_validator.valid?(@business_type)
|
|
247
226
|
true
|
|
248
227
|
end
|
|
249
228
|
|
|
250
229
|
# Custom attribute writer method checking allowed values (enum).
|
|
251
|
-
# @param [Object]
|
|
252
|
-
def
|
|
253
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
254
|
-
unless validator.valid?(
|
|
255
|
-
fail ArgumentError, "invalid value for \"
|
|
230
|
+
# @param [Object] scenario_id Object to be assigned
|
|
231
|
+
def scenario_id=(scenario_id)
|
|
232
|
+
validator = EnumAttributeValidator.new('String', ["own_brand", "client_brand"])
|
|
233
|
+
unless validator.valid?(scenario_id)
|
|
234
|
+
fail ArgumentError, "invalid value for \"scenario_id\", must be one of #{validator.allowable_values}."
|
|
235
|
+
end
|
|
236
|
+
@scenario_id = scenario_id
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
240
|
+
# @param [Object] business_type Object to be assigned
|
|
241
|
+
def business_type=(business_type)
|
|
242
|
+
validator = EnumAttributeValidator.new('String', ["PRIVATE_PROFIT", "SOLE_PROPRIETOR", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"])
|
|
243
|
+
unless validator.valid?(business_type)
|
|
244
|
+
fail ArgumentError, "invalid value for \"business_type\", must be one of #{validator.allowable_values}."
|
|
256
245
|
end
|
|
257
|
-
@
|
|
246
|
+
@business_type = business_type
|
|
258
247
|
end
|
|
259
248
|
|
|
260
249
|
# Checks equality by comparing each attribute.
|
|
@@ -268,9 +257,6 @@ module Pingram
|
|
|
268
257
|
display_name == o.display_name &&
|
|
269
258
|
first_name == o.first_name &&
|
|
270
259
|
last_name == o.last_name &&
|
|
271
|
-
vertical == o.vertical &&
|
|
272
|
-
entity_type == o.entity_type &&
|
|
273
|
-
brand_status == o.brand_status &&
|
|
274
260
|
tax_id == o.tax_id &&
|
|
275
261
|
website == o.website &&
|
|
276
262
|
country == o.country &&
|
|
@@ -291,7 +277,7 @@ module Pingram
|
|
|
291
277
|
# Calculates hash code according to all attributes.
|
|
292
278
|
# @return [Integer] Hash code
|
|
293
279
|
def hash
|
|
294
|
-
[scenario_id, business_type, legal_name, display_name, first_name, last_name,
|
|
280
|
+
[scenario_id, business_type, legal_name, display_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
295
281
|
end
|
|
296
282
|
|
|
297
283
|
# Builds the object from hash
|
data/lib/pingram/version.rb
CHANGED
data/lib/pingram.rb
CHANGED
|
@@ -63,7 +63,6 @@ require 'pingram/models/create_voice_agent_request'
|
|
|
63
63
|
require 'pingram/models/create_voice_agent_response'
|
|
64
64
|
require 'pingram/models/custom'
|
|
65
65
|
require 'pingram/models/delete_account_request'
|
|
66
|
-
require 'pingram/models/delete_email_suppressions_response'
|
|
67
66
|
require 'pingram/models/delete_key_response'
|
|
68
67
|
require 'pingram/models/delete_user_response'
|
|
69
68
|
require 'pingram/models/delete_voice_agent_response'
|
|
@@ -258,7 +257,6 @@ require 'pingram/models/sender_post_body_web_push'
|
|
|
258
257
|
require 'pingram/models/sender_post_response'
|
|
259
258
|
require 'pingram/models/set_default_template_request'
|
|
260
259
|
require 'pingram/models/slack_interactivity_response'
|
|
261
|
-
require 'pingram/models/slack_oauth_request'
|
|
262
260
|
require 'pingram/models/success_response'
|
|
263
261
|
require 'pingram/models/supabase_configure_request'
|
|
264
262
|
require 'pingram/models/supabase_configure_response'
|
|
@@ -272,6 +270,7 @@ require 'pingram/models/template_patch_request'
|
|
|
272
270
|
require 'pingram/models/template_patch_request_batch'
|
|
273
271
|
require 'pingram/models/template_patch_request_instant'
|
|
274
272
|
require 'pingram/models/template_post_request'
|
|
273
|
+
require 'pingram/models/ten_dlc_brand_admin_update_request'
|
|
275
274
|
require 'pingram/models/ten_dlc_brand_create_request'
|
|
276
275
|
require 'pingram/models/ten_dlc_brand_registration'
|
|
277
276
|
require 'pingram/models/ten_dlc_brand_registration_details'
|
|
@@ -309,6 +308,7 @@ require 'pingram/api/logs_api'
|
|
|
309
308
|
require 'pingram/api/members_api'
|
|
310
309
|
require 'pingram/api/numbers_api'
|
|
311
310
|
require 'pingram/api/profile_api'
|
|
311
|
+
require 'pingram/api/registrations_api'
|
|
312
312
|
require 'pingram/api/sender_api'
|
|
313
313
|
require 'pingram/api/sms_api'
|
|
314
314
|
require 'pingram/api/templates_api'
|
|
Binary file
|
|
@@ -3,10 +3,10 @@ current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/v
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-ldan3e sitelibdir\=./.gem.20260825-2473-ldan3e clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-ldan3e sitelibdir\=./.gem.20260825-2473-ldan3e
|
|
10
10
|
compiling breakpoint.c
|
|
11
11
|
compiling byebug.c
|
|
12
12
|
byebug.c: In function ‘check_started’:
|
|
@@ -35,8 +35,8 @@ compiling threads.c
|
|
|
35
35
|
linking shared-object byebug/byebug.so
|
|
36
36
|
|
|
37
37
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
38
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
39
|
-
/usr/bin/install -c -m 0755 byebug.so ./.gem.
|
|
38
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-ldan3e sitelibdir\=./.gem.20260825-2473-ldan3e install
|
|
39
|
+
/usr/bin/install -c -m 0755 byebug.so ./.gem.20260825-2473-ldan3e/byebug
|
|
40
40
|
|
|
41
41
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/byebug-13.0.0/ext/byebug
|
|
42
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
42
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-ldan3e sitelibdir\=./.gem.20260825-2473-ldan3e clean
|
|
@@ -6,10 +6,10 @@ checking for altzone in time.h with -Werror... no
|
|
|
6
6
|
creating Makefile
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-of1ye5 sitelibdir\=./.gem.20260825-2473-of1ye5 clean
|
|
10
10
|
|
|
11
11
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
12
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
12
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-of1ye5 sitelibdir\=./.gem.20260825-2473-of1ye5
|
|
13
13
|
compiling date_core.c
|
|
14
14
|
compiling date_parse.c
|
|
15
15
|
compiling date_strftime.c
|
|
@@ -17,8 +17,8 @@ compiling date_strptime.c
|
|
|
17
17
|
linking shared-object date_core.so
|
|
18
18
|
|
|
19
19
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
20
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
21
|
-
/usr/bin/install -c -m 0755 date_core.so ./.gem.
|
|
20
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-of1ye5 sitelibdir\=./.gem.20260825-2473-of1ye5 install
|
|
21
|
+
/usr/bin/install -c -m 0755 date_core.so ./.gem.20260825-2473-of1ye5
|
|
22
22
|
|
|
23
23
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/date-3.5.1/ext/date
|
|
24
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
24
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-of1ye5 sitelibdir\=./.gem.20260825-2473-of1ye5 clean
|
|
@@ -17,16 +17,16 @@ checking for rb_prepend_module()... yes
|
|
|
17
17
|
creating Makefile
|
|
18
18
|
|
|
19
19
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
20
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
20
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-907j85 sitelibdir\=./.gem.20260825-2473-907j85 clean
|
|
21
21
|
|
|
22
22
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
23
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
23
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-907j85 sitelibdir\=./.gem.20260825-2473-907j85
|
|
24
24
|
compiling console.c
|
|
25
25
|
linking shared-object io/console.so
|
|
26
26
|
|
|
27
27
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
28
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
29
|
-
/usr/bin/install -c -m 0755 console.so ./.gem.
|
|
28
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-907j85 sitelibdir\=./.gem.20260825-2473-907j85 install
|
|
29
|
+
/usr/bin/install -c -m 0755 console.so ./.gem.20260825-2473-907j85/io
|
|
30
30
|
|
|
31
31
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console
|
|
32
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
32
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-907j85 sitelibdir\=./.gem.20260825-2473-907j85 clean
|
|
@@ -143,7 +143,7 @@ checked program was:
|
|
|
143
143
|
/* end */
|
|
144
144
|
|
|
145
145
|
LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/3.2.11/x64/lib "gcc -o conftest -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/ruby/backward -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0 -I. -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -lruby -lm -lpthread -lc"
|
|
146
|
-
/usr/bin/ld: /tmp/
|
|
146
|
+
/usr/bin/ld: /tmp/ccRYil6r.o: in function `t':
|
|
147
147
|
/home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console/conftest.c:17:(.text+0xb): undefined reference to `rb_io_path'
|
|
148
148
|
collect2: error: ld returned 1 exit status
|
|
149
149
|
checked program was:
|
|
@@ -203,7 +203,7 @@ checked program was:
|
|
|
203
203
|
/* end */
|
|
204
204
|
|
|
205
205
|
LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/3.2.11/x64/lib "gcc -o conftest -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/ruby/backward -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0 -I. -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -lruby -lm -lpthread -lc"
|
|
206
|
-
/usr/bin/ld: /tmp/
|
|
206
|
+
/usr/bin/ld: /tmp/ccx87Ki8.o: in function `t':
|
|
207
207
|
/home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console/conftest.c:17:(.text+0xb): undefined reference to `rb_io_closed_p'
|
|
208
208
|
collect2: error: ld returned 1 exit status
|
|
209
209
|
checked program was:
|
|
@@ -263,7 +263,7 @@ checked program was:
|
|
|
263
263
|
/* end */
|
|
264
264
|
|
|
265
265
|
LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/3.2.11/x64/lib "gcc -o conftest -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0/ruby/backward -I/opt/hostedtoolcache/Ruby/3.2.11/x64/include/ruby-3.2.0 -I. -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -L/opt/hostedtoolcache/Ruby/3.2.11/x64/lib -lruby -lm -lpthread -lc"
|
|
266
|
-
/usr/bin/ld: /tmp/
|
|
266
|
+
/usr/bin/ld: /tmp/ccIad0LP.o: in function `t':
|
|
267
267
|
/home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/io-console-0.9.2/ext/io/console/conftest.c:17:(.text+0xb): undefined reference to `rb_io_open_descriptor'
|
|
268
268
|
collect2: error: ld returned 1 exit status
|
|
269
269
|
checked program was:
|
|
@@ -3,10 +3,10 @@ current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/v
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-vtxg1y sitelibdir\=./.gem.20260825-2473-vtxg1y clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-vtxg1y sitelibdir\=./.gem.20260825-2473-vtxg1y
|
|
10
10
|
compiling adj_matrix.c
|
|
11
11
|
adj_matrix.c: In function ‘adj_matrix_default’:
|
|
12
12
|
adj_matrix.c:82:12: warning: old-style function definition [-Wold-style-definition]
|
|
@@ -22,8 +22,8 @@ compiling jaro_winkler.c
|
|
|
22
22
|
linking shared-object jaro_winkler/jaro_winkler_ext.so
|
|
23
23
|
|
|
24
24
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
25
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
26
|
-
/usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.
|
|
25
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-vtxg1y sitelibdir\=./.gem.20260825-2473-vtxg1y install
|
|
26
|
+
/usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20260825-2473-vtxg1y/jaro_winkler
|
|
27
27
|
|
|
28
28
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler
|
|
29
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
29
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-vtxg1y sitelibdir\=./.gem.20260825-2473-vtxg1y clean
|
data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.4.0 → psych-5.5.0}/gem_make.out
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.
|
|
1
|
+
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych
|
|
2
2
|
/opt/hostedtoolcache/Ruby/3.2.11/x64/bin/ruby extconf.rb
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
|
-
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
5
|
+
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-dfceur sitelibdir\=./.gem.20260825-2473-dfceur clean
|
|
7
7
|
cd libyaml && make clean
|
|
8
8
|
/bin/sh: 1: cd: can't cd to libyaml
|
|
9
9
|
make: [Makefile:283: clean-so] Error 2 (ignored)
|
|
10
10
|
|
|
11
|
-
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.
|
|
12
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
11
|
+
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych
|
|
12
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-dfceur sitelibdir\=./.gem.20260825-2473-dfceur
|
|
13
13
|
compiling psych.c
|
|
14
14
|
compiling psych_emitter.c
|
|
15
15
|
compiling psych_parser.c
|
|
@@ -17,12 +17,12 @@ compiling psych_to_ruby.c
|
|
|
17
17
|
compiling psych_yaml_tree.c
|
|
18
18
|
linking shared-object psych.so
|
|
19
19
|
|
|
20
|
-
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.
|
|
21
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
22
|
-
/usr/bin/install -c -m 0755 psych.so ./.gem.
|
|
20
|
+
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych
|
|
21
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-dfceur sitelibdir\=./.gem.20260825-2473-dfceur install
|
|
22
|
+
/usr/bin/install -c -m 0755 psych.so ./.gem.20260825-2473-dfceur
|
|
23
23
|
|
|
24
|
-
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.
|
|
25
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
24
|
+
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/psych-5.5.0/ext/psych
|
|
25
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-dfceur sitelibdir\=./.gem.20260825-2473-dfceur clean
|
|
26
26
|
cd libyaml && make clean
|
|
27
27
|
/bin/sh: 1: cd: can't cd to libyaml
|
|
28
28
|
make: [Makefile:283: clean-so] Error 2 (ignored)
|
|
@@ -3,16 +3,16 @@ current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/v
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/racc-1.8.1/ext/racc/cparse
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-w8fa8z sitelibdir\=./.gem.20260825-2473-w8fa8z clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/racc-1.8.1/ext/racc/cparse
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-w8fa8z sitelibdir\=./.gem.20260825-2473-w8fa8z
|
|
10
10
|
compiling cparse.c
|
|
11
11
|
linking shared-object racc/cparse.so
|
|
12
12
|
|
|
13
13
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/racc-1.8.1/ext/racc/cparse
|
|
14
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
15
|
-
/usr/bin/install -c -m 0755 cparse.so ./.gem.
|
|
14
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-w8fa8z sitelibdir\=./.gem.20260825-2473-w8fa8z install
|
|
15
|
+
/usr/bin/install -c -m 0755 cparse.so ./.gem.20260825-2473-w8fa8z/racc
|
|
16
16
|
|
|
17
17
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/racc-1.8.1/ext/racc/cparse
|
|
18
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
18
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-w8fa8z sitelibdir\=./.gem.20260825-2473-w8fa8z clean
|
|
@@ -4,16 +4,16 @@ checking for rb_io_mode_t in ruby/io.h... no
|
|
|
4
4
|
creating Makefile
|
|
5
5
|
|
|
6
6
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/stringio-3.2.0/ext/stringio
|
|
7
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
7
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-e9ajgf sitelibdir\=./.gem.20260825-2473-e9ajgf clean
|
|
8
8
|
|
|
9
9
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/stringio-3.2.0/ext/stringio
|
|
10
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
10
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-e9ajgf sitelibdir\=./.gem.20260825-2473-e9ajgf
|
|
11
11
|
compiling stringio.c
|
|
12
12
|
linking shared-object stringio.so
|
|
13
13
|
|
|
14
14
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/stringio-3.2.0/ext/stringio
|
|
15
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
16
|
-
/usr/bin/install -c -m 0755 stringio.so ./.gem.
|
|
15
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-e9ajgf sitelibdir\=./.gem.20260825-2473-e9ajgf install
|
|
16
|
+
/usr/bin/install -c -m 0755 stringio.so ./.gem.20260825-2473-e9ajgf
|
|
17
17
|
|
|
18
18
|
current directory: /home/runner/work/serverless/serverless/sdks/ruby/generated/vendor/bundle/ruby/3.2.0/gems/stringio-3.2.0/ext/stringio
|
|
19
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
19
|
+
make DESTDIR\= sitearchdir\=./.gem.20260825-2473-e9ajgf sitelibdir\=./.gem.20260825-2473-e9ajgf clean
|
|
@@ -23,6 +23,7 @@ Psych.dump("foo") # => "--- foo\n...\n"
|
|
|
23
23
|
## Dependencies
|
|
24
24
|
|
|
25
25
|
* libyaml
|
|
26
|
+
* libfyaml (optional, only for the experimental `--enable-libfyaml` backend)
|
|
26
27
|
|
|
27
28
|
## Installation
|
|
28
29
|
|
|
@@ -57,6 +58,58 @@ gem 'psych'
|
|
|
57
58
|
|
|
58
59
|
JRuby ships with a pure Java implementation of Psych.
|
|
59
60
|
|
|
61
|
+
## Experimental libfyaml backend
|
|
62
|
+
|
|
63
|
+
Psych ships an experimental, opt-in backend built on
|
|
64
|
+
[libfyaml](https://github.com/pantoniou/libfyaml), a fully YAML 1.2 compliant
|
|
65
|
+
parser and emitter. It is compiled only when you explicitly pass
|
|
66
|
+
`--enable-libfyaml` at build time. Without the flag the default libyaml
|
|
67
|
+
backend is used and nothing changes.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# libfyaml and pkg-config must be installed first, for example:
|
|
71
|
+
# apt-get install libfyaml-dev # Debian/Ubuntu
|
|
72
|
+
# brew install libfyaml # macOS
|
|
73
|
+
gem install psych -- --enable-libfyaml
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
This backend is not supported on Windows.
|
|
77
|
+
|
|
78
|
+
Because libfyaml follows YAML 1.2, the YAML 1.1 booleans `yes`, `no`, `on`, and
|
|
79
|
+
`off` load as plain strings instead of `true`/`false` (only `true`/`false` are
|
|
80
|
+
booleans). This resolves the so-called "Norway problem", where the country
|
|
81
|
+
code `no` was parsed as `false`:
|
|
82
|
+
|
|
83
|
+
```ruby
|
|
84
|
+
Psych.load("country: no") # => {"country" => "no"}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
You can check which backend is active:
|
|
88
|
+
|
|
89
|
+
```ruby
|
|
90
|
+
Psych::BACKEND # => "libfyaml" (or "libyaml")
|
|
91
|
+
Psych.libfyaml_version # => "0.9.6"
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The backend is experimental. Its output is valid YAML but is formatted
|
|
95
|
+
differently from libyaml in places, and a few emitter edge cases are not yet
|
|
96
|
+
matched. The default libyaml backend remains the supported choice.
|
|
97
|
+
|
|
98
|
+
Two more differences are worth knowing. Scalars emitted with the default
|
|
99
|
+
(`ANY`) style may be quoted or laid out differently from libyaml, so
|
|
100
|
+
byte-for-byte output is not guaranteed to match. On a parse error,
|
|
101
|
+
`Psych::SyntaxError#problem` carries libfyaml's full diagnostic message and
|
|
102
|
+
`Psych::SyntaxError#context` is always `nil`, whereas libyaml splits the
|
|
103
|
+
description across `#problem` and `#context`.
|
|
104
|
+
|
|
105
|
+
This backend targets YAML 1.2 compliance, not speed. In a rough
|
|
106
|
+
single-machine benchmark that loads and dumps in-memory documents, parsing
|
|
107
|
+
was roughly on par with libyaml (sometimes faster on string-heavy input),
|
|
108
|
+
while emitting was about 1.7x to 1.9x slower. Your numbers will vary, but the
|
|
109
|
+
shape holds: libfyaml is competitive at parsing and slower at emitting. Use
|
|
110
|
+
this backend when you need YAML 1.2 semantics. If throughput is your priority,
|
|
111
|
+
keep using the default libyaml backend.
|
|
112
|
+
|
|
60
113
|
## Release
|
|
61
114
|
|
|
62
115
|
We used the trusted publisher and [rubygems/release-gem](https://github.com/rubygems/release-gem) workflow.
|
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
require 'mkmf'
|
|
4
4
|
|
|
5
|
+
# Experimental, opt-in libfyaml backend. Only used when psych is built with
|
|
6
|
+
# --enable-libfyaml. Without the flag nothing below changes and the default
|
|
7
|
+
# libyaml backend is built exactly as before.
|
|
8
|
+
if enable_config("libfyaml", false)
|
|
9
|
+
if $mswin or $mingw or $cygwin
|
|
10
|
+
abort "The libfyaml backend (--enable-libfyaml) is not supported on Windows"
|
|
11
|
+
end
|
|
12
|
+
unless pkg_config('libfyaml')
|
|
13
|
+
abort "libfyaml was requested with --enable-libfyaml but was not found via pkg-config"
|
|
14
|
+
end
|
|
15
|
+
# libfyaml 0.8 and earlier crash psych's emitter, so require a known-good
|
|
16
|
+
# version rather than building something that segfaults at runtime.
|
|
17
|
+
pkgconfig = ENV["PKG_CONFIG"] || "pkg-config"
|
|
18
|
+
unless system(pkgconfig, "--atleast-version=0.9", "libfyaml")
|
|
19
|
+
abort "The libfyaml backend requires libfyaml 0.9 or newer"
|
|
20
|
+
end
|
|
21
|
+
$defs << "-DPSYCH_USE_LIBFYAML"
|
|
22
|
+
|
|
23
|
+
create_makefile 'psych'
|
|
24
|
+
return
|
|
25
|
+
end
|
|
26
|
+
|
|
5
27
|
if $mswin or $mingw or $cygwin
|
|
6
28
|
$CPPFLAGS << " -DYAML_DECLARE_STATIC"
|
|
7
29
|
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#include <psych.h>
|
|
2
|
+
|
|
3
|
+
/* call-seq: Psych.libyaml_version
|
|
4
|
+
*
|
|
5
|
+
* Returns the version of the underlying YAML library as a three-element
|
|
6
|
+
* array. This is libyaml by default. On the experimental libfyaml backend,
|
|
7
|
+
* where libyaml is not linked, it reports the libfyaml version instead.
|
|
8
|
+
*/
|
|
9
|
+
static VALUE libyaml_version(VALUE module)
|
|
10
|
+
{
|
|
11
|
+
int major, minor, patch;
|
|
12
|
+
VALUE list[3];
|
|
13
|
+
|
|
14
|
+
#ifdef PSYCH_USE_LIBFYAML
|
|
15
|
+
/* Experimental libfyaml backend: there is no libyaml linked in. Report
|
|
16
|
+
* the libfyaml version so callers still receive a 3-element version. */
|
|
17
|
+
const struct fy_version *v = fy_version_default();
|
|
18
|
+
major = v ? v->major : 0;
|
|
19
|
+
minor = v ? v->minor : 0;
|
|
20
|
+
patch = 0;
|
|
21
|
+
#else
|
|
22
|
+
yaml_get_version(&major, &minor, &patch);
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
list[0] = INT2NUM(major);
|
|
26
|
+
list[1] = INT2NUM(minor);
|
|
27
|
+
list[2] = INT2NUM(patch);
|
|
28
|
+
|
|
29
|
+
return rb_ary_new4((long)3, list);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#ifdef PSYCH_USE_LIBFYAML
|
|
33
|
+
/* call-seq: Psych.libfyaml_version
|
|
34
|
+
*
|
|
35
|
+
* Returns the libfyaml version string. This method is only defined when
|
|
36
|
+
* psych was built with the experimental libfyaml backend
|
|
37
|
+
* (+--enable-libfyaml+).
|
|
38
|
+
*/
|
|
39
|
+
static VALUE libfyaml_version(VALUE module)
|
|
40
|
+
{
|
|
41
|
+
const char *v = fy_library_version();
|
|
42
|
+
return v ? rb_usascii_str_new2(v) : Qnil;
|
|
43
|
+
}
|
|
44
|
+
#endif
|
|
45
|
+
|
|
46
|
+
VALUE mPsych;
|
|
47
|
+
|
|
48
|
+
void Init_psych(void)
|
|
49
|
+
{
|
|
50
|
+
#ifdef HAVE_RB_EXT_RACTOR_SAFE
|
|
51
|
+
RB_EXT_RACTOR_SAFE(true);
|
|
52
|
+
#endif
|
|
53
|
+
mPsych = rb_define_module("Psych");
|
|
54
|
+
|
|
55
|
+
rb_define_singleton_method(mPsych, "libyaml_version", libyaml_version, 0);
|
|
56
|
+
|
|
57
|
+
#ifdef PSYCH_USE_LIBFYAML
|
|
58
|
+
rb_define_singleton_method(mPsych, "libfyaml_version", libfyaml_version, 0);
|
|
59
|
+
rb_define_const(mPsych, "BACKEND", rb_usascii_str_new2("libfyaml"));
|
|
60
|
+
#else
|
|
61
|
+
rb_define_const(mPsych, "BACKEND", rb_usascii_str_new2("libyaml"));
|
|
62
|
+
#endif
|
|
63
|
+
|
|
64
|
+
Init_psych_parser();
|
|
65
|
+
Init_psych_emitter();
|
|
66
|
+
Init_psych_to_ruby();
|
|
67
|
+
Init_psych_yaml_tree();
|
|
68
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#include <psych.h>
|
|
2
2
|
|
|
3
|
+
#ifndef PSYCH_USE_LIBFYAML
|
|
4
|
+
|
|
3
5
|
#if !defined(RARRAY_CONST_PTR)
|
|
4
6
|
#define RARRAY_CONST_PTR(s) (const VALUE *)RARRAY_PTR(s)
|
|
5
7
|
#endif
|
|
@@ -587,3 +589,5 @@ void Init_psych_emitter(void)
|
|
|
587
589
|
id_indentation = rb_intern("indentation");
|
|
588
590
|
id_canonical = rb_intern("canonical");
|
|
589
591
|
}
|
|
592
|
+
|
|
593
|
+
#endif /* PSYCH_USE_LIBFYAML */
|