rgversion 1.1.7.beta1 → 1.1.7.beta2
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 +4 -4
- data/lib/rgversion.rb +2 -3
- data/lib/rgversion/clipboard.rb +3 -2
- data/lib/rgversion/terminal.rb +1 -1
- data/lib/rgversion/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f17e851b9e2610be10d0b331eb73db3180e7ffc6d1d37467c18f156246c5401
|
|
4
|
+
data.tar.gz: 6e3dc33586c400030ed97e4e265ef62a6c2a6f931d701b8b720201d77c243d23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '05660448df0f876df3799263a6e8cd892f0ddab335e7d48f487084fe0edb853eb859c393e7efc13556d2ed9e22e5b6ee2b9a4eef71dd64c7805df90732c010f0'
|
|
7
|
+
data.tar.gz: 25c046cbebd46c1097c606005d6a6a7c6ae3dce67a40c27c5fe2c5af3af0f16ee27a26f1ae5dee7c84053b8bb269fbc1c5d0c953e52186165999c8f3ef7396ed
|
data/lib/rgversion.rb
CHANGED
|
@@ -2,6 +2,8 @@ require "active_support/core_ext/object/blank"
|
|
|
2
2
|
require "active_support/dependencies/autoload"
|
|
3
3
|
require "awesome_print"
|
|
4
4
|
require "os"
|
|
5
|
+
require "rgversion/exceptions"
|
|
6
|
+
require "rgversion/version"
|
|
5
7
|
|
|
6
8
|
module Rgversion
|
|
7
9
|
extend ActiveSupport::Autoload
|
|
@@ -13,6 +15,3 @@ module Rgversion
|
|
|
13
15
|
autoload :Spider
|
|
14
16
|
autoload :Terminal
|
|
15
17
|
end
|
|
16
|
-
|
|
17
|
-
require_relative "rgversion/exceptions"
|
|
18
|
-
require_relative "rgversion/version"
|
data/lib/rgversion/clipboard.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
module Rgversion
|
|
2
2
|
class Clipboard
|
|
3
|
-
def initialize(command)
|
|
3
|
+
def initialize(content, command)
|
|
4
|
+
@content = content
|
|
4
5
|
@command = command
|
|
5
6
|
end
|
|
6
7
|
|
|
7
8
|
def copy
|
|
8
9
|
if command_exists?
|
|
9
|
-
system("echo \"#{@
|
|
10
|
+
system("echo \"#{@content}\" | #{clarified_command}")
|
|
10
11
|
puts "\nCopied to your clipboard!".green
|
|
11
12
|
else
|
|
12
13
|
instruction = Instruction.new(@command)
|
data/lib/rgversion/terminal.rb
CHANGED
data/lib/rgversion/version.rb
CHANGED