Class: Pi::Sitemap

Inherits:
Object
  • Object
show all
Defined in:
lib/tasks/piousbox/sitemap.rb

Constant Summary collapse

DEFAULT_ORIGIN =
'https://piousbox.com'

Instance Method Summary collapse

Instance Method Details

#checksObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/tasks/piousbox/sitemap.rb', line 9

def checks
  out = [
  #   { path: '/2022/09/sturfee-build-pipeline',       selector: 'article.wco-id-100' },
  # ]; tmp = [

    ##
    ## numbers
    ##
    { path: '/2021/06/2399',       selector: 'article.post-2399' },
    { path: '/2022/03/bundler-and-private-repositories',            redirect_to: 'https://wasyaco.com/2022/03/bundler-and-private-repositories' },
    { path: '/2022/03/ruby-on-rails-allow-parameters-to-have-dot',  redirect_to: 'https://wasyaco.com/2022/03/ruby-on-rails-allow-parameters-to-have-dot' },
    { path: '/2022/03/ruby-on-rails-allow-parameters-to-have-dot/', redirect_to: 'https://wasyaco.com/2022/03/ruby-on-rails-allow-parameters-to-have-dot' },
    { path: '/2022/12/japan-securities-clearing-corp-jscc-issues-emergency-margin-call/',       selector: 'article.post-7033' },
    { path: '/2022/08/convert-wireframe-edges-to-a-model-in-maya/', selector: 'article.post-5854' },
    { path: '/2023/10/does-using-cannabis-lower-blood-pressure', selector: 'article[data-history-node-id="68"]' },

    { path: '/2023/08/what-stocks/', selector: 'article[data-history-node-id="88"]' },

    # /2023/08/fed-chair-jerome-powell-we-have-tightened-policy-significantly-over-the-past-year-inflation-has-moved-down-from-its-peak-it-remains-too-high-we-are-prepared-to-raise-rates-further-if-app/
    # /2023/08/sam-zeloof-makes-cpus-in-his-garage/
    # /2023/04/the-letter-to-pause-ai-development-is-a-power-grab-by-the-elites/

    # /2023/01/a-gentle-minimalist-intro-to-machine-learning

    ##
    ## A
    ##

    # /about

    ##
    ## C
    ##

    { path: '/contact-us', selector: 'article[data-history-node-id="82"]' },

    ##
    ## I
    ##
    { path: '/index.php?p=2399',       redirect_to: '/2021/06/2399' },
    { path: '/index.php?p=7033',       redirect_to: '/2022/12/japan-securities-clearing-corp-jscc-issues-emergency-margin-call/' },

    { path: '/issues/2023q4-issue', selector: 'article[data-history-node-id="4"]' },

    ##
    ## P
    ##

    # /pages/recruiter-intake-form
    { path: '/pages/bookshelf', selector: 'article[data-history-node-id="83"]' },

    ##
    ## S
    ##

    # /sections/technology
    # /sections/ai-ml
    # /sections/markets-trading

    ##
    ## T
    ##

    { path: '/tags/health', selector: '#taxonomy-term-47' },

  ]
  return out
end