アプリをリリースするとき、日付はとても大事です。
(プレスリリースなどに関係するし)
Shopping Pinkをリリースしようとした際、iTunes ConnectにあるAvailabili
その国のローカル時間でStoreに出される(ようだ)
Availabili
アプリをリリースするとき、日付はとても大事です。
(プレスリリースなどに関係するし)
Shopping Pinkをリリースしようとした際、iTunes ConnectにあるAvailabili
その国のローカル時間でStoreに出される(ようだ)
Availabili
以前、iPhone・iPod touch ラボで紹介して頂いたezPhotoMai
@nakimoさん、その節はお世話になりました!
全然お礼も言わずに申し訳ありません... m(_ _)m
今後ともよろしくお願い致します。
AppStore
http://itunes.apple. com/WebObj ects/MZSto re.woa/wa/ viewSoftwa re?id=3057847 12&mt=8
今回のupdateは下記の内容が主です:
メモ:1200x1600の場合、
P.S ちなみに今回は4/11に申請して、4/20リリース(申請時間、9日間)という感じでした。
紙のページがペラっとめくれているところを英語でdog earというのですが(page curlとも言うらしい)、作りたくなってちょっと調べてみました。
Filters → Distorts → Page Curl で作成:
上記のフィルターはあまりオプションがないのでちょっと不満。シンプルなものも探してみました。Path・Rotate・Drop Shadowを使って作成:
Creating a Page Curl & A Simple Website Template.
http://gimpology.com /submissio n/view/cre ating_a_pa ge_curl_am p_a_simple _website_t emplate_/
GIMPではないですが、参考になったので挙げておきます:
Dog Ear Tutorial
http://designoahu.co m/dog-ear- tutorial
前の記事のsnippets以外にも参考になった記事を集めておきます。
シナリオやらいっぱい
http://its
(ちょっと)冗長だけど参考になるシナリオ
http://git
インスタンスのページを表示する(the post page)step
/posts/1のページを表示するようなScenarioはどうかけばいいのん?と思っていたら、こんな風に書けるようです。
http://git
http://git
Open SourceでCucumber使っている例
http://wik
http://www
@userなどstep?scenario?にまたがる変数の使い方ですが、極力使わないのがスパゲッティ防止によさそうらしいです。900を超えるシナリオがある中で使ったけど、ポイント押さえて使えば大丈夫だったよというエピソードが出てきました。ただ、シーンに応じて使うのだったらありだろうというのが大方の見方かな。
body:strin
http://sta
The workaround
is use Webrat with Selenium back end. It runs all tests in a separate Firefox window, so cookies or javascript is not a problem. The downside is extra time and resources required to run Firefox and do all the real clicks, rendering etc.
他にもhackishなworkaround
[追記] 次に書いたScenario, stepのリンク集もどうぞ:
http://blo
Given, When and Thenの基本はわかったんだけど、なんとなくスマートに書けるようになるにはまだ足りない気がする。というので色々snippetとして集めてみました。
(文法的にはもう古い物もあるので注意)
基本はここで:
http://wik
Given -> When -> Then の順にしかこないのかと思ったら、下記にシナリオの途中にあらわれるThenもあった:
http://www
1 Scenario: A visitor successfully submits a new animal 2 Given no animal named 'Alligator' exists 3 When visitor goes to /animals/new 4 Then visitor should see the Animal submission form 5 When visitor submits an animal with name: 'Alligator', phylum: 'Chordata', animal class: 'Sauropsida ', order: 'Crocodilia ', family: 'Alligatori dae', genus: 'Alligator', and lay eggs: 'true' 6 Then an animal named 'Alligator' should exist
Thenの後にWhenがくるのもありなのかも。
http://wik
1 Given /^(.*) is logged in$/ do |name| 2 Given "the user #{name} exists" 3 Given "I log in as #{name}" 4 end
http://rai
1 Scenario: Create Valid Article 2 Given I have no articles 3 And I am on the list of articles 4 When I follow "New Article" 5 And I fill in "Title" with "Spuds" 6 And I fill in "Content" with "Delicious potato wedges!" 7 And I press "Create" 8 Then I should see "New article created." 9 And I should see "Spuds" 10 And I should see "Delicious potato wedges!" 11 And I should have 1 article 12 13 #article_steps 14 Given /^I have no articles$/ do 15 Article.delete_all 16 end
Imperative
vs Declarativ e Scenarios
http://www.benmabey. com/2008/0 5/19/imper ative-vs-d eclarative -scenarios -in-user-s tories/
Scenarioを短くnarrativeに書いて、stepで細かいフォーム入力などを扱う感じに書かれていて一番しっくりきました。
Imperative
Declarativ
1 Story: Animal Submission2 As a Zoologist 3 I want to add a new animal to the site 4 So that I can share my animal knowledge with the community 5 6 Scenario: successful submission 7 Given I'm on the animal creation page 8 When I add a new animal 9 Then I should see the page for my newly created animal 10 And the notice 'Thank you for your animal submission !'
1 # animal_steps.rb 2 When "I add a new animal" do 3 fills_in 'Name', :with => 'Alligator' 4 selects 'Chordata', :from => 'Phylum' 5 fills_in 'Animal Class', :with => 'Sauropsida ' 6 fills_in 'Order', :with => 'Crocodilia ' 7 fills_in 'Family', :with => 'Alligatori dae' 8 fills_in 'Genus', :with => 'Alligator' 9 checks 'Lay Eggs' 10 clicks_but ton 'Create' 11 end
最新にしたらpaths.rbとBackground
Cucumberを最新にしてfeatureをgenerateしようとしたらpaths.rbがないと怒られたので、script/gen
Scenarioで記述するページはここで定義:
1 #features/support/paths.rb 2 module NavigationHelpers 3 def path_to(page_name) 4 case page_name 5 when /the homepage/ 6 root_path
1feature内のScenarioに共通な前提条件を記述する。
Background
The background
is run before each of your scenarios but after any of your Before Hooks.
http://wiki.github.c om/aslakhe llesoy/cuc umber/back ground
1 Background: 2 Given a global administra tor named “Greg” 3 And a blog named “Greg’s anti-tax rants” 4 And a customer named “Dr. Bill” 5 And a blog named “Expensive Therapy” owned by “Dr. Bill”
Cucumberのfeatureを実行すると、上記のエラーが出て困ったので探したら
I resolved it by uninstalli
ng the old "bryanary-w ebrat" gem and making sure that "webrat" was up to date (0.4.3) When you have both installed, ruby tends to load the old one instead.
http://groups.google .com/group /webrat/br owse_threa d/thread/d 8ea685a1b1 931a5#
古いwebrat gemを消しなさいと。
1 gem search webrat 2 3 *** LOCAL GEMS *** 4 5 aslakhellesoy-webrat (0.3.2.2) 6 webrat (0.4.4, 0.4.3, 0.3.4)
案の定古いwebratがあったのでaslakhelle
submoduleネタをゲットしたのでメモ。
@githubのtwt:
GitHub gem builder will now pull in submodules
prior to the build.
4:05 AM Apr 9th from web
http://twitter.com/g ithub/stat us/1478454 260
てことは配布しているgemではsubmoduleをpullしてくれるってことでしょうか!!
いいですね!
@github is there any plan to have the tarball builder do the same thing?
http://twitter.com/l arrywright /status/14 78514289 @larrywrigh
t not at the moment. We use git-archiv e which, for some unknown reason, doesn't support submodules .
http://twitter.com/g ithub/stat us/1478579 621
その1でsubmoduleをaddし、git-submod
今度はaddした以外の人がpullして、submoduleを確認するところを書いてみます。
1 git pull --rebase #submoduleを追加したコミットを取得 2 git submodule 3 -e110f2056783465b8d7 19bdb1ab5f d14e7650f5 6 vendor/plu gins/rspec
(-がついているので)この時点ではrspec submoduleが初期化されていません。よって下記のコマンドで初期化します:
1 git submodule init 2 git submodule update
又は
1 git submodule update --init
updateすることによりソースファイルを取得します。
これで、addした以外の人もsubmoduleを追加することができました。しかし、まだこれで終わりではなくて実はいくつか検討すべき点があります:
submoduleをaddする前に検討すべき事項です(!):
追加するremoteリポジトリを変更したくなる可能性があるかどうか検討する必要があります。例えばrailsやrspecなら変更を加えるというのはほとんどないように思われますが、完成度の低いpluginだと自分で修正したり、追加したりすることが考えられます。そのような場合、下記のようなシナリオが考えられます:
1,2はなんとなく想像できますが、3,4は運用が面倒そうです...
また、railsまでsubmoduleにする記事もあったのですが、毎回deploy時にコピーすることになるのでdeployに時間がかかるだろうし、容量も食うので運用には向いていないかもしれません。
submoduleを利用する際、外部のbleeding edgeブランチを積極的に採用したくはありません。なので、タグか特定のバージョン(コミット)を利用するのが適切です:
1 cd vendor/plugins/rspec /rspec 2 git tag 3 1.1.10 4 (略) 5 1.2.1 6 1.2.2 7 git checkout 1.2.2 8 cd ../../..
rspecのタグ1.2.2を採用しました。このあとRAILS_ROOT
この後、他の人がこの変更を反映するには下記の作業を行います:
1 git pull --rebase #submoduleを追加したコミットを取得 2 git submodule update
一行追加するだけ!
1 set :git_enable_submodule s, 1
via http://git
rspecを例に:
1 [submodule "vendor/plugins/rspec "] 2 path = vendor/plu gins/rspec 3 url = git://gith ub.com/dch elimsky/rs pec.git
.git/confi
1 [submodule "vendor/plugins/rspec "] 2 url = git://gith ub.com/dch elimsky/rs pec.git
git rm --cached path_to_su
パスの最後に/(スラッシュ)がない状態で:
1 git rm --cached vendor/plugins/rspec
git commit、pushでおしまい
via http://git
初めてsubmoduleを追加すると、下記のファイルが追加されます:
1 .gitmodules
その他に.git/confi
[追記] その2を書きました:
http://blo
長くなりそうなので続きはその2で!
railsを使っているとpluginなどは外部repoをそのまま使いたくなります。そこで前から聞いていたsubmoduleを使ってみたくなりました。しかしこのsubmodule、わりと最近導入されたようなのでgitのバージョンによって動作に違いがあるようです。
というわけで、まず私の環境を書いておきます:
1 % git --version 2 git version 1.6.0.2
rspecを例に:
1 % git submodule add git://github.com/dch elimsky/rs pec.git vendor/plu gins/rspec
追加したらcommit and push
1 % git commit -am "add submodule:plugins/rs pec" 2 % git push origin master
これでサーバにsubmoduleが追加されました。他の人がpullなどすれば、submoduleを確認することができます(詳しくはその2を参照)
で、次にsubmoduleのstatusを確認してみます。
git statusと同じようなコマンドでsubmoduleの状態が確認できます:
1 % git submodule status 2 9dc19a3a593f4ce1b4e2 21889091ce bd773ea5c4 vendor/plu gins/cache _fu (heads/mast er) 3 -e110f2056 783465b8d7 19bdb1ab5f d14e7650f5 6 vendor/plu gins/rspec 651611999d f3e57de6f3 6486b51abd 3bf5d66cea vendor/rai ls (v2.2.0-108 5-g6516119 )
commit hashに-、+がついている時がある(上だとrspecに-がついてます)。
ざっくり説明: