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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7706debe63953e9803596d99c356d3fd1c4d794acb6122f46ad07cf26d16a4e4
4
- data.tar.gz: 3837f1d090cf3d6f4d0991ceb26fe6dc47d1da94f3d8654b3e4ddad4de6c3cbb
3
+ metadata.gz: 9112567adb6315c7612840a3d10c51cac8b0de6489337aad68eebc490e8a52da
4
+ data.tar.gz: 6ad55e18a35d26efeb7b7e52c735048bb4a9dcb60a53c97eec763a7551fba326
5
5
  SHA512:
6
- metadata.gz: 21cd5222cd9b074d5bbf6a6e66d6fc9c40d99adcfbfd3f403b16efb84d580c46ed2a3d888becc96e9cb31c6039525b610dab5e2b791d7c302c5799412f45f402
7
- data.tar.gz: 2fe1ef597cc87dc6fddae4ce32957174e5ff73d4fc68cb33e1f271b4eeb6f29ee87f79a70141a4a4e506aba5e664dd53112f82ccb629250250ee9854c4fbcece
6
+ metadata.gz: c50efd263d8a4ef673f9bc4332efe068b6a023bdc24c70932781f90c169fe0195a5cbc522526168e6960dfee53b7e9d45e2e2194ca64c2a401c2b0492b66cd51
7
+ data.tar.gz: e6ce671a11877f19a629d73eff317de5132b1093e4ce6a1370c7b87f987906be8eda22abdadb6ccd2ce50ede729a70bebbf00dd673e28507f9341d23e944c465
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.0.4
2
+ - Add `notes` method to `Portal`
3
+
1
4
  # 0.0.3
2
5
  - Updated docs
3
6
  - Improve how data fetcher params are provided to Portal methods
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
@@ -74,6 +74,8 @@ module Turbovax
74
74
  define_parameter :data_fetcher_params, Hash,
75
75
  "Extra params that are set by [Turbovax::DataFetcher]",
76
76
  "{ date: DateTime.now }"
77
+ define_parameter :notes, String,
78
+ "Extra info for users"
77
79
 
78
80
  attr_writer :data_fetcher_params
79
81
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Turbovax
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
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 = "AGPLv3"
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.3
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-26 00:00:00.000000000 Z
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
- - AGPLv3
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