-
Open a browser
# start an instance of firefox with selenium-webdriver driver = Selenium::WebDriver.for :firefox # :chrome -> chrome # :ie -> iexplore
- Go to a specified URL
| paths: { | |
| "log": "utils/logrjs", | |
| "hbs": "../repo/hbs/hbs", | |
| "i18nprecompile": "../repo/hbs/i18nprecompile", | |
| "json2": "../repo/hbs/json2", | |
| "handlebars": "../repo/hbs/Handlebars", | |
| "hbs/underscore": "../repo/underscore/underscore", | |
| "underscore": "../repo/underscore/underscore", | |
| "assert": "../repo/assert/assert", |
| TodoMVC.module 'TodoApp', (App, TodoMVC, Backbone, Marionette, $, _) -> | |
| log arguments | |
| class App.TodoForm extends Marionette.ItemView | |
| events: | |
| 'keypress #new-todo' : 'createOnEnter' | |
| 'click .mark-all-done' : 'toggleAllClicked' | |
| triggers: | |
| 'click .todo-clear a' : 'clear:completed' |
| /* | |
| gulpfile from one of my React applications which has a gulp --production build | |
| set up. | |
| Assumptions: | |
| 1. All your own .js/.jsx modules are somewhere under ./src, have unique | |
| filenames and use Node.js-style requires WITHOUT any path information, just | |
| the name of another module somewhere under ./src |
| namespace :ckeditor do | |
| desc 'Create nondigest versions of all ckeditor digest assets' | |
| task :create_nondigest_assets do | |
| fingerprint = /\-([0-9a-f]{32})\./ | |
| for file in Dir['public/assets/ckeditor/**/*'] | |
| next unless file =~ fingerprint | |
| nondigest = file.sub(fingerprint, '.') | |
| filename = nondigest.sub('public/assets/', '').sub(/.gz$/, '') |