pocket-ruby 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +13 -2
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +107 -68
- data/README.md +8 -6
- data/lib/faraday/raise_pocket_error.rb +1 -1
- data/lib/pocket/api.rb +9 -2
- data/lib/pocket/configuration.rb +8 -1
- data/lib/pocket/connection.rb +18 -15
- data/lib/pocket/oauth.rb +6 -6
- data/lib/pocket/version.rb +1 -1
- data/lib/pocket-ruby.rb +2 -0
- data/pocket-ruby.gemspec +8 -9
- data/test/pocket/article_test.rb +2 -2
- data/test/pocket/client_test.rb +2 -2
- data/test/pocket/version_test.rb +1 -1
- data/test/test_helper.rb +3 -1
- metadata +14 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057ba75ac285a0e803b059403d9764f9d48061b0ac6d6a9a48a75c8ccc153f79
|
4
|
+
data.tar.gz: 6a0d5403bb970db84cf080bec236abde25c557bd210b14a13cc61116c290dc96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 993aa6c25064d7cfb6cbca90fc0952a5572162e7f5b481373ead76f321490e9a960f7d5c277dcc18606c9758f2151a57846484c87ad7827dfaf4351366b6305f
|
7
|
+
data.tar.gz: 9f4331eba655b118ff0a8ea8ca55adf18f6e63193f4e7ca484829eb25972d9ec74fc0da24da9dc56c5f09a0e96a1655c18fed3127fa86004fad969a3c2cee08d
|
data/.github/workflows/tests.yml
CHANGED
@@ -3,14 +3,25 @@ name: Ruby
|
|
3
3
|
on: [push,pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
build:
|
6
|
+
build-matrix:
|
7
7
|
runs-on: ubuntu-latest
|
8
|
+
steps: # https://michaelheap.com/dynamic-matrix-generation-github-actions/
|
9
|
+
- id: set-matrix
|
10
|
+
run: echo "::set-output name=version_matrix::$(curl https://endoflife.date/api/ruby.json | jq -c '[.[] | select(.eol > (now | strftime("%Y-%m-%d"))) | .cycle]')"
|
11
|
+
outputs:
|
12
|
+
version_matrix: ${{ steps.set-matrix.outputs.version_matrix }}
|
13
|
+
ci:
|
14
|
+
needs: build-matrix
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
version: ${{ fromJson(needs.build-matrix.outputs.version_matrix) }}
|
8
19
|
steps:
|
9
20
|
- uses: actions/checkout@v2
|
10
21
|
- name: Set up Ruby
|
11
22
|
uses: ruby/setup-ruby@v1
|
12
23
|
with:
|
13
|
-
ruby-version:
|
24
|
+
ruby-version: ${{ matrix.version }}
|
14
25
|
bundler-cache: true
|
15
26
|
- name: Run the default task
|
16
27
|
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
|
+
## [0.6.0] - 2024-10-07
|
2
|
+
- Upgrade Ruby to Version 3.3.5
|
3
|
+
- Upgrade Faraday to Version 2
|
4
|
+
- Removes faraday_middleware as it is no longer supported
|
5
|
+
- Updates the Connection builder to not use the calls specific to faraday_middleware
|
6
|
+
- Upgrade activesupport to 7.2
|
7
|
+
- Upgrade Sinatra to version 3
|
8
|
+
|
1
9
|
## [Unreleased]
|
2
10
|
|
11
|
+
- Ownership transferred to `@andyw8` ([#108](https://github.com/turadg/pocket-ruby/pull/108))
|
12
|
+
- Set Faraday version constraint ([#104](https://github.com/turadg/pocket-ruby/pull/104))
|
13
|
+
|
3
14
|
## [0.5.0] - 2021-05-15
|
4
15
|
|
5
16
|
- Use Sinatra 2. ([#92](https://github.com/turadg/pocket-ruby/pull/92))
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,104 +1,143 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pocket-ruby (0.
|
5
|
-
faraday
|
6
|
-
|
7
|
-
multi_json (~> 1.0, >= 1.0.3)
|
4
|
+
pocket-ruby (0.6.0)
|
5
|
+
faraday
|
6
|
+
multi_json (>= 1.15.0)
|
8
7
|
|
9
8
|
GEM
|
10
|
-
remote:
|
9
|
+
remote: https://rubygems.org/
|
11
10
|
specs:
|
12
|
-
|
13
|
-
|
11
|
+
activesupport (7.2.1)
|
12
|
+
base64
|
13
|
+
bigdecimal
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
15
|
+
connection_pool (>= 2.2.5)
|
16
|
+
drb
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
logger (>= 1.4.2)
|
19
|
+
minitest (>= 5.1)
|
20
|
+
securerandom (>= 0.3)
|
21
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
22
|
+
addressable (2.8.7)
|
23
|
+
public_suffix (>= 2.0.2, < 7.0)
|
14
24
|
ast (2.4.2)
|
15
|
-
|
25
|
+
base64 (0.2.0)
|
26
|
+
bigdecimal (3.1.8)
|
27
|
+
concurrent-ruby (1.3.4)
|
28
|
+
connection_pool (2.4.1)
|
29
|
+
crack (1.0.0)
|
30
|
+
bigdecimal
|
16
31
|
rexml
|
17
|
-
docile (1.
|
18
|
-
|
19
|
-
|
20
|
-
faraday-net_http (
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
32
|
+
docile (1.4.1)
|
33
|
+
drb (2.2.1)
|
34
|
+
faraday (2.12.0)
|
35
|
+
faraday-net_http (>= 2.0, < 3.4)
|
36
|
+
json
|
37
|
+
logger
|
38
|
+
faraday-net_http (3.3.0)
|
39
|
+
net-http
|
40
|
+
hashdiff (1.1.1)
|
41
|
+
i18n (1.14.6)
|
42
|
+
concurrent-ruby (~> 1.0)
|
43
|
+
json (2.7.2)
|
44
|
+
language_server-protocol (3.17.0.3)
|
45
|
+
lint_roller (1.1.0)
|
46
|
+
logger (1.6.1)
|
47
|
+
minitest (5.25.1)
|
30
48
|
multi_json (1.15.0)
|
31
|
-
multi_xml (0.
|
32
|
-
|
33
|
-
mustermann (
|
49
|
+
multi_xml (0.7.1)
|
50
|
+
bigdecimal (~> 3.1)
|
51
|
+
mustermann (3.0.3)
|
34
52
|
ruby2_keywords (~> 0.0.1)
|
35
|
-
|
36
|
-
|
53
|
+
net-http (0.4.1)
|
54
|
+
uri
|
55
|
+
parallel (1.26.3)
|
56
|
+
parser (3.3.5.0)
|
37
57
|
ast (~> 2.4.1)
|
38
|
-
|
39
|
-
public_suffix (
|
40
|
-
|
41
|
-
rack
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
58
|
+
racc
|
59
|
+
public_suffix (6.0.1)
|
60
|
+
racc (1.8.1)
|
61
|
+
rack (2.2.9)
|
62
|
+
rack-protection (3.2.0)
|
63
|
+
base64 (>= 0.1.0)
|
64
|
+
rack (~> 2.2, >= 2.2.4)
|
65
|
+
rainbow (3.1.1)
|
66
|
+
rake (13.2.1)
|
67
|
+
regexp_parser (2.9.2)
|
68
|
+
rexml (3.3.7)
|
69
|
+
rubocop (1.65.1)
|
70
|
+
json (~> 2.3)
|
71
|
+
language_server-protocol (>= 3.17.0)
|
48
72
|
parallel (~> 1.10)
|
49
|
-
parser (>= 3.
|
73
|
+
parser (>= 3.3.0.2)
|
50
74
|
rainbow (>= 2.2.2, < 4.0)
|
51
|
-
regexp_parser (>=
|
52
|
-
rexml
|
53
|
-
rubocop-ast (>= 1.
|
75
|
+
regexp_parser (>= 2.4, < 3.0)
|
76
|
+
rexml (>= 3.2.5, < 4.0)
|
77
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
54
78
|
ruby-progressbar (~> 1.7)
|
55
|
-
unicode-display_width (>=
|
56
|
-
rubocop-ast (1.
|
57
|
-
parser (>=
|
58
|
-
rubocop-performance (1.
|
59
|
-
rubocop (>=
|
60
|
-
rubocop-ast (>=
|
61
|
-
ruby-progressbar (1.
|
62
|
-
ruby2_keywords (0.0.
|
63
|
-
|
79
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
80
|
+
rubocop-ast (1.32.3)
|
81
|
+
parser (>= 3.3.1.0)
|
82
|
+
rubocop-performance (1.21.1)
|
83
|
+
rubocop (>= 1.48.1, < 2.0)
|
84
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
85
|
+
ruby-progressbar (1.13.0)
|
86
|
+
ruby2_keywords (0.0.5)
|
87
|
+
securerandom (0.3.1)
|
88
|
+
simplecov (0.22.0)
|
64
89
|
docile (~> 1.1)
|
65
90
|
simplecov-html (~> 0.11)
|
66
91
|
simplecov_json_formatter (~> 0.1)
|
67
|
-
simplecov-html (0.
|
68
|
-
simplecov_json_formatter (0.1.
|
69
|
-
sinatra (2.
|
70
|
-
mustermann (~>
|
71
|
-
rack (~> 2.2)
|
72
|
-
rack-protection (= 2.
|
92
|
+
simplecov-html (0.13.1)
|
93
|
+
simplecov_json_formatter (0.1.4)
|
94
|
+
sinatra (3.2.0)
|
95
|
+
mustermann (~> 3.0)
|
96
|
+
rack (~> 2.2, >= 2.2.4)
|
97
|
+
rack-protection (= 3.2.0)
|
73
98
|
tilt (~> 2.0)
|
74
|
-
standard (1.0
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
99
|
+
standard (1.40.0)
|
100
|
+
language_server-protocol (~> 3.17.0.2)
|
101
|
+
lint_roller (~> 1.0)
|
102
|
+
rubocop (~> 1.65.0)
|
103
|
+
standard-custom (~> 1.0.0)
|
104
|
+
standard-performance (~> 1.4)
|
105
|
+
standard-custom (1.0.2)
|
106
|
+
lint_roller (~> 1.0)
|
107
|
+
rubocop (~> 1.50)
|
108
|
+
standard-performance (1.4.0)
|
109
|
+
lint_roller (~> 1.1)
|
110
|
+
rubocop-performance (~> 1.21.0)
|
111
|
+
tilt (2.4.0)
|
112
|
+
tzinfo (2.0.6)
|
113
|
+
concurrent-ruby (~> 1.0)
|
114
|
+
unicode-display_width (2.6.0)
|
115
|
+
uri (0.13.1)
|
116
|
+
webmock (3.23.1)
|
117
|
+
addressable (>= 2.8.0)
|
83
118
|
crack (>= 0.3.2)
|
84
119
|
hashdiff (>= 0.4.0, < 2.0.0)
|
85
|
-
yard (0.9.
|
120
|
+
yard (0.9.37)
|
86
121
|
|
87
122
|
PLATFORMS
|
123
|
+
arm64-darwin-22
|
124
|
+
arm64-darwin-23
|
125
|
+
ruby
|
126
|
+
universal-darwin-21
|
88
127
|
x86_64-darwin-19
|
89
128
|
x86_64-darwin-20
|
90
129
|
x86_64-linux
|
91
130
|
|
92
131
|
DEPENDENCIES
|
132
|
+
activesupport (>= 7)
|
93
133
|
multi_xml
|
94
134
|
pocket-ruby!
|
95
135
|
rake
|
96
136
|
simplecov
|
97
|
-
sinatra (~>
|
137
|
+
sinatra (~> 3)
|
98
138
|
standard
|
99
|
-
test-unit
|
100
139
|
webmock
|
101
140
|
yard
|
102
141
|
|
103
142
|
BUNDLED WITH
|
104
|
-
2.
|
143
|
+
2.5.21
|
data/README.md
CHANGED
@@ -5,22 +5,24 @@ pocket-ruby
|
|
5
5
|
|
6
6
|
Ruby API for v3 of the [Pocket API](http://getpocket.com/developer/docs/overview) (formerly Read It Later)
|
7
7
|
|
8
|
+
Written by and previously maintained by [@turadg](https://github.com/turadg).
|
9
|
+
|
8
10
|
# Usage
|
9
11
|
|
10
|
-
|
12
|
+
Clone the repo and refer to `demo-server.rb` for examples on how to interact with the Pocket API.
|
11
13
|
|
12
14
|
```sh
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
git clone
|
16
|
+
cd pocket-ruby
|
17
|
+
bundle install
|
18
|
+
ruby demo-server.rb
|
17
19
|
```
|
18
20
|
|
19
21
|
*Note:* Changes to the `demo-server.rb` will require a restart to take effect (or you can use [rerun](https://github.com/alexch/rerun)).
|
20
22
|
|
21
23
|
Pocket-Ruby can be installed via the gem, ```gem install pocket-ruby```
|
22
24
|
|
23
|
-
Or via bundler,
|
25
|
+
Or via bundler, `gem 'pocket-ruby'`
|
24
26
|
|
25
27
|
## Pocket API Notes
|
26
28
|
|
@@ -10,7 +10,7 @@ module Faraday
|
|
10
10
|
# 50X 199 Pocket server issue.
|
11
11
|
#
|
12
12
|
# @see http://getpocket.com/developer/docs/authentication
|
13
|
-
class Response::RaisePocketError < Response
|
13
|
+
class Response::RaisePocketError < Faraday::Response
|
14
14
|
CLIENT_ERROR_STATUSES = 400...600
|
15
15
|
|
16
16
|
def on_complete(env)
|
data/lib/pocket/api.rb
CHANGED
@@ -5,13 +5,20 @@ module Pocket
|
|
5
5
|
# @private
|
6
6
|
class API
|
7
7
|
# @private
|
8
|
-
attr_accessor
|
8
|
+
attr_accessor :adapter,
|
9
|
+
:consumer_key,
|
10
|
+
:access_token,
|
11
|
+
:endpoint,
|
12
|
+
:redirect_uri,
|
13
|
+
:format,
|
14
|
+
:user_agent,
|
15
|
+
:proxy
|
9
16
|
|
10
17
|
# Creates a new API
|
11
18
|
def initialize(options = {})
|
12
19
|
options = Pocket.options.merge(options)
|
13
20
|
Configuration::VALID_OPTIONS_KEYS.each do |key|
|
14
|
-
send("#{key}=", options[key])
|
21
|
+
send(:"#{key}=", options[key])
|
15
22
|
end
|
16
23
|
end
|
17
24
|
|
data/lib/pocket/configuration.rb
CHANGED
@@ -54,7 +54,14 @@ module Pocket
|
|
54
54
|
DEFAULT_USER_AGENT = "Pocket Ruby Gem #{Pocket::VERSION}".freeze
|
55
55
|
|
56
56
|
# @private
|
57
|
-
attr_accessor
|
57
|
+
attr_accessor :adapter,
|
58
|
+
:consumer_key,
|
59
|
+
:access_token,
|
60
|
+
:endpoint,
|
61
|
+
:redirect_uri,
|
62
|
+
:format,
|
63
|
+
:user_agent,
|
64
|
+
:proxy
|
58
65
|
|
59
66
|
# When this module is extended, set all configuration options to their default values
|
60
67
|
def self.extended(base)
|
data/lib/pocket/connection.rb
CHANGED
@@ -1,29 +1,32 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "faraday"
|
4
|
+
Dir[File.expand_path("faraday/*.rb", __dir__)].sort.each { |f| require f }
|
3
5
|
|
4
6
|
module Pocket
|
5
7
|
# @private
|
6
8
|
module Connection
|
7
9
|
private
|
8
10
|
|
9
|
-
def connection(
|
10
|
-
|
11
|
-
|
12
|
-
proxy: proxy,
|
13
|
-
ssl: {verify: false},
|
14
|
-
url: endpoint
|
15
|
-
}
|
16
|
-
|
17
|
-
Faraday::Connection.new(options) do |conn|
|
18
|
-
conn.use FaradayMiddleware::PocketOAuth, consumer_key, access_token
|
19
|
-
conn.use Faraday::Response::RaisePocketError
|
11
|
+
def connection(_raw: false)
|
12
|
+
Faraday::Connection.new(configure_options) do |conn|
|
13
|
+
conn.use(FaradayMiddleware::PocketOAuth, consumer_key, access_token)
|
20
14
|
|
21
15
|
conn.request :json
|
16
|
+
conn.response :json
|
22
17
|
|
23
|
-
conn.
|
24
|
-
|
18
|
+
conn.use(Faraday::Response::RaiseError)
|
25
19
|
conn.adapter Faraday.default_adapter
|
26
20
|
end
|
27
21
|
end
|
22
|
+
|
23
|
+
def configure_options
|
24
|
+
{
|
25
|
+
headers: {"User-Agent" => user_agent, "Content-Type" => "application/json"},
|
26
|
+
proxy: proxy,
|
27
|
+
ssl: {verify: false},
|
28
|
+
url: endpoint
|
29
|
+
}
|
30
|
+
end
|
28
31
|
end
|
29
32
|
end
|
data/lib/pocket/oauth.rb
CHANGED
@@ -13,24 +13,24 @@ module Pocket
|
|
13
13
|
# Return a Pocket code
|
14
14
|
def get_code(options = {})
|
15
15
|
params = access_token_params.merge(options)
|
16
|
-
response = connection.post
|
17
|
-
results =
|
16
|
+
response = connection.post("oauth/request", params)
|
17
|
+
results = URI.decode_www_form(response.body).to_h
|
18
18
|
results["code"]
|
19
19
|
end
|
20
20
|
|
21
21
|
# Return an access token from authorization
|
22
22
|
def get_access_token(code, options = {})
|
23
23
|
params = access_token_params.merge(code: code).merge(options)
|
24
|
-
response = connection.post
|
25
|
-
results =
|
24
|
+
response = connection.post("oauth/authorize", params)
|
25
|
+
results = URI.decode_www_form(response.body).to_h
|
26
26
|
results["access_token"]
|
27
27
|
end
|
28
28
|
|
29
29
|
# Return result from authorization
|
30
30
|
def get_result(code, options = {})
|
31
31
|
params = access_token_params.merge(code: code).merge(options)
|
32
|
-
response = connection.post
|
33
|
-
|
32
|
+
response = connection.post("oauth/authorize", params)
|
33
|
+
URI.decode_www_form(response.body).to_h
|
34
34
|
end
|
35
35
|
|
36
36
|
private
|
data/lib/pocket/version.rb
CHANGED
data/lib/pocket-ruby.rb
CHANGED
data/pocket-ruby.gemspec
CHANGED
@@ -1,29 +1,28 @@
|
|
1
1
|
require File.expand_path("../lib/pocket/version", __FILE__)
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
|
-
s.add_development_dependency("sinatra", "~>
|
4
|
+
s.add_development_dependency("sinatra", "~> 3")
|
5
5
|
s.add_development_dependency("multi_xml")
|
6
6
|
s.add_development_dependency("rake")
|
7
7
|
s.add_development_dependency("standard")
|
8
|
-
s.add_development_dependency("
|
8
|
+
s.add_development_dependency("activesupport", ">= 7")
|
9
9
|
s.add_development_dependency("simplecov")
|
10
10
|
s.add_development_dependency("webmock")
|
11
11
|
s.add_development_dependency("yard")
|
12
|
-
|
13
|
-
s.add_runtime_dependency("
|
14
|
-
s.add_runtime_dependency("multi_json", ">= 1.
|
12
|
+
|
13
|
+
s.add_runtime_dependency("faraday")
|
14
|
+
s.add_runtime_dependency("multi_json", ">= 1.15.0")
|
15
|
+
|
15
16
|
s.authors = ["Turadg Aleahmad", "Jason Ng PT", "Andy Waite"]
|
16
17
|
s.description = "A Ruby wrapper for the Pocket API v3 (Add, Modify and Retrieve)"
|
17
18
|
s.email = ["turadg@aleahmad.net", "me@jasonngpt.com"]
|
18
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
19
20
|
s.files = `git ls-files`.split("\n")
|
20
|
-
s.homepage = "https://github.com/
|
21
|
+
s.homepage = "https://github.com/andyw8/pocket-ruby"
|
21
22
|
s.name = "pocket-ruby"
|
22
23
|
s.platform = Gem::Platform::RUBY
|
23
24
|
s.require_paths = ["lib"]
|
24
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
25
|
-
s.rubyforge_project = s.name
|
25
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 2.5.21") if s.respond_to? :required_rubygems_version=
|
26
26
|
s.summary = "Ruby wrapper for the Pocket API v3"
|
27
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
28
27
|
s.version = Pocket::VERSION
|
29
28
|
end
|
data/test/pocket/article_test.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "test_helper"
|
2
2
|
|
3
3
|
module Pocket
|
4
|
-
class ArticleTest <
|
4
|
+
class ArticleTest < ActiveSupport::TestCase
|
5
5
|
setup do
|
6
6
|
@article = Pocket::Article.new(parsed_response)
|
7
7
|
end
|
@@ -51,7 +51,7 @@ module Pocket
|
|
51
51
|
end
|
52
52
|
|
53
53
|
test "excerpt" do
|
54
|
-
|
54
|
+
assert_includes @article.excerpt, "list of things"
|
55
55
|
end
|
56
56
|
|
57
57
|
test "excerpt is nil if field not present" do
|
data/test/pocket/client_test.rb
CHANGED
data/test/pocket/version_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pocket-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Turadg Aleahmad
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-10-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sinatra
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
21
|
+
version: '3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
28
|
+
version: '3'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: multi_xml
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,19 +69,19 @@ dependencies:
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: activesupport
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
77
|
+
version: '7'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
84
|
+
version: '7'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: simplecov
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,20 +126,6 @@ dependencies:
|
|
126
126
|
version: '0'
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: faraday
|
129
|
-
requirement: !ruby/object:Gem::Requirement
|
130
|
-
requirements:
|
131
|
-
- - ">="
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: '1.0'
|
134
|
-
type: :runtime
|
135
|
-
prerelease: false
|
136
|
-
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
requirements:
|
138
|
-
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
version: '1.0'
|
141
|
-
- !ruby/object:Gem::Dependency
|
142
|
-
name: faraday_middleware
|
143
129
|
requirement: !ruby/object:Gem::Requirement
|
144
130
|
requirements:
|
145
131
|
- - ">="
|
@@ -158,20 +144,14 @@ dependencies:
|
|
158
144
|
requirements:
|
159
145
|
- - ">="
|
160
146
|
- !ruby/object:Gem::Version
|
161
|
-
version: 1.0
|
162
|
-
- - "~>"
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '1.0'
|
147
|
+
version: 1.15.0
|
165
148
|
type: :runtime
|
166
149
|
prerelease: false
|
167
150
|
version_requirements: !ruby/object:Gem::Requirement
|
168
151
|
requirements:
|
169
152
|
- - ">="
|
170
153
|
- !ruby/object:Gem::Version
|
171
|
-
version: 1.0
|
172
|
-
- - "~>"
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: '1.0'
|
154
|
+
version: 1.15.0
|
175
155
|
description: A Ruby wrapper for the Pocket API v3 (Add, Modify and Retrieve)
|
176
156
|
email:
|
177
157
|
- turadg@aleahmad.net
|
@@ -183,6 +163,7 @@ files:
|
|
183
163
|
- ".github/workflows/changelog-checker.yml"
|
184
164
|
- ".github/workflows/tests.yml"
|
185
165
|
- ".gitignore"
|
166
|
+
- ".ruby-version"
|
186
167
|
- ".yardopts"
|
187
168
|
- CHANGELOG.md
|
188
169
|
- Gemfile
|
@@ -211,7 +192,7 @@ files:
|
|
211
192
|
- test/pocket/client_test.rb
|
212
193
|
- test/pocket/version_test.rb
|
213
194
|
- test/test_helper.rb
|
214
|
-
homepage: https://github.com/
|
195
|
+
homepage: https://github.com/andyw8/pocket-ruby
|
215
196
|
licenses: []
|
216
197
|
metadata: {}
|
217
198
|
post_install_message:
|
@@ -227,15 +208,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
208
|
requirements:
|
228
209
|
- - ">="
|
229
210
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
211
|
+
version: 2.5.21
|
231
212
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
213
|
+
rubygems_version: 3.5.16
|
233
214
|
signing_key:
|
234
215
|
specification_version: 4
|
235
216
|
summary: Ruby wrapper for the Pocket API v3
|
236
|
-
test_files:
|
237
|
-
- test/fixtures/retreive.json
|
238
|
-
- test/pocket/article_test.rb
|
239
|
-
- test/pocket/client_test.rb
|
240
|
-
- test/pocket/version_test.rb
|
241
|
-
- test/test_helper.rb
|
217
|
+
test_files: []
|