w3c_api 0.1.3 → 0.1.5

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +16 -1
  3. data/.rubocop_todo.yml +23 -32
  4. data/README.adoc +297 -827
  5. data/Rakefile +3 -3
  6. data/demo/rate_limiting_demo.rb +135 -0
  7. data/demo/test_embed_functionality.rb +88 -0
  8. data/demo/test_improved_embed_functionality.rb +92 -0
  9. data/examples/rate_limiting_stress_test.rb +239 -0
  10. data/exe/w3c_api +1 -1
  11. data/lib/w3c_api/cli.rb +29 -28
  12. data/lib/w3c_api/client.rb +30 -7
  13. data/lib/w3c_api/commands/affiliation.rb +15 -12
  14. data/lib/w3c_api/commands/ecosystem.rb +22 -15
  15. data/lib/w3c_api/commands/group.rb +32 -25
  16. data/lib/w3c_api/commands/output_formatter.rb +1 -1
  17. data/lib/w3c_api/commands/participation.rb +11 -9
  18. data/lib/w3c_api/commands/series.rb +11 -9
  19. data/lib/w3c_api/commands/specification.rb +59 -45
  20. data/lib/w3c_api/commands/specification_version.rb +21 -12
  21. data/lib/w3c_api/commands/translation.rb +7 -6
  22. data/lib/w3c_api/commands/user.rb +36 -24
  23. data/lib/w3c_api/embed.rb +40 -0
  24. data/lib/w3c_api/hal.rb +374 -164
  25. data/lib/w3c_api/models/account.rb +3 -3
  26. data/lib/w3c_api/models/affiliation.rb +8 -7
  27. data/lib/w3c_api/models/affiliation_index.rb +3 -2
  28. data/lib/w3c_api/models/call_for_translation.rb +4 -3
  29. data/lib/w3c_api/models/chair_index.rb +2 -2
  30. data/lib/w3c_api/models/charter.rb +5 -5
  31. data/lib/w3c_api/models/charter_index.rb +3 -2
  32. data/lib/w3c_api/models/connected_account.rb +2 -2
  33. data/lib/w3c_api/models/deliverer_index.rb +3 -2
  34. data/lib/w3c_api/models/ecosystem.rb +8 -6
  35. data/lib/w3c_api/models/ecosystem_index.rb +3 -2
  36. data/lib/w3c_api/models/editor_index.rb +2 -2
  37. data/lib/w3c_api/models/evangelist_index.rb +3 -2
  38. data/lib/w3c_api/models/group.rb +16 -13
  39. data/lib/w3c_api/models/group_index.rb +2 -2
  40. data/lib/w3c_api/models/groups.rb +2 -2
  41. data/lib/w3c_api/models/participant_index.rb +3 -2
  42. data/lib/w3c_api/models/participation.rb +6 -5
  43. data/lib/w3c_api/models/participation_index.rb +3 -2
  44. data/lib/w3c_api/models/photo.rb +1 -1
  45. data/lib/w3c_api/models/serie.rb +6 -4
  46. data/lib/w3c_api/models/serie_index.rb +3 -2
  47. data/lib/w3c_api/models/spec_version.rb +10 -7
  48. data/lib/w3c_api/models/spec_version_index.rb +3 -2
  49. data/lib/w3c_api/models/spec_version_predecessor_index.rb +3 -2
  50. data/lib/w3c_api/models/spec_version_successor_index.rb +3 -2
  51. data/lib/w3c_api/models/specification.rb +17 -9
  52. data/lib/w3c_api/models/specification_index.rb +3 -2
  53. data/lib/w3c_api/models/team_contact_index.rb +3 -2
  54. data/lib/w3c_api/models/testimonial.rb +2 -2
  55. data/lib/w3c_api/models/translation.rb +4 -4
  56. data/lib/w3c_api/models/translation_index.rb +3 -2
  57. data/lib/w3c_api/models/user.rb +16 -11
  58. data/lib/w3c_api/models/user_index.rb +2 -2
  59. data/lib/w3c_api/models.rb +52 -37
  60. data/lib/w3c_api/version.rb +1 -1
  61. data/lib/w3c_api.rb +8 -7
  62. metadata +10 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a73c07f5e19155dfe22a5e7c772a6890867df6db2019c049fd17ce1c90dd6680
