parklife 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/tests.yml +62 -0
  3. data/.gitignore +10 -0
  4. data/.rspec +2 -0
  5. data/CHANGELOG.md +9 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +6 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +103 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/examples/rack/.gitignore +1 -0
  14. data/examples/rack/Gemfile +4 -0
  15. data/examples/rack/Gemfile.lock +47 -0
  16. data/examples/rack/Parkfile +23 -0
  17. data/examples/rails/.gitignore +26 -0
  18. data/examples/rails/Gemfile +5 -0
  19. data/examples/rails/Gemfile.lock +150 -0
  20. data/examples/rails/Parkfile +6 -0
  21. data/examples/rails/Rakefile +6 -0
  22. data/examples/rails/app/assets/config/manifest.js +2 -0
  23. data/examples/rails/app/assets/stylesheets/application.css +15 -0
  24. data/examples/rails/app/assets/stylesheets/global.css +4 -0
  25. data/examples/rails/app/controllers/application_controller.rb +2 -0
  26. data/examples/rails/app/controllers/posts_controller.rb +9 -0
  27. data/examples/rails/app/helpers/application_helper.rb +2 -0
  28. data/examples/rails/app/jobs/application_job.rb +2 -0
  29. data/examples/rails/app/models/application_record.rb +3 -0
  30. data/examples/rails/app/models/post.rb +5 -0
  31. data/examples/rails/app/views/layouts/application.html.erb +14 -0
  32. data/examples/rails/app/views/posts/index.html.erb +7 -0
  33. data/examples/rails/app/views/posts/show.html.erb +3 -0
  34. data/examples/rails/bin/bundle +3 -0
  35. data/examples/rails/bin/rails +4 -0
  36. data/examples/rails/bin/rake +4 -0
  37. data/examples/rails/bin/setup +33 -0
  38. data/examples/rails/bin/update +28 -0
  39. data/examples/rails/config/application.rb +35 -0
  40. data/examples/rails/config/boot.rb +3 -0
  41. data/examples/rails/config/database.yml +25 -0
  42. data/examples/rails/config/environment.rb +5 -0
  43. data/examples/rails/config/environments/development.rb +53 -0
  44. data/examples/rails/config/environments/production.rb +79 -0
  45. data/examples/rails/config/environments/test.rb +36 -0
  46. data/examples/rails/config/initializers/application_controller_renderer.rb +8 -0
  47. data/examples/rails/config/initializers/assets.rb +12 -0
  48. data/examples/rails/config/initializers/backtrace_silencers.rb +7 -0
  49. data/examples/rails/config/initializers/content_security_policy.rb +25 -0
  50. data/examples/rails/config/initializers/cookies_serializer.rb +5 -0
  51. data/examples/rails/config/initializers/filter_parameter_logging.rb +4 -0
  52. data/examples/rails/config/initializers/inflections.rb +16 -0
  53. data/examples/rails/config/initializers/mime_types.rb +4 -0
  54. data/examples/rails/config/initializers/wrap_parameters.rb +14 -0
  55. data/examples/rails/config/locales/en.yml +33 -0
  56. data/examples/rails/config/routes.rb +5 -0
  57. data/examples/rails/config.ru +5 -0
  58. data/examples/rails/data/1-hello-from-parklife.txt +3 -0
  59. data/examples/rails/data/2-hello-again.txt +3 -0
  60. data/examples/rails/data/3-magic-number.txt +3 -0
  61. data/examples/rails/db/migrate/20190507172823_create_posts.rb +11 -0
  62. data/examples/rails/db/schema.rb +24 -0
  63. data/examples/rails/db/seeds.rb +10 -0
  64. data/examples/rails/parklife-build +24 -0
  65. data/examples/rails/public/404.html +67 -0
  66. data/examples/rails/public/422.html +67 -0
  67. data/examples/rails/public/500.html +66 -0
  68. data/examples/rails/public/apple-touch-icon-precomposed.png +0 -0
  69. data/examples/rails/public/apple-touch-icon.png +0 -0
  70. data/examples/rails/public/favicon.ico +0 -0
  71. data/examples/rails/public/robots.txt +1 -0
  72. data/examples/sinatra/.gitignore +1 -0
  73. data/examples/sinatra/Gemfile +4 -0
  74. data/examples/sinatra/Gemfile.lock +56 -0
  75. data/examples/sinatra/Parkfile +21 -0
  76. data/exe/parklife +3 -0
  77. data/lib/parklife/application.rb +39 -0
  78. data/lib/parklife/cli.rb +36 -0
  79. data/lib/parklife/config.rb +14 -0
  80. data/lib/parklife/crawler.rb +104 -0
  81. data/lib/parklife/errors.rb +25 -0
  82. data/lib/parklife/rails.rb +12 -0
  83. data/lib/parklife/route.rb +23 -0
  84. data/lib/parklife/route_set.rb +36 -0
  85. data/lib/parklife/utils.rb +20 -0
  86. data/lib/parklife/version.rb +3 -0
  87. data/lib/parklife.rb +8 -0
  88. data/parklife.gemspec +38 -0
  89. metadata +217 -0
