apify 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -0
- data/VERSION +1 -1
- data/apify.gemspec +1 -1
- data/app/helpers/apify_helper.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -45,6 +45,8 @@ Connect the routes to your API in `config/routes.rb`:
|
|
45
45
|
|
46
46
|
You have now exposed an API action under `http://host/api/ping`.
|
47
47
|
|
48
|
+
An example for this setup can also be found under the `examples/host` directory inside the repository.
|
49
|
+
|
48
50
|
|
49
51
|
Protocol
|
50
52
|
--------
|
@@ -208,6 +210,8 @@ Errors can be caught and inspected like this:
|
|
208
210
|
puts "Response: #{e.response_body}"
|
209
211
|
end
|
210
212
|
|
213
|
+
An example for an API can be found under the `examples/client` directory inside the repository.
|
214
|
+
|
211
215
|
|
212
216
|
Dealing with dates and timestamps
|
213
217
|
---------------------------------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
data/apify.gemspec
CHANGED
data/app/helpers/apify_helper.rb
CHANGED
@@ -7,7 +7,7 @@ module ApifyHelper
|
|
7
7
|
download_tooltip = "#{action.method.to_s.upcase} #{download_url} to download"
|
8
8
|
download_link = link_to('download', download_url, :method => action.method, :title => download_tooltip)
|
9
9
|
json = JSON.pretty_generate(action.send(artifact, nature))
|
10
|
-
embedded = "<pre id='#{show_id}' style='display: none'>#{json}</pre>"
|
10
|
+
embedded = "<pre id='#{show_id}' style='display: none'><code>#{json}</code></pre>"
|
11
11
|
"#{artifact.to_s.humanize} (#{show_link}, #{download_link})#{embedded}".html_safe
|
12
12
|
end
|
13
13
|
|