swt 0.7-java → 0.8-java

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,33 +1,33 @@
1
- #
2
- # module Cucumber
3
- # module Ast
4
- # class StepInvocation #:nodoc:#
5
- # class << self
6
- # attr_accessor :wait_time
7
- # end
8
- #
9
- # def invoke_with_swt(step_mother, options)
10
- # block = Swt::RRunnable.new { invoke_without_swt(step_mother, options) }
11
- #
12
- # Swt.sync_exec(&block)
13
- # sleep ENV["SLOW_CUKES"].to_f if ENV["SLOW_CUKES"]
14
- # sleep(Cucumber::Ast::StepInvocation.wait_time || 0)
15
- # Cucumber::Ast::StepInvocation.wait_time = nil
16
- # end
17
- #
18
- # alias_method :invoke_without_swt, :invoke
19
- # alias_method :invoke, :invoke_with_swt
20
- # end
21
- # end
22
- #
23
- # module Cli
24
- # class Configuration
25
- # def require_dirs_with_redcar_plugins
26
- # require_dirs_without_redcar_plugins + Dir['plugins/*/features']
27
- # end
28
- #
29
- # alias_method :require_dirs_without_redcar_plugins, :require_dirs
30
- # alias_method :require_dirs, :require_dirs_with_redcar_plugins
31
- # end
32
- # end
33
- # end
1
+
2
+ module Cucumber
3
+ module Ast
4
+ class StepInvocation #:nodoc:#
5
+ class << self
6
+ attr_accessor :wait_time
7
+ end
8
+
9
+ def invoke_with_swt(step_mother, options)
10
+ block = Swt::RRunnable.new { invoke_without_swt(step_mother, options) }
11
+
12
+ Swt.sync_exec(&block)
13
+ sleep ENV["SLOW_CUKES"].to_f if ENV["SLOW_CUKES"]
14
+ sleep(Cucumber::Ast::StepInvocation.wait_time || 0)
15
+ Cucumber::Ast::StepInvocation.wait_time = nil
16
+ end
17
+
18
+ alias_method :invoke_without_swt, :invoke
19
+ alias_method :invoke, :invoke_with_swt
20
+ end
21
+ end
22
+
23
+ module Cli
24
+ class Configuration
25
+ def require_dirs_with_redcar_plugins
26
+ require_dirs_without_redcar_plugins + Dir['plugins/*/features']
27
+ end
28
+
29
+ alias_method :require_dirs_without_redcar_plugins, :require_dirs
30
+ alias_method :require_dirs, :require_dirs_with_redcar_plugins
31
+ end
32
+ end
33
+ end
@@ -14,7 +14,7 @@ module Swt
14
14
  require "cucumber/cli/main"
15
15
  require "cucumber"
16
16
  require "cucumber/rb_support/rb_language"
17
- require "swt/cucumber_patches"
17
+ # require "swt/cucumber_patches"
18
18
  Thread.new do
19
19
  begin
20
20
  sleep START_DELAY
@@ -4,7 +4,7 @@ require 'swt/event_loop'
4
4
  require 'swt/cucumber_runner'
5
5
 
6
6
  module Swt
7
- VERSION = "0.4"
7
+ VERSION = "0.8"
8
8
 
9
9
  import org.eclipse.swt.SWT
10
10
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: swt
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: "0.7"
5
+ version: "0.8"
6
6
  platform: java
7
7
  authors:
8
8
  - Daniel Lucraft