micropub 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/micropub/client.rb +7 -1
- data/lib/micropub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6edc39c52b2461b27f734eba9ab79f4fb4d583a6
|
4
|
+
data.tar.gz: a67c5b02a03dea050e7397254a93bb88bb049643
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe4fe125f9b75f2de233a0283c31572d71c9a93783d6350ef464bbc40fdda0145f5ca5b7dce2cec4405d97378180446d740bdea1b7617ea796293e7dece784c
|
7
|
+
data.tar.gz: eb4b2cba5a1538dff87cb8587615dba3859bf2e2152399870b4d556f55b0cd26829e1155101aacf32aa7a0f94ab7a8d93a7497f6e37108ef560864982afb71c3
|
data/lib/micropub/client.rb
CHANGED
@@ -27,7 +27,13 @@ module Micropub
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def uri
|
30
|
-
"#{
|
30
|
+
"#{host}/#{publisher}"
|
31
|
+
end
|
32
|
+
|
33
|
+
def host
|
34
|
+
# ENV is temp to hardcode the host before
|
35
|
+
# the hs router is hooked up.
|
36
|
+
ENV["PUBLISHER_HOST"] || Micropub.configuration.me
|
31
37
|
end
|
32
38
|
end
|
33
39
|
end
|
data/lib/micropub/version.rb
CHANGED