polyrex-links 0.4.2 → 0.4.3

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
  SHA256:
3
- metadata.gz: 86256bfb4e9270cadb10cb266ee9cb689f78acb29f8f59022cb97acb3765bc95
4
- data.tar.gz: 489a261c8e3afb75dd57153fb1a8c16f38a9adf2e04876779fb9b2da5498b97e
3
+ metadata.gz: cf7fdc48533ddbc311264c8d2c5b2db7bbeb62735373b91a9a82aa566ae50712
4
+ data.tar.gz: 23804ca9e2c50c13791543c50ddb8948c16fbeb47bdbb2852f3fd94214ce5f91
5
5
  SHA512:
6
- metadata.gz: 6ad0eabd37defceab3c1c97a57bf369f81d8c72d0dd224bedd577e569dc1b1acdeaa97afb644fb4f7bd6aa0cdfbc18f7c07c61c13e13c8202e237c41dbdd988c
7
- data.tar.gz: 76a4f2e4ae7932449a2cfb80e8efe5966886af0623d584fe740721d0f7bd9ec00bd66bda549e33f07ae97d3132daa5ca34a49810cdcd8f2cdd392e7df8455f0b
6
+ metadata.gz: 598027b09384873d5ca570a66461697e9be54b6e3bfb62cc4bdcdf119f4cb63bfffd3b4fc2470da0a637d497b13acf2d6a2ba8f3dd0943965e8a0c255dbe7ca5
7
+ data.tar.gz: a26a5347f38c10ad3d080a0fdd0037482f461034cb19ad7776e7181d4178472bd82cdb6514c6b7edb191a40f3f70347459ad0bcc10714d39485db81082bcbeb0
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1,4 +1,2 @@
1
- #C��!�_�M^��P���\��
2
- cz!爿���{ g2���f.�f .?�6 �[�`��"��pu�L}v�����i���]@��.��
3
- �^,�"�lv�6z�-���h������
4
- r��=�`8�q��q�g�@�K��hቤ8�p�:q"��������B��9�z*�KN��6�|�N�0���B�!���=&8-��'c���+�#�Ea�׼�
1
+ Bd�{���{oh#�����#�Fԝ�(Y���`E8��=SH*��=SN�y��Cd�MGUx���%Y�yE��A�7��/Ǹ��vg<z£���(ED)�v%ǩ��^��c���Y�&� ��aW�ex�n� _�����u�9�e��y�éz�~�@����9�Q��kYK�����ud �p/Y)5��'I�'g w�����x|�b��?�g��8Tjf�������/��5�8l"'Tx��4u�:L�G�S����\T�%��*��7��X�q
2
+ �[yO:�(ums���k��rgyq
data/lib/polyrex-links.rb CHANGED
@@ -32,6 +32,16 @@ class PolyrexLinks < Polyrex
32
32
 
33
33
  end
34
34
 
35
+ # returns a listing of all links sorted by title in alphabetical order
36
+ #
37
+ def index()
38
+
39
+ a = []
40
+ each_recursive {|link| a << [link.title, link.url, backtrack_path(link)] }
41
+ a.sort_by {|title, _, _| title.downcase}
42
+
43
+ end
44
+
35
45
  def migrate(raws)
36
46
 
37
47
  s, _ = RXFHelper.read(raws)
@@ -81,6 +91,13 @@ class PolyrexLinks < Polyrex
81
91
  r ? [r, path.sub(c.join('/'),'')] : nil
82
92
  end
83
93
 
94
+ def save(filepath)
95
+
96
+ super(filepath)
97
+ export(filepath.sub(/\.xml$/,'.txt'))
98
+
99
+ end
100
+
84
101
 
85
102
  # Return a flat Hash object containing all the links. The link path is
86
103
  # used as the key and the value is the url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  5x/50O2gHQvmLgSVk8EsWqPZ6B8tMZ9h/ttCIkW33ewCmHrrxH9suuyqbC/SaiEf
36
36
  2qE86MpuEcgDiX59WiP5GiBx
37
37
  -----END CERTIFICATE-----
38
- date: 2021-05-25 00:00:00.000000000 Z
38
+ date: 2021-06-05 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: polyrex
metadata.gz.sig CHANGED
Binary file