<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
	<title>Хабрахабр / Комментарии к посту «Автозавершение для Rake» в блоге «Ruby»</title>
	<link>http://habrahabr.ru/rss/post/76412/</link>
	<description><![CDATA[Новые комментарии к посту «Автозавершение для Rake» в блоге «Ruby»]]></description>
	<language>ru</language>
	<managingEditor>editor@habrahabr.ru</managingEditor>
	<generator>habrahabr.ru</generator>
	<pubDate>Sat, 11 Feb 2012 08:57:02 GMT</pubDate>
	<lastBuildDate></lastBuildDate>
	<image>
		<link>http://habrahabr.ru/</link>
		<url>http://habrahabr.ru/i/logo.gif</url>
		<title>Хабрахабр</title>
	</image>
	

	
	
	
	
	
		
	
		<item>
			<title>27.11.2009 12:57:20 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226314</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226314</link>
			<description><![CDATA[ладно все молчу молчу :) Просто я ничего не ставил и у меня всё это уже давно работает :)]]></description>
			<pubDate>Fri, 27 Nov 2009 12:57:20 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:52:59 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226291</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226291</link>
			<description><![CDATA[А кто говорит про bash? :) Просто у моего скрипта синтаксис автозавершения bash для обратной совместимости ;).]]></description>
			<pubDate>Fri, 27 Nov 2009 12:52:59 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:51:48 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226285</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226285</link>
			<description><![CDATA[Ну я думаю если вы добавили новую задачу, то вы знаете её по имени :) Да и у каждого кеширования есть определенный срок жизни :)<br/>
