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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bbe35786e43233a8c85666f9aa9a275c25d7584
4
- data.tar.gz: ca449c9fbff417f6e7e67464ace39fc360a751e8
3
+ metadata.gz: 561a439d3accf19a1702592bd7af589740e8fcae
4
+ data.tar.gz: bd18119c0f54547d96f989c28fbaa88cbb727994
5
5
  SHA512:
6
- metadata.gz: 88fae1d42cd65474782d55bd858790437be5910551f20a332af874a7b4c630d42404a391b222719abc7fc695733fd7027cee2174cb17c1ad63932a3dcaedebdd
7
- data.tar.gz: 507d0783dfc7e3a26aadfdccc1d2c6c3c3b2d21e341218ae870f3f7b68aed82d9d0bedc697b68ea3cf5c585b6a0f38e48de7dfcaf0cb2b0128b9e8af0c940e82
6
+ metadata.gz: 22dc838d3bcfae51859c4ce6f71663e20ebc5fc5009452533ba1c584adbb05bef5fccf811cb53f87f020d4266c08c7f1a40bdf8a58508eee5f9580374756677a
7
+ data.tar.gz: fa3b43b63f4f4864d4f53dec07d29e52822aa8fae5dd49345d13e41470451a169374dd1c86400f818f5a804cd98a708e2cd4717b42e2a3786e6ad18b2b2b4f0e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: git-story-workflow 0.3.2 ruby lib
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.2"
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-03"
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]
@@ -4,15 +4,14 @@ module Git::Story::Setup
4
4
 
5
5
  MARKER = 'Installed by the git-story gem'
6
6
 
7
- PREPARE_COMMIT_MESSAGE_SRC =
8
- File.join(File.dirname(__FILE__), 'prepare-commit-msg')
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 = '.git/hooks/prepare-commit-msg'
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
@@ -1,6 +1,6 @@
1
1
  module Git::Story
2
2
  # Git::Story version
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2018-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar