hanamimastery-cli 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f62c2b5c42bf610773dfe4649f63c32f617e795601bc61e8bd8e59f4ee40d65
4
- data.tar.gz: acd9c90a37342f82e28b943b7412b71a874f4e6a44d6bdcbe7e3020cf014e77a
3
+ metadata.gz: 6696bc75eb6904f8ebb3f95214fd71f121ede7f0d697bfcdf4c5e1ec21f5f4be
4
+ data.tar.gz: d459168bc60a4a05a7d599ff8854d4f8fc37a9802cddea6693416e2c450f00c5
5
5
  SHA512:
6
- metadata.gz: 0117306eac74029b0e600cac92f51fa0ba95c7211a47fe3d35408f410366f2e767dc53db7a632713ce72dca4e3bfe475de20287a570bce564fa68321dcefd6b5
7
- data.tar.gz: a9e120aad764838a437cc606de45ae3dcb4778fad9b9fedecf3f17170416e15085a79f7f755caa7d506b5d4716d74b36027a9ad7cac9e389c556499c2b9888f6
6
+ metadata.gz: 260225298932ab666deef2d52d9ccb73899ae160bd9f87cd9ea00f58b9e92fdeb6819cf6951c0daab22e3acd0da2a640a3cec4aad169078df48c97694ca8d834
7
+ data.tar.gz: 1b92617d49411300b10c62193589ad3b0142cd689447d9aa628891344aebe57d23afa23d198394c7f0d91dd91518b1b1a03aede7df122544dc855602aa3a9be9
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hanamimastery-cli (0.3.1)
4
+ hanamimastery-cli (0.4.0)
5
5
  commonmarker (~> 1.0.0.pre6)
6
- dry-cli (<= 1.0)
6
+ dry-cli (~> 1.0)
7
7
  dry-configurable (~> 1.0)
8
8
  dry-system (~> 1.0)
9
9
  zeitwerk (~> 2.6)
@@ -5,7 +5,6 @@ module Hanamimastery
5
5
  module Commands
6
6
  class Unshot < Dry::CLI::Command
7
7
  desc 'Removes shot marks from a given article (i.e. ""[🎬 01] ")'
8
-
9
8
  argument :episode, type: :integer, required: true, desc: "Episodes ID to unshot"
10
9
 
11
10
  include Deps[
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'commonmarker'
4
-
5
3
  module Hanamimastery
6
4
  module CLI
7
5
  module Transformations
@@ -13,7 +11,7 @@ module Hanamimastery
13
11
  #
14
12
  def call(id, content)
15
13
  image_patern = /\!(\[\[)(.+)(\]\])/
16
- result
14
+ content
17
15
  .gsub(image_pattern, "![#{'\2'.humanize.tr('-', ''))}](#{HOST}/images/episodes/#{id})")
18
16
  end
19
17
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanamimastery
4
4
  module CLI
5
- VERSION = "0.3.1"
5
+ VERSION = "0.4.0"
6
6
  end
7
7
  end
@@ -11,5 +11,6 @@ module Hanamimastery
11
11
  register 'touch', Commands::Touch
12
12
  register 'unshot', Commands::Unshot
13
13
  register 'pro', Commands::ToPRO
14
+ register 'notion', Commands::ToNotion
14
15
  end
15
16
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanamimastery-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Wilgosz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-25 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "<="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
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.0'
27
27
  - !ruby/object:Gem::Dependency