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 +4 -4
- data/babl.gemspec +2 -2
- data/bin/babl-rpc_darwin_amd64 +0 -0
- data/bin/babl-rpc_linux_amd64 +0 -0
- data/lib/babl.rb +4 -3
- metadata +1 -2
- data/lib/babl/version.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1641d06ad7919dea5e8f35e357ec3bdd817067bc
|
|
4
|
+
data.tar.gz: dd055fbca5a62c0835580288613d5731b72956a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
4
|
+
require 'babl'
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "babl"
|
|
8
|
-
spec.version = Babl
|
|
8
|
+
spec.version = Babl.version
|
|
9
9
|
spec.authors = ["Lars Kluge"]
|
|
10
10
|
spec.email = ["l@larskluge.com"]
|
|
11
11
|
|
data/bin/babl-rpc_darwin_amd64
CHANGED
|
Binary file
|
data/bin/babl-rpc_linux_amd64
CHANGED
|
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.
|
|
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