device_api 1.0.1 → 1.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/README.md +1 -2
- data/device_api.gemspec +1 -1
- data/lib/device_api.rb +4 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7a7b5bdf93302ec152db1dbff698bf90532af91
|
4
|
+
data.tar.gz: bbf0220af586c7b03e86cc5d724c5b747072519b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 199a54bc7f753adfffedf17d9b3c4c16a7dfd1bc7f541cdbbc24fdb6117eb32fd325054648ffdd2872597c4993cf2e82a290f6a65ae53a55ad100eb15399cc3a
|
7
|
+
data.tar.gz: f2c5fcd7cd129cd1d25934c09267126ea6743efe79b81b83a4551c1214f6381d0f62cfff9bab05804016e66a4e75661fc36426124ea4133e6ca1ef76727887f4
|
data/README.md
CHANGED
@@ -17,6 +17,7 @@ common execution and logging methods, and the base Device class.
|
|
17
17
|
## Testing
|
18
18
|
|
19
19
|
Tests are written in rspec, you can run them with:
|
20
|
+
|
20
21
|
bundle install
|
21
22
|
bundle exec rspec
|
22
23
|
|
@@ -49,8 +50,6 @@ And also expose functionality through the same object:
|
|
49
50
|
|
50
51
|
## License
|
51
52
|
|
52
|
-
## License
|
53
|
-
|
54
53
|
*DeviceAPI* is available to everyone under the terms of the MIT open source
|
55
54
|
licence. Take a look at the LICENSE file in the code.
|
56
55
|
|
data/device_api.gemspec
CHANGED
data/lib/device_api.rb
CHANGED
@@ -3,6 +3,9 @@ require 'device_api/sys_log'
|
|
3
3
|
module DeviceAPI
|
4
4
|
attr_accessor :log
|
5
5
|
|
6
|
+
class UnauthorizedDevice < StandardError; end
|
7
|
+
class DeviceNotFound < StandardError; end
|
8
|
+
|
6
9
|
@@log = DeviceAPI::SysLog.new
|
7
10
|
|
8
11
|
def self.set_logger(log)
|
@@ -12,4 +15,4 @@ module DeviceAPI
|
|
12
15
|
def self.log
|
13
16
|
@@log
|
14
17
|
end
|
15
|
-
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: device_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -62,9 +62,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
64
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.
|
65
|
+
rubygems_version: 2.5.0
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Physical Device Management API
|
69
69
|
test_files: []
|
70
|
-
has_rdoc:
|