school_declare 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -0
  3. data/lib/declare/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23d60b5ba3b6804e88ccc444a84d5e514d076eb41cddcefc9a445622eafefb4f
4
- data.tar.gz: b647916f94846115a0bdd8595c2bcfc21acc76a94ce4b8e9e1c99ba44a505674
3
+ metadata.gz: 1772617315cc994df3c51801f4a92d9f09fbf93b6c6d5f3406119eb32967859d
4
+ data.tar.gz: 9552073b9d61409b287a91444ed840b8ed1ab8cc92d48a78878c7c7ad5252548
5
5
  SHA512:
6
- metadata.gz: e19b5075351c3d237f7530b5f20d2374094347b9ba062aa368d4e2e98673dc5653a852f31eea3b95a0929911624b93a874e36b96be81dd07d189cfad85f331cd
7
- data.tar.gz: bfc03611d5dce75694fe5f485e56671634aa3b9a56161b7f8ceb855dfecac9a904ec3bbc3cad0cbb456f52ae814ce38f2c67ca48750595cf0e4d6976723f7e57
6
+ metadata.gz: 0f2f9d70d4a586bb0fbe31b1317ceb0e2c5f31ed6003fe47c1ca2ece13d67aab005f301750d458eb61bcb23d8a51d2e9d67991b608c2b8eeb6545679f6e6a272
7
+ data.tar.gz: f265a996ff4e235beb92b47a994adc694ee21c4740101e7fb599a6a4573a2adf1ca75df87476df42b2c8e8c115b19a2d632648044e49e56c9c27bf1777b9b4a8
data/README.md CHANGED
@@ -1,11 +1,39 @@
1
1
  # School Health Declaration Automation Script
2
2
 
3
+ - [School Health Declaration Automation Script](#school-health-declaration-automation-script)
4
+ * [How To Use](#how-to-use)
5
+ + [Use as a GitHub Action](#use-as-a-github-action)
6
+ + [Using The Gem](#using-the-gem)
7
+ + [Using The Code](#using-the-code)
8
+ - [Daily health declaration automation](#daily-health-declaration-automation)
9
+ - [Twice weekly antigen test declaration](#twice-weekly-antigen-test-declaration)
10
+ + [Environment Variables](#environment-variables)
11
+ + [Headless Browsing](#headless-browsing)
12
+ * [Troubleshooting](#troubleshooting)
13
+ + ["element click intercepted..."](#-element-click-intercepted-)
14
+ * [Contributing](#contributing)
15
+ * [License](#license)
16
+
3
17
  This is an automation script that will fill out the school's daily health declaration requirement for each child in the parent portal dashboard.
4
18
 
5
19
  It can be run manually or can be connected to a scheduler to run once a day.
6
20
 
7
21
  ## How To Use
8
22
 
23
+ ### Use as a GitHub Action
24
+
25
+ To use this without needing to run any code, you can use it as a GitHub Action in your own GitHub account. To do so follow these steps:
26
+
27
+ 1. Fork this repository to your account
28
+
29
+ ![](readme_images/point_to_fork.png)
30
+
31
+ 2. Create the secrets in your new repository by going to Settings > Secrets > Actions and clicking the "New Repository Secret" for each new secret. Add the correct name for the secret in the "Name" field" and your value in the "Value" field. For the list of secrets you need refer to the [Environment Variables](#environment-variables) section of this README.
32
+
33
+ ![](readme_images/new_repo_secret.png)
34
+
35
+ 3. You can check the status of your automation by clicking on the "Actions" tab in your repository top navigation bar and then clicking on the "Antigen Test Declaration..." Workflow on the left-hand side navigation. A green check means it worked, and a red x mark means something went wrong. You can click on each individual item in the table to see the details.
36
+
9
37
  ### Using The Gem
10
38
 
11
39
  You can use this software as a Ruby gem by downloading it to your machine from Rubygems:
@@ -75,6 +103,14 @@ The script is set to run in `headless` mode as it navigates to the school websit
75
103
  browser = Watir::Browser.new :chrome, headless: false
76
104
  ```
77
105
 
106
+ ## Troubleshooting
107
+
108
+ ### "element click intercepted..."
109
+
110
+ If you are running the school antigen test declaration form and it fails with an error about the "element click intercepted" it is most likely because the reCAPTCHA on the website prompted for further verification.
111
+
112
+ There is no way to make the script work at this point. You need to manually go to the website and fill it out. The reCAPTCHA *may* reset the next time the script runs and not require the extra verification again.
113
+
78
114
  ## Contributing
79
115
 
80
116
  Contributions to the code are always welcome. You can either raise an issue to be discussed or submit a pull request directly. We try to follow the [GitHub Flow](https://guides.github.com/introduction/flow/) when proposing new features.
@@ -1,3 +1,3 @@
1
1
  module Declare
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: school_declare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Greenberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-13 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A gem to help send the daily health forms for Israeli schools.
14
14
  email: