domotics-arduino 0.1.00 → 0.1.1
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.
- data/Rakefile +2 -9
- data/lib/domotics/arduino/version.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ task :minor, :commit_message do |t, args|
|
|
22
22
|
update(args[:commit_message]) do |sv,i|
|
23
23
|
case i
|
24
24
|
when MINOR then sv.succ
|
25
|
-
when PATCH then "
|
25
|
+
when PATCH then "0"
|
26
26
|
else sv
|
27
27
|
end
|
28
28
|
end
|
@@ -30,14 +30,7 @@ end
|
|
30
30
|
|
31
31
|
desc "Commit major update and release gem"
|
32
32
|
task :major, :commit_message do |t, args|
|
33
|
-
update(args[:commit_message])
|
34
|
-
case i
|
35
|
-
when MAJOR then sv.succ
|
36
|
-
when MINOR then "0"
|
37
|
-
when PATCH then "00"
|
38
|
-
else sv
|
39
|
-
end
|
40
|
-
end
|
33
|
+
update(args[:commit_message]){ |sv,i| i == MAJOR ? sv.succ : "0" }
|
41
34
|
end
|
42
35
|
|
43
36
|
|