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 CHANGED
@@ -1 +1,4 @@
1
1
  Gemfile.lock
2
+ pkg/*
3
+ pkg
4
+ *.gem
data/Rakefile CHANGED
@@ -19,7 +19,7 @@ end
19
19
 
20
20
  task :release => :package do
21
21
  Dir.chdir("pkg") do
22
- system "gem push #{PACKAGE}-#{VERSION}"
22
+ system "gem push pkg/#{PACKAGE}-#{VERSION}"
23
23
  end
24
24
  end
25
25
 
@@ -1,6 +1,6 @@
1
1
  module Middleman
2
2
  module Tapirgo
3
3
  PACKAGE = "middleman-tapirgo"
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
@@ -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
- - 1
9
- version: 0.0.1
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
@@ -1,2 +0,0 @@
1
- <h1>Woo</h1>
2
- <p>moo</p>