middleman-tapirgo 0.0.1 → 0.0.2
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/.gitignore +3 -0
- data/Rakefile +1 -1
- data/lib/middleman-tapirgo/pkg-info.rb +1 -1
- data/lib/middleman-tapirgo/syncer.rb +1 -1
- data/spec/lib/middleman-tapirgo/syncer_spec.rb +1 -1
- metadata +2 -4
- data/spec/resources/index.html +0 -2
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -36,7 +36,7 @@ module Middleman
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def send_to_tapirgo(item)
|
39
|
-
req = Net::HTTP::Post.new(uri.path, initheader = {'Content-Type' =>'application/json'})
|
39
|
+
req = Net::HTTP::Post.new("#{uri.path}?#{uri.query}", initheader = {'Content-Type' =>'application/json'})
|
40
40
|
req.body = JSON.generate(item)
|
41
41
|
Net::HTTP.new(uri.host, uri.port).start {|http| http.request(req) }
|
42
42
|
end
|
@@ -109,7 +109,7 @@ describe Middleman::Tapirgo::Syncer do
|
|
109
109
|
|
110
110
|
it "should post the item to tapirgo" do
|
111
111
|
WebMock.should have_requested(
|
112
|
-
:post, "http://tapirgo.com/api/1/push_article.json"
|
112
|
+
:post, "http://tapirgo.com/api/1/push_article.json?secret=bananas"
|
113
113
|
).with(
|
114
114
|
:body => "{\"a\":\"b\"}",
|
115
115
|
:headers => {
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Robert Beekman
|
@@ -91,7 +91,6 @@ files:
|
|
91
91
|
- middleman-tapirgo.gemspec
|
92
92
|
- spec/lib/middleman-tapirgo/syncable_item_spec.rb
|
93
93
|
- spec/lib/middleman-tapirgo/syncer_spec.rb
|
94
|
-
- spec/resources/index.html
|
95
94
|
- spec/spec_helper.rb
|
96
95
|
has_rdoc: true
|
97
96
|
homepage: http://github.com/matsimitsu/middleman-tapirgo/
|
@@ -126,5 +125,4 @@ summary: Sync middleman content to TapirGO
|
|
126
125
|
test_files:
|
127
126
|
- spec/lib/middleman-tapirgo/syncable_item_spec.rb
|
128
127
|
- spec/lib/middleman-tapirgo/syncer_spec.rb
|
129
|
-
- spec/resources/index.html
|
130
128
|
- spec/spec_helper.rb
|
data/spec/resources/index.html
DELETED