4
- data.tar.gz: 58b57fedefa49eeb9a89f424fd966bc90e37fe6c8f5165a821de496e1a85109d
3
+ metadata.gz: a4dbcfdf9468b2cea332e93d7302cce5238e3530b231bccfa848f77ef4ca106d
4
+ data.tar.gz: d481729a09d328bc716b34b577957f60bc16dd2a8ff303c0cff9109fced13bcf
5
5
  SHA512:
6
- metadata.gz: 6e96e2292b9465203056c58e82c1d18b9b7afda181f62889a82d0a0cd2f4c46a1a713288308cf7d6fe131585c86613097d9d028066d043fe8ae1f69016a1ef58
7
- data.tar.gz: 9fbd52b672aa7b2d4dd2d97e084549b4f098e7ba91cf7252f41128f8883c574f59288c738b9c9c36e1cc60369a28168088abefcc16f86d605720694f045ab93d
6
+ metadata.gz: f7d6c35088901039ebfdf75f29e42c004ebe486e03fb9053e83e0599f33f8ae50c4b571097ce7cf63887b98d0fc7a4c4a1fbcacfb3a25d32b7a0b118a83b6fea
7
+ data.tar.gz: fbfcae8e668f7ccf48b8c355d7f6819f40acac18e0be02a706a926c6e6d74aaeef8b83f5a047fa3f02b7f70e6da831bc17ea05fb4cc4491db3095a9f813c54d9
data/.rubocop.yml CHANGED
@@ -1 +1,16 @@
1
- inherit_from: .rubocop_todo.yml
1
+ inherit_from:
2
+ - .rubocop_todo.yml
3
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
4
+
5
+ Layout/LineLength:
6
+ Max: 180
7
+
8
+ Metrics/MethodLength:
9
+ Exclude:
10
+ - 'demo/test_embed_functionality.rb'
11
+ - 'lib/w3c_api/commands/specification.rb'
12
+ - 'lib/w3c_api/hal.rb'
13
+
14
+ Metrics/ParameterLists:
15
+ Exclude:
16
+ - 'lib/w3c_api/hal.rb'
data/.rubocop_todo.yml CHANGED
@@ -1,47 +1,38 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-07-05 00:01:41 UTC using RuboCop version 1.77.0.
3
+ # on 2025-07-09 06:57:51 UTC using RuboCop version 1.78.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
9
+ # Offense count: 4
10
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
11
11
  Metrics/AbcSize:
12
- Max: 47
13
-
14
- # Offense count: 48
15
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
16
- # AllowedMethods: refine
17
- Metrics/BlockLength:
18
- Max: 370
12
+ Exclude:
13
+ - 'demo/test_embed_functionality.rb'
14
+ - 'lib/w3c_api/commands/group.rb'
15
+ - 'lib/w3c_api/commands/specification.rb'
16
+ - 'lib/w3c_api/hal.rb'
19
17
 
20
- # Offense count: 2
21
- # Configuration parameters: CountComments, CountAsOne.
22
- Metrics/ClassLength:
23
- Max: 274
18
+ # Offense count: 1
19
+ # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
20
+ Metrics/CyclomaticComplexity:
21
+ Exclude:
22
+ - 'demo/test_embed_functionality.rb'
24
23
 
25
- # Offense count: 2
24
+ # Offense count: 3
26
25
  # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
27
26
  Metrics/MethodLength:
28
- Max: 218
29
-
30
- # Offense count: 32
31
- # Configuration parameters: AllowedConstants.
32
- Style/Documentation:
33
- Enabled: false
27
+ Max: 351
28
+ Exclude:
29
+ - 'demo/test_embed_functionality.rb'
30
+ - 'lib/w3c_api/commands/specification.rb'
31
+ - 'lib/w3c_api/hal.rb'
34
32
 
35
33
  # Offense count: 1
36
- # This cop supports unsafe autocorrection (--autocorrect-all).
37
- # Configuration parameters: Mode.
38
- Style/StringConcatenation:
34
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
35
+ Metrics/ParameterLists:
36
+ Max: 6
39
37
  Exclude:
40
- - 'test_editor_deliverer_functionality.rb'
41
-
42
- # Offense count: 10
43
- # This cop supports safe autocorrection (--autocorrect).
44
- # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
45
- # URISchemes: http, https
46
- Layout/LineLength:
47
- Max: 457
38
+ - 'lib/w3c_api/hal.rb'