Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am artemk on github.
  • I am artemkram (https://keybase.io/artemkram) on keybase.
  • I have a public key ASCCyCRAhzk7y4TuBOcsgBW_GeWa_GYU7Yy7sC_lS8R5Jgo

To claim this, I am signing this object:

module DatabaseHelper
def next_id(obj)
table_name = obj.class.table_name
seq = ActiveRecord::Base.connection.default_sequence_name(table_name)
ActiveRecord::Base.connection.select_value("SELECT last_value FROM #{seq}").to_i + 1
end
end
RSpec.configure do |config|
config.include DatabaseHelper
module A
def meth2
meth1
end
private
def meth1
puts "AAAQWE"
end
end
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
ajaxful_rating (2.2.9)
authlogic (2.1.6)
awesome_print (0.4.0)
aws-s3 (0.6.2)
builder (3.0.0)
Oct 27 13:01:25 unknown kernel[0] <Debug>: launchd[322] Builtin profile: container (sandbox)
Oct 27 13:01:25 unknown kernel[0] <Debug>: launchd[322] Container: /private/var/mobile/Applications/11C0E5D7-6C1B-426F-B584-08BB90E52AB6 [69] (sandbox)
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: didFinishLaunchingWithOptions: (null)
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: Rhodes starting application...
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: Create new detached thread for initialization stuff
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: Init all windows
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: Init appManager
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: filePath1: /var/mobile/Applications/11C0E5D7-6C1B-426F-B584-08BB90E52AB6/txtcare-rhodes.app/name
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: root view: <UIView: 0x43b1d0; frame = (0 20; 320 460); hidden = YES; autoresize = W+H; layer = <CALayer: 0x43c850>>
Oct 27 13:01:25 unknown rhorunner[322] <Warning>: filePath2: /
And the output should contain: # aruba-0.3.6/lib/aruba/cucumber.rb:89
"""
exec_rule `haml` for language haml not exists. Skip
"""
expected "Initialized empty Git repository in /Volumes/work/syn/code/tmp/aruba/.git/\n[master (root-commit) a444613] first commit\n 0 files changed, 0 insertions(+), 0 deletions(-)\n create mode 100644 readme\n.E.\n\n/Volumes/work/syn/code/tmp/aruba/subdir/wrong.rb\nErrors:\n\t /Volumes/work/syn/code/tmp/aruba/subdir/wrong.rb:1: syntax error, unexpected keyword_end, expecting $end\n\t c A; end\n\t ^\n" to include "exec_rule `haml` for language haml not exists. Skip"
Diff:
@@ -1,2 +1,12 @@
-exec_rule `haml` for language haml not exists. Skip
+Initialized empty Git repository in /Volumes/work/syn/code/tmp/aruba/.git/
+[master (root-commit) a444613] first commit
rake run:iphone
(in /Volumes/work/rhodes/storemanager)
cd /Users/artyomkram/.rvm/gems/ruby-1.9.2-p180@rhodes/gems/rhodes-2.3.2
iphonesimulator4.0
cd platform/iphone
rm -rf bin
rm -rf build/Debug-*
rm -rf build/Release-*
cd /Users/artyomkram/.rvm/gems/ruby-1.9.2-p180@rhodes/gems/rhodes-2.3.2
rm -rf /Users/artyomkram/.rvm/gems/ruby-1.9.2-p180@rhodes/gems/rhodes-2.3.2/platform/iphone/bin/RhoBundle
task :create_newrelic_symlink, :roles => [:m3] do
if ENV['PRODUCTION']
run " test -e /etc/rails/#{application}/newrelic.yml && ln -sf /etc/rails/#{application}/newrelic.yml #{current_path}/config/"
end
end