slick 0.16.3 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +7 -8
  3. data/.slick +0 -0
  4. data/.travis.yml +3 -5
  5. data/LICENSE +20 -0
  6. data/README.md +3 -32
  7. data/Rakefile +1 -0
  8. data/config.rb +8 -0
  9. data/config.ru +4 -0
  10. data/exe/slick +8 -0
  11. data/lib/slick.rb +50 -3
  12. data/lib/slick/command.rb +29 -0
  13. data/lib/slick/commands/create_database.rb +9 -0
  14. data/lib/slick/commands/drop_database.rb +9 -0
  15. data/lib/slick/commands/init_database.rb +9 -0
  16. data/lib/slick/commands/list_commands.rb +14 -0
  17. data/lib/slick/commands/migrate_database.rb +9 -0
  18. data/lib/slick/commands/reset_database.rb +10 -0
  19. data/lib/slick/commands/start_console.rb +14 -0
  20. data/lib/slick/commands/start_server.rb +14 -0
  21. data/lib/slick/concern.rb +19 -0
  22. data/lib/slick/database.rb +168 -0
  23. data/lib/slick/database/abstract_row.rb +13 -0
  24. data/lib/slick/database/column.rb +64 -0
  25. data/lib/slick/database/migration.rb +36 -0
  26. data/lib/slick/database/migrator.rb +67 -0
  27. data/lib/slick/database/row.rb +127 -0
  28. data/lib/slick/database/table.rb +381 -0
  29. data/lib/slick/database/union.rb +86 -0
  30. data/lib/slick/helper.rb +24 -0
  31. data/lib/slick/helpers.rb +4 -0
  32. data/lib/slick/helpers/dir.rb +6 -0
  33. data/lib/slick/helpers/echo.rb +6 -0
  34. data/lib/slick/helpers/grab.rb +10 -0
  35. data/lib/slick/helpers/html_builder.rb +180 -0
  36. data/lib/slick/helpers/text_builder.rb +22 -0
  37. data/lib/slick/monkey_patches/html_escape.rb +8 -0
  38. data/lib/slick/monkey_patches/html_unescape.rb +8 -0
  39. data/lib/slick/monkey_patches/paramify.rb +11 -0
  40. data/lib/slick/monkey_patches/pluralize.rb +8 -0
  41. data/lib/slick/monkey_patches/require_all.rb +18 -0
  42. data/lib/slick/monkey_patches/singularize.rb +8 -0
  43. data/lib/slick/monkey_patches/url_encode.rb +8 -0
  44. data/lib/slick/monkey_patches/url_escape.rb +8 -0
  45. data/lib/slick/monkey_patches/url_unescape.rb +8 -0
  46. data/lib/slick/project.rb +53 -0
  47. data/lib/slick/project_watcher.rb +36 -0
  48. data/lib/slick/registry.rb +39 -0
  49. data/lib/slick/request.rb +6 -0
  50. data/lib/slick/resource_factories/config.rb +14 -0
  51. data/lib/slick/resource_factories/database.rb +6 -0
  52. data/lib/slick/resource_factories/database_schema_cache.rb +6 -0
  53. data/lib/slick/resource_factories/database_session_cache.rb +6 -0
  54. data/lib/slick/resource_factories/env.rb +14 -0
  55. data/lib/slick/resource_factories/environment.rb +6 -0
  56. data/lib/slick/resource_factories/file.rb +6 -0
  57. data/lib/slick/resource_factories/params.rb +6 -0
  58. data/lib/slick/resource_factories/project.rb +6 -0
  59. data/lib/slick/resource_factories/request.rb +6 -0
  60. data/lib/slick/resource_factories/response.rb +6 -0
  61. data/lib/slick/resource_factories/web.rb +11 -0
  62. data/lib/slick/resource_factory.rb +35 -0
  63. data/lib/slick/resource_provider.rb +51 -0
  64. data/lib/slick/response.rb +14 -0
  65. data/lib/slick/util.rb +72 -0
  66. data/lib/slick/util/inflections.rb +122 -0
  67. data/lib/slick/util/params_hash.rb +38 -0
  68. data/lib/slick/version.rb +1 -1
  69. data/lib/slick/web.rb +4 -0
  70. data/lib/slick/web/dir.rb +92 -0
  71. data/lib/slick/web/file.rb +66 -0
  72. data/lib/slick/web/file_interpreter.rb +24 -0
  73. data/lib/slick/web/file_interpreters/erb.rb +33 -0
  74. data/lib/slick/web/file_interpreters/js.rb +17 -0
  75. data/lib/slick/web/file_interpreters/rb.rb +14 -0
  76. data/lib/slick/web/file_interpreters/sass.rb +30 -0
  77. data/lib/slick/web/node.rb +35 -0
  78. data/lib/slick/workspace.rb +8 -0
  79. data/slick.gemspec +15 -4
  80. data/web/_layout.erb +13 -0
  81. data/web/index.erb +7 -0
  82. data/web/javascripts/index.js +2 -0
  83. data/web/stylesheets/index.scss +2 -0
  84. metadata +127 -11
  85. data/Gemfile.lock +0 -22
  86. data/bin/console +0 -14
  87. data/bin/setup +0 -8
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.3
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jody Salt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-19 00:00:00.000000000 Z
11
+ date: 2020-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mysql2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.5'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -17,27 +31,55 @@ dependencies:
17
31
  - - "~>"
18
32
  - !ruby/object:Gem::Version
19
33
  version: '2.0'
20
- type: :development
34
+ type: :runtime
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
38
  - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sassc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.3'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.3'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: rake
29
71
  requirement: !ruby/object:Gem::Requirement
30
72
  requirements:
31
73
  - - "~>"
32
74
  - !ruby/object:Gem::Version
33
- version: '10.0'
75
+ version: '13.0'
34
76
  type: :development
35
77
  prerelease: false
36
78
  version_requirements: !ruby/object:Gem::Requirement
37
79
  requirements:
38
80
  - - "~>"
39
81
  - !ruby/object:Gem::Version
40
- version: '10.0'
82
+ version: '13.0'
41
83
  - !ruby/object:Gem::Dependency
42
84
  name: minitest
43
85
  requirement: !ruby/object:Gem::Requirement
@@ -52,24 +94,97 @@ dependencies:
52
94
  - - "~>"
53
95
  - !ruby/object:Gem::Version
54
96
  version: '5.0'
55
- description: A web framework
97
+ description:
56
98
  email:
57
99
  - jody@jodysalt.com
58
- executables: []
100
+ executables:
101
+ - slick
59
102
  extensions: []
60
103
  extra_rdoc_files: []
61
104
  files:
62
105
  - ".gitignore"
106
+ - ".slick"
63
107
  - ".travis.yml"
64
108
  - Gemfile
65
- - Gemfile.lock
109
+ - LICENSE
66
110
  - README.md
67
111
  - Rakefile
68
- - bin/console
69
- - bin/setup
112
+ - config.rb
113
+ - config.ru
114
+ - exe/slick
70
115
  - lib/slick.rb
