haste 0.2.2 → 0.2.3

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: 57eb2c33980fc428fa8e5405f297b7da65b8f868
4
- data.tar.gz: c9914dae672d56a2e9938374a9faf2d07219666a
3
+ metadata.gz: b0a30cd28db8b86bddf18e6566da74606f8ff696
4
+ data.tar.gz: ed8009b3dc3d1a66e62d78f122117bddc1b7c1f2
5
5
  SHA512:
6
- metadata.gz: 6255fab7832fef33453fc9ca0440880269c6ef0a01dc1f1e4e5bf02a15a483cdfc028289eff92fbea9fa0de4f000d61d6187d477a99c17eb51d220c4abcb284f
7
- data.tar.gz: 472960074ee86d45502888a26733a31c8e62d4daf756ce73cbcb5bb479b99844197fc05c001523735675d7d761ebae5c42eee6620b883a8a1cf4ca873ae62d2f
6
+ metadata.gz: 491b3fb08ee4d71703e52794390eb247926407aa6cf5d0d2bf053a53e6eb4c7beb882ea2ae90d416cc2aa423700c72031a33df202db6e2db76cf4562586e2728
7
+ data.tar.gz: 53f96da87beeeff259d4a1ca43a953b0c47aae0dd15c2a3f369b914e78983c6c388c8184e13cbb51e3222c9a9de9eb16a93be6f2ec625d94c90d7ef2b726d449
@@ -1,5 +1,6 @@
1
1
  require 'json'
2
2
  require 'faraday'
3
+ require 'uri'
3
4
 
4
5
  module Haste
5
6
 
@@ -40,8 +41,13 @@ module Haste
40
41
 
41
42
  private
42
43
 
44
+ def post_path
45
+ parsed_uri = URI.parse(server_url)
46
+ "#{parsed_uri.path}/documents"
47
+ end
48
+
43
49
  def do_post(data)
44
- connection.post('/documents', data)
50
+ connection.post(post_path, data)
45
51
  end
46
52
 
47
53
  def connection
@@ -1,5 +1,5 @@
1
1
  module Haste
2
2
 
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haste
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Crepezzi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-31 00:00:00.000000000 Z
11
+ date: 2017-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.6.10
89
+ rubygems_version: 2.5.2
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: Haste Client