aub-payroll 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test-suite.yml +45 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +17 -0
- data/DEPLOYING.md +1 -1
- data/Rakefile +5 -0
- data/aub-payroll.gemspec +4 -3
- data/gemfiles/Gemfile.rails-5.0.x +5 -0
- data/gemfiles/Gemfile.rails-5.1.x +5 -0
- data/gemfiles/Gemfile.rails-5.2.x +5 -0
- data/gemfiles/Gemfile.rails-6.0.x +5 -0
- data/gemfiles/Gemfile.rails-6.1.x +5 -0
- data/gemfiles/Gemfile.rails-7.0.x +5 -0
- data/gemfiles/Gemfile.rails-edge +5 -0
- data/lib/aub/payroll/summary_file/generator.rb +4 -0
- data/lib/aub/payroll/summary_file/templates/body.slim +1 -1
- data/lib/aub/payroll/summary_file/templates/style.scss +4 -2
- data/lib/aub/payroll/summary_file.rb +2 -2
- data/lib/aub/payroll/version.rb +1 -1
- metadata +26 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b03ae14ceb8d5292fc167746bd2c1e598f1861fe82a4f861a27c970ce8874331
|
4
|
+
data.tar.gz: 073dd23d1db5dea3b35e2057519e03dea0cc1fa3ff5ad5076009cc41b91f73b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0103b39489a9a12226c9cff0bb00b3c3ae828cbce771cb9757fa81211884a4d43fdb8f71259593226907594c6822e978e94eeaea2be30d3fbd1dcd45c76ebdf9
|
7
|
+
data.tar.gz: 8289b6c4c6282f8a47382abcecf9484466c2f012ceed1e76e9a3d7e2e806c195cfe664f75457faf5b85edc8435aef5ddeaf6595bbcdb8ef982af2d3c58536e84
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: test-suite
|
9
|
+
|
10
|
+
on: [push, pull_request]
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
runs-on: ubuntu-20.04
|
15
|
+
strategy:
|
16
|
+
fail-fast: false
|
17
|
+
matrix:
|
18
|
+
gemfile: ["rails-7.0.x"]
|
19
|
+
ruby: [3.2]
|
20
|
+
include:
|
21
|
+
- gemfile: rails-7.0.x
|
22
|
+
ruby: '3.1'
|
23
|
+
- gemfile: rails-7.0.x
|
24
|
+
ruby: '3.0'
|
25
|
+
- gemfile: rails-7.0.x
|
26
|
+
ruby: '2.7'
|
27
|
+
- gemfile: rails-6.1.x
|
28
|
+
ruby: '3.1'
|
29
|
+
- gemfile: rails-6.1.x
|
30
|
+
ruby: '3.0'
|
31
|
+
- gemfile: rails-6.1.x
|
32
|
+
ruby: 2.7
|
33
|
+
- gemfile: rails-6.0.x
|
34
|
+
ruby: 2.7
|
35
|
+
|
36
|
+
env:
|
37
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/Gemfile.${{ matrix.gemfile }}
|
38
|
+
steps:
|
39
|
+
- run: sudo apt install --yes wkhtmltopdf
|
40
|
+
- uses: actions/checkout@v2
|
41
|
+
- uses: ruby/setup-ruby@v1
|
42
|
+
with:
|
43
|
+
ruby-version: ${{ matrix.ruby }}
|
44
|
+
bundler-cache: true
|
45
|
+
- run: bundle exec rake
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v1.0.1](https://github.com/payrollhero/aub-payroll/tree/v1.0.1) (2016-03-22)
|
4
|
+
[Full Changelog](https://github.com/payrollhero/aub-payroll/compare/v1.0.0...v1.0.1)
|
5
|
+
|
6
|
+
## [v1.0.0](https://github.com/payrollhero/aub-payroll/tree/v1.0.0) (2016-03-21)
|
7
|
+
[Full Changelog](https://github.com/payrollhero/aub-payroll/compare/v0.1.0...v1.0.0)
|
8
|
+
|
9
|
+
**Merged pull requests:**
|
10
|
+
|
11
|
+
- Adding summary PDF [\#2](https://github.com/payrollhero/aub-payroll/pull/2) ([piotrb](https://github.com/piotrb))
|
12
|
+
- Making EPF File Generation less generically named [\#1](https://github.com/payrollhero/aub-payroll/pull/1) ([piotrb](https://github.com/piotrb))
|
13
|
+
|
14
|
+
## [v0.1.0](https://github.com/payrollhero/aub-payroll/tree/v0.1.0) (2015-10-10)
|
15
|
+
|
16
|
+
|
17
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/DEPLOYING.md
CHANGED
@@ -16,7 +16,7 @@ somewhere in your shell init. (ie .zshrc or simillar)
|
|
16
16
|
|
17
17
|
## Deploying
|
18
18
|
|
19
|
-
1. Update `lib/aub
|
19
|
+
1. Update `lib/aub/payroll/version.rb`
|
20
20
|
2. Commit the changed files with the version number eg: `1.8.0`
|
21
21
|
3. Push this to git
|
22
22
|
4. Run `rake release`
|
data/Rakefile
CHANGED
data/aub-payroll.gemspec
CHANGED
@@ -18,8 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.bindir = 'exe'
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
|
+
spec.required_ruby_version = ">= 2.7"
|
21
22
|
|
22
|
-
spec.add_development_dependency 'bundler', '
|
23
|
+
spec.add_development_dependency 'bundler', '> 1.9'
|
23
24
|
spec.add_development_dependency 'rake', '~> 10.0'
|
24
25
|
spec.add_development_dependency 'rspec'
|
25
26
|
spec.add_development_dependency 'pry'
|
@@ -27,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
27
28
|
spec.add_development_dependency 'pdf_spec'
|
28
29
|
spec.add_development_dependency 'github_changelog_generator'
|
29
30
|
|
30
|
-
spec.add_dependency 'activesupport'
|
31
|
-
spec.add_dependency 'activemodel'
|
31
|
+
spec.add_dependency 'activesupport', '> 6.0'
|
32
|
+
spec.add_dependency 'activemodel', '> 6.0'
|
32
33
|
spec.add_dependency 'pdfkit'
|
33
34
|
spec.add_dependency 'ph_model'
|
34
35
|
spec.add_dependency 'tilt'
|
@@ -11,6 +11,9 @@ module AUB
|
|
11
11
|
|
12
12
|
def generate
|
13
13
|
html_generator.generate do
|
14
|
+
# wkhtmltopdf needs qt patches for header and footer options to work,
|
15
|
+
# otherwise silently ignored, and the ubuntu package comes without it
|
16
|
+
# that was the reason for static binary downloads in Docker
|
14
17
|
kit = File.open('body.html', 'r') do |body_file|
|
15
18
|
options = {
|
16
19
|
page_size: 'Letter',
|
@@ -20,6 +23,7 @@ module AUB
|
|
20
23
|
margin_bottom: 5,
|
21
24
|
margin_left: 0,
|
22
25
|
margin_right: 0,
|
26
|
+
enable_local_file_access: true,
|
23
27
|
}
|
24
28
|
CustomPDFKit.new(body_file, options)
|
25
29
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
body {
|
2
|
-
font
|
2
|
+
$font: "Courier New", courier, monospace;
|
3
|
+
|
4
|
+
font-family: $font;
|
3
5
|
margin: 0;
|
4
6
|
padding: 0;
|
5
7
|
|
@@ -75,7 +77,7 @@ body {
|
|
75
77
|
|
76
78
|
th,
|
77
79
|
td {
|
78
|
-
font-family:
|
80
|
+
font-family: $font;
|
79
81
|
font-size: 10pt;
|
80
82
|
}
|
81
83
|
|
data/lib/aub/payroll/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aub-payroll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronald Maravilla
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.9'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -112,30 +112,30 @@ dependencies:
|
|
112
112
|
name: activesupport
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '6.0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
124
|
+
version: '6.0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: activemodel
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
131
|
+
version: '6.0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
138
|
+
version: '6.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: pdfkit
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,12 +230,14 @@ files:
|
|
230
230
|
- ".codeclimate.yml"
|
231
231
|
- ".eslintignore"
|
232
232
|
- ".eslintrc"
|
233
|
+
- ".github/workflows/test-suite.yml"
|
233
234
|
- ".gitignore"
|
234
235
|
- ".rspec"
|
235
236
|
- ".rubocop.hound.yml"
|
236
237
|
- ".rubocop.yml"
|
237
238
|
- ".scss-lint.yml"
|
238
239
|
- ".travis.yml"
|
240
|
+
- CHANGELOG.md
|
239
241
|
- CODE_OF_CONDUCT.md
|
240
242
|
- DEPLOYING.md
|
241
243
|
- Gemfile
|
@@ -245,6 +247,13 @@ files:
|
|
245
247
|
- aub-payroll.gemspec
|
246
248
|
- bin/console
|
247
249
|
- bin/setup
|
250
|
+
- gemfiles/Gemfile.rails-5.0.x
|
251
|
+
- gemfiles/Gemfile.rails-5.1.x
|
252
|
+
- gemfiles/Gemfile.rails-5.2.x
|
253
|
+
- gemfiles/Gemfile.rails-6.0.x
|
254
|
+
- gemfiles/Gemfile.rails-6.1.x
|
255
|
+
- gemfiles/Gemfile.rails-7.0.x
|
256
|
+
- gemfiles/Gemfile.rails-edge
|
248
257
|
- lib/aub/payroll.rb
|
249
258
|
- lib/aub/payroll/epf_file.rb
|
250
259
|
- lib/aub/payroll/epf_file/footer.rb
|
@@ -270,7 +279,7 @@ homepage: https://github.com/payrollhero/aub-payroll
|
|
270
279
|
licenses:
|
271
280
|
- BSD-3-Clause
|
272
281
|
metadata: {}
|
273
|
-
post_install_message:
|
282
|
+
post_install_message:
|
274
283
|
rdoc_options: []
|
275
284
|
require_paths:
|
276
285
|
- lib
|
@@ -278,16 +287,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
278
287
|
requirements:
|
279
288
|
- - ">="
|
280
289
|
- !ruby/object:Gem::Version
|
281
|
-
version: '
|
290
|
+
version: '2.7'
|
282
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
283
292
|
requirements:
|
284
293
|
- - ">="
|
285
294
|
- !ruby/object:Gem::Version
|
286
295
|
version: '0'
|
287
296
|
requirements: []
|
288
|
-
|
289
|
-
|
290
|
-
signing_key:
|
297
|
+
rubygems_version: 3.2.33
|
298
|
+
signing_key:
|
291
299
|
specification_version: 4
|
292
300
|
summary: An AUB Payroll File Generator.
|
293
301
|
test_files: []
|