youtuberb 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 077f18d1405580ce9255dc91b55e8c05a752580a3e1745fa2f86c86ec2209a87
4
- data.tar.gz: 76149a42121aeb7ae410429e83db0aa5f646b4b94cfd0bfa0298be163e217cc1
3
+ metadata.gz: 621b21bea6af44d5d861d0fd9f6d4394b0cc4f164c87e96ae97b49b284f9187a
4
+ data.tar.gz: 0623d21c9c87e88c0968f25e405959994cbdd57c6578c491a471c21afec098e1
5
5
  SHA512:
6
- metadata.gz: 86b29dcf4cc5b3d5a2e53a816e2f2831dd37f578afeb0bc60e5686f8a847049b2cf7b76eb3923b6d118afe33d51ec0438be6ab84cce9274e1821ac6ecfc2f043
7
- data.tar.gz: 18fad6518cd63067765c06786627a1645d1909ee64c57d3690b586d2949aad5a84015726160654ace922f37831569845560638677da4ff220936da210bb1627a
6
+ metadata.gz: 508dc5051850a3378fceb20a15e569a6b58d6eb456271d8cd4247b394e5c241d6015085e36150258775d2b2fb71d75f5c69f77193774f7dd3fcd5a4502450501
7
+ data.tar.gz: 04c65890328f1126f5760d91ee984a046c464143936420a61628dbcdd139171db51071496de3413d7cb4b514559536ca19cc345456ad113716eaa5d57e648b3a
data/Gemfile.lock CHANGED
@@ -1,25 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- youtuberb (0.1.0)
4
+ youtuberb (0.1.1)
5
5
  faraday (~> 1.7)
6
- faraday-multipart (~> 1.0)
7
6
  faraday_middleware (~> 1.1)
8
7
 
9
8
  GEM
10
9
  remote: https://rubygems.org/
11
10
  specs:
12
11
  dotenv (2.7.6)
13
- faraday (1.8.0)
12
+ faraday (1.9.3)
14
13
  faraday-em_http (~> 1.0)
15
14
  faraday-em_synchrony (~> 1.0)
16
15
  faraday-excon (~> 1.1)
17
- faraday-httpclient (~> 1.0.1)
16
+ faraday-httpclient (~> 1.0)
17
+ faraday-multipart (~> 1.0)
18
18
  faraday-net_http (~> 1.0)
19
- faraday-net_http_persistent (~> 1.1)
19
+ faraday-net_http_persistent (~> 1.0)
20
20
  faraday-patron (~> 1.0)
21
21
  faraday-rack (~> 1.0)
22
- multipart-post (>= 1.2, < 3)
22
+ faraday-retry (~> 1.0)
23
23
  ruby2_keywords (>= 0.0.4)
24
24
  faraday-em_http (1.0.0)
25
25
  faraday-em_synchrony (1.0.0)
@@ -31,6 +31,7 @@ GEM
31
31
  faraday-net_http_persistent (1.2.0)
32
32
  faraday-patron (1.0.0)
33
33
  faraday-rack (1.0.0)
34
+ faraday-retry (1.0.3)
34
35
  faraday_middleware (1.2.0)
35
36
  faraday (~> 1.0)
36
37
  multipart-post (2.1.1)
@@ -46,4 +47,4 @@ DEPENDENCIES
46
47
  youtuberb!
47
48
 
48
49
  BUNDLED WITH
49
- 2.3.5
50
+ 2.3.6
@@ -41,14 +41,5 @@ module YouTube
41
41
  end
42
42
  end
43
43
 
44
- # Uses Faraday Multipart (lostisland/faraday-multipart)
45
- def connection_upload
46
- @connection ||= Faraday.new("https://www.googleapis.com/upload/youtube/v3/") do |conn|
47
- conn.request :authorization, :Bearer, access_token
48
- conn.request :multipart
49
- conn.response :json, content_type: "application/json"
50
- end
51
- end
52
-
53
44
  end
54
45
  end
@@ -24,18 +24,5 @@ module YouTube
24
24
  Video.new(response.body["items"][0])
25
25
  end
26
26
 
27
- # Uploads a video
28
- # Currently just uploads a video
29
- # Needs more testing
30
- # https://developers.google.com/youtube/v3/docs/videos/insert
31
- def upload(file:)
32
- payload = {}
33
- payload[:media] = Faraday::Multipart::FilePart.new(file, "video/*")
34
-
35
- response = client.connection_upload.post "videos", payload
36
-
37
- response.body
38
- end
39
-
40
27
  end
41
28
  end
@@ -1,3 +1,3 @@
1
1
  module YouTube
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/you_tube.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "faraday"
2
2
  require "faraday_middleware"
3
- require "faraday/multipart"
4
3
  require "json"
5
4
 
6
5
  require_relative "you_tube/version"
data/youtuberb.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.required_ruby_version = ">= 2.6.0"
15
15
 
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
- # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
17
+ spec.metadata["source_code_uri"] = "https://github.com/deanpcmad/youtuberb"
18
18
  # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
19
19
 
20
20
  # Specify which files should be added to the gem when it is released.
@@ -30,5 +30,4 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_dependency "faraday", "~> 1.7"
32
32
  spec.add_dependency "faraday_middleware", "~> 1.1"
33
- spec.add_dependency "faraday-multipart", "~> 1.0"
34
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtuberb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
- - !ruby/object:Gem::Dependency
42
- name: faraday-multipart
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.0'
55
41
  description:
56
42
  email:
57
43
  - dean@deanpcmad.com
@@ -89,6 +75,7 @@ licenses:
89
75
  - MIT
90
76
  metadata:
91
77
  homepage_uri: https://deanpcmad.com
78
+ source_code_uri: https://github.com/deanpcmad/youtuberb
92
79
  post_install_message:
93
80
  rdoc_options: []
94
81
  require_paths: