Skip to content

Commit

Permalink
Auto stash before rebase of "refs/heads/idk" remove docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
gintama91 committed Oct 5, 2023
1 parent 0826520 commit 25a5c45
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Use the official Ubuntu as a parent image
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive

# Install system dependencies
RUN apt-get update && \
apt-get install -y curl unzip git autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev libgtk-3-dev libwebkit2gtk-4.0-dev portaudio19-dev

# RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Install asdf
RUN git clone --depth 1 https://github.com/asdf-vm/asdf.git ~/.asdf

ENV PATH="$PATH:/root/.asdf/bin:/root/.asdf/shims"

# install ruby
RUN asdf plugin add ruby && \
asdf install ruby 3.2.0 && \
asdf global ruby 3.2.0

# set working directory
WORKDIR /scarpe

# Copy whole app
COPY . /scarpe

# Install gems
RUN bundle install

14 changes: 14 additions & 0 deletions examples/para/para_text.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Shoes.app do
stack do
@note = para " your note will appear here"

@edit_box = edit_box ""
@save_button = button "Save"

@save_button.click do
new_text = @edit_box.text
@note.text = new_text
alert("Note saved successfully!")
end
end
end
11 changes: 10 additions & 1 deletion lacci/lib/shoes/widgets/para.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ def text_children_to_items(text_children)
end

def replace(*children)
@text_children = children
update_text_children(*children)
end

def text=(children)
update_text_children(*children)
end

private

def update_text_children(*children)
@text_children = children
# This should signal the display widget to change
self.text_items = text_children_to_items(@text_children)
end
Expand Down

0 comments on commit 25a5c45

Please sign in to comment.