116
+ - lib/slick/command.rb
117
+ - lib/slick/commands/create_database.rb
118
+ - lib/slick/commands/drop_database.rb
119
+ - lib/slick/commands/init_database.rb
120
+ - lib/slick/commands/list_commands.rb
121
+ - lib/slick/commands/migrate_database.rb
122
+ - lib/slick/commands/reset_database.rb
123
+ - lib/slick/commands/start_console.rb
124
+ - lib/slick/commands/start_server.rb
125
+ - lib/slick/concern.rb
126
+ - lib/slick/database.rb
127
+ - lib/slick/database/abstract_row.rb
128
+ - lib/slick/database/column.rb
129
+ - lib/slick/database/migration.rb
130
+ - lib/slick/database/migrator.rb
131
+ - lib/slick/database/row.rb
132
+ - lib/slick/database/table.rb
133
+ - lib/slick/database/union.rb
134
+ - lib/slick/helper.rb
135
+ - lib/slick/helpers.rb
136
+ - lib/slick/helpers/dir.rb
137
+ - lib/slick/helpers/echo.rb
138
+ - lib/slick/helpers/grab.rb
139
+ - lib/slick/helpers/html_builder.rb
140
+ - lib/slick/helpers/text_builder.rb
141
+ - lib/slick/monkey_patches/html_escape.rb
142
+ - lib/slick/monkey_patches/html_unescape.rb
143
+ - lib/slick/monkey_patches/paramify.rb
144
+ - lib/slick/monkey_patches/pluralize.rb
145
+ - lib/slick/monkey_patches/require_all.rb
146
+ - lib/slick/monkey_patches/singularize.rb
147
+ - lib/slick/monkey_patches/url_encode.rb
148
+ - lib/slick/monkey_patches/url_escape.rb
149
+ - lib/slick/monkey_patches/url_unescape.rb
150
+ - lib/slick/project.rb
151
+ - lib/slick/project_watcher.rb
152
+ - lib/slick/registry.rb
153
+ - lib/slick/request.rb
154
+ - lib/slick/resource_factories/config.rb
155
+ - lib/slick/resource_factories/database.rb
156
+ - lib/slick/resource_factories/database_schema_cache.rb
157
+ - lib/slick/resource_factories/database_session_cache.rb
158
+ - lib/slick/resource_factories/env.rb
159
+ - lib/slick/resource_factories/environment.rb
160
+ - lib/slick/resource_factories/file.rb
161
+ - lib/slick/resource_factories/params.rb
162
+ - lib/slick/resource_factories/project.rb
163
+ - lib/slick/resource_factories/request.rb
164
+ - lib/slick/resource_factories/response.rb
165
+ - lib/slick/resource_factories/web.rb
166
+ - lib/slick/resource_factory.rb
167
+ - lib/slick/resource_provider.rb
168
+ - lib/slick/response.rb
169
+ - lib/slick/util.rb
170
+ - lib/slick/util/inflections.rb
171
+ - lib/slick/util/params_hash.rb
71
172
  - lib/slick/version.rb
173
+ - lib/slick/web.rb
174
+ - lib/slick/web/dir.rb
175
+ - lib/slick/web/file.rb
176
+ - lib/slick/web/file_interpreter.rb
177
+ - lib/slick/web/file_interpreters/erb.rb
178
+ - lib/slick/web/file_interpreters/js.rb
179
+ - lib/slick/web/file_interpreters/rb.rb
180
+ - lib/slick/web/file_interpreters/sass.rb
181
+ - lib/slick/web/node.rb
182
+ - lib/slick/workspace.rb
72
183
  - slick.gemspec
184
+ - web/_layout.erb
185
+ - web/index.erb
186
+ - web/javascripts/index.js
187
+ - web/stylesheets/index.scss
73
188
  homepage:
74
189
  licenses: []
75
190
  metadata: {}
@@ -91,5 +206,6 @@ requirements: []
91
206
  rubygems_version: 3.0.6
92
207
  signing_key:
93
208
  specification_version: 4
94
- summary: A web framework
209
+ summary: An entrepreneurial web framework that allows small (or one-man) teams to
210
+ be highly productive.
95
211
  test_files: []
@@ -1,22 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- slick (0.16.3)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- minitest (5.14.0)
10
- rake (10.5.0)
11
-
12
- PLATFORMS
13
- ruby
14
-
15
- DEPENDENCIES
16
- bundler (~> 2.0)
17
- minitest (~> 5.0)
18
- rake (~> 10.0)
19
- slick!
20
-
21
- BUNDLED WITH
22
- 2.0.2
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "slick"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here