overlay 0.0.5 → 0.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: 13630f419fcc1df76230779d926555c3fe01fd45
4
- data.tar.gz: 0da3f0f3557e2d3f72cca034d1851cc9b90f16d5
3
+ metadata.gz: 880f99683f0a647209219a2349c2c96c6a379e4d
4
+ data.tar.gz: 2684885560ba6b71d2afa6c76d2ac897ded8de39
5
5
  SHA512:
6
- metadata.gz: 64989fa6ca9e932e511db3c9e89c4b4af9a166a722ef8d120cf79ce9c3a392ccb39f73ebe08e0cd72b58b21f71dc449c77caeef0036033101ab5c71089559d7c
7
- data.tar.gz: bd629bffc910ffc07ad4b787f2db45826e43b7ad60a155c063db8f01bf8c93e9a2f4f28da0f6c24d1166b29c272676d704222cf19ee0614435ed20d7f164c9da
6
+ metadata.gz: eba1d7c373e749c27ed933498b778974494acdd0e21c014d62d35054d0d262c73ca65283cb10906a06665eac5f2d30f227a3816a40820277d5440e93aa700e0b
7
+ data.tar.gz: 0f69e97b17007a923a74aac0b79acec8d6f7c3f50f0d81f14b93b2f0248019b31421ff1fb03c299f831c5f7db6a682f40d769b3daee8eaa2e66f74b5c67e8eab
@@ -6,8 +6,8 @@ module Overlay
6
6
  Overlay.configuration.repositories.each do |repo_config|
7
7
  next unless repo_config.class == GithubRepo
8
8
  branch = repo_config[:branch] || 'master'
9
- if (params[:repository] && params[:webhook])
10
- if (params[:repository][:name] == repo_config[:repo]) && (params[:webhook][:ref] == "refs/heads/#{branch}")
9
+ if (params[:repository] && params[:ref])
10
+ if (params[:repository][:name] == repo_config[:repo]) && (params[:ref] == "refs/heads/#{branch}")
11
11
  Overlay::Github.process_overlays
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Overlay
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -2,10 +2,14 @@ require 'spec_helper'
2
2
 
3
3
  module Overlay
4
4
  describe GithubController do
5
+ before :each do
6
+ Overlay.configure do |config|
7
+ end
8
+ end
5
9
 
6
- describe "GET 'update'" do
10
+ describe "POST 'update'" do
7
11
  it "returns http success" do
8
- get 'update'
12
+ post 'update', {:use_route => :overlay}
9
13
  response.should be_success
10
14
  end
11
15
  end
@@ -0,0 +1,6 @@
1
+ Processing by Overlay::GithubController#update as HTML
2
+ Rendered inline template (1.2ms)
3
+ Completed 200 OK in 7ms (Views: 6.5ms)
4
+ Processing by Overlay::GithubController#update as HTML
5
+ Rendered inline template (0.6ms)
6
+ Completed 200 OK in 4ms (Views: 3.3ms)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: overlay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Saarinen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-01 00:00:00.000000000 Z
11
+ date: 2013-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: github_api
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.10'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -99,6 +99,7 @@ files:
99
99
  - spec/dummy/config/locales/en.yml
100
100
  - spec/dummy/config/routes.rb
101
101
  - spec/dummy/config.ru
102
+ - spec/dummy/log/test.log
102
103
  - spec/dummy/public/404.html
103
104
  - spec/dummy/public/422.html
104
105
  - spec/dummy/public/500.html
@@ -155,6 +156,7 @@ test_files:
155
156
  - spec/dummy/config/locales/en.yml
156
157
  - spec/dummy/config/routes.rb
157
158
  - spec/dummy/config.ru
159
+ - spec/dummy/log/test.log
158
160
  - spec/dummy/public/404.html
159
161
  - spec/dummy/public/422.html
160
162
  - spec/dummy/public/500.html