waterpig 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2302e9b10ed3f0a42d946396094cf816e4232996
4
- data.tar.gz: f4865aa1135e03154302b85d905d66d15bc22c64
3
+ metadata.gz: 0f2d3287a8c660f5c387fec3faa77aac784eb25b
4
+ data.tar.gz: 1943bb35f6eabfbc5c26387dd2ca3dcb58cf25fe
5
5
  SHA512:
6
- metadata.gz: 14ffed5cfb8bdf24a35e61a417b9a973604b15cc07a1a12519485e30f69c185eb265e82632732f3af483c6c59875651a265da229d4602908c07d883acc60e472
7
- data.tar.gz: 78cfec302ed71689e329584dd0144e1bd4a055bc4b20a1fc118df966a3fb58e05716c8fab29bac8d757717a555a32ece1b74d46a84ef43c464c38f0a236fbcee
6
+ metadata.gz: d0a935eceeb133ac31298cdae3a70887bbe3b48e84d1b4613966bce00a3d7b6eeb7cc730d6e6c7a01862db3698abd0bd22c4c2a61b7135d701011ca586bc37f1
7
+ data.tar.gz: 4a6fbe79a423eed639bb969165b0619ba4982db1aebff4e7bd547c9f54493b99d35317b1fd77031e6c0b3669fdf894331ccd7cead3856f25c936c88e6cd08884
@@ -83,6 +83,17 @@ module Waterpig
83
83
  end
84
84
  end
85
85
 
86
+ def handle_example(page, example)
87
+ emit_header "Browser console for #{example.full_description}"
88
+ console_entries = page.evaluate_script("console.history");
89
+
90
+ if console_entries
91
+ console_entries.each do |entry|
92
+ logger.emit_log(entry)
93
+ end
94
+ end
95
+ end
96
+
86
97
  def bold(string)
87
98
  "\e[1m#{string}\e[0m"
88
99
  end
@@ -102,19 +113,11 @@ module Waterpig
102
113
  config.after(:each,:type => proc{|value|
103
114
  config.waterpig_log_types && config.waterpig_log_types.include?(value)
104
115
  }) do |example|
105
- if config.waterpig_log_browser_console
106
- logger = Waterpig::BrowserConsoleLogger.instance
107
- logger.path = config.waterpig_browser_console_log_path
108
- logger.emit_header "Browser console for #{example.full_description}"
109
- console_entries = page.evaluate_script("console.history");
110
- console_entries.each do |entry|
111
- logger.emit_log(entry)
112
- end
113
- end
116
+ logger = Waterpig::BrowserConsoleLogger.instance
117
+ logger.path = config.waterpig_browser_console_log_path
118
+ logger.handle_example(page, example) if config.waterpig_log_browser_console
114
119
  end
115
120
  end
116
121
  end
117
122
  end
118
-
119
-
120
123
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterpig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
@@ -77,22 +77,22 @@ extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
79
  - lib/waterpig.rb
80
- - lib/waterpig/save-and-open-on-fail.rb
80
+ - lib/waterpig/browser-console-logger.rb
81
+ - lib/waterpig/browser-integration.rb
82
+ - lib/waterpig/browser-size.rb
83
+ - lib/waterpig/browser-tools.rb
81
84
  - lib/waterpig/ckeditor-tools.rb
82
- - lib/waterpig/selenium_chrome.rb
83
85
  - lib/waterpig/database-cleaner.rb
84
86
  - lib/waterpig/deadbeat-connections.rb
85
- - lib/waterpig/tinymce-tools.rb
86
- - lib/waterpig/browser-integration.rb
87
- - lib/waterpig/browser-console-logger.rb
88
87
  - lib/waterpig/poltergeist.rb
89
- - lib/waterpig/warning-suppressor.rb
88
+ - lib/waterpig/save-and-open-on-fail.rb
89
+ - lib/waterpig/selenium_chrome.rb
90
90
  - lib/waterpig/snap-step.rb
91
- - lib/waterpig/browser-tools.rb
92
- - lib/waterpig/browser-size.rb
91
+ - lib/waterpig/tinymce-tools.rb
92
+ - lib/waterpig/warning-suppressor.rb
93
93
  - spec/embarrassing.rb
94
- - spec_help/spec_helper.rb
95
94
  - spec_help/gem_test_suite.rb
95
+ - spec_help/spec_helper.rb
96
96
  homepage: http://nyarly.github.com/waterpig
97
97
  licenses:
98
98
  - MIT
@@ -103,7 +103,7 @@ rdoc_options:
103
103
  - --main
104
104
  - doc/README
105
105
  - --title
106
- - waterpig-0.6.0 Documentation
106
+ - waterpig-0.6.1 Documentation
107
107
  require_paths:
108
108
  - lib/
109
109
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project: waterpig
121
- rubygems_version: 2.0.14
121
+ rubygems_version: 2.4.3
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Capybara helper stuff