rubysky 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/.gem_rbs_collection/activesupport/7.0/.rbs_meta.yaml +9 -0
  3. data/.gem_rbs_collection/activesupport/7.0/activesupport-7.0.rbs +140 -0
  4. data/.gem_rbs_collection/activesupport/7.0/activesupport-generated.rbs +11950 -0
  5. data/.gem_rbs_collection/activesupport/7.0/activesupport.rbs +583 -0
  6. data/.gem_rbs_collection/activesupport/7.0/manifest.yaml +16 -0
  7. data/.gem_rbs_collection/activesupport/7.0/patch.rbs +55 -0
  8. data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +9 -0
  9. data/.gem_rbs_collection/ast/2.4/ast.rbs +73 -0
  10. data/.gem_rbs_collection/concurrent-ruby/1.1/.rbs_meta.yaml +9 -0
  11. data/.gem_rbs_collection/concurrent-ruby/1.1/array.rbs +4 -0
  12. data/.gem_rbs_collection/concurrent-ruby/1.1/executor.rbs +26 -0
  13. data/.gem_rbs_collection/concurrent-ruby/1.1/hash.rbs +4 -0
  14. data/.gem_rbs_collection/concurrent-ruby/1.1/map.rbs +58 -0
  15. data/.gem_rbs_collection/concurrent-ruby/1.1/promises.rbs +249 -0
  16. data/.gem_rbs_collection/concurrent-ruby/1.1/utility/processor_counter.rbs +5 -0
  17. data/.gem_rbs_collection/connection_pool/2.4/.rbs_meta.yaml +9 -0
  18. data/.gem_rbs_collection/connection_pool/2.4/connection_pool.rbs +34 -0
  19. data/.gem_rbs_collection/connection_pool/2.4/manifest.yaml +2 -0
  20. data/.gem_rbs_collection/diff-lcs/1.5/.rbs_meta.yaml +9 -0
  21. data/.gem_rbs_collection/diff-lcs/1.5/diff-lcs.rbs +11 -0
  22. data/.gem_rbs_collection/i18n/1.10/.rbs_meta.yaml +9 -0
  23. data/.gem_rbs_collection/i18n/1.10/backend.rbs +269 -0
  24. data/.gem_rbs_collection/i18n/1.10/i18n.rbs +117 -0
  25. data/.gem_rbs_collection/listen/3.9/.rbs_meta.yaml +9 -0
  26. data/.gem_rbs_collection/listen/3.9/listen.rbs +25 -0
  27. data/.gem_rbs_collection/listen/3.9/listener.rbs +24 -0
  28. data/.gem_rbs_collection/parallel/1.20/.rbs_meta.yaml +9 -0
  29. data/.gem_rbs_collection/parallel/1.20/parallel.rbs +86 -0
  30. data/.gem_rbs_collection/parser/3.2/.rbs_meta.yaml +9 -0
  31. data/.gem_rbs_collection/parser/3.2/manifest.yaml +7 -0
  32. data/.gem_rbs_collection/parser/3.2/parser.rbs +104 -0
  33. data/.gem_rbs_collection/parser/3.2/polyfill.rbs +4 -0
  34. data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +9 -0
  35. data/.gem_rbs_collection/rainbow/3.0/global.rbs +7 -0
  36. data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +209 -0
  37. data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +5 -0
  38. data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +9 -0
  39. data/.gem_rbs_collection/rake/13.0/manifest.yaml +2 -0
  40. data/.gem_rbs_collection/rake/13.0/rake.rbs +28 -0
  41. data/.gem_rbs_collection/regexp_parser/2.8/.rbs_meta.yaml +9 -0
  42. data/.gem_rbs_collection/regexp_parser/2.8/regexp_parser.rbs +17 -0
  43. data/.gem_rbs_collection/rubocop/1.57/.rbs_meta.yaml +9 -0
  44. data/.gem_rbs_collection/rubocop/1.57/rubocop.rbs +34 -0
  45. data/.gem_rbs_collection/rubocop-ast/1.30/.rbs_meta.yaml +9 -0
  46. data/.gem_rbs_collection/rubocop-ast/1.30/rubocop-ast.rbs +15 -0
  47. data/.gem_rbs_collection/tzinfo/2.0/.rbs_meta.yaml +9 -0
  48. data/.gem_rbs_collection/tzinfo/2.0/manifest.yaml +7 -0
  49. data/.gem_rbs_collection/tzinfo/2.0/tzinfo.rbs +601 -0
  50. data/.rspec +3 -0
  51. data/.rubocop.yml +18 -0
  52. data/CHANGELOG.md +5 -0
  53. data/CODE_OF_CONDUCT.md +132 -0
  54. data/LICENSE.txt +21 -0
  55. data/README.md +39 -0
  56. data/Rakefile +12 -0
  57. data/Steepfile +32 -0
  58. data/lib/rubysky/client.rb +40 -0
  59. data/lib/rubysky/post.rb +15 -0
  60. data/lib/rubysky/raw/client.rb +133 -0
  61. data/lib/rubysky/raw/did_doc.rb +15 -0
  62. data/lib/rubysky/raw/embed.rb +18 -0
  63. data/lib/rubysky/raw/post.rb +29 -0
  64. data/lib/rubysky/raw/session.rb +41 -0
  65. data/lib/rubysky/version.rb +5 -0
  66. data/lib/rubysky.rb +17 -0
  67. data/rbs_collection.lock.yaml +232 -0
  68. data/rbs_collection.yaml +18 -0
  69. data/sig/rubysky.rbs +101 -0
  70. metadata +129 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5c621e0b59495030464ebde168fae4d352db32b458c213be1300277928d9656f
