octopando 0.2.0 → 0.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/lib/octopando/cli.rb +8 -5
- data/lib/octopando/version.rb +1 -1
- data/octopando.gemspec +5 -5
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82c8d0465410af7935745379781174ee9c550681
|
4
|
+
data.tar.gz: 9ce07a05ed370480a8663ea94399cd17f270134f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88d4ec227c379f484d6be50e98eb5cbeca6b2c7fcaaa04a14b3310abb94a7abef81cb2d76d30bb67ed55dd8c4ead610fc682c6fba29a2dccf90730bd8bc6235d
|
7
|
+
data.tar.gz: 37bef10e4ddf3e8e6410b94d223be6f1195837c3c33d2457e92801ff3637cd3918db530ccd0b84c71f79a32c23b80988d86af23e2826a9d434e8de4e25cbfcaa
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
|
5
|
+
## [0.2.1] - 2015-06-26
|
6
|
+
### Added
|
7
|
+
- Added link to jira in start action
|
8
|
+
- Added Change log
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
- Patch version bump
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
- No longer adds to the commit message if there is a Change-Id
|
15
|
+
- No longer dies when the jira description is empty
|
data/lib/octopando/cli.rb
CHANGED
@@ -6,7 +6,7 @@ module Octopando
|
|
6
6
|
desc "start", "Start some work"
|
7
7
|
def start
|
8
8
|
Octopando.jira.my_issues.each_with_index do |issue, index|
|
9
|
-
puts %Q{#{index+1} #{issue.key} - #{issue.summary}}
|
9
|
+
puts %Q{#{index+1} #{issue.key} - #{issue.summary}\n\t<https://instructure.atlassian.net/browse/#{issue.key}>}
|
10
10
|
end
|
11
11
|
|
12
12
|
ticket_item = ask ("Select a ticket") { |q| q.echo = true }
|
@@ -15,6 +15,10 @@ module Octopando
|
|
15
15
|
|
16
16
|
desc "prepare_commit_msg", "used for git hook"
|
17
17
|
def prepare_commit_msg(message_file)
|
18
|
+
original_file_contents = File.read(message_file)
|
19
|
+
# we dont want to modify messages that have already been generated
|
20
|
+
|
21
|
+
return if original_file_contents.match('Change-Id: I')
|
18
22
|
temp_message_file = "#{message_file}.tmp"
|
19
23
|
|
20
24
|
git_branch = `git rev-parse --abbrev-ref HEAD`
|
@@ -24,14 +28,13 @@ module Octopando
|
|
24
28
|
ticket_number = parsed_branch[:ticket]
|
25
29
|
|
26
30
|
issue = Octopando.jira.Issue.find(ticket_number)
|
27
|
-
|
28
31
|
message_template = []
|
29
32
|
|
30
33
|
message_template << issue.summary if commit_type == 'issue'
|
31
34
|
message_template << ''
|
32
|
-
message_template << WordWrap.ww(issue.description, 72)
|
35
|
+
message_template << WordWrap.ww(issue.description || '', 72)
|
33
36
|
message_template << ''
|
34
|
-
message_template << "
|
37
|
+
message_template << "Fixes #{ticket_number}"
|
35
38
|
message_template << "# <https://instructure.atlassian.net/browse/#{ticket_number}>"
|
36
39
|
message_template << ''
|
37
40
|
message_template << 'Test Plan: '
|
@@ -40,7 +43,7 @@ module Octopando
|
|
40
43
|
File.open(temp_message_file, 'w') do |file|
|
41
44
|
file << message_template.join("\n")
|
42
45
|
file << "\n"
|
43
|
-
file <<
|
46
|
+
file << original_file_contents
|
44
47
|
end
|
45
48
|
|
46
49
|
File.rename(temp_message_file, message_file)
|
data/lib/octopando/version.rb
CHANGED
data/octopando.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.
|
22
|
-
spec.
|
23
|
-
spec.
|
24
|
-
spec.
|
25
|
-
spec.
|
21
|
+
spec.add_runtime_dependency "git", "~> 1.2"
|
22
|
+
spec.add_runtime_dependency "jira-ruby", "~> 0.1"
|
23
|
+
spec.add_runtime_dependency "ruby-keychain", "~> 0.2"
|
24
|
+
spec.add_runtime_dependency "thor", "~> 0.19"
|
25
|
+
spec.add_runtime_dependency "word_wrap", "~> 1.0"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.10"
|
28
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopando
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- defektive
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -119,6 +119,7 @@ extra_rdoc_files: []
|
|
119
119
|
files:
|
120
120
|
- ".gitignore"
|
121
121
|
- ".travis.yml"
|
122
|
+
- CHANGELOG.md
|
122
123
|
- Gemfile
|
123
124
|
- LICENSE.txt
|
124
125
|
- README.md
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
version: '0'
|
153
154
|
requirements: []
|
154
155
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.4.8
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: Makes your life easier
|