ruby-edit 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: f21cef72632c9b6a7a8454cba04c421a71b1ebdc
4
- data.tar.gz: 5193cc1c0c17ca953dcae7ed2994c6d5323f684b
3
+ metadata.gz: b42098c6f29c7923cba0db3a0543d8fda5c3baa4
4
+ data.tar.gz: 499992f989cfe645b3a36f9d07f4fa147a786625
5
5
  SHA512:
6
- metadata.gz: c850f1b84cc7fe68dfd30fbbde7a9585563d075707269da797a62b854daef738b1e46f75cd23224968fe6cd2449ce77d466eb337ae3cf36d4de1060c8bf8a232
7
- data.tar.gz: ae1ab6d62c38349726990f65f376500693c6a9d1546291d6c51c2fb1acfa7a24ab951e981806033aae24b707b00f90b008e5cb62ab882ab9d2464ea4e5e21d1e
6
+ metadata.gz: 397bbadef327eaa22b3b981c1cfae1dcb750f39e25513c7845aba45eea568f1828274f3b685c12e38ba0f7739aba365108de08191e0827e93b4d8782948fcdc9
7
+ data.tar.gz: 04fd417aec9e0e23d09e4877c2d75ff56c88e8d9aec67a86ea41345a57bf4f91846d1f110e02441996a5285617c970fd82ae823d77ee32b0ed44ebcb81937e44
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-edit (0.1.0)
4
+ ruby-edit (0.1.1)
5
5
  pastel (~> 0.7.2)
6
6
  thor (~> 0.20.0)
7
7
  tty-color (~> 0.4.2)
@@ -72,7 +72,7 @@ GEM
72
72
  thor (0.20.0)
73
73
  timers (4.1.2)
74
74
  hitimes
75
- tty-color (0.4.2)
75
+ tty-color (0.4.3)
76
76
  tty-command (0.8.1)
77
77
  pastel (~> 0.7.0)
78
78
  tty-config (0.2.0)
@@ -5,6 +5,7 @@ require 'ruby_edit/configuration'
5
5
 
6
6
  module RubyEdit
7
7
  SOURCE_FILE_LOCATION = File.expand_path('../temp/sourcefile', __dir__)
8
+ CONFIGURATION_LOCATION = "#{__dir__}/../configuration"
8
9
 
9
10
  class << self
10
11
  def config
@@ -4,12 +4,9 @@ require 'tty/config'
4
4
 
5
5
  module RubyEdit
6
6
  class Configuration
7
- LOCATION = File.expand_path('../../configuration', __dir__)
8
-
9
7
  def initialize
10
- @config = TTY::Config.new
11
- @config.filename = LOCATION
12
- @config.read("#{LOCATION}.yml")
8
+ @config = TTY::Config.new
9
+ @config.read("#{RubyEdit::CONFIGURATION_LOCATION}.yml")
13
10
  end
14
11
 
15
12
  def editor
@@ -29,7 +26,7 @@ module RubyEdit
29
26
  private
30
27
 
31
28
  def write
32
- @config.write
29
+ @config.write("#{RubyEdit::CONFIGURATION_LOCATION}.yml", force: true)
33
30
  end
34
31
  end
35
32
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEdit
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-edit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - finn-francis