joplin 0.5.1 → 0.5.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: 9b1a0e93bcfc54d72099552315b11447f4b5148d47813d2fd71b246e345b8575
4
- data.tar.gz: d89280141c723a08d54f8719c87cda2f5e7f5df23d92d0ccad081c6e6df26d29
3
+ metadata.gz: 25c5fb1c89e4e91404ff3551eab854d7d60d1233dae32089419fadca850c0fc6
4
+ data.tar.gz: 1b682ba27da2ef362b92f2d0810e3fedff7e18480f03d82810201bf4e787777e
5
5
  SHA512:
6
- metadata.gz: ed07f8cdc4f7f3b3fff0cd4b038106f8108bce3be2eff24b6742c1e4b92b8a1b2ca689ba8cef5ef8046bdf2b839cadb146b465597ad2de890fa5ed2b79f8afdc
7
- data.tar.gz: 9b802ca5813ed504d50157827d5f7c89693ce97229c793d479cd425b5d9db03d8fd4dc937d24464b792d45fcd1de2d91aeaba364e81d1887777ec1fe48b12372
6
+ metadata.gz: 349baaaacee32d7adb003a921b33a002a3e400980eca1778353777ffa6d2a7c5bb42d05d76b0b5dd9d41a38bab66cc16044cebf64da158784814aa7324c0b3e1
7
+ data.tar.gz: 95c59bca854fd21545bab1d3473afe1cb253c2a7d9a7e55463d3091ddc2514dec316e08fb3b9c8c9535652585e85f0eaa99b525614c14e5520783b3d7b146833
data/Gemfile.lock CHANGED
@@ -1,38 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- joplin (0.5.1)
4
+ joplin (0.5.2)
5
5
  faraday (~> 1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- diff-lcs (1.3)
10
+ diff-lcs (1.5.0)
11
11
  faraday (1.0.1)
12
12
  multipart-post (>= 1.2, < 3)
13
13
  multipart-post (2.1.1)
14
- rake (13.0.1)
15
- rspec (3.9.0)
16
- rspec-core (~> 3.9.0)
17
- rspec-expectations (~> 3.9.0)
18
- rspec-mocks (~> 3.9.0)
19
- rspec-core (3.9.2)
20
- rspec-support (~> 3.9.3)
21
- rspec-expectations (3.9.2)
14
+ rake (13.0.6)
15
+ rspec (3.11.0)
16
+ rspec-core (~> 3.11.0)
17
+ rspec-expectations (~> 3.11.0)
18
+ rspec-mocks (~> 3.11.0)
19
+ rspec-core (3.11.0)
20
+ rspec-support (~> 3.11.0)
21
+ rspec-expectations (3.11.0)
22
22
  diff-lcs (>= 1.2.0, < 2.0)
23
- rspec-support (~> 3.9.0)
24
- rspec-mocks (3.9.1)
23
+ rspec-support (~> 3.11.0)
24
+ rspec-mocks (3.11.0)
25
25
  diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.9.0)
27
- rspec-support (3.9.3)
26
+ rspec-support (~> 3.11.0)
27
+ rspec-support (3.11.0)
28
28
  sqlite3 (1.4.2)
29
- thor (1.0.1)
29
+ thor (1.2.1)
30
30
 
31
31
  PLATFORMS
32
32
  ruby
33
33
 
34
34
  DEPENDENCIES
35
- bundler (~> 1.17)
35
+ bundler (~> 2.0)
36
36
  faraday (~> 1.0)
37
37
  joplin!
38
38
  rake (~> 13.0)
@@ -41,4 +41,4 @@ DEPENDENCIES
41
41
  thor (~> 1.0)
42
42
 
43
43
  BUNDLED WITH
44
- 1.17.3
44
+ 2.0.1
data/bin/joplin CHANGED
@@ -4,7 +4,6 @@ $:.unshift File.expand_path("../../lib", __FILE__)
4
4
 
5
5
  require "joplin"
6
6
  require 'thor'
7
- require "joplin/token"
8
7
 
9
8
  DIVIDER = %Q(
10
9
 
@@ -28,7 +27,7 @@ class MyCLI < Thor
28
27
  option :'dry-run', desc: "dry-run", aliases: '-n'
29
28
  desc :clean, "clean unused resources"
30
29
  def clean
31
- Joplin::token = options[:token] || Joplin::Token.get
30
+ Joplin::token = Joplinl.get_token || options[:token]
32
31
  puts "Please wait, this can take while."
33
32
  Joplin::Resource.orphaned.map { |r|
34
33
  r.delete if not options['dry-run']
@@ -90,7 +89,7 @@ class MyCLI < Thor
90
89
 
91
90
  private
92
91
  def token()
93
- Joplin::token = options[:token] || Joplin::Token.get
92
+ Joplin::token = Joplin.get_token || options[:token]
94
93
  raise "Couldn't find token in local database and it wasn't passed as an option. You better check yourself!" if not Joplin::token
95
94
  end
96
95
  end
data/joplin.gemspec CHANGED
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.require_paths = ["lib"]
36
36
 
37
37
  spec.add_dependency "faraday", "~> 1.0"
38
- spec.add_development_dependency "bundler", "~> 1.17"
38
+ spec.add_development_dependency "bundler", "~> 2.0"
39
39
  spec.add_development_dependency "rake", "~> 13.0"
40
40
  spec.add_development_dependency "rspec", "~> 3.0"
41
41
  spec.add_development_dependency "thor", "~> 1.0.1"
@@ -1,3 +1,3 @@
1
1
  module Joplin
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joplin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bretoi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-19 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.17'
33
+ version: '2.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: '1.17'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubygems_version: 3.0.9
128
+ rubygems_version: 3.0.3
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: joplin API