micropub-server-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/micropub/server/rails/middleware.rb +8 -1
- data/lib/micropub/server/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd8878dd34e8ecacd7f1a0f899ccab907cb1a68
|
4
|
+
data.tar.gz: 2c8d21e30b66b4fe2c225ecadbea8acfb0b4f49b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cbd90d075ab6cfef57e796fc0c5ce7d93005a2c5bd5e78f3b5c065d40e84fdef82e75d8064356434b712dce632a3c51737d9bd8fad633a09ae60e5c71c34adf
|
7
|
+
data.tar.gz: 41f74d9f88e585b848df9b010cdb679fc2ee4a4330029b985da723aba9ecce1746794458a7a0376605089d2b3c0b87118ac51c6ef1971e5d73236010abd69ab7
|
@@ -6,10 +6,17 @@ module Micropub::Server::Rails
|
|
6
6
|
|
7
7
|
def call(env)
|
8
8
|
if env["PATH_INFO"] == "/micropub"
|
9
|
-
[200,
|
9
|
+
[200, self.headers, ["I am micropub."]]
|
10
10
|
else
|
11
11
|
@app.call env
|
12
12
|
end
|
13
13
|
end
|
14
|
+
|
15
|
+
def headers
|
16
|
+
{
|
17
|
+
"Location" => "http://bookisworthy.com/posts/1",
|
18
|
+
"Content-Type" => "text/plain; charset=utf-8"
|
19
|
+
}
|
20
|
+
end
|
14
21
|
end
|
15
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micropub-server-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.4.5
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Micropub Railtie
|