ape 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +11 -1
- data/lib/ape.rb +5 -8
- data/lib/ape/version.rb +1 -1
- metadata +2 -2
data/README
CHANGED
@@ -11,7 +11,7 @@ Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. See the included
|
|
11
11
|
|
12
12
|
== Quick Start
|
13
13
|
|
14
|
-
Install APE via RubyGems:
|
14
|
+
=== Install APE via RubyGems:
|
15
15
|
|
16
16
|
$ gem install ape
|
17
17
|
|
@@ -21,6 +21,16 @@ Now, you should have the ape_server command available in your $PATH. Start the s
|
|
21
21
|
|
22
22
|
This will start the server in the foreground. You can access APE in your browser at http://localhost:4000
|
23
23
|
|
24
|
+
=== Execute APE from the command line:
|
25
|
+
|
26
|
+
If you've downloaded APE's source code you can execute it from the command line with ruby rake. From the root directory you can execute one of these three tasks:
|
27
|
+
|
28
|
+
$ rake ape:go:html['service document uri', 'username', 'password']
|
29
|
+
$ rake ape:go:text['service document uri', 'username', 'password']
|
30
|
+
$ rake ape:go:atom['service document uri', 'username', 'password']
|
31
|
+
|
32
|
+
The username and password paramenters are not mandatory, and the format response depends of the executed task.
|
33
|
+
|
24
34
|
== The Source
|
25
35
|
|
26
36
|
To access the latest source code for APE, see the project site at https://rubyforge.org/projects/ape
|
data/lib/ape.rb
CHANGED
@@ -100,23 +100,20 @@ module Ape
|
|
100
100
|
def check_manifest(validator)
|
101
101
|
variables = {}
|
102
102
|
manifest = validator.manifest
|
103
|
-
variables[:service_doc] = @service if (manifest.include?(:service_doc))
|
104
|
-
manifest.delete(:service_doc)
|
103
|
+
variables[:service_doc] = @service if (manifest.include?(:service_doc))
|
105
104
|
|
106
105
|
if (manifest.include?(:entry_collection))
|
107
106
|
variables[:entry_collection] = ::Ape.conf[:REQUESTED_ENTRY_COLLECTION].nil? ? @entry_collections.first :
|
108
|
-
get_collection(@entry_collections, ::Ape.conf[:REQUESTED_ENTRY_COLLECTION])
|
109
|
-
manifest.delete(:entry_collection)
|
107
|
+
get_collection(@entry_collections, ::Ape.conf[:REQUESTED_ENTRY_COLLECTION])
|
110
108
|
end
|
111
109
|
|
112
110
|
if (manifest.include?(:media_collection))
|
113
111
|
variables[:media_collection] = ::Ape.conf[:REQUESTED_MEDIA_COLLECTION].nil? ? @media_collections.first :
|
114
|
-
get_collection(@media_collections, ::Ape.conf[:REQUESTED_MEDIA_COLLECTION])
|
115
|
-
manifest.delete(:media_collection)
|
112
|
+
get_collection(@media_collections, ::Ape.conf[:REQUESTED_MEDIA_COLLECTION])
|
116
113
|
end
|
117
114
|
|
118
|
-
manifest.each do |option|
|
119
|
-
if (option.instance_of?(Hash))
|
115
|
+
manifest.each do |option|
|
116
|
+
if (option.instance_of?(Hash) && !variables.include?(option))
|
120
117
|
all_collections = @entry_collections + @media_collections
|
121
118
|
option.each do |key, value|
|
122
119
|
unless (value.instance_of?(Hash))
|
data/lib/ape/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ape
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Bray
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-07-
|
12
|
+
date: 2008-07-04 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|