aruba 0.6.1 → 0.6.2

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.
@@ -1,49 +1,13 @@
1
1
  require 'rspec/core'
2
2
  require 'aruba/api'
3
3
 
4
- module ManipulatesConstants
5
- # http://digitaldumptruck.jotabout.com/?p=551
6
- def with_constants(constants, &block)
7
- saved_constants = {}
8
- constants.each do |constant, val|
9
- saved_constants[ constant ] = Object.const_get( constant )
10
- Kernel::silence_warnings { Object.const_set( constant, val ) }
11
- end
12
-
13
- begin
14
- block.call
15
- ensure
16
- constants.each do |constant, val|
17
- Kernel::silence_warnings { Object.const_set( constant, saved_constants[ constant ] ) }
18
- end
19
- end
20
- end
21
- end
22
-
23
- # http://mislav.uniqpath.com/2011/06/ruby-verbose-mode/
24
- # these methods are already present in Active Support
25
- module Kernel
26
- def silence_warnings
27
- with_warnings(nil) { yield }
28
- end
29
-
30
- def with_warnings(flag)
31
- old_verbose, $VERBOSE = $VERBOSE, flag
32
- yield
33
- ensure
34
- $VERBOSE = old_verbose
35
- end
36
- end unless Kernel.respond_to? :silence_warnings
37
-
38
4
  RSpec.configure do |config|
39
5
  config.filter_run :focus => true
40
6
  config.run_all_when_everything_filtered = true
41
- config.include(ManipulatesConstants)
42
7
  config.expect_with :rspec do |c|
43
8
  c.syntax = :expect
44
9
  end
45
10
 
46
- config.before( :each ) {
47
- clean_current_dir
48
- }
11
+ config.include Aruba::Api
12
+ config.before(:each) { clean_current_dir }
49
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-20 00:00:00.000000000 Z
14
+ date: 2015-01-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: cucumber
@@ -139,6 +139,20 @@ dependencies:
139
139
  - - "~>"
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0.0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rubocop
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: 0.26.0
149
+ type: :development
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: 0.26.0
142
156
  description: CLI Steps for Cucumber, hand-crafted for you in Aruba
143
157
  email: cukes@googlegroups.com
144
158
  executables: []
@@ -148,6 +162,7 @@ files:
148
162
  - ".document"
149
163
  - ".gitignore"
150
164
  - ".rspec"
165
+ - ".rubocop.yml"
151
166
  - ".rvmrc"
152
167
  - ".travis.yml"
153
168
  - CONTRIBUTING.md
@@ -158,6 +173,8 @@ files:
158
173
  - Rakefile
159
174
  - aruba.gemspec
160
175
  - config/.gitignore
176
+ - config/rubocop/exclude.yml
177
+ - config/rubocop/include.yml
161
178
  - cucumber.yml
162
179
  - features/before_cmd_hooks.feature
163
180
  - features/command_environment_variables.feature
@@ -226,5 +243,5 @@ rubyforge_project:
226
243
  rubygems_version: 2.2.2
227
244
  signing_key:
228
245
  specification_version: 4
229
- summary: aruba-0.6.1
246
+ summary: aruba-0.6.2
230
247
  test_files: []