tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| # | |
| # Titanium mobile Rakefile for iPhone build | |
| # | |
| DEV_PROVISIONING_UUID = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" | |
| DEV_SIGN = "Developer name" | |
| DEV_APP_NAME = "DevApp" | |
| DEV_APP_ID = 'com.example.dev' | |
| TITANIUM_SDK_VERSION = '1.3.2' |
| # debug function | |
| log = (obj) -> Titanium.API.log obj | |
| Titanium.UI.setBackgroundColor '#000' | |
| class TabGroup | |
| constructor: () -> | |
| @tabGroup = Titanium.UI.createTabGroup() | |
| return @tabGroup |
| require 'spec/runner/formatter/progress_bar_formatter' | |
| class JojoRushFormatter < Spec::Runner::Formatter::ProgressBarFormatter | |
| def example_failed(example, counter, failure) | |
| @output.print colorize_failure('無駄', failure) | |
| @output.flush | |
| end | |
| def example_passed(example) | |
| @output.print green('オラ') | |
| @output.flush |
| //////////////////////push_notifications.js/////////////////////// | |
| var apns = function(){ | |
| var pref = require('preferences').preferences; | |
| Titanium.Network.registerForPushNotifications({ | |
| types: [ | |
| Titanium.Network.NOTIFICATION_TYPE_BADGE, | |
| Titanium.Network.NOTIFICATION_TYPE_ALERT | |
| ], | |
| success:function(e) |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
| // | |
| // Aaron K. Saunders | |
| // | |
| // http://www.clearlyinnovative.com | |
| // http://blog.clearlyinnovative.com | |
| // @aaronksaunders | |
| // | |
| // SEE http://bytespider.github.com/jsOAuth/ for jsOAuth.js | |
| // | |
| Ti.include("jsOAuth.js"); |
tl;dr IdotabaのGemfileは"全プレ"になりました。ご笑納ください。→ Gemfile
rebuild.fmのep36でお知らせさせていただきました、Idobataの最新版Gemfileプレゼントをお届けいたします。 過日はIdobata会議01への多数のご参加ありがとうございました。おかげさまで盛況なミートアップとなりました。 (当日会場を提供いただいたEngine Yardさまのブログにて、Idobata会議01当日の様子がまとめられています。ありがとうございます!)