daily_notices 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: 60ad8102a04b345aa184b5ae1107aed37a68cbbc
4
- data.tar.gz: 2248a86c6b39297e379377be6b6769194ae202ee
3
+ metadata.gz: bcd554602510ae406d68b2b7b5b3db1ae5db877c
4
+ data.tar.gz: 8469e399cc00f29991e38b51d6f2480fbe1c4864
5
5
  SHA512:
6
- metadata.gz: 247a9cd2f677ff3510447566b72889e360bd7dba16c5d2e5c631429a2f42ce7160787feb8b344449b34ce161d79ef828059329923ed24e53d23e055701e040dc
7
- data.tar.gz: a07871d6701ee5d3785b48404d5c7dccf0bb08356d89abd3a0c1949e8b82ad97c6e4fa61bc7e55998d9ab05fbc9c1478b56f188dec9824399297a6a662fd6d47
6
+ metadata.gz: c8ecaab5b1deb99bfdc9383110c7d4b81e903e7249f9d2c13152b9bd76b69864de0bdb760c3ae23224f993ca0370cfed4a36c8936b490cea69c8656407957cd3
7
+ data.tar.gz: da7aacea896c608daf9aaaf08d266344d9515d8e3c03599595d573814abbccb216ede90fdf137475067080cafa6ffcc5fa95799ba5958f42bc95a361c0232931
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/daily_notices.rb CHANGED
@@ -46,6 +46,7 @@ class DailyNotices
46
46
  @rss.description = 'Generated using the daily_notices gem'
47
47
  @rss.link = @url_base
48
48
  end
49
+
49
50
  end
50
51
 
51
52
  def create(description, time=Time.now, title: nil, \
@@ -58,7 +59,8 @@ class DailyNotices
58
59
 
59
60
  # Add it to the RSS document
60
61
  title ||= description.split(/\n/,2).first[0..140]
61
- link = File.join(@url_base, @archive_path, '#' + id)
62
+ link = [File.join(@url_base, File.basename(@filepath), \
63
+ @archive_path, '#' + id)].join('/')
62
64
  @rss.add title: title, link: link, description: description
63
65
  @rss.save @rssfile
64
66
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daily_notices
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
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,5 +1,2 @@
1
- ^�hXo���
2
- ��u ��v}���5�Hs��?a��N*/�؏08O��תYwfX&'?O�� ' -��"raLxd��&�GR���7=��aP�Q#�<����Q�����
3
- a��[,�bQ(���O��P�Y1 �8�����\�׸� ��^��M�f��9F�a$'�]��C�V�}ƶh��j�9!&�i�
4
- � }5,�Z|��zk�eTY���7�벟^M
5
- ;�wm� 7�m�o�E�ƞ'ʰ]���7�
1
+ Z���1��*$�J1y0)���l��vV���"��Em�%xn}3zk�a�Z�BO81���C:�T�D�׉�Q~cH�C�[��j��yn�p��{�3B��U�r�〩�kY�{@T��t��"�
2
+ ��e0�߫z��)<��lr��l4#b��n;�?��m��~���ʖ�g��n]}a�J\�<�fԎ����+4XM�v��;����Q�5�Q>�jΫ�vf��PMFb�g+�j