hanamimastery-cli 0.2.0 → 0.2.2

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: 0a6ef215794101a805fd2c02baa42bf1e4dc4d650bf79ab2ff37d51684b29d2f
4
- data.tar.gz: 4f5b2dbfc130bfc0594c76b727dc6555d256f41d58deac6356895b36609fcc4f
3
+ metadata.gz: 62ba8407926d8d5187831a1d53ea95c3684a081440cc5c5173bbaa14d65f4732
4
+ data.tar.gz: 723d318b0a95df0f1c536a9993ccc8f1ca95e8bd1e276496c2b9fe0ffb8df8dc
5
5
  SHA512:
6
- metadata.gz: 2224bcd98c1e61a7ca7e92e1f89da9183c326861c84eb1e22420ddd364b0873623d932b52e5ecf90d77099ff735dd9993764b385f8f762274d691de7df47a741
7
- data.tar.gz: 1d151f4f96507f5c8450eb43d4e250b229ce1737da965977fc577beb591fa599e55c76873347a3555f3296e550b4b50e94a6092a69be48361d49e412b5161d33
6
+ metadata.gz: 2a66d110d143ede9bac6be2c74de8937fe692c76271e3f4db43529d81536ba998db4bce5ad3a55842f3152655a2092c3bc5207fe4c401c3d9bffa3b1e7b3a06f
7
+ data.tar.gz: b811f2ea99386d5de89fd481bbe43f5d9daf73204d8eca666341ebf988a2a700ecd64db29bfaa15316e8186d207a9a7404a41f8e18d561cff7435bc4b2dbc94d
data/CHANGELOG.md CHANGED
@@ -14,3 +14,23 @@ Removes shot marks from a given article (i.e. ""[🎬 01] ")
14
14
 
15
15
  **Touch**
16
16
  Updates the modifiedAt with the current date
17
+
18
+ ## [0.2.0] - 2023-01-19
19
+
20
+ - PRO command
21
+
22
+ Added new command to render HTML version of premium episodes.
23
+
24
+ ### Features
25
+
26
+ **PRO**
27
+ Transformes episode's markdown into HTML ready to be used in Podia editor.
28
+
29
+
30
+ ## [0.2.1] - 2023-01-20
31
+
32
+ - Fixed incorrect dependency loading key
33
+
34
+ ## [0.2.2] - 2023-01-20
35
+
36
+ - Improved zeitwer configuration for file loading
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hanamimastery-cli (0.2.0)
4
+ hanamimastery-cli (0.2.2)
5
5
  commonmarker (~> 1.0.0.pre6)
6
6
  dry-cli (<= 1.0)
7
7
  dry-configurable (~> 1.0)
data/exe/hanamimastery CHANGED
@@ -4,6 +4,8 @@
4
4
  require "bundler/setup"
5
5
  require "hanamimastery/cli"
6
6
 
7
+ Hanamimastery::CLI::Container.finalize!
8
+
7
9
  cli = Dry::CLI.new(Hanamimastery::CLI)
8
10
 
9
11
  cli.call
@@ -10,7 +10,7 @@ module Hanamimastery
10
10
 
11
11
  include Deps[
12
12
  repository: 'repositories.episodes',
13
- transformation: 'hanamimasterytransformations.unshot'
13
+ transformation: 'transformations.unshot'
14
14
  ]
15
15
 
16
16
  attr_reader :transformation, :repository
@@ -7,13 +7,24 @@ module Hanamimastery
7
7
  use :zeitwerk
8
8
 
9
9
  configure do |config|
10
- config.component_dirs.add "lib" do |dir|
11
- dir.namespaces.add "hanamimastery/cli", key: nil
12
- end
10
+ root = File.expand_path("../../..", __dir__)
11
+ config.root = root
12
+ config.autoloader.tag = "hanamimastery-cli"
13
+ config.autoloader.inflector = Zeitwerk::GemInflector.new("#{root}/hanamimastery-cli.rb")
14
+ config.autoloader.push_dir(root)
15
+ config.autoloader.ignore(
16
+ "#{root}/hanamimastery-cli.rb",
17
+ "#{root}/hanamimastery/cli/{errors,version,deps,container}.rb"
18
+ )
19
+
13
20
  config.inflector = Dry::Inflector.new do |inflections|
14
21
  inflections.acronym('CLI')
15
22
  inflections.acronym('PRO')
16
23
  end
24
+
25
+ config.component_dirs.add 'lib' do |dir|
26
+ dir.namespaces.add "hanamimastery/cli", key: nil
27
+ end
17
28
  end
18
29
  end
19
30
  end
@@ -2,6 +2,8 @@
2
2
 
3
3
  module Hanamimastery
4
4
  module CLI
5
- class Error < StandardError; end
5
+ module Errors
6
+ class BaseError < StandardError; end
7
+ end
6
8
  end
7
9
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanamimastery
4
4
  module CLI
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  end
@@ -1,16 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'dry/cli'
4
+ require 'hanamimastery/cli/version'
5
+ require 'hanamimastery/cli/errors'
6
+ require 'hanamimastery/cli/deps'
4
7
 
5
8
  module Hanamimastery
6
9
  module CLI
7
- require_relative 'cli/version'
8
- require_relative 'cli/error'
9
- require_relative 'cli/deps'
10
- require_relative 'cli/commands'
11
-
12
10
  extend Dry::CLI::Registry
13
-
14
11
  register 'touch', Commands::Touch
15
12
  register 'unshot', Commands::Unshot
16
13
  register 'pro', Commands::ToPRO
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'hanamimastery/cli'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanamimastery-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
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-01-19 00:00:00.000000000 Z
11
+ date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -100,6 +100,7 @@ files:
100
100
  - README.md
101
101
  - Rakefile
102
102
  - exe/hanamimastery
103
+ - lib/hanamimastery-cli.rb
103
104
  - lib/hanamimastery/cli.rb
104
105
  - lib/hanamimastery/cli/commands.rb
105
106
  - lib/hanamimastery/cli/commands/to_pro.rb
@@ -107,7 +108,7 @@ files:
107
108
  - lib/hanamimastery/cli/commands/unshot.rb
108
109
  - lib/hanamimastery/cli/container.rb
109
110
  - lib/hanamimastery/cli/deps.rb
110
- - lib/hanamimastery/cli/error.rb
111
+ - lib/hanamimastery/cli/errors.rb
111
112
  - lib/hanamimastery/cli/repositories/episodes.rb
112
113
  - lib/hanamimastery/cli/transformations/to_pro.rb
113
114
  - lib/hanamimastery/cli/transformations/touch.rb