pax_global_header00006660000000000000000000000064143031300000014472gustar00rootroot0000000000000052 comment=9131a0d4da346847899ced5e5105d6e0385c6d0a tdiary-core-5.2.3/000077500000000000000000000000001430313000000137235ustar00rootroot00000000000000tdiary-core-5.2.3/.coveralls.yml000066400000000000000000000000271430313000000165150ustar00rootroot00000000000000service_name: travis-citdiary-core-5.2.3/.devcontainer/000077500000000000000000000000001430313000000164625ustar00rootroot00000000000000tdiary-core-5.2.3/.devcontainer/Dockerfile000066400000000000000000000017561430313000000204650ustar00rootroot00000000000000# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/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 "umask 0002 && . /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" ENV HTPASSWD="${CORE}/.devcontainer/.htpasswd" # [Optional] Uncomment this line to install global node packages. EXPOSE 9292 CMD "${CORE}/.devcontainer/run-app.sh"tdiary-core-5.2.3/.devcontainer/Gemfile.local000066400000000000000000000000371430313000000210460ustar00rootroot00000000000000gem 'tdiary-contrib' gem 'puma'tdiary-core-5.2.3/.devcontainer/README.md000066400000000000000000000014721430313000000177450ustar00rootroot00000000000000# Docker image for tdiary development Your editor is vscode? See bottom of this document. ## how to build an image ``` % docker build -t tdiary-devel .devcontainer ``` ## how to run in the Docker ``` % docker run -v $(pwd):/workspace -p 9292:9292 -it --rm tdiary-devel ``` or debugging `contrib` in the parent directory: ``` % docker run -v $(pwd):/usr/src/app -v $(pwd)/../contrib:/usr/src/contrib -p 9292:9292 -it --rm tdiary-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". 4. Open [`http://localhost:9292`](http://localhost:9292) in your browser.tdiary-core-5.2.3/.devcontainer/devcontainer.json000066400000000000000000000022021430313000000220320ustar00rootroot00000000000000// 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.2/containers/ruby { "name": "tDiary-core", "build": { "dockerfile": "Dockerfile", "args": { // Update 'VARIANT' to pick a Ruby version: 2, 2.7, 2.6, 2.5 "VARIANT": "3", // 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", "KoichiSasada.vscode-rdbg", "github.vscode-pull-request-github" ], // 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/core/.devcontainer/setup-app.sh", // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" }tdiary-core-5.2.3/.devcontainer/run-app.sh000077500000000000000000000001231430313000000203770ustar00rootroot00000000000000#!/bin/bash source `dirname $0`/setup-app.sh bundle exec rackup -o 0.0.0.0 -p 9292 tdiary-core-5.2.3/.devcontainer/setup-app.sh000077500000000000000000000004101430313000000207320ustar00rootroot00000000000000#!/bin/bash cp .devcontainer/tdiary.conf . cp .devcontainer/Gemfile.local . bundle config set path vendor/bundle bundle config set with development:test bundle install --jobs=4 --retry=3 bundle exec rake assets:copy gem install debug #git ls-remote -q > /dev/null tdiary-core-5.2.3/.devcontainer/tdiary.conf000066400000000000000000000174231430313000000206340ustar00rootroot00000000000000# # 初めて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/core/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-core devcontainer] @header = <

<%= @html_title %>

ID / PW = tdiary / tdiary

HEADER @footer = <