apple-news 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apple-news.rb +1 -0
- data/lib/apple-news/article/attachments.rb +6 -2
- data/lib/apple-news/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2368f1c3e4a9504b17a7b65f8a8c47b6ee1390
|
4
|
+
data.tar.gz: bafb7a266fcbf601c2fe7e876899c58f9c94e702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8732e4c0cf51edbd981629db77684e61a64bb1b6ce876d56f703bb638c1ef483f36e8c5efb8aa97c71ce1ca8c94ecfcbf363cff79c8b6fb2d285cec2b79322ea
|
7
|
+
data.tar.gz: 6f588ee5a9e05fef75508fdda97af14075ff5957c030861d113361f2b87d8a394b91b5bcf9a10f456259a0de2514cdb508b439b0f56ef4ea6a892ffd49d3ee93
|
data/lib/apple-news.rb
CHANGED
@@ -15,8 +15,12 @@ module AppleNews
|
|
15
15
|
add_file(File.new(path))
|
16
16
|
end
|
17
17
|
|
18
|
-
def add_string_as_file(name, contents,
|
19
|
-
@files[name] = UploadIO.new(StringIO.new(contents),
|
18
|
+
def add_string_as_file(name, contents, mime)
|
19
|
+
@files[name] = UploadIO.new(StringIO.new(contents), mime, name)
|
20
|
+
end
|
21
|
+
|
22
|
+
def add_file_at_url(name, url, mime)
|
23
|
+
@files[name] = UploadIO.new(open(url), mime, name)
|
20
24
|
end
|
21
25
|
|
22
26
|
private
|
data/lib/apple-news/version.rb
CHANGED