capybara-selenium 0.0.2 → 0.0.3

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: e7b1e32af7160025a7ba412bf91e82e7db92c5b0
4
- data.tar.gz: 23460a046866acf85a8485c2f496c2038d0730dd
3
+ metadata.gz: 8fd20b8b4b3bf89cf1437c09075e558735f7d9cd
4
+ data.tar.gz: c783c285c0be5d82384bff1493f84dd5bb80a37f
5
5
  SHA512:
6
- metadata.gz: a6a5849c6b568f26632895a671746f0db3a7b9666750ed8bccf2a4bba8c4b892e1d883f9ea8db6322ab4da9046b2070b2569b03b076db8ede9a15948677bac45
7
- data.tar.gz: d681950100ef0fa127ab6bdf8939da450d051bb4bc25b27a0e190749d13c7da23e92901a44d954af8a476ab62a01fba9cd2bb82945d348ab8adeff53c412dd9c
6
+ metadata.gz: 4aa5cea8f4b8583d935edb6cccc7bd8c1e695e6a2e0431b0b476cc8d10b0dd8057f1291f9977b5860eeee960013e6e7885a459ba503e3d3a3af4a7b0a75b4d7c
7
+ data.tar.gz: ac4c54cd17254412c733e19576db7af95518c2d05eb26debf33044adb09cc9c3d8e5c70a29aa97cbc16d3e37fbb02031e5ef8a6765f4fc00049e8c873c45992f
@@ -1,3 +1,13 @@
1
+ ## 0.0.3
2
+
3
+ * Fixed constant name `CapybaraSelenium::Configurator` instead of
4
+ `CapybaraSelenium::GlobalConfigurator`.
5
+ * Fixed documentation for using a block in constructor call (added `dispatch`
6
+ method call)
7
+ * Updated `url` field for `CapybaraSelenium::AppServer::BaseConfiguration` to
8
+ depend on host and port only if it is not a predefined value.
9
+ * Fixed usage with instance methods
10
+
1
11
  ## 0.0.2
2
12
 
3
13
  * Complete refactoring for easy modular extension
data/README.md CHANGED
@@ -49,7 +49,7 @@ CapybaraSelenium::Configurator.new do
49
49
  'http://127.0.0.1:4444/wd/hub'
50
50
  config.capabilities = { browser_name: browser_name }
51
51
  end
52
- end
52
+ end.dispatch
53
53
  ```
54
54
 
55
55
  #### Option 2: Using instance methods
@@ -1,9 +1,16 @@
1
1
  module CapybaraSelenium
2
2
  module AppServer
3
+ # Base class for all web application server configurations
3
4
  class BaseConfiguration
4
- attr_accessor :host, :port
5
+ attr_accessor :host, :port, :url
6
+
7
+ def url
8
+ return "http://#{host}:#{port}" unless @url && !@url.empty?
9
+ @url
10
+ end
5
11
  end
6
12
 
13
+ # Configuration for Rack application server
7
14
  class RackConfiguration < BaseConfiguration
8
15
  attr_accessor :config_ru_path
9
16
  end
@@ -4,7 +4,7 @@ module CapybaraSelenium
4
4
  def apply
5
5
  Capybara.server_host = host
6
6
  Capybara.server_port = port
7
- Capybara.app_host = "http://#{host}:#{port}"
7
+ Capybara.app_host = url
8
8
  end
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module CapybaraSelenium
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Saenz Tagarro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-15 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  requirements: []
209
209
  rubyforge_project:
210
- rubygems_version: 2.4.3
210
+ rubygems_version: 2.2.2
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: Dead-simple way to make Capybara and Selenium play together