match 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c0f9786bd1163d37e0f4ee1f96b2597d839ec5d
4
- data.tar.gz: 2d41389a1fe003263e6a53d71f290e70d3bf134d
3
+ metadata.gz: ea4c701177bd31de78be94443bc165fe45aef76e
4
+ data.tar.gz: 647df7debb09ad10b496765922c2b982d682f294
5
5
  SHA512:
6
- metadata.gz: d225f09935f20e35d143086b6598aa90edb29bbb38cbe84548ff203d89827f40f0dad50309922c500d77bdf2b7afd8a360f98d0031d11ff4575b43def3aa39fd
7
- data.tar.gz: 794d25bfeec94e8c1804dc9ec5526d5e785efeacb94a5cf14919640c9d731ec5898242d247eced944b99528961f4eb58aee170ffe867924b05a34025cce0db90
6
+ metadata.gz: 8b8c85996835024b81e14607b7289ef200bf27471baa86920e3cbc0ad00d3ffa57093f81606e40edfe5dcfe175623970c0922c86bbe16f5c52bb0e2c4831d48c
7
+ data.tar.gz: de5bceba5f78c4ccb55a4957f2a74b8fdeb34f6450aad2772d46772289f6930250aaf0e3d2aad4baf42c77f32cc6e5dc6fcbe26fdcf486c792cd8fa0d3aa668d
@@ -14,9 +14,7 @@ module Match
14
14
 
15
15
  raise "Error cloning repo, make sure you have access to it '#{git_url}'".red unless File.directory?(@dir)
16
16
 
17
- copy_readme(@dir)
18
-
19
- if !Helper.test? and GitHelper.match_version(@dir).nil? and manual_password.nil?
17
+ if !Helper.test? and GitHelper.match_version(@dir).nil? and manual_password.nil? and File.exist?(File.join(@dir, "README.md"))
20
18
  UI.important "Migrating to new match..."
21
19
  ChangePassword.update(params: { git_url: git_url,
22
20
  shallow_clone: shallow_clone },
@@ -24,6 +22,8 @@ module Match
24
22
  to: Encrypt.new.password(git_url))
25
23
  return self.clone(git_url, shallow_clone)
26
24
  end
25
+
26
+ copy_readme(@dir)
27
27
  Encrypt.new.decrypt_repo(path: @dir, git_url: git_url, manual_password: manual_password)
28
28
 
29
29
  return @dir
data/lib/match/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Match
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  DESCRIPTION = "Easily sync your certificates and profiles across your team using git"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: match
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-20 00:00:00.000000000 Z
11
+ date: 2015-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: security