GitPrep 2.0 ãªãªã¼ã¹ - ãã«ãªã¯ã¨ã¹ãã®ãµãã¼ããªã©ãå¤§å¹ ã«æ©è½ãå¼·å
ãGitHubã®ãã¼ã¿ãã«ãªã¯ãã¼ã³GitPrep 2.0ãã2016å¹´ï¼æï¼æ¥ã«ãªãªã¼ã¹ãã¾ãããGitPrepã¯ãCGIã¨çµã¿è¾¼ã¿ãµã¼ãã¼ã§èµ·åã§ããGitPrep 2.0ã¯ãGitPrepã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããã§ããå¾ æã®ãã«ãªã¯ã¨ã¹ãæ©è½ã追å ããã¾ããããã®ä»ãå¤ãã®æ©è½å¼·åãå«ã¾ãã¦ãã¾ãã
- ã¡ã¼ã«ã¢ãã¬ã¹ã®ãµãã¼ããã¦ã¼ã¶ã¼ãã¡ã¼ã«ã¢ãã¬ã¹ã§èå¥ã§ããããã«ãªãã¾ããã
- ã¦ã¼ã¶ã¼IDã«å ãã¦ãã¦ã¼ã¶ã¼åãè¨å®ã§ããããã«ãªãã¾ããã
- ãã¼ã¿ãã¼ã¹ã®ãã¼ãã«ã®å¤§å¹ ãªå é¨æ¹åãè¡ããã¦ãããä¸è²«æ§ãå¢ãã¾ããã
- ããã¸ã§ã¯ãåä½ã§ãã¨ã³ã³ã¼ãã£ã³ã°ã®è¨å®ãdiffã®çµæã§ã空ç½ãç¡è¦ããã®ãªãã·ã§ã³ã®è¨å®ãå¯è½ã«ãªãã¾ãããè¨å®ãã¡ã¤ã«ã«æå®ãã¦ããå ´åã¯ãåããã¸ã§ã¯ãã§è¨å®ãã¦ãã ããã
- ãªãã¼ã¹ãããã¹ã®ããã«å©ç¨ããããããã¯ãX-Forwarded-HTTPSããX-Forwarded-Protoã«å¤æ´ããã¾ããã
- å¿ è¦ãªä¸æãã¡ã¤ã«ã¯ãgitprepå ã®ãã£ã¬ã¯ããªã«ä½æãããããã«ãªãã¾ããã/tmpã«ä¾åãã¾ããã
GitPrepã®ã¤ã¡ã¼ã¸ã¨ãµã³ãã«
ãGitPrepã®ã¤ã¡ã¼ã¸ã§ãã
ãGitPrepã®ãµã³ãã«URLã§ããããã¯ããããã¬ã³ã¿ã«ãµã¼ãã¼ã«ããã¦CGIã§å®è¡ãã¦ãããã®ã§ããã¢ã¯ã»ã¹ããã¨ãGitPrepã®ä½¿ãå¿å°ã試ãã¦ã¿ããã¨ãã§ãã¾ããSSLã«ã対å¿ãã¦ãã¾ãã
äºææ§ã®ãªãå¤æ´
ãGitPrepã®ãå¿ è¦ãªPerlã®ãã¼ã¸ã§ã³ã5.8.7ãã5.10.1ã«ãããã¾ãããææ°çã®Mojoliciousãå©ç¨ããããã«ãã¦ããã®ã§ãå¤ãMojoliciousããæ½å¨çã«æ±ãã¦ããã»ãã¥ãªãã£åé¡ãã解決ããã¦ãã¾ãã
ãcygwinã®å ¬å¼ãªãµãã¼ããè½ã¨ãã¾ãããçè«çã«ã¯å©ç¨å¯è½ã§ãããå ¬å¼ã«åä½ããã§ãã¯ãããã¨ã¯ããªããªãã¾ããè¿ãå°æ¥Windows10ã«ããã¦ãbashä¸ã§perlããµãã¼ãããã¾ãã®ã§ããã¡ãã§ã®å©ç¨ãå§ãã¦ããããã¨æãã¾ãã
GitPrep 1.0ããã®ã¢ãããã¼ãããå ´å
ãPerlã®ãã¼ã¸ã§ã³ã5.8ã®å ´åã¯ãperlbrewã使ã£ã¦ãæ°ãããã¼ã¸ã§ã³ã®Perlãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
curl -L http://install.perlbrew.pl | bash echo "source ~/perl5/perlbrew/etc/bashrc" >> ~/.bash_profile source ~/.bash_profile perlbrew install perl-5.16.3 perlbrew switch perl-5.16.3 perl -v
ãã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«ãè¡ãããã«ãä¸åº¦extlibãã£ã¬ã¯ããªãåé¤ãã¦ãã ããã
cd gitprep rm -rf extlib
GitPrepã®ã¤ã³ã¹ãã¼ã«
ãããããã¯ãå§ãã¦å©ç¨ããæ¹ããã¢ããã°ã¬ã¼ãããæ¹ãã»ã¼åãæé ã«ãªãã¾ãã
ãã¢ã¸ã¥ã¼ã«ã®ã»ããã¢ãããè¡ãã¾ãã
./setup_module
ãã¢ã¸ã¥ã¼ã«ãæ£ããã¤ã³ã¹ãã¼ã«ããã¦ããããã§ãã¯ãã¾ãã
prove t
ã次ã«GitPrepã1.0ãããã¼ã¸ã§ã³ã¢ããããæ¹ã¯ããã¼ã¿ãã¼ã¹ã®ã¢ããã°ã¬ã¼ãä½æ¥ãè¡ãå¿ è¦ãããã¾ãã
# å®å ¨ã®ããã«ãgitprepã®ãã£ã¬ã¯ããªãããã¯ã¢ãã cd .. cp -rp gitprep gitprep.bak # ãã¼ã¿ãã¼ã¹ã®ã¢ããã°ã¬ã¼ã cd gitprep mv data/gitprep.db data/gitprep_v1bak.db ./setup_database old/copy_database_v1_to_v2 data/gitprep_v1bak.db data/gitprep.db
ãGitPrep 2.0ãå§ãã¦ä½¿ãæ¹ã¯ã次ã®ã³ãã³ããå®è¡ãã¾ãã
./setup_database
ãGitPrepã®å©ç¨ã«ã¯gitãã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ãå¿ è¦ã§ããããããã¼ã«ã«ã®ãã£ã¬ã¯ããªã«èªåã§gitãã¤ã³ã¹ãã¼ã«ãã¦ããå ´åã¯ãgitprep.confã§gitã®å ´æãæå®ããå¿ è¦ãããã¾ãã
[basic] ;;; Git command path git_bin=/home/yourname/local/bin/git
ãGitPrepãå©ç¨ããããã®æé ã¯ããã ãã§ããã¤ã³ã¹ãã¼ã«ãã¨ã¦ãç°¡åã«ã§ããããã«å·¥å¤«ããã¦ãã¾ãã
GitPrepã®éå§ã¨çµäº
ã次ã®ã³ãã³ãã§GitPrepãéå§ãããã¨ãã§ãã¾ãã
./gitprep
次ã®URLã§GitPrepã«ã¢ã¯ã»ã¹ãããã¨ãã§ãã¾ãã
ã次ã®ã³ãã³ãã§GitPrepãçµäºãããã¨ãã§ãã¾ãã
./gitprep --stop
GitPrepããã¸ã§ã¯ãããã®ãé¡ã
ãGitPrepã¯ããªã¼ãã³ã½ã¼ã¹ã®ããã¸ã§ã¯ãã§ããGitHubã¨åçã®æ©è½ãããªã¼ãã³ã½ã¼ã¹ä¸ã§å®ç¾ãããã¨ãç®æãã¦éçºãç¶ãããã¦ãã¾ããããä»GitPrepã使ã£ã¦ããããæ¹ããããã¾ãããããã²GitPrep2.0ã®ãªãªã¼ã¹ããç¥ãåãã®æ¹ã«ããç¥ãããã¦ã»ããã§ããä¼æ¥ããã³ãã¥ããã£ãå¦æ ¡ã®ç¥ãåããªã©ã§ãGitHubã®æ©è½ãç°¡åã«ã¤ã³ã¹ãã¼ã«ãã¦ãèªåã®ãµã¼ãã¼ã§éç¨ãããã¨ããæ¹ããããã¾ããããGitPrepã®æ å ±ãä¸åº¦ãä¼ããã ããã
ããªã¼ãã³ã½ã¼ã¹ã®ä½è ã«ã¨ã£ã¦ã¯ãä½æããä½åãå¤ãã®äººã«ä½¿ã£ã¦ããã ããã®ããã²ã¨ã¤ã®åã³ã§ããè³åããã ãã¾ããããTwitterã§ã®ç´¹ä»ããã¯ã¦ãªããã¯ãã¼ã¯ãªã©ãããããããé¡ããã¾ãã
ãä»å¾ã¯ã1年以å ã«ãã¤ã·ã¥ã¼ã®ã·ã¹ãã ã¨Wikiã®ã·ã¹ãã ã追å ãããã¨ãç®æ¨ã§ããGitHubä¸ã§ãã¹ã¿ã¼ãã¤ãã¦ããã ããã¨ãããããã§ãããæ¯æ´ãé¡ããã¾ãã