Permalink
Browse files

fixed field names

  • Loading branch information...
1 parent 73f24c4 commit e7348429c1e42a0a4375c8625c9689176924299a Maciej Swinarski committed Mar 29, 2013
Showing with 5 additions and 5 deletions.
  1. +2 −2 docs/fisheye
  2. +1 −1 services/fisheye.rb
  3. +2 −2 test/fisheye_test.rb
View
@@ -11,13 +11,13 @@ Install Notes
1. Your FishEye server must be accessible from the internet
-2. "base_url" is the URL to your FishEye server
+2. "url_base" is the URL to your FishEye server
Example: http://fisheye.example.com/ or http://fisheye.example.com/fisheye/
3. "token" is the REST API token for your FishEye server
It is defined in FishEye Administration > Security Settings > Authentication > REST API Token
-4. "custom_repository_name" is the repository name (optional)
+4. "repository_name" is the repository name (optional)
If not set github repository name is used
View
@@ -38,7 +38,7 @@ def verify_config
end
def repository_name
- @repository_name ||= (data['custom_repository_name'].to_s.strip.length != 0) ? data['custom_repository_name'] : payload['repository']['name']
+ @repository_name ||= (data['repository_name'].to_s.strip.length != 0) ? data['repository_name'] : payload['repository']['name']
end
def url_base
View
@@ -15,7 +15,7 @@ def data_my_repo
{
"url_base" => "http://localhost:6060/foo",
"token" => "515848d216e3baa46e10d92f21f890f67fea1d12",
- "custom_repository_name" => "myRepo"
+ "repository_name" => "myRepo"
}
end
@@ -82,7 +82,7 @@ def test_triggers_scanning_empty_custom_repository
data = {
"url_base" => "http://localhost:6060/foo",
"token" => "515848d216e3baa46e10d92f21f890f67fea1d12",
- "custom_repository_name" => " "
+ "repository_name" => " "
}
svc = service :push, data, payload

0 comments on commit e734842

Please sign in to comment.