omniauth-todoist 0.6.0 → 0.7.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: d29816ef507d52e5326905bb48fb9dd46757d1eedaccf83f61b34e6529518cd3
4
- data.tar.gz: 6fd8386c3f35661fe6fe03cc5e28a18c3116e69c0d2e34dbf247774592e72609
3
+ metadata.gz: 6c826901b3bd7daecb9d28372a0f0105b00dd234173986ab76d90dce17fe5c78
4
+ data.tar.gz: bfb2194c3d7ca869d24867b51500ca88369be49511690e2b82971fb02aa26316
5
5
  SHA512:
6
- metadata.gz: e274c236747373710172d8d40d3815030ea187532e3d282b0fa0e5e02bba783f85c3032cf7dbd3859fd3fa663be3f2165327acff40239440610c95120341687e
7
- data.tar.gz: 859d83e0d937540fa60c7d429bbeef0d99b4e1d3694fd2faa659321ef261736033cecadc67a4e141fb79548b82bc08ac93090777007072e69f9d266d3f219e29
6
+ metadata.gz: 5be13dfbe6ef3b14637058556e3325f162825213cf7dc583cf6418845037427b4faf26babe0c8b4a0ebd18b90294ecc82548579778a4b4496d3d581b64f02688
7
+ data.tar.gz: 99e8c7485f8fd1db7d289dddfff299d53f95d8e5d4246308cf24b38262bfff193b26480c50e514c12258789523394ec98c7e857c43c22bbae0759ecc88a3578d
data/CHANGES.md ADDED
@@ -0,0 +1,6 @@
1
+ 0.7.1:
2
+ * update from v9 sync to v1 Feb 2026
3
+ * stop sending token as parameter for raw_info
4
+ * update site url to "api.todoist.com"
5
+ 0.6.0:
6
+ * Update from v8 API to v9 API
@@ -8,7 +8,7 @@ module OmniAuth
8
8
  option :name, "todoist"
9
9
 
10
10
  option :client_options, {
11
- site: "https://todoist.com",
11
+ site: "https://api.todoist.com",
12
12
  authorize_url: "/oauth/authorize",
13
13
  token_url: "/oauth/access_token"
14
14
  }
@@ -45,15 +45,15 @@ module OmniAuth
45
45
  @raw_info ||= begin
46
46
  params = {
47
47
  headers: {
48
- "Content-Type" => "application/x-www-form-urlencoded"
48
+ "Content-Type" => "application/x-www-form-urlencoded",
49
+ "Authorization" => "Bearer #{access_token.token}",
49
50
  },
50
51
  body: {
51
- token: access_token.token,
52
52
  sync_token: "*",
53
53
  resource_types: '["user"]'
54
54
  }
55
55
  }
56
- access_token.post("https://api.todoist.com/sync/v9/sync", params).parsed.fetch('user', {})
56
+ access_token.post("https://api.todoist.com/api/v1/sync", params).parsed.fetch('user', {})
57
57
  end
58
58
  end
59
59
 
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Todoist
3
- VERSION = "0.6.0"
3
+ VERSION = "0.7.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-todoist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bethany Soule
8
8
  - Joel Van Horn
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-12-05 00:00:00.000000000 Z
12
+ date: 2026-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth
@@ -90,6 +90,7 @@ extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
92
  - ".gitignore"
93
+ - CHANGES.md
93
94
  - Gemfile
94
95
  - LICENSE.txt
95
96
  - README.md
@@ -101,7 +102,7 @@ homepage: https://github.com/beeminder/omniauth-todoist
101
102
  licenses:
102
103
  - MIT
103
104
  metadata: {}
104
- post_install_message:
105
+ post_install_message:
105
106
  rdoc_options: []
106
107
  require_paths:
107
108
  - lib
@@ -116,9 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  - !ruby/object:Gem::Version
117
118
  version: '0'
118
119
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.7.6.3
121
- signing_key:
120
+ rubygems_version: 3.4.10
121
+ signing_key:
122
122
  specification_version: 4
123
123
  summary: OmniAuth strategy for Todoist
124
124
  test_files: []