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.
Files changed (225) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +372 -0
  3. data/COPYING +674 -0
  4. data/LICENSE +165 -0
  5. data/README.md +1490 -0
  6. data/assets/favicon.svg +31 -0
  7. data/assets/robin-logo.svg +37 -0
  8. data/assets/robin-mono.svg +12 -0
  9. data/assets/robin-wordmark.svg +4 -0
  10. data/assets/robin.svg +34 -0
  11. data/exe/robin +5 -0
  12. data/ext/robin_resp/extconf.rb +29 -0
  13. data/ext/robin_resp/robin_resp.c +645 -0
  14. data/lib/active_job/queue_adapters/robin_adapter.rb +3 -0
  15. data/lib/generators/robin/install/install_generator.rb +39 -0
  16. data/lib/generators/robin/install/templates/initializer.rb.tt +31 -0
  17. data/lib/generators/robin/install/templates/robin.yml.tt +25 -0
  18. data/lib/generators/robin/job/job_generator.rb +78 -0
  19. data/lib/generators/robin/job/templates/job.rb.tt +13 -0
  20. data/lib/generators/robin/job/templates/job_spec.rb.tt +21 -0
  21. data/lib/generators/robin/job/templates/job_test.rb.tt +21 -0
  22. data/lib/puma/plugin/robin.rb +131 -0
  23. data/lib/robin/active_job.rb +144 -0
  24. data/lib/robin/api.rb +777 -0
  25. data/lib/robin/batch.rb +700 -0
  26. data/lib/robin/cancellation.rb +62 -0
  27. data/lib/robin/cli.rb +325 -0
  28. data/lib/robin/client.rb +355 -21
  29. data/lib/robin/config.rb +454 -4
  30. data/lib/robin/cron.rb +325 -0
  31. data/lib/robin/debounce.rb +108 -0
  32. data/lib/robin/deploy.rb +65 -0
  33. data/lib/robin/embedded.rb +53 -0
  34. data/lib/robin/encryption.rb +147 -0
  35. data/lib/robin/events.rb +60 -0
  36. data/lib/robin/expiry.rb +41 -0
  37. data/lib/robin/fetcher.rb +441 -0
  38. data/lib/robin/gvl.rb +62 -0
  39. data/lib/robin/health.rb +76 -0
  40. data/lib/robin/iterable_job.rb +294 -0
  41. data/lib/robin/job.rb +258 -0
  42. data/lib/robin/job_class.rb +157 -0
  43. data/lib/robin/job_logger.rb +121 -0
  44. data/lib/robin/launcher.rb +658 -0
  45. data/lib/robin/leader.rb +86 -0
  46. data/lib/robin/limiter.rb +639 -0
  47. data/lib/robin/manager.rb +125 -0
  48. data/lib/robin/metrics.rb +303 -0
  49. data/lib/robin/middleware.rb +165 -0
  50. data/lib/robin/opentelemetry.rb +88 -0
  51. data/lib/robin/periodic.rb +327 -0
  52. data/lib/robin/processor.rb +317 -0
  53. data/lib/robin/profiler.rb +140 -0
  54. data/lib/robin/progress.rb +46 -0
  55. data/lib/robin/rails/app_loader.rb +23 -0
  56. data/lib/robin/rails/current_attributes.rb +88 -0
  57. data/lib/robin/rails/error_reporter.rb +31 -0
  58. data/lib/robin/rails/notifications.rb +22 -0
  59. data/lib/robin/rails/railtie.rb +87 -0
  60. data/lib/robin/rails/transactional_push.rb +49 -0
  61. data/lib/robin/rails.rb +23 -0
  62. data/lib/robin/recovery.rb +135 -0
  63. data/lib/robin/redis/connection.rb +639 -0
  64. data/lib/robin/redis/pool.rb +190 -0
  65. data/lib/robin/redis/resp.rb +77 -0
  66. data/lib/robin/reliable_push.rb +153 -0
  67. data/lib/robin/retrier.rb +284 -0
  68. data/lib/robin/scheduler.rb +102 -0
  69. data/lib/robin/scripts.rb +331 -0
  70. data/lib/robin/statsd.rb +135 -0
  71. data/lib/robin/swarm.rb +319 -0
  72. data/lib/robin/systemd.rb +47 -0
  73. data/lib/robin/testing.rb +158 -0
  74. data/lib/robin/top.rb +178 -0
  75. data/lib/robin/unique.rb +198 -0
  76. data/lib/robin/version.rb +5 -0
  77. data/lib/robin/warmup.rb +94 -0
  78. data/lib/robin/web/api.rb +580 -0
  79. data/lib/robin/web/batch_status.rb +44 -0
  80. data/lib/robin/web/dist/assets/ar-y7v9b75f.js +1 -0
  81. data/lib/robin/web/dist/assets/ar-y7v9b75f.js.gz +0 -0
  82. data/lib/robin/web/dist/assets/bricolage-0qmzcpnj.woff2 +0 -0
  83. data/lib/robin/web/dist/assets/cs-df88mq5e.js +1 -0
  84. data/lib/robin/web/dist/assets/cs-df88mq5e.js.gz +0 -0
  85. data/lib/robin/web/dist/assets/da-kemms74g.js +1 -0
  86. data/lib/robin/web/dist/assets/da-kemms74g.js.gz +0 -0
  87. data/lib/robin/web/dist/assets/de-z8kkqg65.js +1 -0
  88. data/lib/robin/web/dist/assets/de-z8kkqg65.js.gz +0 -0
  89. data/lib/robin/web/dist/assets/es-9ahrrn1s.js +1 -0
  90. data/lib/robin/web/dist/assets/es-9ahrrn1s.js.gz +0 -0
  91. data/lib/robin/web/dist/assets/fa-7r0x28nc.js +1 -0
  92. data/lib/robin/web/dist/assets/fa-7r0x28nc.js.gz +0 -0
  93. data/lib/robin/web/dist/assets/favicon-1ebfcc0182.svg +31 -0
  94. data/lib/robin/web/dist/assets/favicon-1ebfcc0182.svg.gz +0 -0
  95. data/lib/robin/web/dist/assets/fr-r7mqf3d9.js +1 -0
  96. data/lib/robin/web/dist/assets/fr-r7mqf3d9.js.gz +0 -0
  97. data/lib/robin/web/dist/assets/he-7t46b6rt.js +1 -0
  98. data/lib/robin/web/dist/assets/he-7t46b6rt.js.gz +0 -0
  99. data/lib/robin/web/dist/assets/hi-zj434tx4.js +1 -0
  100. data/lib/robin/web/dist/assets/hi-zj434tx4.js.gz +0 -0
  101. data/lib/robin/web/dist/assets/it-pqc2m7gm.js +1 -0
  102. data/lib/robin/web/dist/assets/it-pqc2m7gm.js.gz +0 -0
  103. data/lib/robin/web/dist/assets/ja-k9rgm1pj.js +1 -0
  104. data/lib/robin/web/dist/assets/ja-k9rgm1pj.js.gz +0 -0
  105. data/lib/robin/web/dist/assets/ko-bxersv91.js +1 -0
  106. data/lib/robin/web/dist/assets/ko-bxersv91.js.gz +0 -0
  107. data/lib/robin/web/dist/assets/main-anw3f6ba.css +1 -0
  108. data/lib/robin/web/dist/assets/main-anw3f6ba.css.gz +0 -0
  109. data/lib/robin/web/dist/assets/main-pdtvjejb.js +7 -0
  110. data/lib/robin/web/dist/assets/main-pdtvjejb.js.gz +0 -0
  111. data/lib/robin/web/dist/assets/main-zz8zzhwn.js +2 -0
  112. data/lib/robin/web/dist/assets/main-zz8zzhwn.js.gz +0 -0
  113. data/lib/robin/web/dist/assets/nb-fjnc5064.js +1 -0
  114. data/lib/robin/web/dist/assets/nb-fjnc5064.js.gz +0 -0
  115. data/lib/robin/web/dist/assets/nl-9p8b95b6.js +1 -0
  116. data/lib/robin/web/dist/assets/nl-9p8b95b6.js.gz +0 -0
  117. data/lib/robin/web/dist/assets/pl-8xsrdn8n.js +1 -0
  118. data/lib/robin/web/dist/assets/pl-8xsrdn8n.js.gz +0 -0
  119. data/lib/robin/web/dist/assets/pt-BR-650j7cvg.js +1 -0
  120. data/lib/robin/web/dist/assets/pt-BR-650j7cvg.js.gz +0 -0
  121. data/lib/robin/web/dist/assets/robin-ae4a4aedd9.svg +34 -0
  122. data/lib/robin/web/dist/assets/robin-ae4a4aedd9.svg.gz +0 -0
  123. data/lib/robin/web/dist/assets/robin-wordmark-5dde5d8e4b.svg +4 -0
  124. data/lib/robin/web/dist/assets/robin-wordmark-5dde5d8e4b.svg.gz +0 -0
  125. data/lib/robin/web/dist/assets/ru-a9ftyw3d.js +1 -0
  126. data/lib/robin/web/dist/assets/ru-a9ftyw3d.js.gz +0 -0
  127. data/lib/robin/web/dist/assets/sv-j9gqamr1.js +1 -0
  128. data/lib/robin/web/dist/assets/sv-j9gqamr1.js.gz +0 -0
  129. data/lib/robin/web/dist/assets/tr-y9z0q51g.js +1 -0
  130. data/lib/robin/web/dist/assets/tr-y9z0q51g.js.gz +0 -0
  131. data/lib/robin/web/dist/assets/uk-2dr9ew3p.js +1 -0
  132. data/lib/robin/web/dist/assets/uk-2dr9ew3p.js.gz +0 -0
  133. data/lib/robin/web/dist/assets/ur-h25nzq1s.js +1 -0
  134. data/lib/robin/web/dist/assets/ur-h25nzq1s.js.gz +0 -0
  135. data/lib/robin/web/dist/assets/vi-9y2ff1bd.js +1 -0
  136. data/lib/robin/web/dist/assets/vi-9y2ff1bd.js.gz +0 -0
  137. data/lib/robin/web/dist/assets/zh-CN-tbj9mf98.js +1 -0
  138. data/lib/robin/web/dist/assets/zh-CN-tbj9mf98.js.gz +0 -0
  139. data/lib/robin/web/dist/assets/zh-TW-59q8j9vw.js +1 -0
  140. data/lib/robin/web/dist/assets/zh-TW-59q8j9vw.js.gz +0 -0
  141. data/lib/robin/web/dist/index.html +19 -0
  142. data/lib/robin/web/extension.rb +193 -0
  143. data/lib/robin/web/permissions.rb +40 -0
  144. data/lib/robin/web/prometheus.rb +79 -0
  145. data/lib/robin/web/router.rb +150 -0
  146. data/lib/robin/web/static.rb +110 -0
  147. data/lib/robin/web.rb +196 -0
  148. data/lib/robin.rb +258 -8
  149. data/sig/manifest.yaml +9 -0
  150. data/sig/robin/api.rbs +442 -0
  151. data/sig/robin/batch.rbs +292 -0
  152. data/sig/robin/cancellation.rbs +25 -0
  153. data/sig/robin/cli.rbs +102 -0
  154. data/sig/robin/client.rbs +118 -0
  155. data/sig/robin/config.rbs +341 -0
  156. data/sig/robin/cron.rbs +149 -0
  157. data/sig/robin/debounce.rbs +36 -0
  158. data/sig/robin/deploy.rbs +24 -0
  159. data/sig/robin/embedded.rbs +25 -0
  160. data/sig/robin/encryption.rbs +49 -0
  161. data/sig/robin/events.rbs +10 -0
  162. data/sig/robin/expiry.rbs +17 -0
  163. data/sig/robin/fetcher.rbs +134 -0
  164. data/sig/robin/gvl.rbs +39 -0
  165. data/sig/robin/health.rbs +30 -0
  166. data/sig/robin/iterable_job.rbs +99 -0
  167. data/sig/robin/job.rbs +173 -0
  168. data/sig/robin/job_class.rbs +55 -0
  169. data/sig/robin/job_logger.rbs +56 -0
  170. data/sig/robin/launcher.rbs +191 -0
  171. data/sig/robin/leader.rbs +43 -0
  172. data/sig/robin/limiter.rbs +317 -0
  173. data/sig/robin/manager.rbs +54 -0
  174. data/sig/robin/metrics.rbs +122 -0
  175. data/sig/robin/middleware.rbs +106 -0
  176. data/sig/robin/opentelemetry.rbs +51 -0
  177. data/sig/robin/periodic.rbs +81 -0
  178. data/sig/robin/processor.rbs +107 -0
  179. data/sig/robin/profiler.rbs +60 -0
  180. data/sig/robin/progress.rbs +22 -0
  181. data/sig/robin/rails/app_loader.rbs +10 -0
  182. data/sig/robin/rails/current_attributes.rbs +44 -0
  183. data/sig/robin/rails/error_reporter.rbs +21 -0
  184. data/sig/robin/rails/notifications.rbs +9 -0
  185. data/sig/robin/rails/transactional_push.rbs +16 -0
  186. data/sig/robin/rails.rbs +8 -0
  187. data/sig/robin/recovery.rbs +29 -0
  188. data/sig/robin/redis/connection.rbs +224 -0
  189. data/sig/robin/redis/pool.rbs +89 -0
  190. data/sig/robin/redis/resp.rbs +29 -0
  191. data/sig/robin/reliable_push.rbs +77 -0
  192. data/sig/robin/retrier.rbs +72 -0
  193. data/sig/robin/scheduler.rbs +40 -0
  194. data/sig/robin/scripts.rbs +36 -0
  195. data/sig/robin/statsd.rbs +55 -0
  196. data/sig/robin/swarm.rbs +133 -0
  197. data/sig/robin/systemd.rbs +13 -0
  198. data/sig/robin/testing.rbs +80 -0
  199. data/sig/robin/top.rbs +79 -0
  200. data/sig/robin/unique.rbs +72 -0
  201. data/sig/robin/version.rbs +3 -0
  202. data/sig/robin/warmup.rbs +44 -0
  203. data/sig/robin/web/api.rbs +196 -0
  204. data/sig/robin/web/batch_status.rbs +25 -0
  205. data/sig/robin/web/extension.rbs +106 -0
  206. data/sig/robin/web/permissions.rbs +14 -0
  207. data/sig/robin/web/prometheus.rbs +33 -0
  208. data/sig/robin/web/router.rbs +53 -0
  209. data/sig/robin/web/static.rbs +42 -0
  210. data/sig/robin/web.rbs +140 -0
  211. data/sig/robin.rbs +116 -0
  212. data/sig/robin_resp.rbs +55 -0
  213. metadata +274 -44
  214. data/bin/robin +0 -5
  215. data/lib/robin/actions/authenticate.rb +0 -38
  216. data/lib/robin/actions/empty_tweet.rb +0 -7
  217. data/lib/robin/actions/followers.rb +0 -22
  218. data/lib/robin/actions/help.rb +0 -16
  219. data/lib/robin/actions/home_timeline.rb +0 -9
  220. data/lib/robin/actions/new_tweet.rb +0 -11
  221. data/lib/robin/actions/unknown_flag.rb +0 -11
  222. data/lib/robin/actions/user_timeline.rb +0 -19
  223. data/lib/robin/args_parser.rb +0 -70
  224. data/lib/robin/pin_authenticator.rb +0 -31
  225. 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.4
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
- - Radu Busuioc
9
- autorequire:
10
- bindir: bin
7
+ - Erik Berlin
8
+ bindir: exe
11
9
  cert_chain: []
