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 +4 -4
- data/lib/hotplate/cli/init.rb +6 -3
- data/lib/hotplate/cli/main.rb +2 -0
- data/lib/hotplate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e40fd396efa824315fd177fb1273b632384c13
|
4
|
+
data.tar.gz: 29f7d3450f5134254f34ec5c3bd2d530ba346bfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45295a9f5b055f159d1ae312b588adb939bf6a1ee92c9e75f736f1d03c2a5916cb1eff1f339e10bb9e057693bc4b3791b670c4365f79090c7674577f93176f7
|
7
|
+
data.tar.gz: 233441b33a97b66eb7df95612dc3087a62739ac7f0fbe2a8f5512fc426ea299d29bd30ae2e6efcd65b147a274625137332b3f3fe5d6960fd283d19ac23c783b2
|
data/lib/hotplate/cli/init.rb
CHANGED
@@ -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,
|
27
|
-
rescue
|
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
|
data/lib/hotplate/cli/main.rb
CHANGED
data/lib/hotplate/version.rb
CHANGED
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
|
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-
|
11
|
+
date: 2015-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|