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 +4 -4
- data/lib/radius/toolbelt/release_helpers.rb +6 -0
- data/lib/radius/toolbelt/tasks.rb +27 -11
- data/lib/radius/toolbelt/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: 88745cad8f98feb1c9fb3df0c9314807f6939c91
|
4
|
+
data.tar.gz: 133ae48889d92354c8fc47981231b162e4cd0c0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
8
|
+
namespace :git do
|
9
|
+
task :clean do
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
21
|
+
task :version_tag do
|
19
22
|
|
20
|
-
|
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
|
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.
|
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-
|
13
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|