revision 1.1.4 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/revision/cli.rb +0 -1
- data/lib/revision/releasable.rb +11 -11
- data/lib/revision/version.rb +11 -1
- data/revision.gemspec +0 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55b3b63b9295116b52dbcac518a8789c5fe8e7c5
|
4
|
+
data.tar.gz: be8782476acbecaf6b6f9d303093af3ddd0bfb97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6969897886cbab7ebbcf2afd045767973377fe0681aa9d2df8966259772d3c7ebd8a15fe9288ac0307cdcfe1c5cd2a9702084cbef7dfef7712f3d170bb588587
|
7
|
+
data.tar.gz: 0e5f2227fa5202cadacf356dae567f9424b828b8773df96c3dfd38bd2e54f272d646670a4f0d22674c8788cbab041224bc4a27b337d3d1ad2bbb7f03d2777261
|
data/lib/revision/cli.rb
CHANGED
data/lib/revision/releasable.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
require 'yaml'
|
3
3
|
require 'zip'
|
4
|
-
require '
|
4
|
+
# require 'rugged'
|
5
5
|
|
6
6
|
module Revision
|
7
7
|
|
@@ -47,6 +47,12 @@ module Revision
|
|
47
47
|
releasables
|
48
48
|
end
|
49
49
|
|
50
|
+
# def git_repo
|
51
|
+
# @git_repo ||= Rugged::Repository.discover('.')
|
52
|
+
# puts 'WARNING: No git repo found in this directory or its ancestors' if @git_repo.nil?
|
53
|
+
# @git_repo
|
54
|
+
# end
|
55
|
+
|
50
56
|
def initialize(root: nil, config: {})
|
51
57
|
|
52
58
|
root ||= Dir.getwd
|
@@ -92,25 +98,19 @@ module Revision
|
|
92
98
|
commit_lines += changelog_entry[2..-1]
|
93
99
|
end
|
94
100
|
commit_message = commit_lines.join("\n")
|
95
|
-
g = Git.init
|
96
101
|
puts "Committing..."
|
97
102
|
puts commit_message
|
98
|
-
|
103
|
+
system("git commit -a -m \"#{commit_message}\"")
|
99
104
|
puts "Tagging as #{tag_id}"
|
100
|
-
|
105
|
+
system("git tag -a #{tag_id} -m \"#{changelog_entry.join("\n")}\"")
|
101
106
|
end
|
102
107
|
end
|
103
108
|
|
104
109
|
def push
|
105
110
|
pushed = false
|
106
111
|
Dir.chdir(@root) do
|
107
|
-
|
108
|
-
|
109
|
-
g.push('origin', g.current_branch, tags: true)
|
110
|
-
pushed = true
|
111
|
-
rescue GitExecuteError => e
|
112
|
-
puts "ERROR :: Cannot push to origin :: #{e}"
|
113
|
-
end
|
112
|
+
pushed = system("git push") && system("git push --tags")
|
113
|
+
puts "ERROR :: Failed to push to remote" unless pushed
|
114
114
|
end
|
115
115
|
pushed
|
116
116
|
end
|
data/lib/revision/version.rb
CHANGED
@@ -1,10 +1,20 @@
|
|
1
1
|
# Defines the revision ID for the revision gem
|
2
2
|
module Revision
|
3
|
-
VERSION = "1.1.
|
3
|
+
VERSION = "1.1.7"
|
4
4
|
end
|
5
5
|
|
6
6
|
# <BEGIN CHANGELOG>
|
7
7
|
#
|
8
|
+
# Version 1.1.7 (15 Dec 2017)
|
9
|
+
# - Corrected push -- was pushing tags without commit
|
10
|
+
#
|
11
|
+
# Version 1.1.6 (15 Dec 2017)
|
12
|
+
# - Added full changelog entry as tag message
|
13
|
+
# - Removed ruby-git dependency from gemspec
|
14
|
+
#
|
15
|
+
# Version 1.1.5 (15 Dec 2017)
|
16
|
+
# - Replaced ruby-git library with shell calls, as wasn't handling submodules correctly
|
17
|
+
#
|
8
18
|
# Version 1.1.4 (14 Dec 2017)
|
9
19
|
# - Minor message body reformatting
|
10
20
|
#
|
data/revision.gemspec
CHANGED
@@ -31,7 +31,6 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.add_runtime_dependency 'thor', '~> 0.19.1'
|
33
33
|
spec.add_runtime_dependency 'rubyzip'
|
34
|
-
spec.add_runtime_dependency 'git'
|
35
34
|
|
36
35
|
spec.add_development_dependency "bundler", "~> 1.16"
|
37
36
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: revision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cormac Cannon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: git
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: bundler
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|