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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47e24f62fad771e5c67992106d045bd3c7f19aab
4
- data.tar.gz: 3584fd9cff05cc5a69b69a22ce29b42db63a8b41
3
+ metadata.gz: ecd8878dd34e8ecacd7f1a0f899ccab907cb1a68
4
+ data.tar.gz: 2c8d21e30b66b4fe2c225ecadbea8acfb0b4f49b
5
5
  SHA512:
6
- metadata.gz: f41c9d019603d6705c35bcf94fea0d0a9b87b41699c11670ab3f631d6538cd66d109a9f9c5bdb42b09bf0856cfada5e2713efdc7fe1d05902a330774e903b02d
7
- data.tar.gz: d0ff1a52a68e5f3b8253e48231fa627d40ba35331e5adda4b0deeb1287d551c7525dab71ece4e1bc7a390b5c21168448d4fa59c6bf00c9c1f9c23abcc5b486ed
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, { "Content-Type" => "text/plain; charset=utf-8" }, ["I am micropub"]]
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
@@ -1,7 +1,7 @@
1
1
  module Micropub
2
2
  module Server
3
3
  module Rails
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  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.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.2.2
113
+ rubygems_version: 2.4.5
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Micropub Railtie