git-story-workflow 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/git-story-workflow.gemspec +3 -3
- data/lib/git/story/setup.rb +5 -5
- data/lib/git/story/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: 561a439d3accf19a1702592bd7af589740e8fcae
|
4
|
+
data.tar.gz: bd18119c0f54547d96f989c28fbaa88cbb727994
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22dc838d3bcfae51859c4ce6f71663e20ebc5fc5009452533ba1c584adbb05bef5fccf811cb53f87f020d4266c08c7f1a40bdf8a58508eee5f9580374756677a
|
7
|
+
data.tar.gz: fa3b43b63f4f4864d4f53dec07d29e52822aa8fae5dd49345d13e41470451a169374dd1c86400f818f5a804cd98a708e2cd4717b42e2a3786e6ad18b2b2b4f0e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/git-story-workflow.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: git-story-workflow 0.3.
|
2
|
+
# stub: git-story-workflow 0.3.3 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "git-story-workflow".freeze
|
6
|
-
s.version = "0.3.
|
6
|
+
s.version = "0.3.3"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "2018-01-
|
11
|
+
s.date = "2018-01-17"
|
12
12
|
s.description = "Gem abstracting a git workflow\u2026".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.executables = ["git-story".freeze]
|
data/lib/git/story/setup.rb
CHANGED
@@ -4,15 +4,14 @@ module Git::Story::Setup
|
|
4
4
|
|
5
5
|
MARKER = 'Installed by the git-story gem'
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
PREPARE_COMMIT_MESSAGE_DST =
|
10
|
-
'.git/hooks/prepare-commit-msg'
|
7
|
+
HOOKS_DIR = '.git/hooks'
|
8
|
+
PREPARE_COMMIT_MESSAGE_SRC = File.join(__dir__, 'prepare-commit-msg')
|
9
|
+
PREPARE_COMMIT_MESSAGE_DST = File.join(HOOKS_DIR, 'prepare-commit-msg')
|
11
10
|
|
12
11
|
module_function
|
13
12
|
|
14
13
|
def perform(force: false)
|
15
|
-
pcm =
|
14
|
+
pcm = PREPARE_COMMIT_MESSAGE_DST
|
16
15
|
if File.exist?(pcm)
|
17
16
|
if force
|
18
17
|
install_prepare_commit_msg
|
@@ -35,6 +34,7 @@ module Git::Story::Setup
|
|
35
34
|
end
|
36
35
|
|
37
36
|
def install_prepare_commit_msg
|
37
|
+
File.exist?(HOOKS_DIR) or mkdir_p(HOOKS_DIR)
|
38
38
|
cp PREPARE_COMMIT_MESSAGE_SRC, PREPARE_COMMIT_MESSAGE_DST
|
39
39
|
end
|
40
40
|
end
|
data/lib/git/story/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-story-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|