shrine-storage-you_tube 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 294ce939d884122234328a9458cbaceda8c7c53d
4
- data.tar.gz: 5688b2ca8885b1cc6075485bf7ab4d52b0564456
3
+ metadata.gz: be1944c1ef0f898084f8ebde62e7363b142180c0
4
+ data.tar.gz: 128a6104260ccdbabc5c6d46a666db4fba5a6e5f
5
5
  SHA512:
6
- metadata.gz: 7892977f4c52e090bd56f015a6c3835006547923f2164df2648fecaced615c5499092577acdf3bf0cbbb73e33279286661ca5906c5c5160f8c8a020b99847a58
7
- data.tar.gz: c3240f13832aabbb0662b19d83304c1112a807ff582022c745956de40cc4895e7e905ca4050466e3dc37965854c1d8b63a81f95c764f2664417c0dc4957b4b0c
6
+ metadata.gz: 573cb7b6fdbdf119dd4eeaa48bb1003309a9723833d5ada5c97068c2cf49dddd52543f75f6110c53525672951e87c30fa555abf8b0ce274f6a8908890e6c5192
7
+ data.tar.gz: 575d76483abb6810dcfe2cffb0e46e7211e96a355a5d8516af5cb3c096d4b468a8a664e34a8083fa9d9a3add6a67d7ec765ed157a13f4dcbf851da4337c346f6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 The Dyrt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,7 +1,7 @@
1
1
  class Shrine
2
2
  module Storage
3
3
  class YouTube
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
7
7
  end
@@ -141,7 +141,8 @@ class Shrine
141
141
  rescue Google::Apis::ClientError => e
142
142
  raise e unless (
143
143
  e.message.include?('mediaBodyRequired') ||
144
- e.message.include?('invalidFilename')
144
+ e.message.include?('invalidFilename') ||
145
+ e.message.include?('Invalid upload source')
145
146
  ) && io.respond_to?(:download)
146
147
 
147
148
  youtube.insert_video('snippet', video_data, upload_source: io.download)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-storage-you_tube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Beels
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-24 00:00:00.000000000 Z
12
+ date: 2017-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shrine
@@ -134,6 +134,7 @@ files:
134
134
  - ".rspec"
135
135
  - ".travis.yml"
136
136
  - Gemfile
137
+ - LICENSE.txt
137
138
  - README.md
138
139
  - Rakefile
139
140
  - bin/console