ruby_fly 0.3.0 → 0.4.0

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: df94931fbc6b2820b51729cebf669d15ae11e9b3
4
- data.tar.gz: f13667730a5454f4481527beccccdd4f19501dce
3
+ metadata.gz: 55f06ac3ecbfb72364c48953f73b46619d1937ee
4
+ data.tar.gz: e266ff7f151957e273f9b804cf88c30e459a1c46
5
5
  SHA512:
6
- metadata.gz: 2a0aeabe8c47f1c8622b7a9c87de09abd3aee135af37f0f5226da0e3888c8710fe1e38c41e7dd2c2585d147109c8513a58d46ba06f3948bac354e037568369da
7
- data.tar.gz: 65859c3d260497cb4e7e016c85cb71264f212267e7a24d2e6a43fc5a5022cb9c871aa339765942ca387829ffa2d68418a8add61cd3507f26c0c9efca40d2d3bb
6
+ metadata.gz: 0e215a82abc9987016c0e1403f7777d85042b6a3795a13c0a422407b5a31e657d9b524d503acae16a36296bd10e37a6bf19aebf59b01918cbae2ab675d7523b6
7
+ data.tar.gz: 2082b22b3d3caf662ad2d80cfc579829ae4b40b7b96401935af03b96847554c2a9e308289241c44c7559291c9fd0db350d65802633b460cce7afa178ac7695ab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_fly (0.3.0)
4
+ ruby_fly (0.4.0)
5
5
  lino (~> 1.1)
6
6
 
7
7
  GEM
@@ -0,0 +1,24 @@
1
+ require 'lino'
2
+ require_relative 'base'
3
+
4
+ module RubyFly
5
+ module Commands
6
+ class Version < Base
7
+ def stdout
8
+ @version_string
9
+ end
10
+
11
+ def do_before(opts)
12
+ @version_string = StringIO.new
13
+ end
14
+
15
+ def configure_command(builder, opts)
16
+ builder.with_flag('--version')
17
+ end
18
+
19
+ def do_after(opts)
20
+ @version_string.string.gsub(/\n/, '')
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,6 +1,7 @@
1
1
  require_relative 'commands/get_pipeline'
2
2
  require_relative 'commands/set_pipeline'
3
3
  require_relative 'commands/unpause_pipeline'
4
+ require_relative 'commands/version'
4
5
 
5
6
  module RubyFly
6
7
  module Commands
@@ -1,3 +1,3 @@
1
1
  module RubyFly
2
- VERSION = '0.3.0'
2
+ VERSION = '0.4.0'
3
3
  end
data/lib/ruby_fly.rb CHANGED
@@ -27,6 +27,10 @@ module RubyFly
27
27
  def unpause_pipeline(opts = {})
28
28
  Commands::UnpausePipeline.new.execute(opts)
29
29
  end
30
+
31
+ def version
32
+ Commands::Version.new.execute()
33
+ end
30
34
  end
31
35
  extend ClassMethods
32
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_fly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lino
@@ -105,6 +105,7 @@ files:
105
105
  - lib/ruby_fly/commands/get_pipeline.rb
106
106
  - lib/ruby_fly/commands/set_pipeline.rb
107
107
  - lib/ruby_fly/commands/unpause_pipeline.rb
108
+ - lib/ruby_fly/commands/version.rb
108
109
  - lib/ruby_fly/version.rb
109
110
  - ruby_fly.gemspec
110
111
  homepage: https://github.com/tobyclemson/ruby_fly