12
- date: 2013-02-13 00:00:00.000000000 Z
13
- dependencies: []
14
- description: A twitter client for the command line
15
- email: ra.busuioc@gmail.com
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
- - lib/robin/actions/authenticate.rb
22
- - lib/robin/actions/empty_tweet.rb
23
- - lib/robin/actions/followers.rb
24
- - lib/robin/actions/help.rb
25
- - lib/robin/actions/home_timeline.rb
26
- - lib/robin/actions/new_tweet.rb
27
- - lib/robin/actions/unknown_flag.rb
28
- - lib/robin/actions/user_timeline.rb
29
- - lib/robin/args_parser.rb
30
- - lib/robin/client.rb
31
- - lib/robin/config.rb
32
- - lib/robin/pin_authenticator.rb
33
- - lib/robin/user.rb
34
- - lib/robin.rb
35
- - bin/robin
36
- homepage: https://github.com/zduci/robin
37
- licenses: []
38
- post_install_message:
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
- - !ruby/object:Gem::Version
47
- version: '0'
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
- - !ruby/object:Gem::Version
53
- version: '0'
283
+ -
284
+ - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: "0"
54
287
  requirements: []
55
- rubyforge_project:
56
- rubygems_version: 1.8.25
57
- signing_key:
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,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'robin'
4
-
5
- main(STDOUT, STDIN, ARGV)
@@ -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,7 +0,0 @@
1
- module Robin::Actions
2
- class EmptyTweet
3
- def execute(client, output, input)
4
- output.puts "You cannot tweet an empty message!"
5
- end
6
- end
7
- 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
@@ -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,9 +0,0 @@
1
- module Robin::Actions
2
- class HomeTimeline
3
- def execute(client, output, input)
4
- client.home_timeline.each do |tweet|
5
- output.puts tweet.full_text
6
- end
7
- end
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- module Robin::Actions
2
- class NewTweet
3
- def initialize(text)
4
- @text = text
5
- end
6
-
7
- def execute(client, output, input)
8
- output.puts client.tweet(@text).full_text
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- module Robin::Actions
2
- class UnknownFlag
3
- def initialize(flag)
4
- @flag = flag
5
- end
6
-
7
- def execute(client, output, input)
8
- output.puts "Unknown flag '#{@flag}'. Try -h for help."
9
- end
10
- end
11
- 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
@@ -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