cucumber-rapid7 0.0.1.beta.2 → 0.0.1.beta.3

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: 09849a456a6d69155d453639ab92ff4900c70681
4
- data.tar.gz: 00412a12f1d5e443539364d98b190e1854ccb786
3
+ metadata.gz: c643bd2c28b8b42622b1507826878e21eb75cac8
4
+ data.tar.gz: 60436c8db63d805913da171481cfe8b45393a2ba
5
5
  SHA512:
6
- metadata.gz: 67ea75b59a0da760885985bd1bddd895206643c2be6f7871433121175f701989c4eb99d26c6f024ba02d8df9211a34d37d1b75153a2c88d75edfef7fda23d158
7
- data.tar.gz: a8786cfab910abfbe1bc8c94de7ee2d1d99d2cb469661bbc1c242f5a3d9bac833c637a97a0b8a3860cc8763080c0dd027756facc59324e62599c36c7226e3709
6
+ metadata.gz: ffcc9dc226b044255eef60f4f89b3c7e26b794f0676b4c549cf0d299a5d6b13e0220623c7ad97d4e7c36d0221be29b7d63a1b71e15619da80fffe56b1c322a9d
7
+ data.tar.gz: 9e5eaf82a16479591d2a88cc381965596fe7e6d37d0dc2ccc03fb7b18a7b8fe5d34a8e18726522fbf7aae0c1009fde69a05d1a64c9287fa12568a1976e5c91c0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cucumber::Rapid7
2
2
 
3
- TODO: Write a gem description
3
+ Cucumber hooks, formatters, and more used at Rapid7 by the ControlsInsight team.
4
4
 
5
5
  ## Installation
6
6
 
@@ -17,8 +17,10 @@ Or install it yourself as:
17
17
  $ gem install cucumber-rapid7
18
18
 
19
19
  ## Usage
20
-
21
- TODO: Write usage instructions here
20
+ Cucumber::Rapid7 includes several extensions to cucumber including the following. Click the links to view the more in depth documentation for each feature.
21
+ ### • [Auxiliary](lib/cucumber/rapid7/README.md)
22
+ ### • [Formatters](lib/cucumber/rapid7/formatter/README.md)
23
+ ### • [Hooks](lib/cucumber/rapid7/hooks/README.md)
22
24
 
23
25
  ## Contributing
24
26
 
