mymedia-card 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0702cc76eaba9df35545af38fe45d7b9d9268e1
4
- data.tar.gz: 59e750147159c185bd5a23131cfcff8a6876d71e
3
+ metadata.gz: b38381d519d349f8b650391aa8a1d9db8d55a50f
4
+ data.tar.gz: 241e3abced2967e2c2d1640596f0f65de98a5268
5
5
  SHA512:
6
- metadata.gz: 49a21d88eb377074727688a0fc1952161b0c4fed6faa1fac6520a871c30b2647f52f970d58de0c44b53af9d30938a8a7908135b3bf9f087a0bbab2a16809f663
7
- data.tar.gz: a78754df99a6916c35592a5cf5dc5cdebfb8bb9efb2164612ca1b022f6012a08641d2dba9ee5742dc4252a36ddb64aad11758b22a0cc5ffca781e4266399ecdc
6
+ metadata.gz: 10bc3565f7a495019d9a534a22ebf4d10f4c06a370cf3ee36551a20e7848e7bd02e2b45e996d371671af37c0607ac430bbdc4fa88f360dd7cb8d66985f46e49e
7
+ data.tar.gz: 90565a73cd546cbe34cc26c617f6c376c14b9deb775c4cac0fab518fd4c8f254b82a00b87d5ccf5b873fca621ca52ff70537346327b5933bb38953acd923f0ae
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/mymedia-card.rb CHANGED
@@ -38,7 +38,7 @@ class MyMediaCard < MyMediaKvx
38
38
  static_path = "%s/%s/%s" % [@public_type, \
39
39
  Time.now.strftime('%Y/%b/%d').downcase, filename]
40
40
 
41
- raw_static_destination = "%s/%s/%s" % [@website, 'r',static_path]
41
+ raw_static_destination = "/r/%s" % [static_path]
42
42
 
43
43
  summary = {title: desc, tags: tags.join(' ')}
44
44
  body = {file: raw_static_destination}
@@ -60,7 +60,7 @@ class MyMediaCard < MyMediaKvx
60
60
  kvx, raw_msg = super(src_path, destination)
61
61
 
62
62
  # copy the media file to the destination
63
- destination = kvx.body[:file][/^https?:\/\/[^\/]+(.*)/,1]
63
+ destination = kvx.body[:file]
64
64
  file = destination[/[^\/]+$/]
65
65
  FileUtils.cp File.join(@media_src, file), File.join(@home, destination)
66
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mymedia-card
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- #}
2
- l��f�Fwi/���Z )���ZA[)Z ȱې��Z �ߨ��>ɒC���y���fsHI%(e���ی�6i��ݘ- &��B��'�Ԏ�Wǟ9��8�2��=�aXx
1
+ �L���Aj��*dZd��YqV��J�/e��4��g�
2
+ p��+9_]n��,��>�`��B#FӇD��@�Nj���8m�`B��JY"��5��3O���p]-ʙ��Qe��f@v fHk)''#�Rm�/�4����{� ����&V��{=b>