asana 0.9.0 → 0.9.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: fba81fcfd6e52f9ed9b9351753b1fc053ef365023841c54d82b64fe63615211b
4
- data.tar.gz: d69406d6cd8b45e8e824b6ab011f4ca4568ee08d41bb6c13da1e8f5c70c85d9d
3
+ metadata.gz: c7e42c12a06cd9c0d6342d983cb66ed9a286a3872cf99fd988fd984ff81cf237
4
+ data.tar.gz: b1b9194d425f220bb8a264c1d8528f281f8c59d24e591e562331f1aadcfe165d
5
5
  SHA512:
6
- metadata.gz: b5f09823b1fd94a67c66b80a98d2b22085c365c5ef45fe8103d132c44269434c199ad16ceeb616c9c6479bb7d7f6a25f878acafc59069432e98d7b61e2a56dec
7
- data.tar.gz: df14ac41b6115767e8844bd60524c2b73f3b219a9fa7937b9b5ae73ce6c00fdc10bce26a88b289f788a01de0dd4cb8edccf95c2c1886fb9a1e53c5cc5e2aa296
6
+ metadata.gz: d2b6c943f0c3051c8d43d4acc81fa3a28b185039775a011cc400af99c012fedcf17832455fbf10f03d895c14079ff6b64a4e2a8bc64c45b7838aa678169d00b5
7
+ data.tar.gz: d9cf7853899e3b5a0142c4085511e64e5c340fdb5f8057ddc12e80bf327dc0d3c47b720f1022db2e8fb966c17b1d46d0309b5281901f7ec8804705514ec645a5
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.required_ruby_version = '~> 2.0'
23
23
 
24
- spec.add_dependency "oauth2", "~> 1.0"
24
+ spec.add_dependency "oauth2", "~> 1.4"
25
25
  spec.add_dependency "faraday", "~> 0.9"
26
26
  spec.add_dependency "faraday_middleware", "~> 0.9"
27
27
  spec.add_dependency "faraday_middleware-multi_json", "~> 0.0"
@@ -1,6 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'omniauth', '~> 1.3'
4
- gem 'omniauth-asana'
5
- gem 'sinatra'
6
3
  gem 'asana', path: '../'
@@ -1,59 +1,39 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- asana (0.8.0)
4
+ asana (0.9.0)
5
5
  faraday (~> 0.9)
6
6
  faraday_middleware (~> 0.9)
7
7
  faraday_middleware-multi_json (~> 0.0)
8
- oauth2 (~> 1.0)
8
+ oauth2 (~> 1.4)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- faraday (0.9.1)
13
+ faraday (0.15.4)
14
14
  multipart-post (>= 1.2, < 3)
15
- faraday_middleware (0.12.2)
15
+ faraday_middleware (0.13.1)
16
16
  faraday (>= 0.7.4, < 1.0)
17
17
  faraday_middleware-multi_json (0.0.6)
18
18
  faraday_middleware
19
19
  multi_json
20
- hashie (3.5.7)
21
- jwt (1.5.0)
22
- multi_json (1.11.0)
23
- multi_xml (0.5.5)
24
- multipart-post (2.0.0)
25
- oauth2 (1.0.0)
26
- faraday (>= 0.8, < 0.10)
27
- jwt (~> 1.0)
20
+ jwt (2.2.1)
21
+ multi_json (1.13.1)
22
+ multi_xml (0.6.0)
23
+ multipart-post (2.1.1)
24
+ oauth2 (1.4.1)
25
+ faraday (>= 0.8, < 0.16.0)
26
+ jwt (>= 1.0, < 3.0)
28
27
  multi_json (~> 1.3)
29
28
  multi_xml (~> 0.5)
30
- rack (~> 1.2)
31
- omniauth (1.8.1)
32
- hashie (>= 3.4.6, < 3.6.0)
33
- rack (>= 1.6.2, < 3)
34
- omniauth-asana (0.0.1)
35
- omniauth (~> 1.0)
36
- omniauth-oauth2 (~> 1.1)
37
- omniauth-oauth2 (1.3.0)
38
- oauth2 (~> 1.0)
39
- omniauth (~> 1.2)
40
- rack (1.6.8)
41
- rack-protection (1.5.3)
42
- rack
43
- sinatra (1.4.6)
44
- rack (~> 1.4)
45
- rack-protection (~> 1.4)
46
- tilt (>= 1.3, < 3)
47
- tilt (2.0.1)
29
+ rack (>= 1.2, < 3)
30
+ rack (2.0.7)
48
31
 
49
32
  PLATFORMS
50
33
  ruby
51
34
 
52
35
  DEPENDENCIES
53
36
  asana!
54
- omniauth (~> 1.3)
55
- omniauth-asana
56
- sinatra
57
37
 
58
38
  BUNDLED WITH
59
- 1.16.1
39
+ 1.17.3
@@ -1,5 +1,5 @@
1
1
  #:nodoc:
2
2
  module Asana
3
3
  # Public: Version of the gem.
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
@@ -2,6 +2,6 @@
2
2
  "devDependencies": {
3
3
  "inflect": "^0.3.0",
4
4
  "js-yaml": "^3.2.5",
5
- "lodash": "^2.4.1"
5
+ "lodash": "^4.17.13"
6
6
  }
7
7
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Txus
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-12 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.4'
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: '1.0'
26
+ version: '1.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,20 +98,20 @@ dependencies:
98
98
  name: appraisal
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '2.1'
104
- - - "~>"
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: '2.1'
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - ">="
111
+ - - "~>"
112
112
  - !ruby/object:Gem::Version
113
113
  version: '2.1'
114
- - - "~>"
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '2.1'
117
117
  description: Official Ruby client for the Asana API
@@ -142,7 +142,6 @@ files:
142
142
  - examples/Gemfile.lock
143
143
  - examples/cli_app.rb
144
144
  - examples/events.rb
145
- - examples/omniauth_integration.rb
146
145
  - examples/personal_access_token.rb
147
146
  - lib/asana.rb
148
147
  - lib/asana/authentication.rb
@@ -210,7 +209,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
209
  - !ruby/object:Gem::Version
211
210
  version: '0'
212
211
  requirements: []
213
- rubygems_version: 3.0.4
212
+ rubyforge_project:
213
+ rubygems_version: 2.7.7
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Official Ruby client for the Asana API
@@ -1,54 +0,0 @@
1
- require 'bundler'
2
- Bundler.require
3
- require 'asana'
4
-
5
- class SinatraApp < Sinatra::Base
6
- id, secret = ENV['ASANA_CLIENT_ID'], ENV['ASANA_CLIENT_SECRET']
7
- unless id && secret
8
- abort "Run this program with the env vars ASANA_CLIENT_ID and ASANA_CLIENT_SECRET.\n" \
9
- "Refer to https://asana.com/developers/documentation/getting-started/authentication "\
10
- "to get your credentials."
11
- end
12
-
13
- use OmniAuth::Strategies::Asana, id, secret
14
-
15
- enable :sessions
16
-
17
- get '/' do
18
- if $client
19
- '<a href="/workspaces">My Workspaces</a>'
20
- else
21
- '<a href="/sign_in">sign in to asana</a>'
22
- end
23
- end
24
-
25
- get '/workspaces' do
26
- if $client
27
- "<h1>My Workspaces</h1>" \
28
- "<ul>" + $client.workspaces.find_all.map { |w| "<li>#{w.name}</li>" }.join + "</ul>"
29
- else
30
- redirect '/sign_in'
31
- end
32
- end
33
-
34
- get '/auth/:name/callback' do
35
- creds = request.env["omniauth.auth"]["credentials"].tap { |h| h.delete('expires') }
36
- strategy = request.env["omniauth.strategy"]
37
- access_token = OAuth2::AccessToken.from_hash(strategy.client, creds).refresh!
38
- $client = Asana::Client.new do |c|
39
- c.authentication :oauth2, access_token
40
- end
41
- redirect '/workspaces'
42
- end
43
-
44
- get '/sign_in' do
45
- redirect '/auth/asana'
46
- end
47
-
48
- get '/sign_out' do
49
- $client = nil
50
- redirect '/'
51
- end
52
- end
53
-
54
- SinatraApp.run! if __FILE__ == $0