snowpack 1.0.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +3 -0
  4. data/.tool-versions +1 -0
  5. data/.travis.yml +16 -0
  6. data/Brewfile +2 -0
  7. data/CHANGELOG.md +25 -0
  8. data/Gemfile +13 -0
  9. data/LICENSE +21 -0
  10. data/README.md +116 -0
  11. data/Rakefile +6 -0
  12. data/bin/bootstrap +25 -0
  13. data/exe/snowpack +7 -0
  14. data/lib/snowpack/application.rb +98 -0
  15. data/lib/snowpack/application_cli.rb +39 -0
  16. data/lib/snowpack/cli/application/cli.rb +32 -0
  17. data/lib/snowpack/cli/application/command.rb +53 -0
  18. data/lib/snowpack/cli/application/commands/assets/clobber.rb +31 -0
  19. data/lib/snowpack/cli/application/commands/assets/compile.rb +32 -0
  20. data/lib/snowpack/cli/application/commands/console.rb +55 -0
  21. data/lib/snowpack/cli/application/commands/db/create.rb +33 -0
  22. data/lib/snowpack/cli/application/commands/db/create_migration.rb +38 -0
  23. data/lib/snowpack/cli/application/commands/db/drop.rb +33 -0
  24. data/lib/snowpack/cli/application/commands/db/migrate.rb +47 -0
  25. data/lib/snowpack/cli/application/commands/db/reset.rb +28 -0
  26. data/lib/snowpack/cli/application/commands/db/rollback.rb +54 -0
  27. data/lib/snowpack/cli/application/commands/db/sample_data.rb +41 -0
  28. data/lib/snowpack/cli/application/commands/db/seed.rb +41 -0
  29. data/lib/snowpack/cli/application/commands/db/structure/dump.rb +38 -0
  30. data/lib/snowpack/cli/application/commands/db/utils/database.rb +76 -0
  31. data/lib/snowpack/cli/application/commands/db/utils/database_config.rb +49 -0
  32. data/lib/snowpack/cli/application/commands/db/version.rb +37 -0
  33. data/lib/snowpack/cli/application/commands/generate/slice.rb +32 -0
  34. data/lib/snowpack/cli/application/commands/routes/update.rb +35 -0
  35. data/lib/snowpack/cli/application/commands.rb +27 -0
  36. data/lib/snowpack/cli/command.rb +48 -0
  37. data/lib/snowpack/cli/standalone/cli.rb +14 -0
  38. data/lib/snowpack/cli/standalone/commands/new.rb +33 -0
  39. data/lib/snowpack/cli/standalone/commands.rb +13 -0
  40. data/lib/snowpack/components/formalist.rb +27 -0
  41. data/lib/snowpack/components/persistence.rb +56 -0
  42. data/lib/snowpack/components.rb +5 -0
  43. data/lib/snowpack/console/context.rb +32 -0
  44. data/lib/snowpack/console/plugins/relation_readers.rb +17 -0
  45. data/lib/snowpack/console/plugins/slice_readers.rb +33 -0
  46. data/lib/snowpack/generator.rb +57 -0
  47. data/lib/snowpack/generators/application/generator.rb +67 -0
  48. data/lib/snowpack/generators/application/templates/.env-example.tt +10 -0
  49. data/lib/snowpack/generators/application/templates/.env.test-example.tt +1 -0
  50. data/lib/snowpack/generators/application/templates/.gitignore +20 -0
  51. data/lib/snowpack/generators/application/templates/.rspec +2 -0
  52. data/lib/snowpack/generators/application/templates/Brewfile +4 -0
  53. data/lib/snowpack/generators/application/templates/Gemfile.tt +46 -0
  54. data/lib/snowpack/generators/application/templates/Guardfile +7 -0
  55. data/lib/snowpack/generators/application/templates/Procfile.dev +3 -0
  56. data/lib/snowpack/generators/application/templates/Procfile.support +1 -0
  57. data/lib/snowpack/generators/application/templates/README.md.tt +45 -0
  58. data/lib/snowpack/generators/application/templates/Rakefile +5 -0
  59. data/lib/snowpack/generators/application/templates/bin/run +7 -0
  60. data/lib/snowpack/generators/application/templates/config/application.rb.tt +19 -0
  61. data/lib/snowpack/generators/application/templates/config/puma.rb.tt +14 -0
  62. data/lib/snowpack/generators/application/templates/config/routes.rb.tt +15 -0
  63. data/lib/snowpack/generators/application/templates/config.ru +5 -0
  64. data/lib/snowpack/generators/application/templates/db/migrate/.keep +0 -0
  65. data/lib/snowpack/generators/application/templates/db/sample_data.rb +1 -0
  66. data/lib/snowpack/generators/application/templates/db/seed.rb +1 -0
  67. data/lib/snowpack/generators/application/templates/lib/__application_path__/operation.rb.tt +12 -0
  68. data/lib/snowpack/generators/application/templates/lib/__application_path__/persistence/relations/.keep +0 -0
  69. data/lib/snowpack/generators/application/templates/lib/__application_path__/types.rb.tt +11 -0
  70. data/lib/snowpack/generators/application/templates/lib/__application_path__/web/action.rb.tt +56 -0
  71. data/lib/snowpack/generators/application/templates/lib/__application_path__/web/view/context.rb.tt +31 -0
  72. data/lib/snowpack/generators/application/templates/lib/hanami/action/csrf_protection.rb +225 -0
  73. data/lib/snowpack/generators/application/templates/log/.keep +0 -0
  74. data/lib/snowpack/generators/application/templates/package.json.tt +25 -0
  75. data/lib/snowpack/generators/application/templates/public/.keep +0 -0
  76. data/lib/snowpack/generators/application/templates/script/bootstrap +32 -0
  77. data/lib/snowpack/generators/application/templates/script/console +26 -0
  78. data/lib/snowpack/generators/application/templates/script/server +13 -0
  79. data/lib/snowpack/generators/application/templates/script/setup +27 -0
  80. data/lib/snowpack/generators/application/templates/script/support +9 -0
  81. data/lib/snowpack/generators/application/templates/script/test +19 -0
  82. data/lib/snowpack/generators/application/templates/script/update +13 -0
  83. data/lib/snowpack/generators/application/templates/spec/spec_helper.rb +13 -0
  84. data/lib/snowpack/generators/application/templates/spec/suite/.keep +0 -0
  85. data/lib/snowpack/generators/application/templates/spec/support/suite.rb +9 -0
  86. data/lib/snowpack/generators/application/templates/system/__application_path__/import.rb.tt +5 -0
  87. data/lib/snowpack/generators/application/templates/system/boot/assets.rb.tt +17 -0
  88. data/lib/snowpack/generators/application/templates/system/boot/logger.rb.tt +10 -0
  89. data/lib/snowpack/generators/application/templates/system/boot/monitor.rb.tt +9 -0
  90. data/lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt +9 -0
  91. data/lib/snowpack/generators/application/templates/system/boot/settings.rb.tt +18 -0
  92. data/lib/snowpack/generators/application/templates/system/boot/web.rb.tt +9 -0
  93. data/lib/snowpack/generators/slice/generator.rb +62 -0
  94. data/lib/snowpack/generators/slice/templates/lib/__slice_path__/.keep +0 -0
  95. data/lib/snowpack/generators/slice/templates/lib/__slice_path__/web/action.rb.tt +10 -0
  96. data/lib/snowpack/generators/slice/templates/lib/__slice_path__/web/actions/.keep +0 -0
  97. data/lib/snowpack/generators/slice/templates/lib/__slice_path__/web/view.rb.tt +17 -0
  98. data/lib/snowpack/generators/slice/templates/lib/__slice_path__/web/views/.keep +0 -0
  99. data/lib/snowpack/generators/slice/templates/system/__slice_path__/import.rb.tt +9 -0
  100. data/lib/snowpack/generators/slice/templates/system/__slice_path__/slice.rb.tt +10 -0
  101. data/lib/snowpack/instrumentation/appsignal/appsignal_ext.rb +13 -0
  102. data/lib/snowpack/instrumentation/appsignal/que.rb +70 -0
  103. data/lib/snowpack/instrumentation/appsignal/rack.rb +84 -0
  104. data/lib/snowpack/roda/web.rb +47 -0
  105. data/lib/snowpack/slice.rb +85 -0
  106. data/lib/snowpack/test/suite.rb +164 -0
  107. data/lib/snowpack/test/tasks.rake +40 -0
  108. data/lib/snowpack/test_tasks.rb +4 -0
  109. data/lib/snowpack/types.rb +9 -0
  110. data/lib/snowpack/version.rb +5 -0
  111. data/lib/snowpack/view/part_builder.rb +45 -0
  112. data/lib/snowpack/view/parts/pager.rb +107 -0
  113. data/lib/snowpack/view/parts/paginated.rb +22 -0
  114. data/lib/snowpack/web/application.rb +38 -0
  115. data/lib/snowpack/web/assets.rb +56 -0
  116. data/lib/snowpack/web/endpoint_resolver.rb +66 -0
  117. data/lib/snowpack/web/form.rb +38 -0
  118. data/lib/snowpack/web/plugin.rb +44 -0
  119. data/lib/snowpack/web/rack_logger.rb +73 -0
  120. data/lib/snowpack/web/router.rb +58 -0
  121. data/lib/snowpack/web.rb +20 -0
  122. data/lib/snowpack.rb +27 -0
  123. data/snowpack.gemspec +34 -0
  124. metadata +327 -0
