pax_global_header00006660000000000000000000000064143031302120014477gustar00rootroot0000000000000052 comment=e0ceb5aab920b176318d7faa4d44bd1a72510833 tdiary-contrib-5.2.3/000077500000000000000000000000001430313021200144405ustar00rootroot00000000000000tdiary-contrib-5.2.3/.devcontainer/000077500000000000000000000000001430313021200171775ustar00rootroot00000000000000tdiary-contrib-5.2.3/.devcontainer/.htpasswd000066400000000000000000000000251430313021200210320ustar00rootroot00000000000000tdiary:JCZpsgS6qdNgQ tdiary-contrib-5.2.3/.devcontainer/Dockerfile000066400000000000000000000025321430313021200211730ustar00rootroot00000000000000# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby/.devcontainer/base.Dockerfile # [Choice] Ruby version: 2, 2.7, 2.6, 2.5 ARG VARIANT="2" FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT} LABEL maintainer "@tdtds " # [Option] Install Node.js ARG INSTALL_NODE="true" ARG NODE_VERSION="lts/*" RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi # [Optional] Uncomment this section to install additional OS packages. RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends apt-utils libidn11-dev sqlite3 libsqlite3-dev # [Optional] Uncomment this line to install additional gems. ARG CORE="/workspaces/core" ARG CONTRIB="/workspaces/contrib" RUN mkdir -p /workspaces \ && git clone --depth=1 https://github.com/tdiary/tdiary-core.git "${CORE}" \ && rm ${CORE}/Gemfile.lock ENV HTPASSWD="${CONTRIB}/.devcontainer/.htpasswd" COPY ./tdiary.conf "${CORE}" COPY ./Gemfile.local "${CORE}" RUN chown -R 1000:1000 "${CORE}" # [Optional] Uncomment this line to install global node packages. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 EXPOSE 9292 CMD "${CONTRIB}/.devcontainer/run-app.sh" tdiary-contrib-5.2.3/.devcontainer/Gemfile.local000066400000000000000000000000751430313021200215650ustar00rootroot00000000000000gem 'tdiary-contrib', path: '/workspaces/contrib' gem 'puma' tdiary-contrib-5.2.3/.devcontainer/README.md000066400000000000000000000012631430313021200204600ustar00rootroot00000000000000# Docker image for tdiary-contrib development Your editor is vscode? See bottom of this document. ## how to build an image ``` % docker build -t tdiary-contrib-devel .devcontainer ``` ## how to run in the Docker ``` % docker run -v $(pwd):/workspace -p 9292:9292 -it --rm tdiary-contrib-devel ``` ## develoment on vscode remote-container 1. Open the folder of this repository by Remte-Container Extention, then starting build a image automatically. 2. Only at first, run `.devcontainer/setup-app.sh` for making `tdiary.conf` and `.htpasswd`. 3. Open Debug (`Ctrl + Shift + D`) and start "Debug tDiary-contrib". 4. Open [`http://localhost:9292`](http://localhost:9292) in your browser.tdiary-contrib-5.2.3/.devcontainer/devcontainer.json000066400000000000000000000021041430313021200225500ustar00rootroot00000000000000// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.154.0/containers/ruby { "name": "tDiary-contrib", "build": { "dockerfile": "Dockerfile", "args": { // Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5 "VARIANT": "2", // Options "INSTALL_NODE": "false", "NODE_VERSION": "lts/*" } }, // Set *default* container specific settings.json values on container create. "settings": { // "terminal.integrated.shell.linux": "/bin/bash" }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ "rebornix.Ruby" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [9292], // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "/workspaces/contrib/.devcontainer/setup-app.sh", // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" }tdiary-contrib-5.2.3/.devcontainer/run-app.sh000077500000000000000000000001231430313021200211140ustar00rootroot00000000000000#!/bin/bash source `dirname $0`/setup-app.sh bundle exec rackup -o 0.0.0.0 -p 9292 tdiary-contrib-5.2.3/.devcontainer/setup-app.sh000077500000000000000000000001641430313021200214550ustar00rootroot00000000000000#!/bin/bash cd /workspaces/core bundle install --path=vendor/bundle --jobs=4 --retry=3 bundle exec rake assets:copy tdiary-contrib-5.2.3/.devcontainer/tdiary.conf000066400000000000000000000174311430313021200213500ustar00rootroot00000000000000# # 初めてtDiaryを使う人向けの設定ファイル # # For those who do not read Japanese: please read doc/README.en.html or # misc/i18n/README-en.rd and use misc/i18n/tdiary.conf.sample-en. # #------------------------------------------- # 下の@data_pathだけは必ず指定してください!! #------------------------------------------- @data_path = '/workspaces/contrib/data' # @data_pathでは日記のデータを保存するディレクトリを指定します。 # このディレクトリは、WWWサーバの権限で書き込めるパーミッションに # しておく必要があります。 #----------------------------------------------- # 以下の項目は必ずしも変更する必要はありません # また、ほとんどは設定画面から設定を変更できます #----------------------------------------------- #------- # CGIで設定できない項目群 #------- @style = 'Wiki' #@index = './' @update = 'update.rb' @options['apply_plugin'] = true @options['sp.path'] = [ 'misc/plugin' ] @accesskey_enabled = false # false なら編集画面でアクセスキーが無効になる # tDiaryをproxyの内側に設置する場合に設定 # @options['proxy'] = 'proxy.example.com:8080' @options['bot'] = [ '^BlogLines/', '^blogmap', 'MI[CK]AN/', '^NG/', '^samidare', '^TAMATEBAKO/' ] @options['sp.selected'] = "amazon.rb append-css.rb calendar2.rb category.rb comment_mail-smtp.rb disp_referrer.rb dropdown_calendar.rb footnote.rb highlight.rb image.rb jdate.rb kw.rb makerss.rb my-ex.rb recent_comment3.rb recent_list.rb " # dropdown_calendarの先頭に表示するテキスト # @options['dropdown_calendar.label'] = '過去の日記' @options['spamfilter.bad_comment_patts'] = "(href=|casino|gambling|betting|fastsearch\\.eu\\.com|ganzao|poker|holdem|hold.em|roulette|drug|tramadol|viagra|fioricet|oxycontin|biaxin|aldara|business cards|home depot|slot.?machine|insurance|getblog2|video-game|Good site|internet-all\\.com|deai|tdfms|comu2|omaha)\r\n" @options['spamfilter.bad_ip_addrs'] = "" @options['spamfilter.bad_mail_patts'] = "(mu@alloha\\.info|mumu2004@mail\\.com|zhongleibo|dfd@12\\.com|anonimous|aol\\.|yahoo\\.|google\\.|hotmail\\.|msn\\.|leroy\\.|ablare\\.|gmx\\.|lorazepam|\\.co$)" @options['spamfilter.bad_uri_patts'] = "" @options['spamfilter.bad_uri_patts_for_mails'] = false @options['spamfilter.debug_file'] = "" @options['spamfilter.debug_mode'] = false @options['spamfilter.filter_mode'] = true @options['spamfilter.max_uris'] = "2" @options['spamfilter.resolv_check'] = false @options['spamfilter.resolv_check_mode'] = false @options['spamlookup.domain.list'] = "bsb.spamlookup.net\r\nmulti.surbl.org\r\nrbl.bulkfeeds.jp" @options['spamlookup.safe_domain.list'] = "search.yahoo.co.jp\r\nwww.google.com\r\nwww.google.co.jp\r\nsearch.msn.co.jp" @html_title = %Q[tdiary-contrib devcontainer] @header = <

<%= @html_title %>

ID / PW = tdiary / tdiary

HEADER @footer = <