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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 070ab9d4b1eb444585d0adc4f22bca11223c0547
4
- data.tar.gz: 0b67a315d1e461f209a85b55be7bf7d2a6534b8f
3
+ metadata.gz: d66c63e994700ac9b67781047a7a904668fbd787
4
+ data.tar.gz: 62f13ea6ec6e371e7af46ae2cb978d9f55a8c53f
5
5
  SHA512:
6
- metadata.gz: d336c22c43d2c8b7ab76fe83047f323d6599b516be97f78fb19f218d3ac0c7c707ef8692eb474382f45c7725bbba50c0ef0e1c666b7585b1eaed928b45a31c5e
7
- data.tar.gz: 4fc36e916eb1dc9ca58847205b3a94f66668144d6f2517e369a3c1d12755b450141aca427fd1ea45d3003fc11949e15a359a907d6c6ed0da290cef07ed96f64d
6
+ metadata.gz: c0deb38fc3ae392decac56f5e24897970e699dab4070eccd52dbd88b90f70e1d642279970de81ea1aae18faef5dc37cf56eaf5220caac108dd96142d8ce5dc47
7
+ data.tar.gz: f647ce3700198d3ce2cc07ab1d0f5319345fb625317aa4d8247182c9c7b654d7e613dd34cbf13c2eea85328c29f258a86c73caab5e626e4acac8b4e6071667e7
@@ -1,3 +1,3 @@
1
1
  module Tachikoma
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
3
3
  end
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
- if type == 'fork'
17
+ case type
18
+ when 'fork'
18
19
  %Q!#{uri.scheme}://#{github_token}@#{uri.host}#{path_for_fork(uri.path, github_account)}!
19
- elsif type == 'shared'
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
- if type == 'fork'
32
+ case type
33
+ when 'fork'
32
34
  github_account
33
- elsif type == 'shared'
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
- sh "git clone #{@url} #{Tachikoma.repos_path.to_s}/#{@build_for}"
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.5
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-07-24 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml