protractor-rails 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22ecf4dc88d777f93fe5c056a3570c670c68230e
4
- data.tar.gz: 71c8e69dace16a49c5f858be16b3b4ad06125fbe
3
+ metadata.gz: c3a3d29e66944c0d2d9f08fec918803f622f13da
4
+ data.tar.gz: 627e26fb5bba910b72790f67de0869a27d4ff226
5
5
  SHA512:
6
- metadata.gz: c278b0d392819f5556f54f3ca34bf43200194759202627622a10788056f19d8dd4fbadae476aa1599269091ed5a35f68f356f56cd2aebeaf63807b50890583f5
7
- data.tar.gz: 651e8141646f1a5a06c13d44503454d973f65ce9ae2bb6564c6b974b0b4ad0f7d7680fa8317864a278eb0c26cebfa0346230347b0932af9221f1877b5710d3ab
6
+ metadata.gz: 09887523ecdc15f318ba924a9ebb57c3d5c507c61321c10440c337ade7ebc1f3805558bde0ef6d9c905e3e191711d238921cd0470078a788e0d831e5ac82e8b9
7
+ data.tar.gz: 891e059fd42a49bf1d179915ca9440f7adaed7fa9ff566ff74b26a88114551b94787ee3c12860aa907cf9a9d2de529f4654be02552e82edbcc5ce4f864a56a74
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- protractor-rails (0.0.12)
4
+ protractor-rails (0.0.13)
5
5
  colorize
6
6
  railties
7
7
 
@@ -1,5 +1,5 @@
1
1
  module Protractor
2
2
  module Rails
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
@@ -52,6 +52,7 @@ namespace :protractor do |args|
52
52
  write_log "Waiting for servers to finish starting up...."
53
53
  sleep Protractor.configuration.startup_timeout
54
54
  success = system "protractor #{options} #{Protractor.configuration.config_path}/#{Protractor.configuration.config_file}"
55
+ write_log "Protractor has failed to run test with options '#{options}'".red.bold unless success
55
56
  Process.kill 'TERM', webdriver_pid
56
57
  Process.kill 'TERM', rails_server_pid
57
58
  Process.wait webdriver_pid
@@ -62,7 +63,7 @@ namespace :protractor do |args|
62
63
  puts e
63
64
  ensure
64
65
  Rake::Task["protractor:kill"].invoke
65
- exit success
66
+ exit unless success
66
67
  end
67
68
  end
68
69
 
@@ -77,17 +78,17 @@ namespace :protractor do |args|
77
78
 
78
79
  task :kill_selenium_processes do
79
80
  write_log "kill left over selenium processes...".yellow
80
- system "ps aux | grep -ie 'protractor\/selenium' | awk '{print $2}' | xargs kill -9"
81
+ system "ps aux | grep -ie 'protractor\/selenium' | grep -v grep | awk '{print $2}' | xargs kill -9"
81
82
  end
82
83
 
83
84
  task :kill_webdriver do
84
85
  write_log "kill webdriver server...".yellow
85
- system "ps aux | grep -ie '\-Dwebdriver' | awk '{print $2}' | xargs kill -9"
86
+ system "ps aux | grep -ie '\-Dwebdriver' | grep -v grep | awk '{print $2}' | xargs kill -9"
86
87
  end
87
88
 
88
89
  task :kill_rails do
89
90
  write_log "kill protractor rails tests server...".yellow
90
- system "ps aux | grep -ie 'rails s -e test -P tmp/pids/protractor_test_server.pid --port=#{Protractor.configuration.port}' | awk '{print $2}' | xargs kill -9"
91
+ system "ps aux | grep -ie 'rails s -e test -P tmp/pids/protractor_test_server.pid --port=#{Protractor.configuration.port}' | grep -v grep | awk '{print $2}' | xargs kill -9"
91
92
  end
92
93
 
93
94
  task :rails do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protractor-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyrone Wilson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2015-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler