ruby_connman 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_connman/manager.rb +5 -0
- data/lib/ruby_connman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8663fc45f3ffea7c72fd29d6a2fcebba2b99af2
|
4
|
+
data.tar.gz: 71f26e9b070f0b80ff8af7129453a11ce1799e8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 878a2966476849f3f47e748bf454b230e4a2692c3ad7a6b3bd5ff71f3c8a67154d07799487036526a00d0ae34d7caf5f54e3b69198098436eadf9c654da88604
|
7
|
+
data.tar.gz: ec695f9adbd079ecf29e20b8d5d37a92dfa6cb1fdf81ae8db5bb1a2209da5b109a7140e2676cddcf5126da39e3086fe6fa625873198dd616ebe77ed81f08b781
|
data/lib/ruby_connman/manager.rb
CHANGED
@@ -24,5 +24,10 @@ module RubyConnman
|
|
24
24
|
end
|
25
25
|
temp
|
26
26
|
end
|
27
|
+
|
28
|
+
def get_interface(network_interface)
|
29
|
+
interface = @service_interface.GetServices.first.select { |a| a[1]['Ethernet']['Interface'] == network_interface }
|
30
|
+
(interface.empty?) ? nil : interface.first
|
31
|
+
end
|
27
32
|
end
|
28
33
|
end
|
data/lib/ruby_connman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_connman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Ward
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|