metadata ADDED
@@ -0,0 +1,217 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parklife
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Pickles
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capybara
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: thor
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description:
98
+ email:
99
+ - spideryoung@gmail.com
100
+ executables:
101
+ - parklife
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - ".github/workflows/tests.yml"
106
+ - ".gitignore"
107
+ - ".rspec"
108
+ - CHANGELOG.md
109
+ - CODE_OF_CONDUCT.md
110
+ - Gemfile
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - bin/console
115
+ - bin/setup
116
+ - examples/rack/.gitignore
117
+ - examples/rack/Gemfile
118
+ - examples/rack/Gemfile.lock
119
+ - examples/rack/Parkfile
120
+ - examples/rails/.gitignore
121
+ - examples/rails/Gemfile
122
+ - examples/rails/Gemfile.lock
123
+ - examples/rails/Parkfile
124
+ - examples/rails/Rakefile
125
+ - examples/rails/app/assets/config/manifest.js
126
+ - examples/rails/app/assets/stylesheets/application.css
127
+ - examples/rails/app/assets/stylesheets/global.css
128
+ - examples/rails/app/controllers/application_controller.rb
129
+ - examples/rails/app/controllers/posts_controller.rb
130
+ - examples/rails/app/helpers/application_helper.rb
131
+ - examples/rails/app/jobs/application_job.rb
132
+ - examples/rails/app/models/application_record.rb
133
+ - examples/rails/app/models/post.rb
134
+ - examples/rails/app/views/layouts/application.html.erb
135
+ - examples/rails/app/views/posts/index.html.erb
136
+ - examples/rails/app/views/posts/show.html.erb
137
+ - examples/rails/bin/bundle
138
+ - examples/rails/bin/rails
139
+ - examples/rails/bin/rake
140
+ - examples/rails/bin/setup
141
+ - examples/rails/bin/update
142
+ - examples/rails/config.ru
143
+ - examples/rails/config/application.rb
144
+ - examples/rails/config/boot.rb
145
+ - examples/rails/config/database.yml
146
+ - examples/rails/config/environment.rb
147
+ - examples/rails/config/environments/development.rb
148
+ - examples/rails/config/environments/production.rb
149
+ - examples/rails/config/environments/test.rb
150
+ - examples/rails/config/initializers/application_controller_renderer.rb
151
+ - examples/rails/config/initializers/assets.rb
152
+ - examples/rails/config/initializers/backtrace_silencers.rb
153
+ - examples/rails/config/initializers/content_security_policy.rb
154
+ - examples/rails/config/initializers/cookies_serializer.rb
155
+ - examples/rails/config/initializers/filter_parameter_logging.rb
156
+ - examples/rails/config/initializers/inflections.rb
157
+ - examples/rails/config/initializers/mime_types.rb
158
+ - examples/rails/config/initializers/wrap_parameters.rb
159
+ - examples/rails/config/locales/en.yml
160
+ - examples/rails/config/routes.rb
161
+ - examples/rails/data/1-hello-from-parklife.txt
162
+ - examples/rails/data/2-hello-again.txt
163
+ - examples/rails/data/3-magic-number.txt
164
+ - examples/rails/db/migrate/20190507172823_create_posts.rb
165
+ - examples/rails/db/schema.rb
166
+ - examples/rails/db/seeds.rb
167
+ - examples/rails/parklife-build
168
+ - examples/rails/public/404.html
169
+ - examples/rails/public/422.html
170
+ - examples/rails/public/500.html
171
+ - examples/rails/public/apple-touch-icon-precomposed.png
172
+ - examples/rails/public/apple-touch-icon.png
173
+ - examples/rails/public/favicon.ico
174
+ - examples/rails/public/robots.txt
175
+ - examples/sinatra/.gitignore
176
+ - examples/sinatra/Gemfile
177
+ - examples/sinatra/Gemfile.lock
178
+ - examples/sinatra/Parkfile
179
+ - exe/parklife
180
+ - lib/parklife.rb
181
+ - lib/parklife/application.rb
182
+ - lib/parklife/cli.rb
183
+ - lib/parklife/config.rb
184
+ - lib/parklife/crawler.rb
185
+ - lib/parklife/errors.rb
186
+ - lib/parklife/rails.rb
187
+ - lib/parklife/route.rb
188
+ - lib/parklife/route_set.rb
189
+ - lib/parklife/utils.rb
190
+ - lib/parklife/version.rb
191
+ - parklife.gemspec
192
+ homepage: https://github.com/benpickles/parklife
193
+ licenses:
194
+ - MIT
195
+ metadata:
196
+ changelog_uri: https://github.com/benpickles/parklife/blob/main/CHANGELOG.md
197
+ source_code_uri: https://github.com/benpickles/parklife
198
+ post_install_message:
199
+ rdoc_options: []
200
+ require_paths:
201
+ - lib
202
+ required_ruby_version: !ruby/object:Gem::Requirement
203
+ requirements:
204
+ - - ">="
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
207
+ required_rubygems_version: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - ">="
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ requirements: []
213
+ rubygems_version: 3.4.6
214
+ signing_key:
215
+ specification_version: 4
216
+ summary: Convert a Rack app into a static HTML site.
217
+ test_files: []