rgversion 1.1.7.beta1 → 1.1.7.beta2

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: a425e7138abec6028f4141d2b83749336db732bfdafe0e59a517910058b77ff2
4
- data.tar.gz: 5fe10e6b1c337b7116dff69d83252456487459b21113dcf6120f37ff177cc22f
3
+ metadata.gz: 4f17e851b9e2610be10d0b331eb73db3180e7ffc6d1d37467c18f156246c5401
4
+ data.tar.gz: 6e3dc33586c400030ed97e4e265ef62a6c2a6f931d701b8b720201d77c243d23
5
5
  SHA512:
6
- metadata.gz: 11e6af8cad947bcf6bab957d3cf850a7d185f704cb5a46a80fce3e1096f7ad079f7aab99603e0514f815c937936b95c94b7dc8f3caaeb6014100d32b0d8fb64c
7
- data.tar.gz: 9c8e874e26b7d7f59e923463b8ad882f9ef378180ffd92a89868f69f2feebc31d1140434a8dfac7fddaead74505b33b7d8c25ab8d79e7aa00d1245bb3ef67cd2
6
+ metadata.gz: '05660448df0f876df3799263a6e8cd892f0ddab335e7d48f487084fe0edb853eb859c393e7efc13556d2ed9e22e5b6ee2b9a4eef71dd64c7805df90732c010f0'
7
+ data.tar.gz: 25c046cbebd46c1097c606005d6a6a7c6ae3dce67a40c27c5fe2c5af3af0f16ee27a26f1ae5dee7c84053b8bb269fbc1c5d0c953e52186165999c8f3ef7396ed
@@ -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"
@@ -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 \"#{@output}\" | #{clarified_command}")
10
+ system("echo \"#{@content}\" | #{clarified_command}")
10
11
  puts "\nCopied to your clipboard!".green
11
12
  else
12
13
  instruction = Instruction.new(@command)
@@ -12,7 +12,7 @@ module Rgversion
12
12
 
13
13
  def copy_to_clipboard
14
14
  return if @output.blank?
15
- clipboard = Clipboard.new(@command)
15
+ clipboard = Clipboard.new(@output, @command)
16
16
  clipboard.copy
17
17
  end
18
18
 
@@ -1,4 +1,4 @@
1
1
  module Rgversion
2
- VERSION = "1.1.7.beta1".freeze
3
- PREVIOUS_VERSION = "1.1.6".freeze
2
+ VERSION = "1.1.7.beta2".freeze
3
+ PREVIOUS_VERSION = "1.1.7.beta1".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7.beta1
4
+ version: 1.1.7.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vavgustov