git-commit-autouser 0.0.2 → 0.0.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: 3afea5f68d7e6caaf6ed25075009efdad1dedf59
4
- data.tar.gz: dc98550c101c6fa2790e8b95075294e9b4f7dc98
3
+ metadata.gz: 682e46a84920dce2caa356aafb5ec805939cf4fe
4
+ data.tar.gz: 6cacd1aec97277e4e0509d6bdee1205e1f3bd22b
5
5
  SHA512:
6
- metadata.gz: 76156ad7346fc47851a666fe2e703ef996db547a8379e244a4108a0309e4c3eebf36f1c15331ac365c5a5f989a6f247bb41bcd24c820b6b902758b698ebef6b7
7
- data.tar.gz: 2751947a011ccaa9aa913dc3c1d8cc32fd7ada0e57badedfed673a4700d7257b90ee897d868a0034d9c669e6f48507730fa11bb169e7a42a47f290e2d4f4c7f4
6
+ metadata.gz: 29a71b3cf6195426f249a95dd3ba8d8afff1dd5add842fc88fb02908a3d9c0830b6fc31af1122bd60337b9a42d63da01e222593810e5dd6bf3bd12434a7c4e1c
7
+ data.tar.gz: 550178bdcbae62d4e13cb1f4bebb441f6fbe2834ceed420e80e875549c13a2ef0f6d7e86897886ff7f83f6c17571d4331b4c5693fc7c5a56ea7bae62344a8538
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.0.0"
4
+ - "1.9.3"
5
+ script:
6
+ - bundle exec rspec
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # git-commit-autouser
1
+ # git-commit-autouser [![Build Status](https://travis-ci.org/ryotarai/git-commit-autouser.png?branch=master)](https://travis-ci.org/ryotarai/git-commit-autouser)
2
2
 
3
3
  git-commit-autouser sets name and email of committer and author automatically. The name and email are determined by the url of the remote origin.
4
4
 
@@ -20,6 +20,4 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "bundler", "~> 1.3"
21
21
  spec.add_development_dependency "rake"
22
22
  spec.add_development_dependency "rspec"
23
- spec.add_development_dependency "pry"
24
- spec.add_development_dependency "pry-debugger"
25
23
  end
@@ -24,6 +24,9 @@ module GitCommitAutouser
24
24
  "GIT_AUTHOR_NAME" => matched.name,
25
25
  "GIT_AUTHOR_EMAIL" => matched.email,
26
26
  }
27
+
28
+ env["HUB_CONFIG"] = matched.hub_config if matched.hub_config
29
+
27
30
  system env, "git", "commit", *argv
28
31
  exit $?.exitstatus
29
32
  end
@@ -1,7 +1,7 @@
1
1
  module GitCommitAutouser
2
2
  class Config
3
3
  USER_CONFIG_PREFIX = "autouser-"
4
- User = Struct.new(:url_regexp, :name, :email)
4
+ User = Struct.new(:url_regexp, :name, :email, :hub_config)
5
5
 
6
6
  def self.users
7
7
  config = {}
@@ -18,6 +18,7 @@ module GitCommitAutouser
18
18
  u.url_regexp = Regexp.new(c["url-regexp"])
19
19
  u.name = c["name"]
20
20
  u.email = c["email"]
21
+ u.hub_config = File.expand_path(c["hub_config"])
21
22
  end
22
23
  end
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module GitCommitAutouser
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,83 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-commit-autouser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-22 00:00:00.000000000 Z
11
+ date: 2014-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: pry
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-debugger
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
52
+ - - ">="
81
53
  - !ruby/object:Gem::Version
82
54
  version: '0'
83
55
  description:
@@ -88,8 +60,9 @@ executables:
88
60
  extensions: []
89
61
  extra_rdoc_files: []
90
62
  files:
91
- - .gitignore
92
- - .rspec
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
93
66
  - Gemfile
94
67
  - LICENSE.txt
95
68
  - README.md
@@ -114,6 +87,10 @@ files:
114
87
  - spec/git-repo/hooks/prepare-commit-msg.sample
115
88
  - spec/git-repo/hooks/update.sample
116
89
  - spec/git-repo/info/exclude
90
+ - spec/git-repo/objects/info/.gitkeep
91
+ - spec/git-repo/objects/pack/.gitkeep
92
+ - spec/git-repo/refs/heads/.gitkeep
93
+ - spec/git-repo/refs/tags/.gitkeep
117
94
  - spec/lib/git_commit_autouser/git_spec.rb
118
95
  - spec/spec_helper.rb
119
96
  - spec/support/helpers.rb
@@ -127,17 +104,17 @@ require_paths:
127
104
  - lib
128
105
  required_ruby_version: !ruby/object:Gem::Requirement
129
106
  requirements:
130
- - - '>='
107
+ - - ">="
131
108
  - !ruby/object:Gem::Version
132
109
  version: '0'
133
110
  required_rubygems_version: !ruby/object:Gem::Requirement
134
111
  requirements:
135
- - - '>='
112
+ - - ">="
136
113
  - !ruby/object:Gem::Version
137
114
  version: '0'
138
115
  requirements: []
139
116
  rubyforge_project:
140
- rubygems_version: 2.0.3
117
+ rubygems_version: 2.2.2
141
118
  signing_key:
142
119
  specification_version: 4
143
120
  summary: git-commit with setting name and email automatically
@@ -155,6 +132,10 @@ test_files:
155
132
  - spec/git-repo/hooks/prepare-commit-msg.sample
156
133
  - spec/git-repo/hooks/update.sample
157
134
  - spec/git-repo/info/exclude
135
+ - spec/git-repo/objects/info/.gitkeep
136
+ - spec/git-repo/objects/pack/.gitkeep
137
+ - spec/git-repo/refs/heads/.gitkeep
138
+ - spec/git-repo/refs/tags/.gitkeep
158
139
  - spec/lib/git_commit_autouser/git_spec.rb
159
140
  - spec/spec_helper.rb
160
141
  - spec/support/helpers.rb