mymedia 0.1.3 → 0.1.4

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: d0635045aecb44c5b91068ae0b1795a6928ad3b9
4
- data.tar.gz: f3985308f5f15a6d85e4abd1a78706a228f125ef
3
+ metadata.gz: 50b6e954c955779ac8445ad3c9d3a00a402dc982
4
+ data.tar.gz: 00f21018ece1fcce9effbf34364d55ba15f93b90
5
5
  SHA512:
6
- metadata.gz: f3a4545d4e2dc76f528df73001699149b4a4e70a4ea7ee585f5a66d5e34b4da860d5fd3c54a4ad3553bdca3c71b5bc280c2f5798f96059ad0d3da5aeeae1093e
7
- data.tar.gz: 33c02d4c264da87e17085a90b9200d1b97005932be0561035e9373f1d32aaf54bdf99cf1768945c46ba8e145ba4dec0586adcb79be34cd5b4eb9abb54e70ff19
6
+ metadata.gz: f82af352648d1e8a880e83e46b9410d18cec429ec84b2028183fad9a2717a03e5ec705f192a77addd8c37dd776c86823043dc6bdd7bd624a86e0661c0fd35e6a
7
+ data.tar.gz: e0b79155a29db0ede967bfc0f9d189fcd7947ae337f21c1d7054bd7fd4acf75a69f67e6132799392aae0143c2788f9d6ab7a4f847c6a51e09e2813df59020136
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/mymedia.rb CHANGED
@@ -69,6 +69,7 @@ module MyMedia
69
69
  super()
70
70
  @schema = 'posts/post(title, url, raw_url)'
71
71
  @logger = Logger.new('/tmp/mymedia.log','daily')
72
+
72
73
  raise BaseException, "no config found" if config.nil?
73
74
 
74
75
  @home = config[:home]
@@ -106,6 +107,7 @@ module MyMedia
106
107
 
107
108
  filename = DirToXML.new(@media_src).select_by_ext(@ext)\
108
109
  .sort_by(:last_modified).last[:name]
110
+
109
111
  copy_publish( filename ,raw_msg)
110
112
  end
111
113
 
@@ -140,9 +142,9 @@ module MyMedia
140
142
  FileUtils.mkdir_p File.dirname(raw_destination)
141
143
  FileUtils.mkdir_p File.dirname(destination)
142
144
 
143
- raw_msg = raw_msg.join if raw_msg.is_a? Array
145
+ raw_msg = raw_msg.join ' ' if raw_msg.is_a? Array
144
146
 
145
- raw_msg = src_path[/([^\/]+)\.\w+$/,1] + ' ' + raw_msg if raw_msg
147
+ raw_msg = src_path[/([^\/]+)\.\w+$/,1] + ' ' + raw_msg if raw_msg[/^#/]
146
148
 
147
149
 
148
150
  if block_given? then
data.tar.gz.sig CHANGED
@@ -1 +1,5 @@
1
- <��E��7�� �Nd�P�T(Y�VÏk��DT��Y_]�
1
+ ���_��И ��p[Y��^򇙯F
2
+ f�_&��]��h��lN#P,��{�
3
+ �,�#E?ln}LX�3��?Dg�o���e�լ�R�)clɟn�[_SW��6֜�������+�uL�E+E
4
+ �2J�_"ū�C�+o
5
+ "�:1�����h ��(���DG#�?x��)E5u_BҼ�E�2�A�����~P=<�<�]W���D�����Q�����ļ�Dz�x r��q��nZ�
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mymedia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file