@@ -0,0 +1,21 @@
1
+ # Cucumber::Rapid7
2
+ ## Auxiliary
3
+ 1. [`find_scenario_name(scenario_or_outline)`](auxiliary.rb#L8-L15)
4
+ 1. [`find_file_colon_line(scenario_or_outline)`](auxiliary.rb#L17-L24)
5
+ 1. [`example_row_from_scenario(scenario_or_outline)`](auxiliary.rb#L26-L39)
6
+ 1. [`skip_tag_error(scenario_name, common_tags, !!example_row)`](auxiliary.rb#L41-L51)
7
+
8
+ ## Formatter
9
+ For more details on the formatters in Cucumber::Rapid7 [see here](formatter/README.md).
10
+
11
+ 1. [html_postponed.rb](formatter/html_postponed.rb)
12
+ 1. [jira_metrics.rb](formatter/jira_metrics.rb)
13
+ 1. [notification_center_formatter.rb](formatter/notification_center_formatter.rb)
14
+
15
+ ## Hooks
16
+ For more details on the hooks in Cucumber::Rapid7 [see here](hooks/README.md).
17
+
18
+ 1. [capybara.rb](hooks/capybara.rb)
19
+ 1. [capybara_register_drivers.rb](hooks/capybara_register_drivers.rb)
20
+ 1. [postponed.rb](hooks/postponed.rb)
21
+ 1. [ui.rb](hooks/ui.rb)
@@ -0,0 +1,4 @@
1
+ # Cucumber::Rapid7 Formatters
2
+ ## HTML Postponed
3
+ ## Jira Metrics
4
+ ## Notification Center
@@ -0,0 +1,5 @@
1
+ # Cucumber::Rapid7 Hooks
2
+ ## Capybara
3
+ ## Capybara Register Drivers
4
+ ## Postponed
5
+ ## UI
@@ -1,8 +1,13 @@
1
1
  require 'capybara'
2
2
 
3
+ # Alias :selenium to :firefox
4
+ Capybara.register_driver :firefox do |app|
5
+ Capybara.drivers[:selenium]
6
+ end
7
+
3
8
  # Takes each value in a comma separated list and registers it as a
4
9
  # Capybara driver
5
- ENV['CAPYBARA_DRIVERS'].split(/,\s*/).map(&:to_sym).each do |driver|
10
+ ENV['CAPYBARA_DRIVERS'].split(',').map(&:to_sym).each do |driver|
6
11
  case driver
7
12
  when :poltergeist
8
13
  require 'capybara/poltergeist'
@@ -6,7 +6,7 @@ include Cucumber::Rapid7::Auxiliary
6
6
  Around do |scenario, block|
7
7
  scenario_name = find_scenario_name(scenario)
8
8
  source_tags = scenario.source_tag_names
9
- common_tags = source_tags & ENV['CUCUMBER_SKIP_TAGS'].to_s.split(/,/)
9
+ common_tags = source_tags & ENV['CUCUMBER_SKIP_TAGS'].to_s.split(',')
10
10
  example_row = scenario.is_a?(Cucumber::Ast::OutlineTable::ExampleRow)
11
11
 
12
12
  if common_tags.any? && scenario_name.eql?(@last_scenario_name)
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Rapid7
3
- VERSION = '0.0.1.beta.2'
3
+ VERSION = '0.0.1.beta.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-rapid7
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta.2
4
+ version: 0.0.1.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erran Carey
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2014-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
- - - ~>
24
+ - - "~>"
23
25
  - !ruby/object:Gem::Version
24
26
  version: '1.3'
25
- prerelease: false
26
- type: :development
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- requirement: !ruby/object:Gem::Requirement
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
35
37
  requirements:
36
- - - '>='
38
+ - - ">="
37
39
  - !ruby/object:Gem::Version
38
40
  version: '0'
39
- prerelease: false
40
- type: :development
41
41
  description: Cucumber extensions used at Rapid7
42
42
  email:
43
43
  - erran_carey@rapid7.com
@@ -45,17 +45,20 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE.md
51
51
  - README.md
52
52
  - Rakefile
53
53
  - cucumber-rapid7.gemspec
54
54
  - lib/cucumber/rapid7.rb
55
+ - lib/cucumber/rapid7/README.md
55
56
  - lib/cucumber/rapid7/auxiliary.rb
57
+ - lib/cucumber/rapid7/formatter/README.md
56
58
  - lib/cucumber/rapid7/formatter/html_postponed.rb
57
59
  - lib/cucumber/rapid7/formatter/jira_metrics.rb
58
- - lib/cucumber/rapid7/formatter/notification_center.rb
60
+ - lib/cucumber/rapid7/formatter/notification_center_formatter.rb
61
+ - lib/cucumber/rapid7/hooks/README.md
59
62
  - lib/cucumber/rapid7/hooks/capybara.rb
60
63
  - lib/cucumber/rapid7/hooks/capybara_register_drivers.rb
61
64
  - lib/cucumber/rapid7/hooks/postponed.rb
@@ -65,24 +68,25 @@ homepage: https://github.com/ecarey-r7/cucumber-rapid7
65
68
  licenses:
66
69
  - MIT
67
70
  metadata: {}
68
- post_install_message:
71
+ post_install_message:
69
72
  rdoc_options: []
70
73
  require_paths:
71
74
  - lib
72
75
  required_ruby_version: !ruby/object:Gem::Requirement
73
76
  requirements:
74
- - - '>='
77
+ - - ">="
75
78
  - !ruby/object:Gem::Version
76
79
  version: '0'
77
80
  required_rubygems_version: !ruby/object:Gem::Requirement
78
81
  requirements:
79
- - - '>'
82
+ - - ">"
80
83
  - !ruby/object:Gem::Version
81
84
  version: 1.3.1
82
85
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.1.9
85
- signing_key:
86
+ rubyforge_project:
87
+ rubygems_version: 2.2.0
88
+ signing_key:
86
89
  specification_version: 4
87
90
  summary: Cucumber extensions for Rapid7
88
91
  test_files: []
92
+ has_rdoc: