apiotics 0.1.73 → 0.1.74

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: 981f9c757ba4584ed5711772394e956f8bcbe3b7
4
- data.tar.gz: 755bd6b09ca051bbf72f1def64b81c13c70f68f1
3
+ metadata.gz: 6255d1c5ca79c434806f2b8a35abfb5de65a78eb
4
+ data.tar.gz: aff4774c3edec3fdc20160f0d6864d4106060bac
5
5
  SHA512:
6
- metadata.gz: d961359ca254210060b14f8507e71cb7a0bb4c785862d608c74e94e50f6f61e9b327f0ebd0fc6ff3c49890caeea6aa8d63274a046c17f94654849fc32b8a6f70
7
- data.tar.gz: 0a8277f0bf6bff17e3fea8d84ae00ba55322381dfcec02b518a9547bc02b802b1d1ce6993c022a2c07406e2aff1a2a7e38d3b8f67403c4bfe86c597b0f5838b9
6
+ metadata.gz: ffe8fb115b811e72cd7e2a0eb126ddc8e7d44dd9cd6bbb3d593226bd7ca2e669cad22f9464ad2a7d24f3c476d76e41811a1d6ebdff8649230fb354c94a77926e
7
+ data.tar.gz: 56f0aebdf7727bb8d1c07d16a7ea7563c6551c50bc4b99b420f6ffff269d74aaed494675cdf88bf645a45c6706e7199065fccbdc8bbcbc5f9c9bc6d750791693
@@ -75,6 +75,7 @@ module Apiotics
75
75
  end
76
76
 
77
77
  def self.openocd(worker_name, name)
78
+ msg = ""
78
79
  download_directory = Rails.root.join('lib', 'openocd')
79
80
  Dir.mkdir download_directory unless Dir.exist?(download_directory)
80
81
  download_directory = Rails.root.join('lib', 'openocd', 'downloads')
@@ -114,6 +115,9 @@ module Apiotics
114
115
  data.close
115
116
  end
116
117
  msg = self.install_firmware(config["openocd_config_file_name"], path, config["openocd_start_address"])
118
+ else
119
+ k = Apiotics.configuration.targets.keys
120
+ msg = "Worker could not be found. The workers associated with your Hive are: #{k.join(',')}"
117
121
  end
118
122
  return msg
119
123
  end
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.73'
2
+ VERSION = '0.1.74'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.73
4
+ version: 0.1.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails