joplin 0.4.0 → 0.5.0

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: 4b4f629e9d1111d44489677862012bb90708a49838db1c0453765e6c5e02cfb7
4
- data.tar.gz: 54299abfa751d6fa58c0750e8dcf6e1a452124d2495b5604430ada3348574766
3
+ metadata.gz: 7dfac990f629dd9162bf5847a84987b5a41d08ca60d6cd2c4f262d1e47437bfe
4
+ data.tar.gz: c41235cfdeb50f936ce00b366cb46a471c5f17fe226c3220af0b3106ab529e72
5
5
  SHA512:
6
- metadata.gz: e53f9e2c97f333220afe60a2f0972d783c917c5b94973464225daa544f12d0e9813870ec56a259bcb08a5029cabd90952ff7784a5eed26c23452abcae010faee
7
- data.tar.gz: 1e88e83442899c217e413415af68ebdc7b71450c11086031b36508b8e90819a3e85c313fb9e2eb244465ff48737a38e6091d1b1f32d603f07c3cf37296e619f3
6
+ metadata.gz: 6df0a09a49f852756a0d43da46f128b81c3e985c046076dac2bebbdb1fb96c7e4f6ab0b5b9e9a1a88917656619ed28b90f0b45b67366902df2b06555a48d4c2d
7
+ data.tar.gz: 6fddaddffd9017529b7230c2e1d96760cbedb02d8cccb0a9079ba5f2e5795c89b745d8bb5e55de07b2dd621f278d4d2cad8efab72475416ab869061ac1d3b4cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- joplin (0.4.0)
4
+ joplin (0.5.0)
5
5
  faraday (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Joplin
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/joplin.rb CHANGED
@@ -5,6 +5,7 @@ require "json"
5
5
  module Joplin
6
6
  class Error < StandardError; end
7
7
  attr_accessor :token
8
+ @@token = nil
8
9
 
9
10
  def self.token= token
10
11
  @@token = token
@@ -27,7 +28,7 @@ module Joplin
27
28
  end
28
29
 
29
30
  def self.token
30
- @@token
31
+ @@token || get_token
31
32
  end
32
33
 
33
34
  def self.uri= uri
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.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bretoi