wahy 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a464603f9dc3bd456c8e2abb036f8960180022f4780b55456d08bc902d509cc2
4
- data.tar.gz: dc613b0c8d233033c7a4c99e16d9a1834975d74fe85c9e7118bfd1f5edaf6c57
3
+ metadata.gz: cc9f6660bac40237411a61edd6fc80b2cd5cf90b887caee89ee6bbc2a1ad5504
4
+ data.tar.gz: d5ffad70c68baaefda4192d283aab1ecdfa9982dd865c7de91ecdfb73393e148
5
5
  SHA512:
6
- metadata.gz: bcd24fc1ed36354b8a39936f2eb46e0f80b6a87d8f0ee8a2104e864880d44aba011ce6482cb53fef8cc4d600140e52146f21f765ad5958cbe18c59ba10c4ffd9
7
- data.tar.gz: 8b830196da3e6fb84894355832b156f28f760c5ffad428c722979ec8d80a07a547b636aa10d821261740e0bd0ed2c00408afa889151a887f224390a42ba39187
6
+ metadata.gz: 432470df56002faf3dabc7f1182b27f1454ca3a028423213eb1833a7446d61e6317716e25e2d3e782b9bae034fda36f3c3fa9130de430eabd8e04c81b25162ce
7
+ data.tar.gz: 2900ef4a3dbfe0708ec52b809cd897fd3ed8733403e0572e333fb337feea6db5d5b9a0eddeb1470ad4132161f8bdcc5ab4b2d5f4dfbf6a0cd7e5b6db74e87519
data/README.md CHANGED
@@ -91,11 +91,6 @@ wahy --list-chapters -l tur
91
91
 
92
92
  The `--list-chapters` feature acts as an interactive built-in index for the Quranic data files. It provides users with a clean, well-aligned terminal table showing the exact `ID` and `Chapter Name` mappings for the selected language.
93
93
 
94
- ### Key Benefits:
95
- 1. **Dynamic Language Switch:** Specifying `-l 'tur'` or `-l 'eng'` alongside `--list-chapters` automatically switches the content of the index table to that specific translation file.
96
- 2. **Short-Circuit Execution:** When this flag is triggered, the program instantly renders the table and exits securely, avoiding any unnecessary XML traversing or verse filtering overhead.
97
- 3. **Formatted UI Output:** Utilizing explicit string formatting rules ensures that all tabular column lines down the terminal remain perfectly aligned regardless of varying chapter name lengths.
98
-
99
94
  ### Example Output:
100
95
  ```text
101
96
  ==================================================
data/lib/wahy/cli.rb CHANGED
@@ -4,6 +4,8 @@ require 'colorize'
4
4
 
5
5
  module Wahy
6
6
  class CLI
7
+
8
+
7
9
  def self.start(args)
8
10
  options = {
9
11
  lang: 'eng',
@@ -32,6 +34,12 @@ module Wahy
32
34
  options[:list_chapters] = true
33
35
  end
34
36
 
37
+ # Yeni: Versiyon numarasını gösterir
38
+ opts.on("-v", "--version", "Prints the current version") do
39
+ puts "wahy version #{Wahy::VERSION}"
40
+ exit
41
+ end
42
+
35
43
  opts.on("-h", "--help", "Prints this help menu") do
36
44
  puts opts
37
45
  exit
data/lib/wahy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Wahy
4
- VERSION = "2.0.7"
4
+ VERSION = "2.0.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wahy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - cptangry