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 +4 -4
- data/lib/haste/uploader.rb +7 -1
- data/lib/haste/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0a30cd28db8b86bddf18e6566da74606f8ff696
|
4
|
+
data.tar.gz: ed8009b3dc3d1a66e62d78f122117bddc1b7c1f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 491b3fb08ee4d71703e52794390eb247926407aa6cf5d0d2bf053a53e6eb4c7beb882ea2ae90d416cc2aa423700c72031a33df202db6e2db76cf4562586e2728
|
7
|
+
data.tar.gz: 53f96da87beeeff259d4a1ca43a953b0c47aae0dd15c2a3f369b914e78983c6c388c8184e13cbb51e3222c9a9de9eb16a93be6f2ec625d94c90d7ef2b726d449
|
data/lib/haste/uploader.rb
CHANGED
@@ -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(
|
50
|
+
connection.post(post_path, data)
|
45
51
|
end
|
46
52
|
|
47
53
|
def connection
|
data/lib/haste/version.rb
CHANGED
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.
|
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-
|
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.
|
89
|
+
rubygems_version: 2.5.2
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Haste Client
|