kowl 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c33cc695e2db6919bd9bcd06dc3247e1a1c6ccd141f87ac69f5ffac0b6600124
4
- data.tar.gz: 7bc46c9a2f8dee7a8679076ddff0c9c1d604265cc18af3700e3e7fb674403b89
3
+ metadata.gz: 7248af24fc08fcb09941da41ff850d26831b0e1d23027fa4d1a02a95ae7a481b
4
+ data.tar.gz: d197406884eeb5dcff024c40a7d429b576872f03d4a1b19ad47a592fcbe0ec77
5
5
  SHA512:
6
- metadata.gz: ef6556698bbba3458e3127c3a8f1c40a4a92b0e47c7e9a8e951e024f214d3b1951f0549d2c69d04e1e955d252428024dbbd4f937bc716286ff2065157c769a54
7
- data.tar.gz: 27776b5a3651cf1c3affb64227638e92a226e55f34549b7dadc82628d4d0f5081dfbb11c267aad4294e454ac932c389c6159a57e454d46c877af9f50dbe3b944
6
+ metadata.gz: cc609538f6862c79ca505e45aec46147d91adb4dbb982ed99cebdb9cc05bb00cb35f42172303698fe513bb400695c7bf076b9eba7699092d628ca9d2bd3cea14
7
+ data.tar.gz: 05d4cdb5e5e065e3000cf8b566b6ad8c2ca01ebe9117e2c9158e5dfe672f65970a51ace72f995e27bb22a10e1e0fed0a4b440491124c02ca4186f0430eedcfec
@@ -135,7 +135,7 @@ module Kowl
135
135
  end
136
136
 
137
137
  # Add PgHero engine mount to the routes if the database iss postgresql
138
- # @param database [String] A string containing the applications defined database adapater
138
+ # @param database [String] A string containing the applications defined database adapter
139
139
  # @return [String] the pghero dashboard mount path, if postgresql will be used
140
140
  def database_route(database = 'sqlite3')
141
141
  return '' unless database.to_s == 'postgresql'
@@ -389,7 +389,7 @@ module Kowl
389
389
  # @return [String] an apk string for installing dependencies in the dockerfile
390
390
  def alpine_docker_dependencies(options = {})
391
391
  # core dependencies
392
- dependencies = %w[brotli dumb-init git sqlite sqlite-dev tzdata vips vips-dev yarn]
392
+ dependencies = %w[brotli dumb-init git python3 sqlite sqlite-dev tzdata vips vips-dev yarn]
393
393
  # optional dependencies
394
394
  dependencies << 'graphviz' unless options[:skip_erd]
395
395
  dependencies << 'libsodium-dev' if options[:encrypt]
@@ -413,7 +413,7 @@ module Kowl
413
413
  # @param options [Hash] a list of the applictions specific options to determine what all dependencies are required
414
414
  # @return [String] an `apt-get install` with a list of all the applications dependencies listed
415
415
  def debian_docker_dependencies(options = {})
416
- dependencies = %w[brotli curl git libjemalloc-dev libsqlite3-dev libvips sqlite3 wget]
416
+ dependencies = %w[brotli curl git libjemalloc-dev libsqlite3-dev libvips python sqlite3 wget]
417
417
 
418
418
  # optional dependencies
419
419
  dependencies << 'graphviz' unless options[:skip_erd]
@@ -191,8 +191,6 @@ module Kowl
191
191
  extract_css: true
192
192
  # Cache manifest.json for performance
193
193
  cache_manifest: true
194
- # Compile staging packs to a separate directory
195
- public_output_path: packs-staging
196
194
  STAGING
197
195
  append_to_file('config/webpacker.yml', "\n#{webpacker_str}")
198
196
  end
@@ -113,7 +113,7 @@ def dh(str = '')
113
113
  end
114
114
 
115
115
  # Used to create and return the .env file database configuration for the specific environment
116
- # @param database [String] the database adapater in which the application will be connecting to
116
+ # @param database [String] the database adapter in which the application will be connecting to
117
117
  # @param env [String] the environment which the env file is bring created for
118
118
  # @return [String] a list of database parameters for the specific database connection
119
119
  def dotfile_databases(database, env)
@@ -5,10 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
6
  # ruby '<%= RUBY_VERSION %>'
7
7
  gem 'rails', '<%= Kowl::RAILS_VERSION %>'
8
- gem 'puma', '~> 4.3' # Use Puma as the applications web server
9
- # gem 'iodine', '~> 0.7' # An extremely fast and concurrent Application Server (works well with websockets)
10
- # gem 'falcon' # A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS
11
- # Falon => https://www.codeotaku.com/journal/2019-02/falcon-early-hints/index
8
+ gem 'puma', '>= 4.3' # Use Puma as the applications web server
12
9
  gem 'rack', '~> 2.2'
13
10
 
14
11
  # Gems required for running rails with RUBY_VERSION >= 2.7
@@ -29,6 +29,7 @@ ENV APP_USER='app' \
29
29
  RUN apk update && apk -U upgrade >/dev/null 2>&1 && \
30
30
  apk add build-base ca-certificates libffi-dev linux-headers openssl >/dev/null 2>&1 && \
31
31
  <%= alpine_docker_dependencies(options) -%>
32
+ ln -sf python3 /usr/bin/python && \
32
33
  rm -rf /tmp/* /var/tmp/* /var/cache/apk/* && \
33
34
  truncate -s 0 /var/log/*log
34
35
 
@@ -81,10 +81,11 @@ RUN mkdir -p $INSTANT_CLIENT_PATH && \
81
81
  alien -i $INSTANT_CLIENT_SQLPLUS_PATH 2>/dev/null && \
82
82
  ldconfig
83
83
  <%- elsif options[:database] == 'sqlserver' -%>
84
- RUN wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.27.tar.gz && \
85
- tar -xzf freetds-1.00.27.tar.gz && \
86
- rm -rf freetds-1.00.27.tar.gz && \
87
- cd freetds-1.00.27 && \
84
+ ENV FREETDS_VERSION='1.2.5'
85
+ RUN wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-$FREETDS_VERSION.tar.gz >/dev/null 2>&1 && \
86
+ tar -xzf freetds-$FREETDS_VERSION.tar.gz && \
87
+ rm -rf freetds-$FREETDS_VERSION.tar.gz && \
88
+ cd freetds-$FREETDS_VERSION && \
88
89
  ./configure --prefix=/usr/local --with-tdsver=7.3 --silent >/dev/null 2>&1 && \
89
90
  make -j "$(nproc)" >/dev/null 2>&1 && \
90
91
  make install >/dev/null 2>&1 && \
@@ -5,5 +5,5 @@ module Kowl
5
5
  # Minimum required ruby version which to install the gem
6
6
  RUBY_VERSION = '2.5'
7
7
  WEBPACKER_VERSION = '5.0'
8
- VERSION = '0.0.4'
8
+ VERSION = '0.0.5'
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kowl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hicks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-05 00:00:00.000000000 Z
11
+ date: 2020-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
402
  - !ruby/object:Gem::Version
403
403
  version: '0'
404
404
  requirements: []
405
- rubygems_version: 3.0.6
405
+ rubygems_version: 3.1.4
406
406
  signing_key:
407
407
  specification_version: 4
408
408
  summary: A rails application generator to get you out the door and started without