tachikoma 3.0.5 → 3.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tachikoma/version.rb +1 -1
- data/lib/tasks/app.rake +11 -5
- 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: d66c63e994700ac9b67781047a7a904668fbd787
|
4
|
+
data.tar.gz: 62f13ea6ec6e371e7af46ae2cb978d9f55a8c53f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0deb38fc3ae392decac56f5e24897970e699dab4070eccd52dbd88b90f70e1d642279970de81ea1aae18faef5dc37cf56eaf5220caac108dd96142d8ce5dc47
|
7
|
+
data.tar.gz: f647ce3700198d3ce2cc07ab1d0f5319345fb625317aa4d8247182c9c7b654d7e613dd34cbf13c2eea85328c29f258a86c73caab5e626e4acac8b4e6071667e7
|
data/lib/tachikoma/version.rb
CHANGED
data/lib/tasks/app.rake
CHANGED
@@ -14,9 +14,10 @@ namespace :tachikoma do
|
|
14
14
|
|
15
15
|
def authorized_url_with_type(fetch_url, type, github_token, github_account)
|
16
16
|
uri = URI.parse(fetch_url)
|
17
|
-
|
17
|
+
case type
|
18
|
+
when 'fork'
|
18
19
|
%Q!#{uri.scheme}://#{github_token}@#{uri.host}#{path_for_fork(uri.path, github_account)}!
|
19
|
-
|
20
|
+
when 'shared', 'private'
|
20
21
|
"#{uri.scheme}://#{github_token}@#{uri.host}#{uri.path}"
|
21
22
|
else
|
22
23
|
raise "Invalid type #{type}"
|
@@ -28,9 +29,10 @@ namespace :tachikoma do
|
|
28
29
|
end
|
29
30
|
|
30
31
|
def target_repository_user(type, fetch_url, github_account)
|
31
|
-
|
32
|
+
case type
|
33
|
+
when 'fork'
|
32
34
|
github_account
|
33
|
-
|
35
|
+
when 'shared', 'private'
|
34
36
|
uri = URI.parse(fetch_url)
|
35
37
|
uri.path.sub(%r!/([^/]+)/.*!) { $1 }
|
36
38
|
else
|
@@ -84,7 +86,11 @@ namespace :tachikoma do
|
|
84
86
|
|
85
87
|
desc 'fetch'
|
86
88
|
task fetch: :clean do
|
87
|
-
|
89
|
+
if @type == 'private'
|
90
|
+
sh "git clone #{@authorized_url} #{Tachikoma.repos_path.to_s}/#{@build_for}"
|
91
|
+
else
|
92
|
+
sh "git clone #{@url} #{Tachikoma.repos_path.to_s}/#{@build_for}"
|
93
|
+
end
|
88
94
|
end
|
89
95
|
|
90
96
|
desc 'bundle'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tachikoma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sanemat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|