chronicle-pinboard 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15ed0e19604895789980662542a77832a594dbb136d54509c616c0f223f90037
4
- data.tar.gz: 75d25beb023c48b299e32cd781b34c9a4b0ca7be9e89ec85fd7ba7ca748317b2
3
+ metadata.gz: 290728f6a7dcff698aba9ba5e636e6da3ee0074d073926ade6a6d8841fbec859
4
+ data.tar.gz: 1a8e7e70b604e7c71b37e05cd95dbd001459b7c1682ae1e03d97146a50db48fb
5
5
  SHA512:
6
- metadata.gz: c66d22e21d7be71ccdfa621b545643594bf99ebdac32e49aede6a0ca0d7e34e2b95288dad866849e80dd00eb520fa18e67a2795e0c5e12926de13b9936a9330d
7
- data.tar.gz: 6f95497832293120d18462bf587e4bc0003bdaeddb137389601ac32976b8586a878f5fd0fe45915a34094ebe1d3376dd73108914b24477177d7586300757f846
6
+ metadata.gz: 866eb3508e2aa678690a55b70d40ce5d6d6d64b3b8fe036fcd2e77f911ff4f86952e033eaabb33e8b68b0261540f6e1b453490021078a3993b14979dd62903a7
7
+ data.tar.gz: 8dacd215171fb01db26c7d8a9956237f1af07625d58f167030ae3808898b06c42e78f183e0b4db348b6e7b84682ead9d47f271463210585a565c044923c5236d
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Chronicle::Pinboard
2
+ [![Gem Version](https://badge.fury.io/rb/chronicle-pinboard.svg)](https://badge.fury.io/rb/chronicle-pinboard)
2
3
 
3
- Pinboard plugin for [chronicle-etl](https://github.com/chronicle-app/chronicle-etl)
4
+ Extract your Pinboard bookmarks using the command line with this plugin for [chronicle-etl](https://github.com/chronicle-app/chronicle-etl)
4
5
 
5
6
  ## Available Connectors
6
7
  ### Extractors
@@ -15,7 +16,8 @@ Pinboard plugin for [chronicle-etl](https://github.com/chronicle-app/chronicle-e
15
16
  gem install chronicle-etl
16
17
  chronicle-etl connectors:install pinboard
17
18
 
18
- # get PINBOARD_ACCESS_TOKEN from https://pinboard.in/settings/password
19
- chronicle-etl --extractor pinboard --extractor-opts access_token:$PINBOARD_ACCESS_TOKEN --since 2022-02-07
19
+ # You can get PINBOARD_ACCESS_TOKEN from https://pinboard.in/settings/password
20
+ # Extract pinboard bookmarks from the last 10 days
21
+ chronicle-etl --extractor pinboard --extractor-opts access_token:$PINBOARD_ACCESS_TOKEN --since 10d
20
22
  ```
21
23
 
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
37
  spec.require_paths = ["lib"]
38
38
 
39
- spec.add_dependency "chronicle-etl", "~> 0.4"
39
+ spec.add_dependency "chronicle-etl", "~> 0.5"
40
40
  spec.add_dependency "faraday", "~> 2.2"
41
41
 
42
42
  spec.add_development_dependency "bundler", "~> 2.3"
@@ -12,6 +12,8 @@ module Chronicle
12
12
  setting :access_token, required: true
13
13
 
14
14
  def prepare
15
+ raise(Chronicle::ETL::ExtractionError, "Access token is missing") if @config.access_token.empty?
16
+
15
17
  @bookmarks = load_bookmarks
16
18
  @username = @config.access_token.split(":").first
17
19
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Chronicle
4
4
  module Pinboard
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chronicle-pinboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Louis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-04 00:00:00.000000000 Z
11
+ date: 2022-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronicle-etl
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.4'
26
+ version: '0.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ metadata:
106
106
  homepage_uri: https://github.com/chronicle-app/chronicle-pinboard
107
107
  source_code_uri: https://github.com/chronicle-app/chronicle-pinboard
108
108
  changelog_uri: https://github.com/chronicle-app/chronicle-pinboard
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,8 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.1.6
125
- signing_key:
124
+ rubygems_version: 3.3.3
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: Pinboard importer for Chronicle
128
128
  test_files: []