alvid 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alvid/github.rb +1 -1
- data/lib/alvid/version.rb +1 -1
- data/spec/github_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd05ff7638cabce80594055e5c582ed633ec9d70
|
4
|
+
data.tar.gz: 8f88136c2b4dd98dee4335410826b1265368c05b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf78bdb56eb6744c70325ba541f0745d4a19c2c9eaf418f12e8d3286a6c3617691fea078fd904300c663daeeb1e3f2f671746061ead42a1dbea92580ab83b94b
|
7
|
+
data.tar.gz: c6d86e3f3b50cab8d68d79035f90fef6966276b5a83653eef158e7ba18c4b89e3092adbd59c73d6132552dddff4dadb73971aed43d8ea8af82f1bef39b579eac
|
data/lib/alvid/github.rb
CHANGED
@@ -16,7 +16,7 @@ class Alvid::Github
|
|
16
16
|
def create_repository(repo_name, organization)
|
17
17
|
@client.create_repository(repo_name, {:organization=>organization})
|
18
18
|
keypair = Alvid::Keypair.new
|
19
|
-
@client.add_deploy_key(repo_name, "#{repo_name}-dk", keypair.pub)
|
19
|
+
@client.add_deploy_key( "#{organization}/#{repo_name}" , "#{repo_name}-dk", keypair.pub)
|
20
20
|
keypair.pri
|
21
21
|
end
|
22
22
|
end
|
data/lib/alvid/version.rb
CHANGED
data/spec/github_spec.rb
CHANGED
@@ -33,7 +33,7 @@ describe Alvid::Github do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should upload public key' do
|
36
|
-
expect_any_instance_of(Octokit::Client).to receive(:add_deploy_key).with(repo_name, "#{repo_name}-dk", keypair.pub )
|
36
|
+
expect_any_instance_of(Octokit::Client).to receive(:add_deploy_key).with("#{organization}/#{repo_name}", "#{repo_name}-dk", keypair.pub )
|
37
37
|
github.create_repository(repo_name, organization)
|
38
38
|
end
|
39
39
|
|