hotplate 0.0.5 → 0.1.0

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: 922926ed4c06d4ce218551f67fb19c67b6782317
4
- data.tar.gz: 109efb1943b063dbed0364d18a2bdcb7cf83b0d3
3
+ metadata.gz: 70e40fd396efa824315fd177fb1273b632384c13
4
+ data.tar.gz: 29f7d3450f5134254f34ec5c3bd2d530ba346bfb
5
5
  SHA512:
6
- metadata.gz: d813ccd5f515e4e12dfe83689b0eed5782435438502405f1ef92da82e1698e69e254935a409be8010b00df7aa27e854ea32db89833837297e2364b6310f52348
7
- data.tar.gz: efc2d4132ac55d6b70589a308cff65861ac9984dde0b2f6a9f94c653d3b5078a0eb95aee515bf7d7b62c4d8b65a76bd7775e03c8fbada4e704d787a2c8b57dbf
6
+ metadata.gz: e45295a9f5b055f159d1ae312b588adb939bf6a1ee92c9e75f736f1d03c2a5916cb1eff1f339e10bb9e057693bc4b3791b670c4365f79090c7674577f93176f7
7
+ data.tar.gz: 233441b33a97b66eb7df95612dc3087a62739ac7f0fbe2a8f5512fc426ea299d29bd30ae2e6efcd65b147a274625137332b3f3fe5d6960fd283d19ac23c783b2
@@ -3,7 +3,7 @@ require 'FileUtils'
3
3
  def java
4
4
  puts "What is your Team Number? (0000)"
5
5
  team = gets.chop!.to_i.to_s # Ensures it's a proper number :)
6
- clazz = "#{@path}/src/main/java/frc/team#{team}/#{@name}/RobotModule.java"
6
+ clazz = "#{@path}/src/main/java/frc/team#{team}/#{@name.downcase}/RobotModule.java"
7
7
  jin = File.expand_path "../../java", __FILE__
8
8
  #puts Dir[jin]
9
9
  FileUtils.cp_r "#{jin}/.", @path
@@ -23,8 +23,11 @@ def java
23
23
  File.delete templ
24
24
 
25
25
  begin
26
- FileUtils.chmod 0777, %w(build.gradle, gradlew)
27
- rescue; end
26
+ FileUtils.chmod 0777, [File.join(@path, "gradlew"), File.join(@path, "build.gradle")]
27
+ rescue => e
28
+ puts "NOTE: Could not CHMOD gradle files"
29
+ puts e.backtrace
30
+ end
28
31
  end
29
32
 
30
33
  def javascript
@@ -28,6 +28,8 @@ end
28
28
 
29
29
  gemload "rubyzip"
30
30
 
31
+ puts "HotPlate CLI Version #{HotPlate::VERSION}"
32
+ puts
31
33
  puts "Error: No option selected!" unless ARGV.length > 0
32
34
  first_arg = ARGV.shift
33
35
 
@@ -1,3 +1,3 @@
1
1
  module HotPlate
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotplate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaci R
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler