slainer68_youtube_it 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -425,6 +425,10 @@ class YouTubeIt
425
425
  @access_token ||= ::OAuth2::AccessToken.new(oauth_client, @client_access_token, :refresh_token => @client_refresh_token)
426
426
  end
427
427
 
428
+ def refresh_access_token!
429
+ @access_token = access_token.refresh!
430
+ end
431
+
428
432
  def current_user
429
433
  profile = access_token.get("http://gdata.youtube.com/feeds/api/users/default")
430
434
  response_code = profile.status
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "slainer68_youtube_it"
8
- s.version = "2.1.1"
8
+ s.version = "2.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kylejginavan", "chebyte", "mseppae", "slainer68"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slainer68_youtube_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,7 +16,7 @@ date: 2012-01-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: oauth
19
- requirement: &70313814854780 !ruby/object:Gem::Requirement
19
+ requirement: &70240040906600 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: '0'
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70313814854780
27
+ version_requirements: *70240040906600
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: simple_oauth
30
- requirement: &70313814869600 !ruby/object:Gem::Requirement
30
+ requirement: &70240040905940 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: '0'
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70313814869600
38
+ version_requirements: *70240040905940
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: faraday
41
- requirement: &70313814869100 !ruby/object:Gem::Requirement
41
+ requirement: &70240040905460 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: '0'
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70313814869100
49
+ version_requirements: *70240040905460
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: builder
52
- requirement: &70313814868440 !ruby/object:Gem::Requirement
52
+ requirement: &70240040904960 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *70313814868440
60
+ version_requirements: *70240040904960
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: oauth2
63
- requirement: &70313814867740 !ruby/object:Gem::Requirement
63
+ requirement: &70240040904440 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: '0'
69
69
  type: :runtime
70
70
  prerelease: false
71
- version_requirements: *70313814867740
71
+ version_requirements: *70240040904440
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: faraday
74
- requirement: &70313814867000 !ruby/object:Gem::Requirement
74
+ requirement: &70240040903940 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: 0.7.3
80
80
  type: :runtime
81
81
  prerelease: false
82
- version_requirements: *70313814867000
82
+ version_requirements: *70240040903940
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: builder
85
- requirement: &70313814866300 !ruby/object:Gem::Requirement
85
+ requirement: &70240040903120 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: '0'
91
91
  type: :runtime
92
92
  prerelease: false
93
- version_requirements: *70313814866300
93
+ version_requirements: *70240040903120
94
94
  description: Upload, delete, update, comment on youtube videos all from one gem.
95
95
  email: slainer68@gmail.com
96
96
  executables: []