Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,16 @@ jobs:
linting:
name: Run Static Analysis
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.7"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: set up Ruby ${{ matrix.ruby-version }}
- name: set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Install dependencies
run: |
bundle install
ruby-version: "2.7"
bundler-cache: true

- name: Analyse the code with Rubocop
run: |
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on:
release:
types: [ published ]

jobs:
linting:
name: Publish to Rubygems
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true

- name: Set credentials
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
echo -e "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}" > ~/.gem/credentials
chmod 600 ~/.gem/credentials

- name: Build the Gem
run: |
gem build --strict --output mindee.gem

- name: Publish the Gem
run: |
gem push mindee.gem
11 changes: 4 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
ruby:
- "2.6"
- "2.7"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: set up Ruby ${{ matrix.ruby-version }}
- name: set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}

- name: Install dependencies
run: |
bundle install
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Run Rspec
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# IDE
.vscode/
.idea
.idea/
*.iml

# Ruby
*.gem
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Mindee Ruby API Library Changelog

## v1.1.2 - 2022-12-23
### Changes
* :recycle: use of `append_page` is better for adding pages to a new PDF

## v1.1.1 - 2022-08-08
### Fixes
* :bug: Fix for missing attribute accessor
Expand Down
14 changes: 12 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rake'

task default: spec
begin
require 'bundler/setup'
Bundler::GemHelper.install_tasks
rescue LoadError
puts 'although not required, bundler is recommended for running the tests'
end

task default: :spec

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
2 changes: 1 addition & 1 deletion lib/mindee/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Mindee
module Mindee
VERSION = '1.1.1'
VERSION = '1.1.2'

def self.find_platform
host = RbConfig::CONFIG['host_os']
Expand Down