bait 0.5.10 → 0.5.11

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: ba4a454147e48ef95a51f3519a4a8ca5b0e6f0e6
4
- data.tar.gz: 25d9089723006cd240d8c87b1b3f13b9462d4960
3
+ metadata.gz: 4170b1d21309ee20fc7a772999bec815f71d86a9
4
+ data.tar.gz: 80ccd784fc33b5f78c7e1617911582976faf92f6
5
5
  SHA512:
6
- metadata.gz: 3513f74238174f6c445578e645722fa3880fc5769ef24405a4ba6cee14e6e2292f7737c90b628dd662913a2fcd675ec98b4f7cd6519629a642055451b0d930da
7
- data.tar.gz: f23bda046a4872d7eb4b2b621e28e514bebc7c72bb5cdc3ceaa8c0b98ebd23c385f707a049386fb43e0ded67e239ad5a85c08e7710588688f781bc97f99be65c
6
+ metadata.gz: d61b55886c78a74dc6b62dd203fffb8080dae8935b38ea780fe29e72b54d9e471cb9a4519f0a8cb33aa6c56139085ace08ed0c5d7afb9a39083aa352da53d5f8
7
+ data.tar.gz: 7d46acac41537e5ce2e49e0dd82e1db96932d8c3dd4dfd7dd81db010d7dd7a702df8baf0da5f0cdd0b5ae7eaca0e60e2d5f3de615aac71aad8454c5d6a8a30ce
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bait (0.5.10)
4
+ bait (0.5.11)
5
5
  git
6
6
  haml
7
7
  moneta
data/VERSION CHANGED
@@ -1,3 +1,3 @@
1
- 0.5.10
1
+ 0.5.11
2
2
 
3
3
 
@@ -26,10 +26,12 @@ module Bait
26
26
  post '/' do
27
27
  if params && params["payload"]
28
28
  push = JSON.parse(params["payload"])
29
+ name = push["repository"]["name"]
30
+ owner_name = push["repository"]["owner"]["name"]
29
31
  Build.create({
30
- name: push["repository"]["name"],
31
- clone_url: push["repository"]["url"],
32
- owner_name: push["repository"]["owner"]["name"],
32
+ name: name,
33
+ clone_url: "git@github.com:#{owner_name}/#{name}",
34
+ owner_name: owner_name,
33
35
  owner_email: push["repository"]["owner"]["email"],
34
36
  ref: push["ref"]
35
37
  }).integrate_later
@@ -56,6 +56,7 @@ describe Bait::Api do
56
56
  it "creates a build" do
57
57
  build.name.should eq "github"
58
58
  build.owner_name.should eq "defunkt"
59
+ build.clone_url.should eq "git@github.com:defunkt/github"
59
60
  build.owner_email.should eq "chris@ozmm.org"
60
61
  build.ref.should eq "refs/heads/master"
61
62
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bait
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.10
4
+ version: 0.5.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keyvan Fatehi