arduino_sketch_builder 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f82dae0085b54f68c8289afb826a1ecf04358f17
4
- data.tar.gz: 9cbfff32a488a0ed397f049b5b384eb7f5136477
3
+ metadata.gz: d600ee15f2408df5f6c32a72fa3130b9fa3b7e5b
4
+ data.tar.gz: f2903e1489eef91b0f5599395e6eea371da4c8c2
5
5
  SHA512:
6
- metadata.gz: 1f3efede1b98b9a2ec323f85366ce9fc25bc2550851f6601126c7f7267c0c1d9345193df1572852e9af724dfa2e57ae5f80e46ad899f1b3659d6166683574f3f
7
- data.tar.gz: 4d160df5b0a6cb8a1b045d1865452a43d8010a879d82a179dbf73431d8d602613396b42ca14bddacdd5860eacec2b12cbd325afa99b8fa258b921a020996e8e6
6
+ metadata.gz: 8775a172a8c11e68d86baca3e7525d6bead6fc74822dddcca2e82b77cf1ed610fcbc82953e3845232f48bfdbfb8da9453d14929fa562ff35924f314b1806207e
7
+ data.tar.gz: 7dbc2627b9c6e45869084b42f0c07c81595050deccf229390203b7dc3c71448f48c4b9d1279fbd3f78415045c6b00388be38e8a3cef304f6103320b2e5500e12
data/README.md CHANGED
@@ -111,6 +111,9 @@ You can also change them by setting ARDUINO_DEFAULT_BOARD and ARDUINO_DEFAULT_PO
111
111
  # arduino_sketch_builder.message gives message such as error message in case of failure.
112
112
  state = arduino_sketch_builder.build_and_upload
113
113
 
114
+ # In the case of error, resetting by cleaning up build directory and setting the state to :initial
115
+ arduino_sketch_builder.reset
116
+
114
117
  ### Example of code with more control
115
118
 
116
119
  #### Setting up the directory structure - like the one above under cmake directory
@@ -174,7 +177,11 @@ If Arduino board type and port are different from the default,
174
177
  # Success: state == :make_upload_complete
175
178
  # Failure: state == :make_upload_incomplete
176
179
  # arduino_cmake_build.message gives message such as error message in case of failure.
177
- state = arduino_cmake_build.make_upload
180
+ state = arduino_cmake_build.make_upload
181
+
182
+ ##### In the case of error, resetting by cleaning up build directory and setting the state to :initial
183
+
184
+ arduino_cmake_build.reset
178
185
 
179
186
  ## TODOS
180
187
 
@@ -66,7 +66,7 @@ class ArduinoSketchBuilder::ArduinoCmakeBuild
66
66
 
67
67
  def reset
68
68
 
69
- FileUtils.rm_rf(Dir.glob("#{BUILD_DIRECTORY}/*"))
69
+ FileUtils.rm_rf(Dir.glob("#{@build_directory}/*"))
70
70
  @state = INITIAL
71
71
 
72
72
  self.state
@@ -1,3 +1,3 @@
1
1
  module ArduinoSketchBuilder
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arduino_sketch_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tadatoshi Takahashi