pixelpress 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4461cc5d3e50edfffd7370d4e6ef402a822f046ac3a794aaf412af164a48d41
4
- data.tar.gz: cf66ddd027223593ce68d59787928a22d68c834a7613c08e3f14258d41e11eab
3
+ metadata.gz: 24eff3a06b1b330d3a9618581272a409bc112f644d8b5a94d4d03f7170ffc0a9
4
+ data.tar.gz: ae9057f69cc37d850d919f9857a91f8471935fce34d304230fc777fba5ad0e6e
5
5
  SHA512:
6
- metadata.gz: 0c0a71f5e2ed0ae3a5583253c684a8f346b6e72b81ece2c60494817bd2725cbe4fb834dc9302d530f70cbedae41935321a85444904475fe025f86134aee9db57
7
- data.tar.gz: c7809eadcac9b48bb0ad138eca3d7cc73cb764b5b7481f90e6af51e28deed20aba4076f6907324367be9af08c9be15826b70cec0f98bdd2485855d6e6901d2a4
6
+ metadata.gz: 3942b17edb046e095dd4dcac758690eedc5211875a8fd61b7f99e1d347f126d3e0f2f8a3835896136ed218d454bae5a38219ea4a692953d54268701cbb2269f9
7
+ data.tar.gz: e623bd0e8dcc209df47b7c9f8241e2ca2848b9449338f8511d9050da0e5b02b75e7edfbd8c6326451dda197a9f57eccb19066e492276b0302ef81cd547e59f00
@@ -0,0 +1,16 @@
1
+ name: Publish to RubyGems
2
+ on:
3
+ release:
4
+ types: [created]
5
+ jobs:
6
+ gem:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ - run: sed -i "s/0.0.1/$(echo $GITHUB_REF_NAME | cut -c 2-)/" lib/pixelpress/version.rb
13
+ - name: Publish gem
14
+ uses: dawidd6/action-publish-gem@v1
15
+ with:
16
+ api_key: ${{secrets.RUBYGEMS_API_KEY}}
@@ -0,0 +1,15 @@
1
+ name: Test
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ bundler-cache: true
14
+ - name: Lint Ruby
15
+ run: bundle exec rspec
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.3
@@ -1,10 +1,10 @@
1
1
  module Pixelpress
2
2
  module InstanceInvocation
3
- def method_missing(m, *args, &block)
3
+ def method_missing(m, *args, **kwargs, &block)
4
4
  return super unless respond_to_missing?(m)
5
5
  instance = new
6
6
  instance.instance_variable_set :@template_name, m.to_s
7
- instance.send(m, *args)
7
+ instance.send(m, *args, **kwargs, &block)
8
8
  instance.document
9
9
  end
10
10
 
@@ -1,5 +1,5 @@
1
1
  class Pixelpress::TestRenderer
2
2
  def render(html)
3
- File.binread(__dir__, "test.pdf")
3
+ File.binread(File.join(__dir__, "test.pdf"))
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module Pixelpress
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixelpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -59,8 +59,11 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".github/workflows/publish.yml"
63
+ - ".github/workflows/test.yml"
62
64
  - ".gitignore"
63
65
  - ".rspec"
66
+ - ".ruby-version"
64
67
  - Gemfile
65
68
  - LICENSE.txt
66
69
  - README.md
@@ -113,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
116
  - !ruby/object:Gem::Version
114
117
  version: '0'
115
118
  requirements: []
116
- rubygems_version: 3.0.4
119
+ rubygems_version: 3.3.26
117
120
  signing_key:
118
121
  specification_version: 4
119
122
  summary: PDF printer