apiotics 0.1.39 → 0.1.40

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: caccd33ba9a69089748c851c848e5339e4fcdc99
4
- data.tar.gz: 6aef6c6de0c39a657707b9347c74dd5791da56c2
3
+ metadata.gz: a072c2cb3df5a9a9b8f79bd21f413d754a6efa90
4
+ data.tar.gz: cfb4c17f840bd5c99ba363a32ae87cc7519786e7
5
5
  SHA512:
6
- metadata.gz: bd0899b0b30ccc0759a4bcb4e7fbcf8a8ce92814280f79400c7042da075cf6f97d8cf88f8dd280c4acc8430ab1a65dcb272612f23c82fe02e9034993fe35adc9
7
- data.tar.gz: 94744e369a4d03157040fad1f900146b75dfcafd16575232f858561a28857b341ebc74486e2554b083519b43845cd56c1cb32c35c46e4e6596b146a7176ed738
6
+ metadata.gz: 9bf36e5669b4d8672f924c87e0f44f53b21298730d1df656cf389ba29b5b34cef7a38fc45f91e09b27f49ee2920a1ca4aec21f38fa1894aebb8aae281e2c31b2
7
+ data.tar.gz: 184ca48f00e7adac65ec51dfa81a06cfd5ddcbe21544806059305a00e99d828f9a40a8c959592e37de30aadf82a6be644ff9312b0d9eacaea379fa1e65d4db01
@@ -42,11 +42,16 @@ module Apiotics
42
42
  path = Rails.root.join('lib', 'openocd', 'openocd.tgz')
43
43
  msg = system("tar -xvzf #{path}")
44
44
  if msg == true
45
- #File.delete(path) if File.exist?(path)
45
+ File.delete(path) if File.exist?(path)
46
46
  end
47
47
  end
48
48
 
49
49
  def self.install_firmware(config_script, firmware_path, starting_address)
50
+ directory = Rails.root.join('lib', 'openocd', 'gnuarmeclipse')
51
+ unless Dir.exist?(directory)
52
+ self.save_openocd
53
+ self.unpack_openocd
54
+ end
50
55
  directory = Rails.root.join('lib', 'openocd', 'gnuarmeclipse', 'openocd')
51
56
  Dir.chdir directory
52
57
  version_folder = Dir['*/'].first[0..-2]
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.39'
2
+ VERSION = '0.1.40'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.39
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation