omniauth-cronofy 0.3.0 → 0.4.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
  SHA1:
3
- metadata.gz: 61f81adfbf6d94e745152ae8c9351e665dcf4bbf
4
- data.tar.gz: 8ef79bb2a75573f2cd7e9abc47ef73e010d12410
3
+ metadata.gz: a0e963beee307e1ef87bf7bc57d9000a8e25ee4d
4
+ data.tar.gz: 7dd00cee896904e6b896579381ddf9f85d1e56a9
5
5
  SHA512:
6
- metadata.gz: c71705a27bc7ee3348c61bcfff9add5edf176d47f1ef7cdf964df8c146b745c7979d6c1063bbbd6c395f9877110125d88c71c8d93915f8b5a1da09362cc1ead8
7
- data.tar.gz: 71a68ce1af410fc35ce4e457abb3f4953ff9d84cfc2a37c26b8580bbf3433d1f8b505c4559dafad1fd1cbb8046f65556a9207e0a6646a72f8434e9cfdd9c9161
6
+ metadata.gz: 342d5d5108bf4c42773f87a03c06200d44b9c64859a9d018a545e9b1a587122d9b9964d290eab9940662d7ecd106123d81d76f428702380190bea2752c20d9fa
7
+ data.tar.gz: 8875413cdd2af311049dc9d9c1aeb4beb2f5811c62250b89fadfc95b8e1c2d30c3a71277ba0a7c94d2fbbd4a0af58fcabc4e0a267497a958f2bafc61002f1675
@@ -41,9 +41,13 @@ module OmniAuth
41
41
  }
42
42
  end
43
43
 
44
+ def callback_url
45
+ options[:redirect_uri] || (full_host + script_name + callback_path)
46
+ end
47
+
44
48
  def raw_info
45
49
  @raw_info ||= access_token.get("#{::OmniAuth::Strategies::Cronofy.api_url}/v1/account").parsed['account']
46
50
  end
47
51
  end
48
52
  end
49
- end
53
+ end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Cronofy
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
- end
5
+ end
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "omniauth", "1.2.2"
23
- spec.add_dependency "omniauth-oauth2", "1.3.1"
22
+ spec.add_dependency "omniauth", "~> 1.2"
23
+ spec.add_dependency "omniauth-oauth2", "~> 1.3"
24
24
  spec.add_development_dependency "bundler", "~> 1.8"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-cronofy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bird
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.2
19
+ version: '1.2'
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.2.2
26
+ version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth-oauth2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.1
33
+ version: '1.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.1
40
+ version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement