adp-downloader 0.3.2 → 0.4.0

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: 384b5c0fe414958a0fb3bd2acf06a0dd8807658c52f257def6b7916518f87cb2
4
- data.tar.gz: fefb3828e092784a1a6617a4e9e956011394185032c18fbe51beed6ac8fa11b7
3
+ metadata.gz: faef84d3725d7bc7a21e944215babb20bae0eff20a6794066281e4e2ffa0c879
4
+ data.tar.gz: 44bd815da6fb7c9d239a48ac5ee01f86179150eb07c68d2d3855bdf359a4b6e0
5
5
  SHA512:
6
- metadata.gz: f7ab75292bea4ff60aa1bce6292d6383feb7e67fb321f305a6e37ded16bf1c80ef684d92820e0ba1f486bb14319c4eb6ee4ff96b1b5b987895ecc4195568a2d2
7
- data.tar.gz: 037f878196c368e8d38673dd1ec8d3b762982c0890db4915ef2ff09ed5282eeae59c9c9543fc4531b1c184a4d04cc88e201fc0eda872ba51fd266b871f073d8f
6
+ metadata.gz: 0d5f43bf7a286e71966cf5328ea4a5950705d60fd87894004a512c9b117b8f9d2ae17a8cb30cb739900702eaccce8024efc3434893aad5f3e77ef758c82d85bb
7
+ data.tar.gz: ae2f6ff96bca0a0feaa2788ff0201598b2dde57467c2d33bc99e5e51ee77f65849cbc8e9eaad064d8b5361ea51b4dd289ff8dcac0bbeaa13f8d16ce20b6f8fd6
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adp-downloader (0.2.5)
4
+ adp-downloader (0.4.0)
5
5
  mechanize (~> 2.7)
6
6
  netrc (~> 0.11)
7
- parallel (~> 1.12)
7
+ parallel (~> 1.19)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
12
  coderay (1.1.2)
13
13
  connection_pool (2.2.2)
14
- domain_name (0.5.20180417)
14
+ domain_name (0.5.20190701)
15
15
  unf (>= 0.0.5, < 1.0.0)
16
16
  http-cookie (1.0.3)
17
17
  domain_name (~> 0.5)
@@ -24,26 +24,26 @@ GEM
24
24
  nokogiri (~> 1.6)
25
25
  ntlm-http (~> 0.1, >= 0.1.1)
26
26
  webrobots (>= 0.0.9, < 0.2)
27
- method_source (0.9.0)
28
- mime-types (3.2.2)
27
+ method_source (0.9.2)
28
+ mime-types (3.3.1)
29
29
  mime-types-data (~> 3.2015)
30
- mime-types-data (3.2018.0812)
31
- mini_portile2 (2.3.0)
30
+ mime-types-data (3.2019.1009)
31
+ mini_portile2 (2.4.0)
32
32
  net-http-digest_auth (1.4.1)
33
- net-http-persistent (3.0.0)
33
+ net-http-persistent (3.1.0)
34
34
  connection_pool (~> 2.2)
35
35
  netrc (0.11.0)
36
- nokogiri (1.8.4)
37
- mini_portile2 (~> 2.3.0)
36
+ nokogiri (1.10.9)
37
+ mini_portile2 (~> 2.4.0)
38
38
  ntlm-http (0.1.1)
39
- parallel (1.12.1)
40
- pry (0.11.3)
39
+ parallel (1.19.1)
40
+ pry (0.12.2)
41
41
  coderay (~> 1.1.0)
42
42
  method_source (~> 0.9.0)
43
- rake (12.3.1)
43
+ rake (13.0.1)
44
44
  unf (0.1.4)
45
45
  unf_ext
46
- unf_ext (0.0.7.5)
46
+ unf_ext (0.0.7.6)
47
47
  webrobots (0.1.2)
48
48
 
49
49
  PLATFORMS
@@ -51,9 +51,9 @@ PLATFORMS
51
51
 
52
52
  DEPENDENCIES
53
53
  adp-downloader!
