File tree Expand file tree Collapse file tree 7 files changed +61
-20
lines changed
Expand file tree Collapse file tree 7 files changed +61
-20
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,16 @@ jobs:
1010 linting :
1111 name : Run Static Analysis
1212 runs-on : ubuntu-latest
13- strategy :
14- matrix :
15- ruby-version : ["2.7"]
1613 steps :
1714 - uses : actions/checkout@v3
1815 with :
1916 submodules : recursive
2017
21- - name : set up Ruby ${{ matrix.ruby-version }}
18+ - name : set up Ruby
2219 uses : ruby/setup-ruby@v1
2320 with :
24- ruby-version : ${{ matrix.ruby-version }}
25-
26- - name : Install dependencies
27- run : |
28- bundle install
21+ ruby-version : " 2.7"
22+ bundler-cache : true
2923
3024 - name : Analyse the code with Rubocop
3125 run : |
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [ published ]
6+
7+ jobs :
8+ linting :
9+ name : Publish to Rubygems
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v3
13+ with :
14+ submodules : recursive
15+
16+ - name : Set up Ruby
17+ uses : ruby/setup-ruby@v1
18+ with :
19+ ruby-version : " 2.7"
20+ bundler-cache : true
21+
22+ - name : Set credentials
23+ env :
24+ RUBYGEMS_API_KEY : ${{ secrets.RUBYGEMS_API_KEY }}
25+ run : |
26+ echo -e "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}" > ~/.gem/credentials
27+ chmod 600 ~/.gem/credentials
28+
29+ - name : Build the Gem
30+ run : |
31+ gem build --strict --output mindee.gem
32+
33+ - name : Publish the Gem
34+ run : |
35+ gem push mindee.gem
Original file line number Diff line number Diff line change @@ -12,22 +12,19 @@ jobs:
1212 runs-on : ubuntu-latest
1313 strategy :
1414 matrix :
15- ruby-version :
15+ ruby :
1616 - " 2.6"
1717 - " 2.7"
1818 steps :
1919 - uses : actions/checkout@v3
2020 with :
2121 submodules : recursive
2222
23- - name : set up Ruby ${{ matrix.ruby-version }}
23+ - name : set up Ruby ${{ matrix.ruby }}
2424 uses : ruby/setup-ruby@v1
2525 with :
26- ruby-version : ${{ matrix.ruby-version }}
27-
28- - name : Install dependencies
29- run : |
30- bundle install
26+ ruby-version : ${{ matrix.ruby }}
27+ bundler-cache : true
3128
3229 - name : Run Rspec
3330 run : |
Original file line number Diff line number Diff line change 11# IDE
22.vscode /
3- .idea
3+ .idea /
4+ * .iml
45
56# Ruby
67* .gem
Original file line number Diff line number Diff line change 11# Mindee Ruby API Library Changelog
22
3+ ## v1.1.2 - 2022-12-23
4+ ### Changes
5+ * :recycle : use of ` append_page ` is better for adding pages to a new PDF
6+
37## v1.1.1 - 2022-08-08
48### Fixes
59* :bug : Fix for missing attribute accessor
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- require 'bundler/gem_tasks '
3+ require 'rake '
44
5- task default : spec
5+ begin
6+ require 'bundler/setup'
7+ Bundler ::GemHelper . install_tasks
8+ rescue LoadError
9+ puts 'although not required, bundler is recommended for running the tests'
10+ end
11+
12+ task default : :spec
13+
14+ require 'rspec/core/rake_task'
15+ RSpec ::Core ::RakeTask . new ( :spec )
Original file line number Diff line number Diff line change 22
33# Mindee
44module Mindee
5- VERSION = '1.1.1 '
5+ VERSION = '1.1.2 '
66
77 def self . find_platform
88 host = RbConfig ::CONFIG [ 'host_os' ]
You can’t perform that action at this time.
0 commit comments