joplin 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 1a702c640f0c08d5bd97f3d8b4d0689aabf66c2a0aaf1aa0d4bef9c02f9a7898
4
- data.tar.gz: c74cf3462c080b5e6991da3e5dbe62461b2474aba6c09711f386f17376db09e9
3
+ metadata.gz: 6bb7600ec9847e6eb0692dd479670b8ed3f7b5a457e00254c2bb292207935da7
4
+ data.tar.gz: 4402bbbdf497a6722e07a6b7a6090652a10cabf4abd789d6885a3dd33c7bf6ee
5
5
  SHA512:
6
- metadata.gz: b78bc4af2051d6b5ba959786980b3d13a584a93c4b3dcf6a9e8038dcceaf8bc80819baf8e27f9fe003dcb0df04a4da863ef7dd340e2707fc23c662dac8189c2b
7
- data.tar.gz: 2a17ec081a8c2312f1e949786892b4223f43bea38857a7cbe8c96bd755fb8bf224377879c0c6ca5b03f7e6c8d8ba57a37d2f38a90334b177a33dad0763fbf036
6
+ metadata.gz: 5abcad7280d66a12392f6b7095618488d9c1a4bae113c629352ce7850a55d97f4e2eb719ec7dfe94fa1a87d051067ce8218abce9a52c67fd46479d6e877db56e
7
+ data.tar.gz: 8d8de2b6b7d6b4176c18df60081e6a02ac783d7be5485bf0fd8330483426a55dbd94646f6b09ea80f96e9a2fc6924f5c0e12cf8eb6f24f5b774517e4a5fd475e
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ *.gem
@@ -10,7 +10,7 @@ GEM
10
10
  faraday (1.0.1)
11
11
  multipart-post (>= 1.2, < 3)
12
12
  multipart-post (2.1.1)
13
- rake (10.5.0)
13
+ rake (13.0.1)
14
14
  rspec (3.9.0)
15
15
  rspec-core (~> 3.9.0)
16
16
  rspec-expectations (~> 3.9.0)
@@ -32,7 +32,7 @@ DEPENDENCIES
32
32
  bundler (~> 1.17)
33
33
  faraday (~> 1.0)
34
34
  joplin!
35
- rake (~> 10.0)
35
+ rake (~> 13.0)
36
36
  rspec (~> 3.0)
37
37
 
38
38
  BUNDLED WITH
@@ -35,6 +35,6 @@ Gem::Specification.new do |spec|
35
35
  spec.require_paths = ["lib"]
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 1.17"
38
- spec.add_development_dependency "rake", "~> 10.0"
38
+ spec.add_development_dependency "rake", "~> 13.0"
39
39
  spec.add_development_dependency "rspec", "~> 3.0"
40
40
  end
@@ -66,6 +66,9 @@ body: #{self.body}"""
66
66
  def parse response
67
67
  return if not response.body
68
68
  note = JSON.parse response.body
69
+ if response.status != 200
70
+ raise Error.new note["error"]
71
+ end
69
72
  @body = note['body']
70
73
  @title = note['title']
71
74
  @id = note["id"]
@@ -1,3 +1,3 @@
1
1
  module Joplin
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joplin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bretoi
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement