Padrino Commit Sep 13, 2013
namusyaka Merge pull request #1409 from namusyaka/cleanup-warnings
#1409のマージコミットです。
namusyaka Fix many warnings.
余計な変数代入の除去などのリファクタリングがされました。
namusyaka Fix typo.
コメント部分のタイポ修正です。
namusyaka Fix a few typos in padrino-gen.
コメント部分のタイポ修正です。
ujifgc Merge pull request #1410 from matthias-guenther/padrino-cache-documentation-cleanup
#1410のマージコミットです。
※個別のコミットは数が多いので省略
padrino-cache のソースコード内のドキュメントが整理されました。 余分な記述の削除や説明の補足、文体の統一などがされました。
Padrino Commit Sep 12, 2013
ujifgc Merge pull request #1407 from matthias-guenther/padrino-core-documentation-cleanup
#1407のマージコミットです。
※ 個別のコミットは数が多いので省略
padrino-core のソースコード内のドキュメントが整理されました。
余分な記述の削除や説明の補足、文体の統一などがされました。
ujifgc Do not indent private and protected methods
private メソッド と protected メソッドのインデントが修正されました。
ruby-style-guide
で推奨されているように、
字下げしないフォーマットに統一されました。
私もこちらのほうが好みです。
ujifgc Merge branch 'padrino-admin-documentation-cleanup' of git://github.com/matthias-guenther/padrino-framework
padrino-admin のソースコード内のドキュメントが整理されました。
Padrino Commit Sep 11, 2013
ujifgc Merge pull request #1406 from namusyaka/fix-incorrect-params Fix incorrect params when path includes encoded slash.
#1406のマージコミットです。
namusyaka Fix incorrect params when path includes encoded slash, fixes #1391. Add test case for incorrect params.
ルーティングにおけるパスの解釈が修正されました。
get '/:drive_alias/:path', path: /.*/ do "Show #{params[:drive_alias]} and #{params[:path]}" end
このようなルーティングが定義されていて
$ curl localhost:3000/drive%2Ffoo/some/path
URLエンコードされたスラッシュが含まれたパスでアクセスされた場合、
これまではURLエンコードされたスラッシュもパスの区切りとして解釈されていました。
Show drive and foo/some/path
このコミットによってURLエンコードされたスラッシュはパスとは区別されて解釈されるようになりました。
Show drive/foo and some/path
Padrino Commit Sep 10, 2013
namusyaka Merge pull request #1404 from graudeejs/impoved_button_to Make it possible to pass options to submit_tag when using button_to
#1404のマージコミットです。
graudeejs Make it possible to pass html options to submit_tag when using button_to
button_to ヘルパーのオプションに :submit_options が追加されました。
button_to 'Delete', url(:destroy, :id => account), :method => :delete, :class => :form, :submit_options => { :class => :btn }
とすると
<form accept-charset="UTF-8" protect_from_csrf="true" action="/accounts/destroy/2" method="post" class="form"> <input type="hidden" name="_method" value="delete"> <input type="hidden" name="authenticity_token" value="18d6d6ea3cd0a674f80017d4e25d4dadec97ddbfbfefa781f1d9084c369f2443"> <input class="btn" type="submit" value="delete"> </form>
というように、:submit_options で渡した Hash は input type="submit" のオプションとして使われ、それ以外は form タグに使われます。
Padrino Commit Sep 08, 2013
namusyaka Merge pull request #1402 from namusyaka/add-namusyaka-to-notification
#1402のマージコミットです。
namusyaka Add namusyaka to notification on travis.
travis の通知先に namusyaka さんが追加されました。
namusyaka Merge pull request #1400 from tyabe/add_component_generator
#1400のマージコミットです。
tyabe refactor define component options
tyabe add component generator
プロジェクト作成後にコンポーネントを追加できる component というジェネレータを追加しました。
$ padrino g component Usage: padrino-gen component [options] Options: -r, [--root=ROOT] # The root destination # Default: . -a, [--adapter=ADAPTER] # SQL adapter for ORM (sqlite, mysql, mysql2, mysql-gem, postgres) # Default: sqlite -d, [--orm=ORM] # The database engine component (activerecord, couchrest, datamapper, minirecord, mongoid, mongomapper, mongomatic, ohm, ripple, sequel, none) -t, [--test=TEST] # The testing framework component (bacon, cucumber, minitest, riot, rspec, shoulda, testspec, none) -m, [--mock=MOCK] # The mocking library component (mocha, rr, none) -s, [--script=SCRIPT] # The javascript library component (dojo, extcore, jquery, mootools, prototype, rightjs, none) -e, [--renderer=RENDERER] # The template engine component (erb, haml, liquid, slim, none) -c, [--stylesheet=STYLESHEET] # The stylesheet engine component (compass, less, sass, scss, none)
project ジェネレータとほぼ同じオプションを渡すことで任意のコンポーネントを追加することができます。便利〜
Padrino Commit Sep 07, 2013
nesquena Merge pull request #1401 from tyabe/fix_typo
#1401のマージコミットです。
tyabe Fix typo in padrino-gen
App Generator を CLI で実行した際に表示されるヘルプ文言が修正されました。
Padrino Commit Sep 06, 2013
namusyaka Merge pull request #1397 from namusyaka/remove-code-duplication-in-create-app
#1397のマージコミットです。
namushaka Remove code duplication in create_app.
app Generator に対するリファクタリングがされました。
Padrinoコミッタになった @namushaka さん自身による初コミットですね。
おめでとうございます!!!