domotics-arduino 0.0.10 → 0.1.00

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 CHANGED
@@ -18,10 +18,29 @@ task :patch, :commit_message do |t, args|
18
18
  end
19
19
 
20
20
  desc "Commit minor update and release gem"
21
- task :minor do
22
- update { |sv,i| i == PATCH ? sv.succ : sv }
21
+ task :minor, :commit_message do |t, args|
22
+ update(args[:commit_message]) do |sv,i|
23
+ case i
24
+ when MINOR then sv.succ
25
+ when PATCH then "00"
26
+ else sv
27
+ end
28
+ end
23
29
  end
24
30
 
31
+ desc "Commit major update and release gem"
32
+ task :major, :commit_message do |t, args|
33
+ update(args[:commit_message]) do |sv,i|
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
41
+ end
42
+
43
+
25
44
  def update(msg)
26
45
  # Update version
27
46
  File.open "lib/domotics/arduino/version.rb", "r+" do |f|
@@ -1,5 +1,5 @@
1
1
  module Domotics
2
2
  module Arduino
3
- VERSION = "0.0.10"
3
+ VERSION = "0.1.00"
4
4
  end
5
5
  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.10
4
+ version: 0.1.00
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: