turbovax 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +7 -0
- data/lib/turbovax/data_fetcher.rb +3 -2
- data/lib/turbovax/portal.rb +2 -0
- data/lib/turbovax/version.rb +1 -1
- data/turbovax.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9112567adb6315c7612840a3d10c51cac8b0de6489337aad68eebc490e8a52da
|
4
|
+
data.tar.gz: 6ad55e18a35d26efeb7b7e52c735048bb4a9dcb60a53c97eec763a7551fba326
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c50efd263d8a4ef673f9bc4332efe068b6a023bdc24c70932781f90c169fe0195a5cbc522526168e6960dfee53b7e9d45e2e2194ca64c2a401c2b0492b66cd51
|
7
|
+
data.tar.gz: e6ce671a11877f19a629d73eff317de5132b1093e4ce6a1370c7b87f987906be8eda22abdadb6ccd2ce50ede729a70bebbf00dd673e28507f9341d23e944c465
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,10 +7,16 @@ Turbovax gem helps you quickly stand up bots that can:
|
|
7
7
|
|
8
8
|
It does not provide any data storage or web server layers. You can build that functionality on top of the gem by yourself.
|
9
9
|
|
10
|
+
## Documentation
|
11
|
+
|
12
|
+
Detailed docs can be found at [https://rubydoc.info/github/hugem/turbovax-gem](https://rubydoc.info/github/hugem/turbovax-gem).
|
13
|
+
|
10
14
|
## Disclaimer
|
11
15
|
|
12
16
|
This gem should only be used for the purposes of improving accessibility to vaccines and not for private gain.
|
13
17
|
|
18
|
+
This is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Intuit, Inc or any of its subsidiaries or its affiliates. The names TurboTax as well as related names, marks, emblems and images are registered trademarks of their respective owners.
|
19
|
+
|
14
20
|
## Installation
|
15
21
|
|
16
22
|
Add this line to your application's Gemfile:
|
@@ -27,6 +33,7 @@ Or install it yourself as:
|
|
27
33
|
|
28
34
|
$ gem install turbovax
|
29
35
|
|
36
|
+
|
30
37
|
## Development
|
31
38
|
|
32
39
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -11,9 +11,10 @@ module Turbovax
|
|
11
11
|
class DataFetcher
|
12
12
|
# @param [Turbovax::Portal] portal
|
13
13
|
# @param [TurboVax::Twitter::Handler] twitter_handler a class handles if appointments are found
|
14
|
+
# @param [DateTime] date sets request to specific date when specified
|
14
15
|
# @param [Hash] extra_params other info that can be provided to portal when executing blocks
|
15
|
-
def initialize(portal, twitter_handler: nil, extra_params: {})
|
16
|
-
portal.data_fetcher_params = { date: DateTime.now }.merge(extra_params)
|
16
|
+
def initialize(portal, twitter_handler: nil, date: nil, extra_params: {})
|
17
|
+
portal.data_fetcher_params = { date: date || DateTime.now }.merge(extra_params)
|
17
18
|
@portal = portal
|
18
19
|
@conn = create_request_connection
|
19
20
|
@twitter_handler = twitter_handler
|
data/lib/turbovax/portal.rb
CHANGED
data/lib/turbovax/version.rb
CHANGED
data/turbovax.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = Turbovax::VERSION
|
8
8
|
spec.authors = ["Huge Ma"]
|
9
9
|
spec.email = ["huge@turbovax.info"]
|
10
|
-
spec.license = "
|
10
|
+
spec.license = "AGPL-3.0"
|
11
11
|
|
12
12
|
spec.summary = "Quickly build vaccine twitter bots"
|
13
13
|
spec.description = spec.summary
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbovax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huge Ma
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -89,7 +89,7 @@ files:
|
|
89
89
|
- turbovax.gemspec
|
90
90
|
homepage: https://www.turbovax.info/
|
91
91
|
licenses:
|
92
|
-
-
|
92
|
+
- AGPL-3.0
|
93
93
|
metadata:
|
94
94
|
homepage_uri: https://www.turbovax.info/
|
95
95
|
source_code_uri: https://github.com/hugem/turbovax-gem
|