rlt 0.1.1 → 0.1.2

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: d0cb19ba69b703d07058564907203ab6bbc716bab2654fe5f9c000f3bb24d832
4
- data.tar.gz: 639736fda1fe706d93af147cf5c714ad6cdf01a2501721e86643dd15842ed49c
3
+ metadata.gz: b014aed42ee9f1d1b4ecd34949eeeda4f07806143b9c2323900db6d2acc8ef0d
4
+ data.tar.gz: cc26f6909253057f325a877724eaa408100e725117c39bbfe55f683a619ffb68
5
5
  SHA512:
6
- metadata.gz: a54919542cc2a188907e861a6a78650908be973e48889da506dce0eb27e3e5d9f6f3e8025f4a717ae01503c8d219d5e534e2586749769801b38f1593e5f15c4a
7
- data.tar.gz: 483957a5f2a7f4a9b17488de76a954f78a8ff4d747ffac538e2ba61131c472bba282a4e855ba5de35b7d400f3c48943d710b8a0108b5f1bdf48ea190d27897f5
6
+ metadata.gz: 6ad76cec7c0bc731b7053aa47fd5136f6fc1f137945b15470d22ef62934e7ae9fe58a14892b54bde6d833a65fec6de0da4e1e059b15ec89fe5e19c08d0b6a590
7
+ data.tar.gz: b448baa3c0f3d39b0e90962810498a57db78fe28549b06d2bc092ae752270efa44a7c0c196d8bf0be532883b5ff30922c2e5602ea7d696d4dbe96c273ffac0e3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rlt (0.1.1)
4
+ rlt (0.1.2)
5
5
  pastel (~> 0.7.2)
6
6
  tty-command (~> 0.8.0)
7
7
  tty-prompt (~> 0.16.1)
data/lib/rlt/config.rb CHANGED
@@ -5,11 +5,15 @@ require 'yaml'
5
5
  module Rlt
6
6
  module Config
7
7
  def config(category, command)
8
- category_config(category)[command]
8
+ category_config(category)[command] || category_config(category)[original(command)] || {}
9
9
  rescue NoMethodError
10
10
  {}
11
11
  end
12
12
 
13
+ def original(command)
14
+ config('alias', command)
15
+ end
16
+
13
17
  def config_keys(category)
14
18
  category_config(category).keys
15
19
  rescue NoMethodError
data/lib/rlt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rlt
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rlt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Lee