radius-toolbelt 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f72c26fce998cd0bf966124ece0f2fc3bc38098
4
- data.tar.gz: 564456b0d2133b9c67f9bac0be7a252582348229
3
+ metadata.gz: 88745cad8f98feb1c9fb3df0c9314807f6939c91
4
+ data.tar.gz: 133ae48889d92354c8fc47981231b162e4cd0c0a
5
5
  SHA512:
6
- metadata.gz: 3c7039f6f95f56d0c7daa3666d6b98969ed1d48e6ff8ed32bee7aae35ee0e970de9011712cff97b5011854a940422443268a694a40820351006ddede9ba5b5d9
7
- data.tar.gz: 1424d751816862dc59cf3bbd48cbf6ef86e82a66ab27815cdc9ab8121c7738c1a46fb516fa6481c637110b6ac80ad50fa2396ef5e13ff67a13dd3e7c976ad5ac
6
+ metadata.gz: 0dc16711f50bfad27aefe9d9ffdb5236296578bc3ae16550aaff3d82b64dd71f6ae03f56b8faa2f098232371a8d3d76a33134f9515993140c3c4fac8fabd0dd4
7
+ data.tar.gz: 54bdacd6721d7f8090c7fe551feb48f2d28bc8465c3bc3e217b68c825edd82d0bb3efbd04f8a5dfca0c0646ce8ef202fa6a041dd2dbee32ec9c87aa440790035
@@ -4,6 +4,12 @@ module Radius
4
4
  module Toolbelt
5
5
  module ReleaseHelpers
6
6
 
7
+ def tag_version(ver)
8
+ unless system("git tag v#{agvtool_version}")
9
+ fail "Error: the tag v#{agvtool_version} already exists on this repo."
10
+ end
11
+ end
12
+
7
13
  def replace(src, dest)
8
14
  FileUtils.copy_entry(src, dest, false, false, true)
9
15
  end
@@ -5,23 +5,39 @@ require_relative 'xcode_helpers'
5
5
  require_relative 'release_repo'
6
6
  require_relative 'release_github'
7
7
 
8
- task :git_clean_tree do
8
+ namespace :git do
9
+ task :clean do
9
10
 
10
- unless system("git diff-files --quiet --ignore-submodules --")
11
- fail "Error: There are unstaged changes in the working tree. You are trying to run a task that requires a clean git working tree"
12
- end
11
+ unless system("git diff-files --quiet --ignore-submodules --")
12
+ fail "Error: There are unstaged changes in the working tree. You are trying to run a task that requires a clean git working tree"
13
+ end
14
+
15
+ unless system("git diff-index --cached --quiet HEAD --ignore-submodules --")
16
+ fail "Error: Uncommitted changes in the index. You are trying to run a task that requires a clean git working tree"
17
+ end
13
18
 
14
- unless system("git diff-index --cached --quiet HEAD --ignore-submodules --")
15
- fail "Error: Uncommitted changes in the index. You are trying to run a task that requires a clean git working tree"
16
19
  end
17
20
 
18
- end
21
+ task :version_tag do
19
22
 
20
- task :git_version_tag => :git_clean_tree do
23
+ unless `git describe --exact-match --tags HEAD`.chomp.include?(agvtool_version)
24
+ fail "Error: The current git HEAD does not have a tag that matches \"#{agvtool_version}\". You are trying to run a task that requires a matching tag on the current git ref."
25
+ end
21
26
 
22
- unless `git describe --exact-match --tags HEAD`.chomp.include?(agvtool_version)
23
- fail "Error: The current git HEAD does not have a tag that matches \"#{agvtool_version}\". You are trying to run a task that requires a matching tag on the current git ref."
24
27
  end
25
-
26
28
  end
27
29
 
30
+ namespace :version do
31
+ desc "Bump the version to the next patch number"
32
+ task :bump do
33
+ sh "agvtool next-version -increment-minor-version"
34
+ end
35
+
36
+ desc "Set the version via `rake version:set version=\"1.0.0\""
37
+ task :set, [:version] do |t, args|
38
+ v = args[:version]
39
+ fail "Error: no version specified" unless v
40
+
41
+ sh "xcrun agvtool new-version #{v}"
42
+ end
43
+ end
@@ -1,5 +1,5 @@
1
1
  module Radius
2
2
  module Toolbelt
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radius-toolbelt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radius Networks
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-02 00:00:00.000000000 Z
13
+ date: 2015-04-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake