Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
| ... | |
| /* Tested with Gradle 6.3 */ | |
| tasks.register("depsize") { | |
| description = 'Prints dependencies for "default" configuration' | |
| doLast() { | |
| listConfigurationDependencies(configurations.default) | |
| } | |
| } |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
| textarea { | |
| height: 1.2em; | |
| } | |
| textarea:focus { | |
| height: 4em; | |
| } | |
| .btn { | |
| display: none; |
| # WAIT! Do consider that `wait` may not be needed. This article describes | |
| # that reasoning. Please read it and make informed decisions. | |
| # https://www.varvet.com/blog/why-wait_until-was-removed-from-capybara/ | |
| # Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
| describe 'Modal' do | |
| should 'display login errors' do | |
| visit root_path |
Most of the time simple output statements using warn, raise, or a logger will help you find your issue. But sometimes you need the big guns, and that means ruby-debug.
The ruby-debug package has had some rocky times during the transition from Ruby 1.8.7 to 1.9.2 and beyond. But now, finally, the debugger is reliable and usable.
| #!/usr/bin/env ruby | |
| # Outputs sorted args to stdout | |
| # from: | |
| # http://dis.4chan.org/read/prog/1295544154/170 | |
| def sleep_sort(*args) | |
| args.each { |e| fork { sleep(e.to_f/1000); puts e } } | |
| end | |
| sleep_sort(*ARGV) |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'RMagick' | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| # ================================================================ | |
| # Collect input args | |
| # ================================================================ | |
| begin |
| require 'rubygems' | |
| require 'yaml' | |
| # A demonstration of YAML anchors, references and handling of nested values | |
| # For more info, see: | |
| # http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
| stooges = YAML::load( File.read('stooges.yml') ) | |
| # => { | |
| # "default" => { |
| JSCLASS_PATH = 'build/min'; | |
| require('./' + JSCLASS_PATH + '/loader'); | |
| JS.require('JS.Deferrable'); | |
| Promise = new JS.Class({ | |
| include: JS.Deferrable, | |
| initialize: function(value) { | |
| if (value !== undefined) this.succeed(value); |
| module CanCan | |
| class Query | |
| def sanitize_sql(conditions) | |
| conditions | |
| end | |
| end | |
| # customize to handle Mongoid queries in ability definitions conditions | |
| class CanDefinition | |
| def matches_conditions_hash?(subject, conditions = @conditions) |