stipa 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stipa/generators/base.rb +13 -9
- data/lib/stipa/generators/vue.rb +1 -1
- data/lib/stipa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 629ad04a4c8bcd7193a81038be6845f90d9e01b229bfbc0b2d1cb7931359ac06
|
|
4
|
+
data.tar.gz: 7d57a8f7839381d2abfe434221cc58de4a8bddf945d7f55ced2c7c9f272c6bef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d96ce9f31e87e046095910f784526cc9a7eb7ca98e5af626b07dd668a12c0eb46e7bab0bd60950788ca924ea75aea08b97b981e38b4ba6615edb2dfbaf72661c
|
|
7
|
+
data.tar.gz: 74e83a3380253c27ef9eddbd4cdba82b3a7658b9261a4dc5ad2b2a58a75cd5820799f9a6ba0cd2512f485ec38c5cb7b354dd07368769c34dc2ab214bee89fc7a
|
|
@@ -190,13 +190,17 @@ module Stipa
|
|
|
190
190
|
|
|
191
191
|
require 'stipa/model'
|
|
192
192
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
193
|
+
# Include this in any Sequel::Model subclass to get
|
|
194
|
+
# timestamps, UUID, soft delete, and serialization.
|
|
195
|
+
#
|
|
196
|
+
# Usage:
|
|
197
|
+
# class Post < Sequel::Model
|
|
198
|
+
# include ApplicationModel
|
|
199
|
+
# end
|
|
200
|
+
|
|
201
|
+
module ApplicationModel
|
|
202
|
+
def self.included(base)
|
|
203
|
+
base.include Stipa::Model
|
|
200
204
|
end
|
|
201
205
|
end
|
|
202
206
|
RUBY
|
|
@@ -223,7 +227,7 @@ module Stipa
|
|
|
223
227
|
RUBY
|
|
224
228
|
end
|
|
225
229
|
|
|
226
|
-
def t_rakefile
|
|
230
|
+
def t_rakefile(config_path: 'config')
|
|
227
231
|
<<~RUBY
|
|
228
232
|
# frozen_string_literal: true
|
|
229
233
|
|
|
@@ -257,7 +261,7 @@ module Stipa
|
|
|
257
261
|
task default: 'db:migrate'
|
|
258
262
|
|
|
259
263
|
def load_config
|
|
260
|
-
require_relative '
|
|
264
|
+
require_relative '#{config_path}/database'
|
|
261
265
|
Stipa::Database.connect!
|
|
262
266
|
end
|
|
263
267
|
|
data/lib/stipa/generators/vue.rb
CHANGED
|
@@ -56,7 +56,7 @@ module Stipa
|
|
|
56
56
|
{
|
|
57
57
|
'.gitignore' => t_gitignore,
|
|
58
58
|
'Gemfile' => t_gemfile,
|
|
59
|
-
'Rakefile' => t_rakefile,
|
|
59
|
+
'Rakefile' => t_rakefile(config_path: 'app/config'),
|
|
60
60
|
'package.json' => t_package_json,
|
|
61
61
|
'rollup.config.js' => t_rollup_config,
|
|
62
62
|
'tsconfig.json' => t_tsconfig,
|
data/lib/stipa/version.rb
CHANGED