babl 0.1.0 → 0.2.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: 0c3aab27d2346398e7f0e8c90a7bd51739d550af
4
- data.tar.gz: 48bdc639a8dcaffa7f91893a9a597d94a4f74e13
3
+ metadata.gz: 1641d06ad7919dea5e8f35e357ec3bdd817067bc
4
+ data.tar.gz: dd055fbca5a62c0835580288613d5731b72956a0
5
5
  SHA512:
6
- metadata.gz: 5fe9f2deb7050df9f43bd3ac34101981576ed037192a69a10c8ec0ce16bbdaa24afe62c9114c1fdc8f0324ab0d0cd57bb4b770862efd2bc6e983d0094f078eee
7
- data.tar.gz: 4a5d0a9c0ca9d8d9553474a613d5dfdf3a407c25bff4e7c0dc3936a1798d074bafd84f2f90960686960a08fcaf9fd60a8b0fdc67ca71019a4a5f68c741fdbe07
6
+ metadata.gz: 016340714de0a77198ad356cc0dbb2f13eb57c14489ab81bfe781446d217d9e4a14086834f391672f9f82283465cd1f457dbf434df753548f9009b6bc5081b5b
7
+ data.tar.gz: 16c8281887affbda075c2cee162777903389c1d18468b44975008e9eb63b4a8cd66d4f214e87048687abf09c0ff961d039f3570c1434b99369049be9f600b8cb
data/babl.gemspec CHANGED
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'babl/version'
4
+ require 'babl'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "babl"
8
- spec.version = Babl::VERSION
8
+ spec.version = Babl.version
9
9
  spec.authors = ["Lars Kluge"]
10
10
  spec.email = ["l@larskluge.com"]
11
11
 
Binary file
Binary file
data/lib/babl.rb CHANGED
@@ -1,11 +1,8 @@
1
1
  require 'quartz'
2
2
  require 'base64'
3
3
 
4
- require "babl/version"
5
-
6
4
 
7
5
  module Babl
8
-
9
6
  def self.bin_path
10
7
  bin = 'babl-rpc_'
11
8
  bin += "linux_amd64" if RUBY_PLATFORM =~ /linux/
@@ -13,6 +10,10 @@ module Babl
13
10
  File.expand_path("../../bin/#{bin}", __FILE__)
14
11
  end
15
12
 
13
+ def self.version
14
+ `#{bin_path} -version`.strip
15
+ end
16
+
16
17
  def self.client
17
18
  @client ||= Quartz::Client.new(bin_path: bin_path)
18
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Kluge
@@ -101,7 +101,6 @@ files:
101
101
  - bin/console
102
102
  - bin/setup
103
103
  - lib/babl.rb
104
- - lib/babl/version.rb
105
104
  homepage: https://github.com/babl-sh/ruby-babl
106
105
  licenses:
107
106
  - MIT
data/lib/babl/version.rb DELETED
@@ -1,3 +0,0 @@
1
- module Babl
2
- VERSION = "0.1.0"
3
- end