robin 0.0.4 → 0.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 +7 -0
- data/CHANGELOG.md +372 -0
- data/COPYING +674 -0
- data/LICENSE +165 -0
- data/README.md +1490 -0
- data/assets/favicon.svg +31 -0
- data/assets/robin-logo.svg +37 -0
- data/assets/robin-mono.svg +12 -0
- data/assets/robin-wordmark.svg +4 -0
- data/assets/robin.svg +34 -0
- data/exe/robin +5 -0
- data/ext/robin_resp/extconf.rb +29 -0
- data/ext/robin_resp/robin_resp.c +645 -0
- data/lib/active_job/queue_adapters/robin_adapter.rb +3 -0
- data/lib/generators/robin/install/install_generator.rb +39 -0
- data/lib/generators/robin/install/templates/initializer.rb.tt +31 -0
- data/lib/generators/robin/install/templates/robin.yml.tt +25 -0
- data/lib/generators/robin/job/job_generator.rb +78 -0
- data/lib/generators/robin/job/templates/job.rb.tt +13 -0
- data/lib/generators/robin/job/templates/job_spec.rb.tt +21 -0
- data/lib/generators/robin/job/templates/job_test.rb.tt +21 -0
- data/lib/puma/plugin/robin.rb +131 -0
- data/lib/robin/active_job.rb +144 -0
- data/lib/robin/api.rb +777 -0
- data/lib/robin/batch.rb +700 -0
- data/lib/robin/cancellation.rb +62 -0
- data/lib/robin/cli.rb +325 -0
- data/lib/robin/client.rb +355 -21
- data/lib/robin/config.rb +454 -4
- data/lib/robin/cron.rb +325 -0
- data/lib/robin/debounce.rb +108 -0
- data/lib/robin/deploy.rb +65 -0
- data/lib/robin/embedded.rb +53 -0
- data/lib/robin/encryption.rb +147 -0
- data/lib/robin/events.rb +60 -0
- data/lib/robin/expiry.rb +41 -0
- data/lib/robin/fetcher.rb +441 -0
- data/lib/robin/gvl.rb +62 -0
- data/lib/robin/health.rb +76 -0
- data/lib/robin/iterable_job.rb +294 -0
- data/lib/robin/job.rb +258 -0
- data/lib/robin/job_class.rb +157 -0
- data/lib/robin/job_logger.rb +121 -0
- data/lib/robin/launcher.rb +658 -0
- data/lib/robin/leader.rb +86 -0
- data/lib/robin/limiter.rb +639 -0
- data/lib/robin/manager.rb +125 -0
- data/lib/robin/metrics.rb +303 -0
- data/lib/robin/middleware.rb +165 -0
- data/lib/robin/opentelemetry.rb +88 -0
- data/lib/robin/periodic.rb +327 -0
- data/lib/robin/processor.rb +317 -0
- data/lib/robin/profiler.rb +140 -0
- data/lib/robin/progress.rb +46 -0
- data/lib/robin/rails/app_loader.rb +23 -0
- data/lib/robin/rails/current_attributes.rb +88 -0
- data/lib/robin/rails/error_reporter.rb +31 -0
- data/lib/robin/rails/notifications.rb +22 -0
- data/lib/robin/rails/railtie.rb +87 -0
- data/lib/robin/rails/transactional_push.rb +49 -0
- data/lib/robin/rails.rb +23 -0
- data/lib/robin/recovery.rb +135 -0
- data/lib/robin/redis/connection.rb +639 -0
- data/lib/robin/redis/pool.rb +190 -0
- data/lib/robin/redis/resp.rb +77 -0
- data/lib/robin/reliable_push.rb +153 -0
- data/lib/robin/retrier.rb +284 -0
- data/lib/robin/scheduler.rb +102 -0
- data/lib/robin/scripts.rb +331 -0
- data/lib/robin/statsd.rb +135 -0
- data/lib/robin/swarm.rb +319 -0
- data/lib/robin/systemd.rb +47 -0
- data/lib/robin/testing.rb +158 -0
- data/lib/robin/top.rb +178 -0
- data/lib/robin/unique.rb +198 -0
- data/lib/robin/version.rb +5 -0
- data/lib/robin/warmup.rb +94 -0
- data/lib/robin/web/api.rb +580 -0
- data/lib/robin/web/batch_status.rb +44 -0
- data/lib/robin/web/dist/assets/ar-y7v9b75f.js +1 -0
- data/lib/robin/web/dist/assets/ar-y7v9b75f.js.gz +0 -0
- data/lib/robin/web/dist/assets/bricolage-0qmzcpnj.woff2 +0 -0
- data/lib/robin/web/dist/assets/cs-df88mq5e.js +1 -0
- data/lib/robin/web/dist/assets/cs-df88mq5e.js.gz +0 -0
- data/lib/robin/web/dist/assets/da-kemms74g.js +1 -0
- data/lib/robin/web/dist/assets/da-kemms74g.js.gz +0 -0
- data/lib/robin/web/dist/assets/de-z8kkqg65.js +1 -0
- data/lib/robin/web/dist/assets/de-z8kkqg65.js.gz +0 -0
- data/lib/robin/web/dist/assets/es-9ahrrn1s.js +1 -0
- data/lib/robin/web/dist/assets/es-9ahrrn1s.js.gz +0 -0
- data/lib/robin/web/dist/assets/fa-7r0x28nc.js +1 -0
- data/lib/robin/web/dist/assets/fa-7r0x28nc.js.gz +0 -0
- data/lib/robin/web/dist/assets/favicon-1ebfcc0182.svg +31 -0
- data/lib/robin/web/dist/assets/favicon-1ebfcc0182.svg.gz +0 -0
- data/lib/robin/web/dist/assets/fr-r7mqf3d9.js +1 -0
- data/lib/robin/web/dist/assets/fr-r7mqf3d9.js.gz +0 -0
- data/lib/robin/web/dist/assets/he-7t46b6rt.js +1 -0
- data/lib/robin/web/dist/assets/he-7t46b6rt.js.gz +0 -0
- data/lib/robin/web/dist/assets/hi-zj434tx4.js +1 -0
- data/lib/robin/web/dist/assets/hi-zj434tx4.js.gz +0 -0
- data/lib/robin/web/dist/assets/it-pqc2m7gm.js +1 -0
- data/lib/robin/web/dist/assets/it-pqc2m7gm.js.gz +0 -0
- data/lib/robin/web/dist/assets/ja-k9rgm1pj.js +1 -0
- data/lib/robin/web/dist/assets/ja-k9rgm1pj.js.gz +0 -0
- data/lib/robin/web/dist/assets/ko-bxersv91.js +1 -0
- data/lib/robin/web/dist/assets/ko-bxersv91.js.gz +0 -0
- data/lib/robin/web/dist/assets/main-anw3f6ba.css +1 -0
- data/lib/robin/web/dist/assets/main-anw3f6ba.css.gz +0 -0
- data/lib/robin/web/dist/assets/main-pdtvjejb.js +7 -0
- data/lib/robin/web/dist/assets/main-pdtvjejb.js.gz +0 -0
- data/lib/robin/web/dist/assets/main-zz8zzhwn.js +2 -0
- data/lib/robin/web/dist/assets/main-zz8zzhwn.js.gz +0 -0
- data/lib/robin/web/dist/assets/nb-fjnc5064.js +1 -0
- data/lib/robin/web/dist/assets/nb-fjnc5064.js.gz +0 -0
- data/lib/robin/web/dist/assets/nl-9p8b95b6.js +1 -0
- data/lib/robin/web/dist/assets/nl-9p8b95b6.js.gz +0 -0
- data/lib/robin/web/dist/assets/pl-8xsrdn8n.js +1 -0
- data/lib/robin/web/dist/assets/pl-8xsrdn8n.js.gz +0 -0
- data/lib/robin/web/dist/assets/pt-BR-650j7cvg.js +1 -0
- data/lib/robin/web/dist/assets/pt-BR-650j7cvg.js.gz +0 -0
- data/lib/robin/web/dist/assets/robin-ae4a4aedd9.svg +34 -0
- data/lib/robin/web/dist/assets/robin-ae4a4aedd9.svg.gz +0 -0
- data/lib/robin/web/dist/assets/robin-wordmark-5dde5d8e4b.svg +4 -0
- data/lib/robin/web/dist/assets/robin-wordmark-5dde5d8e4b.svg.gz +0 -0
- data/lib/robin/web/dist/assets/ru-a9ftyw3d.js +1 -0
- data/lib/robin/web/dist/assets/ru-a9ftyw3d.js.gz +0 -0
- data/lib/robin/web/dist/assets/sv-j9gqamr1.js +1 -0
- data/lib/robin/web/dist/assets/sv-j9gqamr1.js.gz +0 -0
- data/lib/robin/web/dist/assets/tr-y9z0q51g.js +1 -0
- data/lib/robin/web/dist/assets/tr-y9z0q51g.js.gz +0 -0
- data/lib/robin/web/dist/assets/uk-2dr9ew3p.js +1 -0
- data/lib/robin/web/dist/assets/uk-2dr9ew3p.js.gz +0 -0
- data/lib/robin/web/dist/assets/ur-h25nzq1s.js +1 -0
- data/lib/robin/web/dist/assets/ur-h25nzq1s.js.gz +0 -0
- data/lib/robin/web/dist/assets/vi-9y2ff1bd.js +1 -0
- data/lib/robin/web/dist/assets/vi-9y2ff1bd.js.gz +0 -0
- data/lib/robin/web/dist/assets/zh-CN-tbj9mf98.js +1 -0
- data/lib/robin/web/dist/assets/zh-CN-tbj9mf98.js.gz +0 -0
- data/lib/robin/web/dist/assets/zh-TW-59q8j9vw.js +1 -0
- data/lib/robin/web/dist/assets/zh-TW-59q8j9vw.js.gz +0 -0
- data/lib/robin/web/dist/index.html +19 -0
- data/lib/robin/web/extension.rb +193 -0
- data/lib/robin/web/permissions.rb +40 -0
- data/lib/robin/web/prometheus.rb +79 -0
- data/lib/robin/web/router.rb +150 -0
- data/lib/robin/web/static.rb +110 -0
- data/lib/robin/web.rb +196 -0
- data/lib/robin.rb +258 -8
- data/sig/manifest.yaml +9 -0
- data/sig/robin/api.rbs +442 -0
- data/sig/robin/batch.rbs +292 -0
- data/sig/robin/cancellation.rbs +25 -0
- data/sig/robin/cli.rbs +102 -0
- data/sig/robin/client.rbs +118 -0
- data/sig/robin/config.rbs +341 -0
- data/sig/robin/cron.rbs +149 -0
- data/sig/robin/debounce.rbs +36 -0
- data/sig/robin/deploy.rbs +24 -0
- data/sig/robin/embedded.rbs +25 -0
- data/sig/robin/encryption.rbs +49 -0
- data/sig/robin/events.rbs +10 -0
- data/sig/robin/expiry.rbs +17 -0
- data/sig/robin/fetcher.rbs +134 -0
- data/sig/robin/gvl.rbs +39 -0
- data/sig/robin/health.rbs +30 -0
- data/sig/robin/iterable_job.rbs +99 -0
- data/sig/robin/job.rbs +173 -0
- data/sig/robin/job_class.rbs +55 -0
- data/sig/robin/job_logger.rbs +56 -0
- data/sig/robin/launcher.rbs +191 -0
- data/sig/robin/leader.rbs +43 -0
- data/sig/robin/limiter.rbs +317 -0
- data/sig/robin/manager.rbs +54 -0
- data/sig/robin/metrics.rbs +122 -0
- data/sig/robin/middleware.rbs +106 -0
- data/sig/robin/opentelemetry.rbs +51 -0
- data/sig/robin/periodic.rbs +81 -0
- data/sig/robin/processor.rbs +107 -0
- data/sig/robin/profiler.rbs +60 -0
- data/sig/robin/progress.rbs +22 -0
- data/sig/robin/rails/app_loader.rbs +10 -0
- data/sig/robin/rails/current_attributes.rbs +44 -0
- data/sig/robin/rails/error_reporter.rbs +21 -0
- data/sig/robin/rails/notifications.rbs +9 -0
- data/sig/robin/rails/transactional_push.rbs +16 -0
- data/sig/robin/rails.rbs +8 -0
- data/sig/robin/recovery.rbs +29 -0
- data/sig/robin/redis/connection.rbs +224 -0
- data/sig/robin/redis/pool.rbs +89 -0
- data/sig/robin/redis/resp.rbs +29 -0
- data/sig/robin/reliable_push.rbs +77 -0
- data/sig/robin/retrier.rbs +72 -0
- data/sig/robin/scheduler.rbs +40 -0
- data/sig/robin/scripts.rbs +36 -0
- data/sig/robin/statsd.rbs +55 -0
- data/sig/robin/swarm.rbs +133 -0
- data/sig/robin/systemd.rbs +13 -0
- data/sig/robin/testing.rbs +80 -0
- data/sig/robin/top.rbs +79 -0
- data/sig/robin/unique.rbs +72 -0
- data/sig/robin/version.rbs +3 -0
- data/sig/robin/warmup.rbs +44 -0
- data/sig/robin/web/api.rbs +196 -0
- data/sig/robin/web/batch_status.rbs +25 -0
- data/sig/robin/web/extension.rbs +106 -0
- data/sig/robin/web/permissions.rbs +14 -0
- data/sig/robin/web/prometheus.rbs +33 -0
- data/sig/robin/web/router.rbs +53 -0
- data/sig/robin/web/static.rbs +42 -0
- data/sig/robin/web.rbs +140 -0
- data/sig/robin.rbs +116 -0
- data/sig/robin_resp.rbs +55 -0
- metadata +274 -44
- data/bin/robin +0 -5
- data/lib/robin/actions/authenticate.rb +0 -38
- data/lib/robin/actions/empty_tweet.rb +0 -7
- data/lib/robin/actions/followers.rb +0 -22
- data/lib/robin/actions/help.rb +0 -16
- data/lib/robin/actions/home_timeline.rb +0 -9
- data/lib/robin/actions/new_tweet.rb +0 -11
- data/lib/robin/actions/unknown_flag.rb +0 -11
- data/lib/robin/actions/user_timeline.rb +0 -19
- data/lib/robin/args_parser.rb +0 -70
- data/lib/robin/pin_authenticator.rb +0 -31
- data/lib/robin/user.rb +0 -36
metadata
CHANGED
|
@@ -1,61 +1,291 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: robin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.1.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
bindir: bin
|
|
7
|
+
- Erik Berlin
|
|
8
|
+
bindir: exe
|
|
11
9
|
cert_chain: []
|
|
12
|
-
date:
|
|
13
|
-
dependencies:
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: json
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "2.6"
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: "2.6"
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: logger
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "1.5"
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "1.5"
|
|
44
|
+
description: "Robin is a Redis-backed background job system for Ruby with batches, reliable fetch, rate limiting, cron, unique jobs, encryption, multi-process swarms, a modern web dashboard and a Rails integration that turns itself on in Rails apps — all open source under the LGPL."
|
|
45
|
+
email:
|
|
46
|
+
- sferik@gmail.com
|
|
16
47
|
executables:
|
|
17
|
-
- robin
|
|
18
|
-
extensions:
|
|
48
|
+
- robin
|
|
49
|
+
extensions:
|
|
50
|
+
- ext/robin_resp/extconf.rb
|
|
19
51
|
extra_rdoc_files: []
|
|
20
52
|
files:
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- lib/
|
|
34
|
-
- lib/robin.rb
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
53
|
+
- CHANGELOG.md
|
|
54
|
+
- COPYING
|
|
55
|
+
- LICENSE
|
|
56
|
+
- README.md
|
|
57
|
+
- assets/favicon.svg
|
|
58
|
+
- assets/robin-logo.svg
|
|
59
|
+
- assets/robin-mono.svg
|
|
60
|
+
- assets/robin-wordmark.svg
|
|
61
|
+
- assets/robin.svg
|
|
62
|
+
- exe/robin
|
|
63
|
+
- ext/robin_resp/extconf.rb
|
|
64
|
+
- ext/robin_resp/robin_resp.c
|
|
65
|
+
- lib/active_job/queue_adapters/robin_adapter.rb
|
|
66
|
+
- lib/generators/robin/install/install_generator.rb
|
|
67
|
+
- lib/generators/robin/install/templates/initializer.rb.tt
|
|
68
|
+
- lib/generators/robin/install/templates/robin.yml.tt
|
|
69
|
+
- lib/generators/robin/job/job_generator.rb
|
|
70
|
+
- lib/generators/robin/job/templates/job.rb.tt
|
|
71
|
+
- lib/generators/robin/job/templates/job_spec.rb.tt
|
|
72
|
+
- lib/generators/robin/job/templates/job_test.rb.tt
|
|
73
|
+
- lib/puma/plugin/robin.rb
|
|
74
|
+
- lib/robin.rb
|
|
75
|
+
- lib/robin/active_job.rb
|
|
76
|
+
- lib/robin/api.rb
|
|
77
|
+
- lib/robin/batch.rb
|
|
78
|
+
- lib/robin/cancellation.rb
|
|
79
|
+
- lib/robin/cli.rb
|
|
80
|
+
- lib/robin/client.rb
|
|
81
|
+
- lib/robin/config.rb
|
|
82
|
+
- lib/robin/cron.rb
|
|
83
|
+
- lib/robin/debounce.rb
|
|
84
|
+
- lib/robin/deploy.rb
|
|
85
|
+
- lib/robin/embedded.rb
|
|
86
|
+
- lib/robin/encryption.rb
|
|
87
|
+
- lib/robin/events.rb
|
|
88
|
+
- lib/robin/expiry.rb
|
|
89
|
+
- lib/robin/fetcher.rb
|
|
90
|
+
- lib/robin/gvl.rb
|
|
91
|
+
- lib/robin/health.rb
|
|
92
|
+
- lib/robin/iterable_job.rb
|
|
93
|
+
- lib/robin/job.rb
|
|
94
|
+
- lib/robin/job_class.rb
|
|
95
|
+
- lib/robin/job_logger.rb
|
|
96
|
+
- lib/robin/launcher.rb
|
|
97
|
+
- lib/robin/leader.rb
|
|
98
|
+
- lib/robin/limiter.rb
|
|
99
|
+
- lib/robin/manager.rb
|
|
100
|
+
- lib/robin/metrics.rb
|
|
101
|
+
- lib/robin/middleware.rb
|
|
102
|
+
- lib/robin/opentelemetry.rb
|
|
103
|
+
- lib/robin/periodic.rb
|
|
104
|
+
- lib/robin/processor.rb
|
|
105
|
+
- lib/robin/profiler.rb
|
|
106
|
+
- lib/robin/progress.rb
|
|
107
|
+
- lib/robin/rails.rb
|
|
108
|
+
- lib/robin/rails/app_loader.rb
|
|
109
|
+
- lib/robin/rails/current_attributes.rb
|
|
110
|
+
- lib/robin/rails/error_reporter.rb
|
|
111
|
+
- lib/robin/rails/notifications.rb
|
|
112
|
+
- lib/robin/rails/railtie.rb
|
|
113
|
+
- lib/robin/rails/transactional_push.rb
|
|
114
|
+
- lib/robin/recovery.rb
|
|
115
|
+
- lib/robin/redis/connection.rb
|
|
116
|
+
- lib/robin/redis/pool.rb
|
|
117
|
+
- lib/robin/redis/resp.rb
|
|
118
|
+
- lib/robin/reliable_push.rb
|
|
119
|
+
- lib/robin/retrier.rb
|
|
120
|
+
- lib/robin/scheduler.rb
|
|
121
|
+
- lib/robin/scripts.rb
|
|
122
|
+
- lib/robin/statsd.rb
|
|
123
|
+
- lib/robin/swarm.rb
|
|
124
|
+
- lib/robin/systemd.rb
|
|
125
|
+
- lib/robin/testing.rb
|
|
126
|
+
- lib/robin/top.rb
|
|
127
|
+
- lib/robin/unique.rb
|
|
128
|
+
- lib/robin/version.rb
|
|
129
|
+
- lib/robin/warmup.rb
|
|
130
|
+
- lib/robin/web.rb
|
|
131
|
+
- lib/robin/web/api.rb
|
|
132
|
+
- lib/robin/web/batch_status.rb
|
|
133
|
+
- lib/robin/web/dist/assets/ar-y7v9b75f.js
|
|
134
|
+
- lib/robin/web/dist/assets/ar-y7v9b75f.js.gz
|
|
135
|
+
- lib/robin/web/dist/assets/bricolage-0qmzcpnj.woff2
|
|
136
|
+
- lib/robin/web/dist/assets/cs-df88mq5e.js
|
|
137
|
+
- lib/robin/web/dist/assets/cs-df88mq5e.js.gz
|
|
138
|
+
- lib/robin/web/dist/assets/da-kemms74g.js
|
|
139
|
+
- lib/robin/web/dist/assets/da-kemms74g.js.gz
|
|
140
|
+
- lib/robin/web/dist/assets/de-z8kkqg65.js
|
|
141
|
+
- lib/robin/web/dist/assets/de-z8kkqg65.js.gz
|
|
142
|
+
- lib/robin/web/dist/assets/es-9ahrrn1s.js
|
|
143
|
+
- lib/robin/web/dist/assets/es-9ahrrn1s.js.gz
|
|
144
|
+
- lib/robin/web/dist/assets/fa-7r0x28nc.js
|
|
145
|
+
- lib/robin/web/dist/assets/fa-7r0x28nc.js.gz
|
|
146
|
+
- lib/robin/web/dist/assets/favicon-1ebfcc0182.svg
|
|
147
|
+
- lib/robin/web/dist/assets/favicon-1ebfcc0182.svg.gz
|
|
148
|
+
- lib/robin/web/dist/assets/fr-r7mqf3d9.js
|
|
149
|
+
- lib/robin/web/dist/assets/fr-r7mqf3d9.js.gz
|
|
150
|
+
- lib/robin/web/dist/assets/he-7t46b6rt.js
|
|
151
|
+
- lib/robin/web/dist/assets/he-7t46b6rt.js.gz
|
|
152
|
+
- lib/robin/web/dist/assets/hi-zj434tx4.js
|
|
153
|
+
- lib/robin/web/dist/assets/hi-zj434tx4.js.gz
|
|
154
|
+
- lib/robin/web/dist/assets/it-pqc2m7gm.js
|
|
155
|
+
- lib/robin/web/dist/assets/it-pqc2m7gm.js.gz
|
|
156
|
+
- lib/robin/web/dist/assets/ja-k9rgm1pj.js
|
|
157
|
+
- lib/robin/web/dist/assets/ja-k9rgm1pj.js.gz
|
|
158
|
+
- lib/robin/web/dist/assets/ko-bxersv91.js
|
|
159
|
+
- lib/robin/web/dist/assets/ko-bxersv91.js.gz
|
|
160
|
+
- lib/robin/web/dist/assets/main-anw3f6ba.css
|
|
161
|
+
- lib/robin/web/dist/assets/main-anw3f6ba.css.gz
|
|
162
|
+
- lib/robin/web/dist/assets/main-pdtvjejb.js
|
|
163
|
+
- lib/robin/web/dist/assets/main-pdtvjejb.js.gz
|
|
164
|
+
- lib/robin/web/dist/assets/main-zz8zzhwn.js
|
|
165
|
+
- lib/robin/web/dist/assets/main-zz8zzhwn.js.gz
|
|
166
|
+
- lib/robin/web/dist/assets/nb-fjnc5064.js
|
|
167
|
+
- lib/robin/web/dist/assets/nb-fjnc5064.js.gz
|
|
168
|
+
- lib/robin/web/dist/assets/nl-9p8b95b6.js
|
|
169
|
+
- lib/robin/web/dist/assets/nl-9p8b95b6.js.gz
|
|
170
|
+
- lib/robin/web/dist/assets/pl-8xsrdn8n.js
|
|
171
|
+
- lib/robin/web/dist/assets/pl-8xsrdn8n.js.gz
|
|
172
|
+
- lib/robin/web/dist/assets/pt-BR-650j7cvg.js
|
|
173
|
+
- lib/robin/web/dist/assets/pt-BR-650j7cvg.js.gz
|
|
174
|
+
- lib/robin/web/dist/assets/robin-ae4a4aedd9.svg
|
|
175
|
+
- lib/robin/web/dist/assets/robin-ae4a4aedd9.svg.gz
|
|
176
|
+
- lib/robin/web/dist/assets/robin-wordmark-5dde5d8e4b.svg
|
|
177
|
+
- lib/robin/web/dist/assets/robin-wordmark-5dde5d8e4b.svg.gz
|
|
178
|
+
- lib/robin/web/dist/assets/ru-a9ftyw3d.js
|
|
179
|
+
- lib/robin/web/dist/assets/ru-a9ftyw3d.js.gz
|
|
180
|
+
- lib/robin/web/dist/assets/sv-j9gqamr1.js
|
|
181
|
+
- lib/robin/web/dist/assets/sv-j9gqamr1.js.gz
|
|
182
|
+
- lib/robin/web/dist/assets/tr-y9z0q51g.js
|
|
183
|
+
- lib/robin/web/dist/assets/tr-y9z0q51g.js.gz
|
|
184
|
+
- lib/robin/web/dist/assets/uk-2dr9ew3p.js
|
|
185
|
+
- lib/robin/web/dist/assets/uk-2dr9ew3p.js.gz
|
|
186
|
+
- lib/robin/web/dist/assets/ur-h25nzq1s.js
|
|
187
|
+
- lib/robin/web/dist/assets/ur-h25nzq1s.js.gz
|
|
188
|
+
- lib/robin/web/dist/assets/vi-9y2ff1bd.js
|
|
189
|
+
- lib/robin/web/dist/assets/vi-9y2ff1bd.js.gz
|
|
190
|
+
- lib/robin/web/dist/assets/zh-CN-tbj9mf98.js
|
|
191
|
+
- lib/robin/web/dist/assets/zh-CN-tbj9mf98.js.gz
|
|
192
|
+
- lib/robin/web/dist/assets/zh-TW-59q8j9vw.js
|
|
193
|
+
- lib/robin/web/dist/assets/zh-TW-59q8j9vw.js.gz
|
|
194
|
+
- lib/robin/web/dist/index.html
|
|
195
|
+
- lib/robin/web/extension.rb
|
|
196
|
+
- lib/robin/web/permissions.rb
|
|
197
|
+
- lib/robin/web/prometheus.rb
|
|
198
|
+
- lib/robin/web/router.rb
|
|
199
|
+
- lib/robin/web/static.rb
|
|
200
|
+
- sig/manifest.yaml
|
|
201
|
+
- sig/robin.rbs
|
|
202
|
+
- sig/robin/api.rbs
|
|
203
|
+
- sig/robin/batch.rbs
|
|
204
|
+
- sig/robin/cancellation.rbs
|
|
205
|
+
- sig/robin/cli.rbs
|
|
206
|
+
- sig/robin/client.rbs
|
|
207
|
+
- sig/robin/config.rbs
|
|
208
|
+
- sig/robin/cron.rbs
|
|
209
|
+
- sig/robin/debounce.rbs
|
|
210
|
+
- sig/robin/deploy.rbs
|
|
211
|
+
- sig/robin/embedded.rbs
|
|
212
|
+
- sig/robin/encryption.rbs
|
|
213
|
+
- sig/robin/events.rbs
|
|
214
|
+
- sig/robin/expiry.rbs
|
|
215
|
+
- sig/robin/fetcher.rbs
|
|
216
|
+
- sig/robin/gvl.rbs
|
|
217
|
+
- sig/robin/health.rbs
|
|
218
|
+
- sig/robin/iterable_job.rbs
|
|
219
|
+
- sig/robin/job.rbs
|
|
220
|
+
- sig/robin/job_class.rbs
|
|
221
|
+
- sig/robin/job_logger.rbs
|
|
222
|
+
- sig/robin/launcher.rbs
|
|
223
|
+
- sig/robin/leader.rbs
|
|
224
|
+
- sig/robin/limiter.rbs
|
|
225
|
+
- sig/robin/manager.rbs
|
|
226
|
+
- sig/robin/metrics.rbs
|
|
227
|
+
- sig/robin/middleware.rbs
|
|
228
|
+
- sig/robin/opentelemetry.rbs
|
|
229
|
+
- sig/robin/periodic.rbs
|
|
230
|
+
- sig/robin/processor.rbs
|
|
231
|
+
- sig/robin/profiler.rbs
|
|
232
|
+
- sig/robin/progress.rbs
|
|
233
|
+
- sig/robin/rails.rbs
|
|
234
|
+
- sig/robin/rails/app_loader.rbs
|
|
235
|
+
- sig/robin/rails/current_attributes.rbs
|
|
236
|
+
- sig/robin/rails/error_reporter.rbs
|
|
237
|
+
- sig/robin/rails/notifications.rbs
|
|
238
|
+
- sig/robin/rails/transactional_push.rbs
|
|
239
|
+
- sig/robin/recovery.rbs
|
|
240
|
+
- sig/robin/redis/connection.rbs
|
|
241
|
+
- sig/robin/redis/pool.rbs
|
|
242
|
+
- sig/robin/redis/resp.rbs
|
|
243
|
+
- sig/robin/reliable_push.rbs
|
|
244
|
+
- sig/robin/retrier.rbs
|
|
245
|
+
- sig/robin/scheduler.rbs
|
|
246
|
+
- sig/robin/scripts.rbs
|
|
247
|
+
- sig/robin/statsd.rbs
|
|
248
|
+
- sig/robin/swarm.rbs
|
|
249
|
+
- sig/robin/systemd.rbs
|
|
250
|
+
- sig/robin/testing.rbs
|
|
251
|
+
- sig/robin/top.rbs
|
|
252
|
+
- sig/robin/unique.rbs
|
|
253
|
+
- sig/robin/version.rbs
|
|
254
|
+
- sig/robin/warmup.rbs
|
|
255
|
+
- sig/robin/web.rbs
|
|
256
|
+
- sig/robin/web/api.rbs
|
|
257
|
+
- sig/robin/web/batch_status.rbs
|
|
258
|
+
- sig/robin/web/extension.rbs
|
|
259
|
+
- sig/robin/web/permissions.rbs
|
|
260
|
+
- sig/robin/web/prometheus.rbs
|
|
261
|
+
- sig/robin/web/router.rbs
|
|
262
|
+
- sig/robin/web/static.rbs
|
|
263
|
+
- sig/robin_resp.rbs
|
|
264
|
+
homepage: "https://github.com/sferik/robin"
|
|
265
|
+
licenses:
|
|
266
|
+
- LGPL-3.0-only
|
|
267
|
+
metadata:
|
|
268
|
+
homepage_uri: "https://github.com/sferik/robin"
|
|
269
|
+
source_code_uri: "https://github.com/sferik/robin"
|
|
270
|
+
changelog_uri: "https://github.com/sferik/robin/blob/main/CHANGELOG.md"
|
|
271
|
+
rubygems_mfa_required: "true"
|
|
39
272
|
rdoc_options: []
|
|
40
273
|
require_paths:
|
|
41
|
-
- lib
|
|
274
|
+
- lib
|
|
42
275
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
|
-
none: false
|
|
44
276
|
requirements:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
277
|
+
-
|
|
278
|
+
- ">="
|
|
279
|
+
- !ruby/object:Gem::Version
|
|
280
|
+
version: "3.4"
|
|
48
281
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
282
|
requirements:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
283
|
+
-
|
|
284
|
+
- ">="
|
|
285
|
+
- !ruby/object:Gem::Version
|
|
286
|
+
version: "0"
|
|
54
287
|
requirements: []
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
specification_version: 3
|
|
59
|
-
summary: A twitter client for the command line
|
|
288
|
+
rubygems_version: 4.1.0
|
|
289
|
+
specification_version: 4
|
|
290
|
+
summary: "Fast, reliable, fully open-source background jobs for Ruby"
|
|
60
291
|
test_files: []
|
|
61
|
-
has_rdoc:
|
data/bin/robin
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
require_relative '../pin_authenticator'
|
|
2
|
-
|
|
3
|
-
module Robin::Actions
|
|
4
|
-
class Authenticate
|
|
5
|
-
def execute(client, output, input)
|
|
6
|
-
output.print instructions(PinAuthenticator.authorize_url)
|
|
7
|
-
pin = input.gets.chomp
|
|
8
|
-
if PinAuthenticator.authenticate(pin)
|
|
9
|
-
output.puts success
|
|
10
|
-
else
|
|
11
|
-
output.puts failed
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def instructions(url)
|
|
16
|
-
instructions = <<EOF
|
|
17
|
-
In order to use Robin you need to authenticate with your Twitter account.
|
|
18
|
-
To do this, first, point your browser to the following URL:
|
|
19
|
-
|
|
20
|
-
#{url}
|
|
21
|
-
|
|
22
|
-
Log in if required.
|
|
23
|
-
You must now authorize the app and type the given PIN.
|
|
24
|
-
|
|
25
|
-
PIN >>
|
|
26
|
-
EOF
|
|
27
|
-
instructions.chomp
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def success
|
|
31
|
-
"Great. You can now use Robin."
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
def failed
|
|
35
|
-
"Pin was incorrect"
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
module Robin::Actions
|
|
2
|
-
class Followers
|
|
3
|
-
def initialize(user = nil)
|
|
4
|
-
@user = user
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
def execute(client, output, input)
|
|
8
|
-
begin
|
|
9
|
-
if @user
|
|
10
|
-
followers = client.followers(@user)
|
|
11
|
-
else
|
|
12
|
-
followers = client.followers
|
|
13
|
-
end
|
|
14
|
-
followers.each do |follower|
|
|
15
|
-
output.puts "#{follower.name} (#{follower.screen_name})"
|
|
16
|
-
end
|
|
17
|
-
rescue Twitter::Error::NotFound => e
|
|
18
|
-
output.puts "This user does not exist"
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
data/lib/robin/actions/help.rb
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module Robin::Actions
|
|
2
|
-
class Help
|
|
3
|
-
HELP = <<EOF
|
|
4
|
-
Usage:
|
|
5
|
-
-user - Authenticate new user
|
|
6
|
-
[-s] - Authenticated user's home timeline
|
|
7
|
-
<tweet>, -t <tweet> - New Tweet
|
|
8
|
-
-fr [<user>] - Followers for the authenticated user or a specific user handle
|
|
9
|
-
-i [<user>] - The user timeline for the authenticated user or specified user handle
|
|
10
|
-
-h - This help message
|
|
11
|
-
EOF
|
|
12
|
-
def execute(client, output, input)
|
|
13
|
-
output.puts HELP
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
module Robin::Actions
|
|
2
|
-
class UserTimeline
|
|
3
|
-
def initialize(user = nil)
|
|
4
|
-
@user = user
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
def execute(client, output, input)
|
|
8
|
-
if @user
|
|
9
|
-
timeline = client.user_timeline(@user)
|
|
10
|
-
else
|
|
11
|
-
timeline = client.user_timeline
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
timeline.each do |tweet|
|
|
15
|
-
output.puts tweet.full_text
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
data/lib/robin/args_parser.rb
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
require_relative 'actions/new_tweet'
|
|
2
|
-
require_relative 'actions/home_timeline'
|
|
3
|
-
require_relative 'actions/user_timeline'
|
|
4
|
-
require_relative 'actions/followers'
|
|
5
|
-
require_relative 'actions/unknown_flag'
|
|
6
|
-
require_relative 'actions/help'
|
|
7
|
-
require_relative 'actions/empty_tweet'
|
|
8
|
-
require_relative 'actions/authenticate'
|
|
9
|
-
|
|
10
|
-
module Robin
|
|
11
|
-
class ArgsParser
|
|
12
|
-
USER_TIMELINE = ['i']
|
|
13
|
-
NEW_TWEET = ['t']
|
|
14
|
-
FOLLOWERS = ['fr']
|
|
15
|
-
HOME_TIMELINE = ['s']
|
|
16
|
-
HELP = ['h', '-help']
|
|
17
|
-
NEW_USER = ['user']
|
|
18
|
-
|
|
19
|
-
def self.parse(args)
|
|
20
|
-
if args.empty?
|
|
21
|
-
Robin::Actions::HomeTimeline.new
|
|
22
|
-
else
|
|
23
|
-
parse_args(args)
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
private
|
|
28
|
-
|
|
29
|
-
def self.parse_args(args)
|
|
30
|
-
if args[0].start_with?('-')
|
|
31
|
-
using_flag(args)
|
|
32
|
-
else
|
|
33
|
-
Robin::Actions::NewTweet.new(args[0])
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
def self.using_flag(args)
|
|
38
|
-
flag = args[0][1..args[0].length]
|
|
39
|
-
option = args[1]
|
|
40
|
-
|
|
41
|
-
if USER_TIMELINE.include?(flag)
|
|
42
|
-
Robin::Actions::UserTimeline.new(option)
|
|
43
|
-
elsif NEW_USER.include?(flag)
|
|
44
|
-
Robin::Actions::Authenticate.new
|
|
45
|
-
elsif NEW_TWEET.include?(flag)
|
|
46
|
-
tweet(option)
|
|
47
|
-
elsif FOLLOWERS.include?(flag)
|
|
48
|
-
followers(option)
|
|
49
|
-
elsif HOME_TIMELINE.include?(flag)
|
|
50
|
-
Robin::Actions::HomeTimeline.new
|
|
51
|
-
elsif HELP.include?(flag)
|
|
52
|
-
Robin::Actions::Help.new
|
|
53
|
-
else
|
|
54
|
-
Robin::Actions::UnknownFlag.new(flag)
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def self.tweet(option)
|
|
59
|
-
if option && !option.empty?
|
|
60
|
-
Robin::Actions::NewTweet.new(option)
|
|
61
|
-
else
|
|
62
|
-
Robin::Actions::EmptyTweet.new
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
def self.followers(option)
|
|
67
|
-
Robin::Actions::Followers.new(option)
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
require 'oauth'
|
|
2
|
-
require_relative 'user'
|
|
3
|
-
|
|
4
|
-
class PinAuthenticator
|
|
5
|
-
|
|
6
|
-
def self.authorize_url
|
|
7
|
-
consumer = OAuth::Consumer.new(Robin::Config.key,
|
|
8
|
-
Robin::Config.secret,
|
|
9
|
-
{ :site => 'http://twitter.com/',
|
|
10
|
-
:request_token_path => '/oauth/request_token',
|
|
11
|
-
:access_token_path => '/oauth/access_token',
|
|
12
|
-
:authorize_path => '/oauth/authorize' })
|
|
13
|
-
begin
|
|
14
|
-
@request_token = consumer.get_request_token
|
|
15
|
-
rescue Net::HTTPRetriableError => e
|
|
16
|
-
@request_token = consumer.get_request_token
|
|
17
|
-
end
|
|
18
|
-
@request_token.authorize_url()
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def self.authenticate(pin)
|
|
22
|
-
begin
|
|
23
|
-
access_token = @request_token.get_access_token(:oauth_verifier => pin)
|
|
24
|
-
Robin::User.register_new(access_token.token,
|
|
25
|
-
access_token.secret)
|
|
26
|
-
true
|
|
27
|
-
rescue OAuth::Unauthorized => e
|
|
28
|
-
false
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
end
|
data/lib/robin/user.rb
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
module Robin
|
|
2
|
-
class User
|
|
3
|
-
CREDENTIALS = File.expand_path('~/.robin')
|
|
4
|
-
|
|
5
|
-
class << self
|
|
6
|
-
attr_reader :token, :secret
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def self.load_credentials
|
|
10
|
-
credentials = read_credentials.split(/\n/)
|
|
11
|
-
@token = credentials[0]
|
|
12
|
-
@secret = credentials[1]
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
def self.read_credentials
|
|
16
|
-
raise NoCredentials.new unless File.exists?(CREDENTIALS)
|
|
17
|
-
credentials = File.expand_path(CREDENTIALS)
|
|
18
|
-
File.read(credentials)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
def self.register_new(token, secret)
|
|
22
|
-
write_credentials(token, secret)
|
|
23
|
-
load_credentials
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
private
|
|
27
|
-
def self.write_credentials(token, secret)
|
|
28
|
-
File.open(CREDENTIALS, 'w') do |file|
|
|
29
|
-
file.write("#{token}\n#{secret}")
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
class NoCredentials < Exception
|
|
35
|
-
end
|
|
36
|
-
end
|