ruby_connman 0.0.1 → 0.0.2
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/.idea/.rakeTasks +1 -1
- data/lib/ruby_connman/manager.rb +3 -3
- data/lib/ruby_connman/service.rb +1 -1
- data/lib/ruby_connman/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5406d78cf2e87f3cb6111276138f24905b0921cc
|
|
4
|
+
data.tar.gz: caeb1c7206fe875b975120646cd6c174a005064f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f8c94035b61d12bd0fc0f015d9b95213b7ff6e893f6f7c9fe03e91170028fe787349bd7ac7a30d8e20b10704605ee91fad186aecbbf8976e74ce4152abc1fb22
|
|
7
|
+
data.tar.gz: c75b0d522a26b9194fdc3252ffcd012964deab023dab442c52efdc79019d0f5a73bd949f511e60617e44ee4da0aa8094b24f7bc68f76e633366d926568469cfc
|
data/.idea/.rakeTasks
CHANGED
|
@@ -4,4 +4,4 @@ You are allowed to:
|
|
|
4
4
|
1. Remove rake task
|
|
5
5
|
2. Add existing rake tasks
|
|
6
6
|
To add existing rake tasks automatically delete this file and reload the project.
|
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build ruby_connman-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install ruby_connman-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push ruby_connman-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build ruby_connman-0.0.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Open an irb session preloaded with this library" fullCmd="console" taksId="console" /><RakeTask description="Build and install ruby_connman-0.0.1.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.0.1 and build and push ruby_connman-0.0.1.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
|
data/lib/ruby_connman/manager.rb
CHANGED
|
@@ -4,7 +4,7 @@ module RubyConnman
|
|
|
4
4
|
|
|
5
5
|
def initialize
|
|
6
6
|
@service_interface = RubyConnman::Bus.instance.service.object('/')
|
|
7
|
-
@service_interface.introspect
|
|
7
|
+
@service_interface = @service_interface.introspect
|
|
8
8
|
@service_interface = @service_interface['net.connman.Manager']
|
|
9
9
|
end
|
|
10
10
|
|
|
@@ -16,11 +16,11 @@ module RubyConnman
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def wifi_services
|
|
19
|
-
temp =
|
|
19
|
+
temp = []
|
|
20
20
|
interfaces = @service_interface.GetServices.first.select { |a| a[1]['Type'] == 'wifi' }
|
|
21
21
|
interfaces.each do |interface|
|
|
22
22
|
RubyConnman::Service.new(interface[0])
|
|
23
|
-
temp
|
|
23
|
+
temp.push(interface[0], interface[1])
|
|
24
24
|
end
|
|
25
25
|
temp
|
|
26
26
|
end
|
data/lib/ruby_connman/service.rb
CHANGED
data/lib/ruby_connman/version.rb
CHANGED