4
+ data.tar.gz: 7c5bed2c73fbbc141866d922a308de16bfe994bca83db10b762f3ef5d22d3905
5
+ SHA512:
6
+ metadata.gz: ab3ab4c9c159586c2a3dce504d2bc9f60a31bb1ed08cfe677cfe94e946f97168e259838f27dde6cec5cceaf13f3c7d6faef839772c0d9d21adad599b8e7b7740
7
+ data.tar.gz: 86b71204df8732eae6b29e539540ae3a8fe156340f3d138880b9db9676cdd325ce2009b606cd0da7569f25ed98e35bccacc216e8b9812e7a135c7a77c3889c2f
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: activesupport
3
+ version: '7.0'
4
+ source:
5
+ type: git
6
+ name: ruby/gem_rbs_collection
7
+ revision: 0a6ea105a0afc7eaee4494585a7775f47eea6145
8
+ remote: https://github.com/ruby/gem_rbs_collection.git
9
+ repo_dir: gems
@@ -0,0 +1,140 @@
1
+ module ActiveSupport
2
+ module Cache
3
+ module Strategy
4
+ module LocalCache
5
+ module LocalCacheRegistry
6
+ def cache_for: (untyped local_cache_key) -> untyped
7
+ def set_cache_for: (untyped local_cache_key, untyped value) -> untyped
8
+ extend LocalCacheRegistry
9
+ end
10
+ end
11
+ end
12
+ end
13
+
14
+ module Notifications
15
+ interface _Callable5
16
+ def call: (String, Time, Time, String, Hash[untyped, untyped]) -> void
17
+ end
18
+
19
+ interface _Callable1
20
+ def call: (untyped event) -> void
21
+ end
22
+
23
+ # Subscribe to a given event name with the passed +block+.
24
+ #
25
+ # You can subscribe to events by passing a String to match exact event
26
+ # names, or by passing a Regexp to match all events that match a pattern.
27
+ #
28
+ # ActiveSupport::Notifications.subscribe(/render/) do |*args|
29
+ # @event = ActiveSupport::Notifications::Event.new(*args)
30
+ # end
31
+ #
32
+ # The +block+ will receive five parameters with information about the event:
33
+ #
34
+ # ActiveSupport::Notifications.subscribe('render') do |name, start, finish, id, payload|
35
+ # name # => String, name of the event (such as 'render' from above)
36
+ # start # => Time, when the instrumented block started execution
37
+ # finish # => Time, when the instrumented block ended execution
38
+ # id # => String, unique ID for the instrumenter that fired the event
39
+ # payload # => Hash, the payload
40
+ # end
41
+ #
42
+ # If the block passed to the method only takes one parameter,
43
+ # it will yield an event object to the block:
44
+ #
45
+ # ActiveSupport::Notifications.subscribe(/render/) do |event|
46
+ # @event = event
47
+ # end
48
+ def self.subscribe: (String | Regexp, _Callable5 | _Callable1) -> Subscriber
49
+ | ...
50
+ end
51
+
52
+ class TimeWithZone
53
+ # Returns a string of the object's date and time.
54
+ #
55
+ # This method is aliased to <tt>to_formatted_s</tt>.
56
+ #
57
+ # Accepts an optional <tt>format</tt>:
58
+ # * <tt>:default</tt> - default value, mimics Ruby Time#to_s format.
59
+ # * <tt>:db</tt> - format outputs time in UTC :db time. See Time#to_fs(:db).
60
+ # * Any key in +Time::DATE_FORMATS+ can be used. See active_support/core_ext/time/conversions.rb.
61
+ def to_fs: (?Symbol format) -> String
62
+ end
63
+
64
+ class TimeZone
65
+ # Locate a specific time zone object. If the argument is a string, it
66
+ # is interpreted to mean the name of the timezone to locate. If it is a
67
+ # numeric value it is either the hour offset, or the second offset, of the
68
+ # timezone to find. (The first one with that offset will be returned.)
69
+ # Returns +nil+ if no such time zone is known to the system.
70
+ def self.[]: (instance | TZInfo::Timezone | String | real | Duration) -> instance?
71
+ end
72
+ end
73
+
74
+ # activesupport/lib/active_support/core_ext/time/zones.rb
75
+ class Time
76
+ # Returns a TimeZone instance matching the time zone provided.
77
+ # Accepts the time zone in any format supported by <tt>Time.zone=</tt>.
78
+ # Raises an +ArgumentError+ for invalid time zones.
79
+ #
80
+ # Time.find_zone! "America/New_York" # => #<ActiveSupport::TimeZone @name="America/New_York" ...>
81
+ # Time.find_zone! "EST" # => #<ActiveSupport::TimeZone @name="EST" ...>
82
+ # Time.find_zone! -5.hours # => #<ActiveSupport::TimeZone @name="Bogota" ...>
83
+ # Time.find_zone! nil # => nil
84
+ # Time.find_zone! false # => false
85
+ # Time.find_zone! "NOT-A-TIMEZONE" # => ArgumentError: Invalid Timezone: NOT-A-TIMEZONE
86
+ def self.find_zone!: (ActiveSupport::TimeZone | TZInfo::Timezone | String | real | ActiveSupport::Duration) -> ActiveSupport::TimeZone
87
+
88
+ # Returns a TimeZone instance matching the time zone provided.
89
+ # Accepts the time zone in any format supported by <tt>Time.zone=</tt>.
90
+ # Returns +nil+ for invalid time zones.
91
+ #
92
+ # Time.find_zone "America/New_York" # => #<ActiveSupport::TimeZone @name="America/New_York" ...>
93
+ # Time.find_zone "NOT-A-TIMEZONE" # => nil
94
+ def self.find_zone: (ActiveSupport::TimeZone | TZInfo::Timezone | String | real | ActiveSupport::Duration | nil) -> ActiveSupport::TimeZone?
95
+ end
96
+
97
+ module Enumerable[unchecked out Elem]
98
+ # Returns a new +Array+ without the blank items.
99
+ # Uses Object#blank? for determining if an item is blank.
100
+ #
101
+ # [1, "", nil, 2, " ", [], {}, false, true].compact_blank
102
+ # # => [1, 2, true]
103
+ #
104
+ # Set.new([nil, "", 1, false]).compact_blank
105
+ # # => [1]
106
+ #
107
+ # When called on a +Hash+, returns a new +Hash+ without the blank values.
108
+ #
109
+ # { a: "", b: 1, c: nil, d: [], e: false, f: true }.compact_blank
110
+ # # => { b: 1, f: true }
111
+ def compact_blank: () -> Array[Elem]
112
+ end
113
+
114
+ class Hash[unchecked out K, unchecked out V]
115
+ # Hash#reject has its own definition, so this needs one too.
116
+ def compact_blank: () -> Hash[K, V]
117
+
118
+ # Removes all blank values from the +Hash+ in place and returns self.
119
+ # Uses Object#blank? for determining if a value is blank.
120
+ #
121
+ # h = { a: "", b: 1, c: nil, d: [], e: false, f: true }
122
+ # h.compact_blank!
123
+ # # => { b: 1, f: true }
124
+ def compact_blank!: () -> Hash[K, V]
125
+ end
126
+
127
+ class Array[unchecked out Elem]
128
+ # Removes all blank elements from the +Array+ in place and returns self.
129
+ # Uses Object#blank? for determining if an item is blank.
130
+ #
131
+ # a = [1, "", nil, 2, " ", [], {}, false, true]
132
+ # a.compact_blank!
133
+ # # => [1, 2, true]
134
+ def compact_blank!: () -> Array[Elem]
135
+ end
136
+
137
+ # active_support/core_ext/string/inflections.rb
138
+ class String
139
+ def downcase_first: () -> String
140
+ end