54
- bundler (~> 1.16)
55
- pry (~> 0.11)
56
- rake (~> 12.3)
54
+ bundler (~> 2.1)
55
+ pry (~> 0.12)
56
+ rake (~> 13.0)
57
57
 
58
58
  BUNDLED WITH
59
- 1.16.1
59
+ 2.1.4
data/README.md CHANGED
@@ -17,7 +17,7 @@ that have not yet been downloaded.
17
17
 
18
18
  Non-interactive `netrc` authentication is currently not supported due to
19
19
  ADP requiring javascript to perform login. Unfortunately, the only way
20
- to use the app is to ask for the `smsession` cookie from `stdin`. :(
20
+ to use the app is to pass the `smsession` cookie. :(
21
21
 
22
22
  ### 0.2.x --> 0.2.3
23
23
 
@@ -41,6 +41,12 @@ available anymore in the new folders.
41
41
 
42
42
  ### Iterative
43
43
 
44
+ **UPDATE**: since [#6][], username and password do not work anymore, so
45
+ currently the only way to make it work is to create a file called
46
+ `cookie.txt` in the working directory containing the `SMSESSION` cookie.
47
+ You can get this cookie by logging into ADP and retrieving it from the
48
+ developer console. It's not great, I know 😞
49
+
44
50
  Go to the directory where you want the pay stubs to be saved and run:
45
51
 
46
52
  adp-downloader
@@ -53,7 +59,7 @@ available will be downloaded, both in JSON and PDF formats. When you
53
59
  receive your next paycheck, just go back to the directory and re-run
54
60
  `adp-downloader`.
55
61
 
56
- ### Unattended
62
+ ### Unattended - CURRENTLY NOT WORKING - see [#6][]
57
63
 
58
64
  If you want to run it automatically (e.g. in a cron job), create or edit
59
65
  you local [`.netrc` file][netrc] (usually in your home directory, unless
@@ -67,6 +73,8 @@ you put it somewhere else) with your credentials:
67
73
 
68
74
  Adding your credentials to this file will skip the interactive step.
69
75
 
76
+ [#6]: https://github.com/andersonvom/adp-downloader/issues/6
77
+
70
78
 
71
79
  ## Disclaimer
72
80
 
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency "mechanize", "~> 2.7"
24
24
  s.add_dependency "netrc", "~> 0.11"
25
- s.add_dependency "parallel", "~> 1.12"
26
- s.add_development_dependency "bundler", "~> 1.16"
27
- s.add_development_dependency "rake", "~> 12.3"
28
- s.add_development_dependency "pry", "~> 0.11"
25
+ s.add_dependency "parallel", "~> 1.19"
26
+ s.add_development_dependency "bundler", "~> 2.1"
27
+ s.add_development_dependency "rake", "~> 13.0"
28
+ s.add_development_dependency "pry", "~> 0.12"
29
29
  end
@@ -11,8 +11,9 @@ module ADPDownloader
11
11
  parse_options
12
12
  begin
13
13
  downloader = Downloader.new(HttpClient.new)
14
- downloader.get_statements('tax', downloader.tax_statements)
15
14
  downloader.get_statements('pay', downloader.pay_statements)
15
+ # FIXME: downloading tax statements requires extra steps :(
16
+ # downloader.get_statements('tax', downloader.tax_statements)
16
17
  rescue Exception => e
17
18
  path = log_exception_to_file(e)
18
19
  puts "An error ocurred: #{e}"
@@ -1,3 +1,3 @@
1
1
  module ADPDownloader
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adp-downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anderson Mesquita (andersonvom)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-06 00:00:00.000000000 Z
11
+ date: 2020-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -44,56 +44,56 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.12'
47
+ version: '1.19'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.12'
54
+ version: '1.19'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.16'
61
+ version: '2.1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.16'
68
+ version: '2.1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '12.3'
75
+ version: '13.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '12.3'
82
+ version: '13.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.11'
89
+ version: '0.12'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.11'
96
+ version: '0.12'
97
97
  description: This app incrementally downloads ADP pay statements (pay stubs) from
98
98
  MyADP
99
99
  email: andersonvom@gmail.com