repo-fixture 1.0.1 → 1.0.2

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: dd568f7364aa01bdad9414c8dc9848c9da4dfdbc
4
- data.tar.gz: 9c7b1f21bb054c7286f2f5f6307b450f329b7927
3
+ metadata.gz: 1ab208882b56c18f371c2a442f99b0faa78de506
4
+ data.tar.gz: e990fae52840f91431b1ec31990a3418935eddf2
5
5
  SHA512:
6
- metadata.gz: 61229bde788934f097aa1eb124157129ce7137015be1eca4ebd0a0f6311c0d7332ff561fd945a476c6f0abc5aeae888e9366c08a7c0ad6ebbdcdac686701cab5
7
- data.tar.gz: ce135e5844b568c082cb9ed5c6f5e8e8084326cba8b90c0aea1a8f3f366362afe2fa8281c8cef7774df3a5f364d075f1da40ca11ead2382b3f053fa29f4ddb59
6
+ metadata.gz: 4744411f6a2eb31a19bf1eb2f06b322b853d523db823401f01b79bc9606e71e70fb02cdb16fa37671767d8719dffb30db8438e42060ef22e12c73afaa9e7cd5b
7
+ data.tar.gz: 2ad1085b128deefbf46111c6c2c5ba768c222306da388d2ea7575987cd1b6286b3081958aaea6956b0e0bc6355e7c2719264c63041e493243ca9f6364f9fb2ab
data/History.txt CHANGED
@@ -5,3 +5,7 @@
5
5
  == 1.0.1
6
6
 
7
7
  * Configure fake git username and email.
8
+
9
+ == 1.0.2
10
+
11
+ * Only configure fake git username and email if not already configured.
@@ -11,8 +11,14 @@ module RepoFixture
11
11
 
12
12
  def initialize(repo)
13
13
  @repo = repo
14
- repo.git('config --global user.email "fake@example.com"')
15
- repo.git('config --global user.name "Fake Person"')
14
+
15
+ if repo.git('config --global user.email').strip.empty?
16
+ repo.git('config --global user.email "fake@example.com"')
17
+ end
18
+
19
+ if repo.git('config --global user.name').strip.empty?
20
+ repo.git('config --global user.name "Fake Person"')
21
+ end
16
22
  end
17
23
 
18
24
  # Copies files into the repo.
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module RepoFixture
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repo-fixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-10 00:00:00.000000000 Z
11
+ date: 2015-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tmp-repo