trifle-stats 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2
+ # Initialization code that may require console input (password prompts, [y/n]
3
+ # confirmations, etc.) must go above this block; everything else may go below.
4
+ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
5
+ source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
6
+ fi
7
+
8
+ source /root/powerlevel10k/powerlevel10k.zsh-theme
9
+
10
+ # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
11
+ [[ ! -f /root/.p10k.zsh ]] || source /root/.p10k.zsh
12
+
13
+ POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
@@ -1,41 +1,27 @@
1
- FROM ubuntu:20.04
1
+ FROM debian:latest
2
2
 
3
3
  ENV TZ=Europe/Bratislava
4
4
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5
5
 
6
- RUN useradd gitpod -u 33333
7
- RUN mkdir -p /home/gitpod && chown gitpod:gitpod /home/gitpod
8
-
9
6
  # install ubuntu packages
10
7
  RUN apt-get update -q \
11
8
  && apt-get install -y \
12
9
  build-essential \
13
10
  apt-transport-https \
14
- bash \
15
- xterm \
16
- xvfb \
17
- x11vnc \
11
+ zsh \
18
12
  libpq-dev \
19
13
  git \
20
14
  curl \
21
15
  wget \
22
16
  unzip \
23
- dirmngr \
24
17
  gpg \
25
18
  gnupg2 \
26
19
  locales \
27
20
  autoconf \
28
- libncurses5-dev \
29
- libgl1-mesa-dev \
30
- libglu1-mesa-dev \
31
- libpng-dev \
32
- unixodbc-dev \
33
21
  libssl-dev \
34
22
  libreadline-dev \
35
23
  zlib1g-dev \
36
- ffmpeg \
37
24
  tmux \
38
- runit-systemd \
39
25
  htop \
40
26
  vim \
41
27
  && apt-get clean
@@ -46,23 +32,15 @@ ENV LANG en_US.UTF-8
46
32
  ENV LANGUAGE en_US:en
47
33
  ENV LC_ALL en_US.UTF-8
48
34
 
49
- RUN curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | apt-key add -
50
- RUN echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-4.4.list
51
-
52
- RUN apt-get update -q \
53
- && apt-get install -y \
54
- postgresql postgresql-contrib \
55
- # mongodb-org \
56
- redis-server \
57
- mariadb-server \
58
- && apt-get clean
59
-
60
- USER gitpod
35
+ RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
36
+ RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /root/powerlevel10k
37
+ COPY .zshrc /root/.zshrc
38
+ COPY .p10k.zsh /root/p10k.zsh
61
39
 
62
40
  #install asdf
63
- ENV ASDF_ROOT /home/gitpod/.asdf
41
+ ENV ASDF_ROOT /root/.asdf
64
42
  ENV PATH "${ASDF_ROOT}/bin:${ASDF_ROOT}/shims:$PATH"
65
- RUN git clone https://github.com/asdf-vm/asdf.git ${ASDF_ROOT} --branch v0.8.0
43
+ RUN git clone https://github.com/asdf-vm/asdf.git ${ASDF_ROOT} --branch v0.10.0
66
44
 
67
45
  RUN asdf plugin-add ruby https://github.com/asdf-vm/asdf-ruby.git
68
46
 
@@ -71,7 +49,6 @@ ENV RUBY_VERSION 3.0.0
71
49
  RUN ASDF_RUBY_BUILD_VERSION=v20201225 asdf install ruby ${RUBY_VERSION} \
72
50
  && asdf global ruby ${RUBY_VERSION}
73
51
 
74
- # throw errors if Gemfile has been modified since Gemfile.lock
75
52
  RUN gem install bundler
76
53
 
77
- CMD ["bash"]
54
+ CMD ["zsh"]
data/.gitignore CHANGED
@@ -10,4 +10,5 @@
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
  /.byebug_history
13
- stats.db
13
+ stats.db
14
+ .DS_Store
data/Gemfile CHANGED
@@ -5,3 +5,7 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
+ gem "mongo", require: false
9
+ gem "pg", require: false
10
+ gem "redis", require: false
11
+ gem "sqlite", require: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trifle-stats (1.3.0)
4
+ trifle-stats (1.3.1)
5
5
  tzinfo (~> 2.0)
6
6
 
7
7
  GEM
@@ -49,6 +49,7 @@ GEM
49
49
  rubocop-ast (1.4.1)
50
50
  parser (>= 2.7.1.5)
51
51
  ruby-progressbar (1.11.0)
52
+ sqlite (1.0.2)
52
53
  sqlite3 (1.4.4)
53
54
  tzinfo (2.0.5)
54
55
  concurrent-ruby (~> 1.0)
@@ -62,12 +63,13 @@ DEPENDENCIES
62
63
  bundler (~> 2.1)
63
64
  byebug
64
65
  dotenv
65
- mongo (>= 2.14.0)
66
- pg (>= 1.2)
66
+ mongo
67
+ pg
67
68
  rake (~> 12.0)
68
- redis (>= 4.2)
69
+ redis
69
70
  rspec (~> 3.0)
70
71
  rubocop (= 1.0.0)
72
+ sqlite
71
73
  sqlite3 (>= 1.4.4)
72
74
  trifle-stats!
73
75
 
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'mongo'
4
3
  require_relative '../mixins/packer'
5
4
 
6
5
  module Trifle
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'pg'
4
3
  require_relative '../mixins/packer'
5
4
 
6
5
  module Trifle
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'redis'
4
3
  require_relative '../mixins/packer'
5
4
 
6
5
  module Trifle
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'sqlite3'
4
3
  require_relative '../mixins/packer'
5
4
 
6
5
  module Trifle
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Trifle
4
4
  module Stats
5
- VERSION = '1.3.0'
5
+ VERSION = '1.3.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trifle-stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jozef Vaclavik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -180,6 +180,8 @@ files:
180
180
  - ".devops/docker/environment/.zshrc"
181
181
  - ".devops/docker/environment/Dockerfile"
182
182
  - ".devops/docker/gitpod/Dockerfile"
183
+ - ".devops/docker/gitpod/base/.p10k.zsh"
184
+ - ".devops/docker/gitpod/base/.zshrc"
183
185
  - ".devops/docker/gitpod/base/Dockerfile"
184
186
  - ".github/workflows/ruby.yml"
185
187
  - ".gitignore"