<br/>
В любом случае, я не говорю что bash хуже, просто он имеет меньше плюшет и тд и тп. Да их добавляют, но не так быстро как хотелось бы :)]]></description>
			<pubDate>Fri, 27 Nov 2009 12:51:48 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:46:55 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226270</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226270</link>
			<description><![CDATA[Но тогда подправив Rakefile можно очень долго гадать куда делась новая задача. А заново открыв консоль с Rails-проектом случайно нажав Tab снова придётся ждать пока прогрузится стек рельсов? В общем, автозавершение задач в чистом zsh всё равно хуже. И мой скрипт должен работать и с zsh тоже. А вот о завершении аргументов надо подумать :).]]></description>
			<pubDate>Fri, 27 Nov 2009 12:46:55 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:43:03 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226254</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226254</link>
			<description><![CDATA[Да грааль не «святой», но очень удобный.<br/>
во время текущего запущенного zsh он кеширует команды которые вы используете.<br/>
]]></description>
			<pubDate>Fri, 27 Nov 2009 12:43:03 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:35:44 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226225</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226225</link>
			<description><![CDATA[При всём моём уважении к zsh, это не Святой грааль :). Он не может автоматически кешировать, так как же он тогда обновляет кеш? Где-то должен быть код проверки времени модификации файлов Rakefile и **/*.rake. Это не может работать автоматически.]]></description>
			<pubDate>Fri, 27 Nov 2009 12:35:44 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:24:36 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226173</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226173</link>
			<description><![CDATA[так он кеширует все как бы :) это не bash :)]]></description>
			<pubDate>Fri, 27 Nov 2009 12:24:36 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:13:00 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226140</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226140</link>
			<description><![CDATA[ОК, значит добавили, но я не заметил в коде (правда, он очень трудночитаем) кеширования задач. Как я понял они просто аргументы автозавершают.]]></description>
			<pubDate>Fri, 27 Nov 2009 12:13:00 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:09:47 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226129</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226129</link>
			<description><![CDATA[Да?<br/>
нюню<br/>
смотрим <br/>
-&lt;%&gt;- ls /opt/local/share/zsh/4.3.10/functions | grep rake <br/>
_rake<br/>
-&lt;%&gt;- cat /opt/local/share/zsh/4.3.10/functions/_rake<br/>
#compdef rake<br/>
<br/>
# rake, version 0.8.3<br/>
<br/>
local curcontext=&quot;$curcontext&quot; state line expl ret=1<br/>
typeset -A opt_args<br/>
<br/>
_arguments -C -s -S \<br/>
 '(--classic-namespace -C)'{--classic-namespace,-C}'[put Task and FileTask in the top level namespace]' \<br/>
 '(--dry-run -n)'{--dry-run,-n}'[do a dry run without executing actions]' \<br/>
 '(- *)'{--describe,-D}'[describe the tasks (matching the specified pattern), then exit]:pattern::' \<br/>
 '(--execute -e)'{--execute,-e}'[execute some Ruby code and exit]:Ruby code:' \<br/>
 '(--execute-print -p)'{--execute-print,-p}'[execute some Ruby code, print the result, then exit]:Ruby code:' \<br/>
 '(--execute-continue -E)'{--execute-continue,-E}'[execute some Ruby code, then continue with normal task processing]:Ruby code:' \<br/>
 '(- *)'{--help,-h,-H}'[display help information]' \<br/>
 \*{--libdir,-I}'[include specified directory in the search path for required modules]:library directory:_files -/' \<br/>
 '(--rakelibdir --rakelib -R)'{--rakelibdir,--rakelib,-R}'[auto-import any .rake files in the specified directory. (default is 'rakelib')]:rake library directory:_files -/' \<br/>
 '(--nosearch -N)'{--nosearch,-N}'[do not search parent directories for the Rakefile]' \<br/>
 '(- *)'{--prereqs,-P}'[display the tasks and prerequisites, then exit]' \<br/>
 '(--quiet -q --silent -s --verbose -v)'{--quiet,-q}'[do not log messages to standard output]' \<br/>
 '(--rakefile -f)'{--rakefile,-f}'[use specified file as the rakefile]:rake file:_files' \<br/>
 \*{--require,-r}'[require specified module before executing rakefile]:library:-&gt;library' \<br/>
 '(- *)--rules[trace the rules resolution]' \<br/>
 '(--quiet -q --silent -s --verbose -v)'{--silent,-s}&quot;[like --quiet, but also suppresses the 'in directory' announcement]&quot; \<br/>
 '(--system,-g)'{--system,-g}'[using system wide (global) rakefiles (usually '~/.rake/*.rake')]' \<br/>
 '(- *)'{--tasks,-T}'[display the tasks (matching the specified pattern) with descriptions, then exit]:pattern::' \<br/>
 '(--trace -t)'{--trace,-t}'[turn on invoke/execute tracing, enable full backtrace]' \<br/>
 '(--quiet -q --silent -s --verbose -v)'{--verbose,-v}'[log message to standard output (default)]' \<br/>
 '(- *)'{--version,-V}'[display version information]' \<br/>
 '*:target:-&gt;target' && ret=0<br/>
<br/>
case &quot;$state&quot; in<br/>
 library)<br/>
 local -a dirs<br/>
 dirs=( $(_call_program directories ruby -e 'puts\ \$:' 2&gt;/dev/null) ${(s.:.)opt_args[-I]} )<br/>
 _wanted libraries expl library _path_files -W dirs && ret=0<br/>
 ;;<br/>
 target)<br/>
 local -a targets<br/>
 targets=( ${${(f)&quot;$(_call_program targets $words[1] -sT $opt_args[(I)(-N|--nosearch)] ${(kv)opt_args[(I)(-f|--rakefile)]} 2&gt;/dev/null)&quot;}/(#b)rake ([^ ]##) ##\# (*)/${${match[1]}//:/\\:}:${match[2]:l}} )<br/>
 if ((! ${targets[(I)rake aborted!]} )) then<br/>
 _describe -t targets 'rake target' targets && ret=0<br/>
 else<br/>
 _message -e targets 'rake target'<br/>
 fi<br/>
 ;;<br/>
esac<br/>
<br/>
return ret]]></description>
			<pubDate>Fri, 27 Nov 2009 12:09:47 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>27.11.2009 12:01:52 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2226103</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2226103</link>
			<description><![CDATA[zsh тут совершенно не при чём. Просто Rake из репозиториев Ubuntu уже имеет автозавершение для <em>bash</em> ;). Но он без кеширования, так что на сложным Rakefile (как у Rails) тормозит. Собственно, мой скрипт базируется на <a href="http://github.com/ryanb/dotfiles/blob/master/zsh/functions/_rake">скрипте автозавершение для zsh</a>, так что zsh не может иметь в поставке такой скрипт.]]></description>
			<pubDate>Fri, 27 Nov 2009 12:01:52 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>27.11.2009 11:03:43 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2225823</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2225823</link>
			<description><![CDATA[Он это умеет в поставке :) Как там сделано я не смотрел. Но помоему аналогичным способом. ]]></description>
			<pubDate>Fri, 27 Nov 2009 11:03:43 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>27.11.2009 10:59:27 NaTTs</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2225803</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2225803</link>
			<description><![CDATA[А он это все умеет проще? Где просвятиться? ]]></description>
			<pubDate>Fri, 27 Nov 2009 10:59:27 GMT</pubDate>
			<author>NaTTs</author>
		</item>
	

	
		<item>
			<title>27.11.2009 10:03:03 simonoff</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2225526</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2225526</link>
			<description><![CDATA[Что люди только не делают лишь бы не использовать zsh :)]]></description>
			<pubDate>Fri, 27 Nov 2009 10:03:03 GMT</pubDate>
			<author>simonoff</author>
		</item>
	

	
		<item>
			<title>26.11.2009 10:34:19 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2221321</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2221321</link>
			<description><![CDATA[Выпустил версию 0.2, которая ставиться вместе с Rake из Ubuntu и заменяет его автозавершение.]]></description>
			<pubDate>Thu, 26 Nov 2009 10:34:19 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>26.11.2009 10:05:22 slayerhabr</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2221186</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2221186</link>
			<description><![CDATA[разобрался, спасибо. был другой скрипт автодополнения]]></description>
			<pubDate>Thu, 26 Nov 2009 10:05:22 GMT</pubDate>
			<author>slayerhabr</author>
		</item>
	

	
		<item>
			<title>26.11.2009 09:28:36 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2221028</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2221028</link>
			<description><![CDATA[На свежей установке рельсов всё работает. Наверное кеш рассинхронизовался. Rake RubyGems? Свой скрипт автодополнения не ставили? Какие были последние действия над репозиторием?]]></description>
			<pubDate>Thu, 26 Nov 2009 09:28:36 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>26.11.2009 09:24:20 slayerhabr</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2221010</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2221010</link>
			<description><![CDATA[<pre>
$ rake -T | grep db:mi
rake db:migrate                           # Migrate the database through s&#99;ripts in db/migrate and update db/schema.rb by invoking db:schema:dump. Target specific version with VERSION=x. Turn off output with VERBOSE=false.
rake db:migrate:down                      # Runs the &quot;down&quot; for a given migration VERSION.
rake db:migrate:redo                      # Rollbacks the database one migration and re migrate up.
rake db:migrate:reset                     # Resets your database using your migrations for the current environment
rake db:migrate:up                        # Runs the &quot;up&quot; for a given migration VERSION.
</pre>]]></description>
			<pubDate>Thu, 26 Nov 2009 09:24:20 GMT</pubDate>
			<author>slayerhabr</author>
		</item>
	

	
		<item>
			<title>26.11.2009 09:13:42 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2220962</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2220962</link>
			<description><![CDATA[Скрипт автодополняет только задачи с описаниями (который показываются по rake -T). Может проблема в этом?]]></description>
			<pubDate>Thu, 26 Nov 2009 09:13:42 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>26.11.2009 08:44:00 slayerhabr</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2220851</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2220851</link>
			<description><![CDATA[странно, при попытке дополнить<br/>
<pre>
rake db:mi&lt;TAB&gt;
</pre><br/>
дополняет до <br/>
<pre>
rake db:middleware
</pre><br/>
]]></description>
			<pubDate>Thu, 26 Nov 2009 08:44:00 GMT</pubDate>
			<author>slayerhabr</author>
		</item>
	

	
		<item>
			<title>26.11.2009 06:46:30 alexevil</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2220499</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2220499</link>
			<description><![CDATA[Спасибо, поставил, отличная вещь!<br/>
Родное автодополнение слишком долгое, а Ваше просто летает.]]></description>
			<pubDate>Thu, 26 Nov 2009 06:46:30 GMT</pubDate>
			<author>alexevil</author>
		</item>
	

	
		<item>
			<title>25.11.2009 23:30:38 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2220110</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2220110</link>
			<description><![CDATA[Как я посмотрел в пакет rake автозавершение без кеша. Я могу сделать возможность установки моего автозавершения к rake из пакета Ubuntu, если Вам это нужно. Правда пока не знаю, как сделать это наиболее красиво.]]></description>
			<pubDate>Wed, 25 Nov 2009 23:30:38 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>25.11.2009 23:29:03 Iskin</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2220108</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2220108</link>
			<description><![CDATA[Значит автозавершение вам не нужно и оно уже есть :). Я просто больше люблю rake из rubygems ставить, а там он без автозавершения.]]></description>
			<pubDate>Wed, 25 Nov 2009 23:29:03 GMT</pubDate>
			<author>Iskin</author>
		</item>
	

	
		<item>
			<title>25.11.2009 23:24:42 igorshubovych</title>
			<guid isPermaLink="true">http://habrahabr.ru/blogs/ruby/76412/#comment_2220105</guid>
			<link>http://habrahabr.ru/blogs/ruby/76412/#comment_2220105</link>
			<description><![CDATA[При попытке поставить пакет вылетает ошибка (Ubuntu 9.10):<br/>
<br/>
Unpacking rake-completion (from .../rake-completion_0.1~railsppa1_i386.deb)…<br/>
dpkg: error processing /var/cache/apt/archives/rake-completion_0.1~railsppa1_i386.deb (--unpack):<br/>
 trying to overwrite '/etc/bash_completion.d/rake', which is also in package rake 0:0.8.4-1<br/>
Errors were encountered while processing:<br/>
 /var/cache/apt/archives/rake-completion_0.1~railsppa1_i386.deb<br/>
E: Sub-process /usr/bin/dpkg returned an error code (1)<br/>
A package failed to install. Trying to recover:<br/>
Reading package lists… Done <br/>
Building dependency tree <br/>
Reading state information… Done<br/>
Reading extended state information <br/>
Initializing package states… Done]]></description>
			<pubDate>Wed, 25 Nov 2009 23:24:42 GMT</pubDate>
			<author>igorshubovych</author>
		</item>
	

	
		<item>
			<title>25.11.2009 23:12:13 sedoy</title>
			<guid isPermaLink="true">#comment_2220096</guid>
			<link>#comment_2220096</link>
			<description><![CDATA[… аминь.<br/>
репозиторий как репа, не чтить — быть чайником]]></description>
			<pubDate>Wed, 25 Nov 2009 23:12:13 GMT</pubDate>
			<author>sedoy</author>
		</item>
	

	
</channel>
</rss>

