Skip to content

Commit

Permalink
minimum ruby version is now 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent-martin committed Feb 18, 2025
1 parent 0718d26 commit e00baa9
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "jruby"]
ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "jruby"]
steps:
- uses: actions/checkout@v4
#- uses: webfactory/[email protected]
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Breaking Changes:
* **global** : Options `transpose_single` and `multi_table` replaced with single option `multi_single` and values: `no`, `yes`, `single`.
* **global** : Column name for single object is now `field` instead of `key`.
* **global** : Ruby minimum versions is now 2.7 instead of 2.6 (that removes macOS default ruby support)

* 4.20.0

Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Ruby Gem: [https://rubygems.org/gems/aspera-cli](https://rubygems.org/gems/asper

Ruby Doc: [https://www.rubydoc.info/gems/aspera-cli](https://www.rubydoc.info/gems/aspera-cli)

Minimum required Ruby version: >= 2.6.
Minimum required Ruby version: >= 2.7.

> **Deprecation notice**: the minimum Ruby version will be 3.0 in a future version.
> **Deprecation notice**: the minimum Ruby version will be 3.1 in a future version.
[Aspera APIs on IBM developer](https://developer.ibm.com/?size=30&q=aspera&DWContentType[0]=APIs&sort=title_asc)
[Link 2](https://developer.ibm.com/apis/catalog/?search=aspera)
Expand Down Expand Up @@ -211,9 +211,9 @@ The direct installation is recommended and consists in installing:
- [aspera-cli](#ruby-gem-aspera-cli) <!-- markdownlint-disable-line -->
- [Aspera SDK (`ascp`)](#fasp-protocol-ascp)

Ruby version: >= 2.6.
Ruby version: >= 2.7.

> **Deprecation notice**: the minimum Ruby version will be 3.0 in a future version.
> **Deprecation notice**: the minimum Ruby version will be 3.1 in a future version.
The following sections provide information on the various installation methods.

Expand All @@ -228,9 +228,9 @@ Use this method to install on the native host (e.g. your Windows, macOS or Linux

A Ruby interpreter is required to run `ascli`.

Required Ruby version: >= 2.6.
Required Ruby version: >= 2.7.

> **Deprecation notice**: the minimum Ruby version will be 3.0 in a future version.
> **Deprecation notice**: the minimum Ruby version will be 3.1 in a future version.
**Ruby can be installed using any method** : rpm, yum, dnf, rvm, brew, Windows installer, ... .

Expand Down Expand Up @@ -7351,6 +7351,7 @@ If the preview generator does not have access to files on the file system (it is
```bash
check --skip-types=office
events --once-only=yes --skip-types=office --log-level=info
scan --scan-id=1 --skip-types=office --log-level=info --file-access=remote --ts=@json:'{"target_rate_kbps":1000000}'
scan --skip-types=office --log-level=info
show --base=test my_docx
Expand Down
3 changes: 2 additions & 1 deletion aspera-cli.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ Gem::Specification.new do |spec|
spec.cert_chain = ['certs/aspera-cli-public-cert.pem']
spec.signing_key = File.expand_path(ENV.fetch('SIGNING_KEY')) if ENV.key?('SIGNING_KEY')
# see also Aspera::Cli::Info::RUBY_CURRENT_MINIMUM_VERSION
spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 2.7'
# dependency gems for runtime
# if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('3.0.0')
# spec.add_runtime_dependency('base64', '~> 0.2.0')
# spec.add_runtime_dependency('bigdecimal', '~> 3.1', '>= 3.1.6')
# end
spec.add_runtime_dependency('bigdecimal', '~> 3.1.0') if RUBY_VERSION >= '3.4'
spec.add_runtime_dependency('blankslate', '~> 3.1')
spec.add_runtime_dependency('csv', '~> 3.0')
spec.add_runtime_dependency('execjs', '~> 2.0')
Expand Down
39 changes: 20 additions & 19 deletions docs/Manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ <h1 data-number="1" id="introduction"><span
href="https://rubygems.org/gems/aspera-cli">https://rubygems.org/gems/aspera-cli</a></p>
<p>Ruby Doc: <a
href="https://www.rubydoc.info/gems/aspera-cli">https://www.rubydoc.info/gems/aspera-cli</a></p>
<p>Minimum required Ruby version: &gt;= 2.6.</p>
<p>Minimum required Ruby version: &gt;= 2.7.</p>
<blockquote>
<p><strong>Deprecation notice</strong>: the minimum Ruby version will be
3.0 in a future version.</p>
3.1 in a future version.</p>
</blockquote>
<p><a
href="https://developer.ibm.com/?size=30&amp;q=aspera&amp;DWContentType%5B0%5D=APIs&amp;sort=title_asc">Aspera
Expand Down Expand Up @@ -214,10 +214,10 @@ <h1 data-number="3" id="installation"><span
<li><a href="#fasp-protocol-ascp">Aspera SDK
(<code>ascp</code>)</a></li>
</ul>
<p>Ruby version: &gt;= 2.6.</p>
<p>Ruby version: &gt;= 2.7.</p>
<blockquote>
<p><strong>Deprecation notice</strong>: the minimum Ruby version will be
3.0 in a future version.</p>
3.1 in a future version.</p>
</blockquote>
<p>The following sections provide information on the various
installation methods.</p>
Expand All @@ -232,10 +232,10 @@ <h2 data-number="3.1" id="ruby"><span
<p>Use this method to install on the native host (e.g. your Windows,
macOS or Linux system).</p>
<p>A Ruby interpreter is required to run <code>ascli</code>.</p>
<p>Required Ruby version: &gt;= 2.6.</p>
<p>Required Ruby version: &gt;= 2.7.</p>
<blockquote>
<p><strong>Deprecation notice</strong>: the minimum Ruby version will be
3.0 in a future version.</p>
3.1 in a future version.</p>
</blockquote>
<p><strong>Ruby can be installed using any method</strong> : rpm, yum,
dnf, rvm, brew, Windows installer, … .</p>
Expand Down Expand Up @@ -9078,19 +9078,20 @@ <h2 data-number="18.12" id="preview-sample-commands"><span
</blockquote>
<div class="sourceCode" id="cb504"><pre
class="sourceCode bash"><code class="sourceCode bash"><span id="cb504-1"><a href="#cb504-1" aria-hidden="true" tabindex="-1"></a><span class="ex">check</span> <span class="at">--skip-types</span><span class="op">=</span>office</span>
<span id="cb504-2"><a href="#cb504-2" aria-hidden="true" tabindex="-1"></a><span class="ex">scan</span> <span class="at">--scan-id</span><span class="op">=</span>1 <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info <span class="at">--file-access</span><span class="op">=</span>remote <span class="at">--ts</span><span class="op">=</span>@json:<span class="st">&#39;{&quot;target_rate_kbps&quot;:1000000}&#39;</span></span>
<span id="cb504-3"><a href="#cb504-3" aria-hidden="true" tabindex="-1"></a><span class="ex">scan</span> <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info</span>
<span id="cb504-4"><a href="#cb504-4" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_docx</span>
<span id="cb504-5"><a href="#cb504-5" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg <span class="at">--video-png-conv</span><span class="op">=</span>animated</span>
<span id="cb504-6"><a href="#cb504-6" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg <span class="at">--video-png-conv</span><span class="op">=</span>fixed</span>
<span id="cb504-7"><a href="#cb504-7" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg mp4 <span class="at">--video-conversion</span><span class="op">=</span>clips</span>
<span id="cb504-8"><a href="#cb504-8" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg mp4 <span class="at">--video-conversion</span><span class="op">=</span>reencode</span>
<span id="cb504-9"><a href="#cb504-9" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_pdf</span>
<span id="cb504-10"><a href="#cb504-10" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--base</span><span class="op">=</span>test my_dcm</span>
<span id="cb504-11"><a href="#cb504-11" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--base</span><span class="op">=</span>test my_mxf mp4 <span class="at">--video-conversion</span><span class="op">=</span>blend <span class="at">--query</span><span class="op">=</span>@json:<span class="st">&#39;{&quot;text&quot;:true,&quot;double&quot;:true}&#39;</span></span>
<span id="cb504-12"><a href="#cb504-12" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--mimemagic</span><span class="op">=</span>yes <span class="at">--base</span><span class="op">=</span>test my_dcm</span>
<span id="cb504-13"><a href="#cb504-13" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--mimemagic</span><span class="op">=</span>yes <span class="at">--base</span><span class="op">=</span>test my_jpg_unk</span>
<span id="cb504-14"><a href="#cb504-14" aria-hidden="true" tabindex="-1"></a><span class="ex">trevents</span> <span class="at">--once-only</span><span class="op">=</span>yes <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info</span></code></pre></div>
<span id="cb504-2"><a href="#cb504-2" aria-hidden="true" tabindex="-1"></a><span class="ex">events</span> <span class="at">--once-only</span><span class="op">=</span>yes <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info</span>
<span id="cb504-3"><a href="#cb504-3" aria-hidden="true" tabindex="-1"></a><span class="ex">scan</span> <span class="at">--scan-id</span><span class="op">=</span>1 <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info <span class="at">--file-access</span><span class="op">=</span>remote <span class="at">--ts</span><span class="op">=</span>@json:<span class="st">&#39;{&quot;target_rate_kbps&quot;:1000000}&#39;</span></span>
<span id="cb504-4"><a href="#cb504-4" aria-hidden="true" tabindex="-1"></a><span class="ex">scan</span> <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info</span>
<span id="cb504-5"><a href="#cb504-5" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_docx</span>
<span id="cb504-6"><a href="#cb504-6" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg <span class="at">--video-png-conv</span><span class="op">=</span>animated</span>
<span id="cb504-7"><a href="#cb504-7" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg <span class="at">--video-png-conv</span><span class="op">=</span>fixed</span>
<span id="cb504-8"><a href="#cb504-8" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg mp4 <span class="at">--video-conversion</span><span class="op">=</span>clips</span>
<span id="cb504-9"><a href="#cb504-9" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_mpg mp4 <span class="at">--video-conversion</span><span class="op">=</span>reencode</span>
<span id="cb504-10"><a href="#cb504-10" aria-hidden="true" tabindex="-1"></a><span class="ex">show</span> <span class="at">--base</span><span class="op">=</span>test my_pdf</span>
<span id="cb504-11"><a href="#cb504-11" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--base</span><span class="op">=</span>test my_dcm</span>
<span id="cb504-12"><a href="#cb504-12" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--base</span><span class="op">=</span>test my_mxf mp4 <span class="at">--video-conversion</span><span class="op">=</span>blend <span class="at">--query</span><span class="op">=</span>@json:<span class="st">&#39;{&quot;text&quot;:true,&quot;double&quot;:true}&#39;</span></span>
<span id="cb504-13"><a href="#cb504-13" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--mimemagic</span><span class="op">=</span>yes <span class="at">--base</span><span class="op">=</span>test my_dcm</span>
<span id="cb504-14"><a href="#cb504-14" aria-hidden="true" tabindex="-1"></a><span class="bu">test</span> <span class="at">--mimemagic</span><span class="op">=</span>yes <span class="at">--base</span><span class="op">=</span>test my_jpg_unk</span>
<span id="cb504-15"><a href="#cb504-15" aria-hidden="true" tabindex="-1"></a><span class="ex">trevents</span> <span class="at">--once-only</span><span class="op">=</span>yes <span class="at">--skip-types</span><span class="op">=</span>office <span class="at">--log-level</span><span class="op">=</span>info</span></code></pre></div>
<h1 data-number="19" id="ibm-aspera-sync"><span
class="header-section-number">19</span> IBM Aspera Sync</h1>
<p>An interface for the <code>async</code> utility is provided in the
Expand Down
Binary file modified docs/Manual.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/aspera/cli/info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Info
SRC_URL = 'https://github.com/IBM/aspera-cli'
# set this to warn in advance when minimum required ruby version will increase
# see also required_ruby_version in gemspec file
RUBY_FUTURE_MINIMUM_VERSION = '3.0'
RUBY_FUTURE_MINIMUM_VERSION = '3.1'
end
end
end

0 comments on commit e00baa9

Please sign in to comment.