metadata ADDED
@@ -0,0 +1,327 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: snowpack
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.alpha2
5
+ platform: ruby
6
+ authors:
7
+ - Tim Riley
8
+ - Piotr Solnica
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2019-07-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: dry-inflector
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '0.1'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '0.1'
28
+ - !ruby/object:Gem::Dependency
29
+ name: dry-monitor
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 0.3.1
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.3.1
42
+ - !ruby/object:Gem::Dependency
43
+ name: dry-system
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: 0.12.0
49
+ - - "~>"
50
+ - !ruby/object:Gem::Version
51
+ version: '0.12'
52
+ type: :runtime
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 0.12.0
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.12'
62
+ - !ruby/object:Gem::Dependency
63
+ name: dry-types
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ - !ruby/object:Gem::Dependency
77
+ name: down
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4.0'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: hanami-cli
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: hanami-utils
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rack
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.0'
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2.0'
132
+ - !ruby/object:Gem::Dependency
133
+ name: bundler
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ - !ruby/object:Gem::Dependency
147
+ name: rake
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '12.0'
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '12.0'
160
+ - !ruby/object:Gem::Dependency
161
+ name: rspec
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.0'
167
+ type: :development
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '3.0'
174
+ description: Lightweight application framework for Icelab
175
+ email:
176
+ - tim@icelab.com.au
177
+ - piotr@icelab.com.au
178
+ executables:
179
+ - snowpack
180
+ extensions: []
181
+ extra_rdoc_files: []
182
+ files:
183
+ - ".gitignore"
184
+ - ".rspec"
185
+ - ".tool-versions"
186
+ - ".travis.yml"
187
+ - Brewfile
188
+ - CHANGELOG.md
189
+ - Gemfile
190
+ - LICENSE
191
+ - README.md
192
+ - Rakefile
193
+ - bin/bootstrap
194
+ - exe/snowpack
195
+ - lib/snowpack.rb
196
+ - lib/snowpack/application.rb
197
+ - lib/snowpack/application_cli.rb
198
+ - lib/snowpack/cli/application/cli.rb
199
+ - lib/snowpack/cli/application/command.rb
200
+ - lib/snowpack/cli/application/commands.rb
201
+ - lib/snowpack/cli/application/commands/assets/clobber.rb
202
+ - lib/snowpack/cli/application/commands/assets/compile.rb
203
+ - lib/snowpack/cli/application/commands/console.rb
204
+ - lib/snowpack/cli/application/commands/db/create.rb
205
+ - lib/snowpack/cli/application/commands/db/create_migration.rb
206
+ - lib/snowpack/cli/application/commands/db/drop.rb
207
+ - lib/snowpack/cli/application/commands/db/migrate.rb
208
+ - lib/snowpack/cli/application/commands/db/reset.rb
209
+ - lib/snowpack/cli/application/commands/db/rollback.rb
210
+ - lib/snowpack/cli/application/commands/db/sample_data.rb
211
+ - lib/snowpack/cli/application/commands/db/seed.rb
212
+ - lib/snowpack/cli/application/commands/db/structure/dump.rb
213
+ - lib/snowpack/cli/application/commands/db/utils/database.rb
214
+ - lib/snowpack/cli/application/commands/db/utils/database_config.rb
215
+ - lib/snowpack/cli/application/commands/db/version.rb
216
+ - lib/snowpack/cli/application/commands/generate/slice.rb
217
+ - lib/snowpack/cli/application/commands/routes/update.rb
218
+ - lib/snowpack/cli/command.rb
219
+ - lib/snowpack/cli/standalone/cli.rb
220
+ - lib/snowpack/cli/standalone/commands.rb
221
+ - lib/snowpack/cli/standalone/commands/new.rb
222
+ - lib/snowpack/components.rb
223
+ - lib/snowpack/components/formalist.rb
224
+ - lib/snowpack/components/persistence.rb
225
+ - lib/snowpack/console/context.rb
226
+ - lib/snowpack/console/plugins/relation_readers.rb
227
+ - lib/snowpack/console/plugins/slice_readers.rb
228
+ - lib/snowpack/generator.rb
229
+ - lib/snowpack/generators/application/generator.rb
230
+ - lib/snowpack/generators/application/templates/.env-example.tt
231
+ - lib/snowpack/generators/application/templates/.env.test-example.tt
232
+ - lib/snowpack/generators/application/templates/.gitignore
233
+ - lib/snowpack/generators/application/templates/.rspec
234
+ - lib/snowpack/generators/application/templates/Brewfile
235
+ - lib/snowpack/generators/application/templates/Gemfile.tt
236
+ - lib/snowpack/generators/application/templates/Guardfile
237
+ - lib/snowpack/generators/application/templates/Procfile.dev
238
+ - lib/snowpack/generators/application/templates/Procfile.support
239
+ - lib/snowpack/generators/application/templates/README.md.tt
240
+ - lib/snowpack/generators/application/templates/Rakefile
241
+ - lib/snowpack/generators/application/templates/bin/run
242
+ - lib/snowpack/generators/application/templates/config.ru
243
+ - lib/snowpack/generators/application/templates/config/application.rb.tt
244
+ - lib/snowpack/generators/application/templates/config/puma.rb.tt
245
+ - lib/snowpack/generators/application/templates/config/routes.rb.tt
246
+ - lib/snowpack/generators/application/templates/db/migrate/.keep
247
+ - lib/snowpack/generators/application/templates/db/sample_data.rb
248
+ - lib/snowpack/generators/application/templates/db/seed.rb
249
+ - lib/snowpack/generators/application/templates/lib/__application_path__/operation.rb.tt
250
+ - lib/snowpack/generators/application/templates/lib/__application_path__/persistence/relations/.keep
251
+ - lib/snowpack/generators/application/templates/lib/__application_path__/types.rb.tt
252
+ - lib/snowpack/generators/application/templates/lib/__application_path__/web/action.rb.tt
253
+ - lib/snowpack/generators/application/templates/lib/__application_path__/web/view/context.rb.tt
254
+ - lib/snowpack/generators/application/templates/lib/hanami/action/csrf_protection.rb
255
+ - lib/snowpack/generators/application/templates/log/.keep
256
+ - lib/snowpack/generators/application/templates/package.json.tt
257
+ - lib/snowpack/generators/application/templates/public/.keep
258
+ - lib/snowpack/generators/application/templates/script/bootstrap
259
+ - lib/snowpack/generators/application/templates/script/console
260
+ - lib/snowpack/generators/application/templates/script/server
261
+ - lib/snowpack/generators/application/templates/script/setup
262
+ - lib/snowpack/generators/application/templates/script/support
263
+ - lib/snowpack/generators/application/templates/script/test
264
+ - lib/snowpack/generators/application/templates/script/update
265
+ - lib/snowpack/generators/application/templates/spec/spec_helper.rb
266
+ - lib/snowpack/generators/application/templates/spec/suite/.keep
267
+ - lib/snowpack/generators/application/templates/spec/support/suite.rb
268
+ - lib/snowpack/generators/application/templates/system/__application_path__/import.rb.tt
269
+ - lib/snowpack/generators/application/templates/system/boot/assets.rb.tt
270
+ - lib/snowpack/generators/application/templates/system/boot/logger.rb.tt
271
+ - lib/snowpack/generators/application/templates/system/boot/monitor.rb.tt
272
+ - lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
273
+ - lib/snowpack/generators/application/templates/system/boot/settings.rb.tt
274
+ - lib/snowpack/generators/application/templates/system/boot/web.rb.tt
275
+ - lib/snowpack/generators/slice/generator.rb
276
+ - lib/snowpack/generators/slice/templates/lib/__slice_path__/.keep
277
+ - lib/snowpack/generators/slice/templates/lib/__slice_path__/web/action.rb.tt
278
+ - lib/snowpack/generators/slice/templates/lib/__slice_path__/web/actions/.keep
279
+ - lib/snowpack/generators/slice/templates/lib/__slice_path__/web/view.rb.tt
280
+ - lib/snowpack/generators/slice/templates/lib/__slice_path__/web/views/.keep
281
+ - lib/snowpack/generators/slice/templates/system/__slice_path__/import.rb.tt
282
+ - lib/snowpack/generators/slice/templates/system/__slice_path__/slice.rb.tt
283
+ - lib/snowpack/instrumentation/appsignal/appsignal_ext.rb
284
+ - lib/snowpack/instrumentation/appsignal/que.rb
285
+ - lib/snowpack/instrumentation/appsignal/rack.rb
286
+ - lib/snowpack/roda/web.rb
287
+ - lib/snowpack/slice.rb
288
+ - lib/snowpack/test/suite.rb
289
+ - lib/snowpack/test/tasks.rake
290
+ - lib/snowpack/test_tasks.rb
291
+ - lib/snowpack/types.rb
292
+ - lib/snowpack/version.rb
293
+ - lib/snowpack/view/part_builder.rb
294
+ - lib/snowpack/view/parts/pager.rb
295
+ - lib/snowpack/view/parts/paginated.rb
296
+ - lib/snowpack/web.rb
297
+ - lib/snowpack/web/application.rb
298
+ - lib/snowpack/web/assets.rb
299
+ - lib/snowpack/web/endpoint_resolver.rb
300
+ - lib/snowpack/web/form.rb
301
+ - lib/snowpack/web/plugin.rb
302
+ - lib/snowpack/web/rack_logger.rb
303
+ - lib/snowpack/web/router.rb
304
+ - snowpack.gemspec
305
+ homepage: https://github.com/icelab/snowpack
306
+ licenses: []
307
+ metadata: {}
308
+ post_install_message:
309
+ rdoc_options: []
310
+ require_paths:
311
+ - lib
312
+ required_ruby_version: !ruby/object:Gem::Requirement
313
+ requirements:
314
+ - - ">="
315
+ - !ruby/object:Gem::Version
316
+ version: '0'
317
+ required_rubygems_version: !ruby/object:Gem::Requirement
318
+ requirements:
319
+ - - ">"
320
+ - !ruby/object:Gem::Version
321
+ version: 1.3.1
322
+ requirements: []
323
+ rubygems_version: 3.0.3
324
+ signing_key:
325
+ specification_version: 4
326
+ summary: Lightweight application framework for Icelab
327
+ test_files: []