domotics-arduino 0.0.4 → 0.0.07
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +21 -2
- data/lib/domotics/arduino/version.rb +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -8,7 +8,26 @@ end
|
|
8
8
|
desc "Run tests"
|
9
9
|
task :default => :test
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
PATCH = 2
|
12
|
+
MINOR = 1
|
13
|
+
MAJOR = 0
|
13
14
|
|
15
|
+
desc "Commit patch and release gem"
|
16
|
+
task :patch do
|
17
|
+
# add new files to repo
|
18
|
+
%x(git add --all .)
|
19
|
+
# commit if anything changes
|
20
|
+
unless %x(git commit -a --reuse-message=HEAD) =~ /nothing to commit/
|
21
|
+
# Update version
|
22
|
+
File.open "lib/domotics/arduino/version.rb", "r+" do |f|
|
23
|
+
up = f.read.sub(/\d+.\d+.\d+/){ |ver| ver.split('.').map.with_index{ |sv, i| i == PATCH ? sv.succ : sv }.join('.') }
|
24
|
+
f.seek 0
|
25
|
+
#f.write up
|
26
|
+
end
|
27
|
+
# release
|
28
|
+
Rake::Task[:release].reenable
|
29
|
+
Rake::Task[:release].invoke
|
30
|
+
else
|
31
|
+
puts "No changes"
|
32
|
+
end
|
14
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: domotics-arduino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.07
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: serialport
|