appium_capybara 1.3.0 → 1.4.0

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: d66d327bb69cb59b65203b343dd8d51cc7af1af9
4
- data.tar.gz: cb4d19b3eba30e99bbff1d2efc70dd35bd5e987d
3
+ metadata.gz: f17f80988b32b5c0ddcb09e101f77d362d0b88c1
4
+ data.tar.gz: 599deb1815dd7ac7d2142ce17aa4a2ab5e96dda0
5
5
  SHA512:
6
- metadata.gz: ece5c4ff572a5dd92b137c351847b76440b106f6e83b3c5e5fbd1add8cafc98aee16d161373d51c78a004985859fa98750082aa500edcd003627db346937e8cf
7
- data.tar.gz: 5630655cb736c741fee94f4408a50ebe92acc9dfbccedd5f05f91ef9d87d8125ee2bb3ffc8bf2b3311b7e7d3d7c40a838d1a4640ce4096d3d898c9ecb86916c4
6
+ metadata.gz: 3c908992b789d5c2de85fcb3546517a81d277a6009e5735dd8145cd523fb40afc374c2b7005972dca469dca6b5ca6c2e322553f7a6b8a5d57e7bf88c20951c20
7
+ data.tar.gz: 18fb1f1e50837d0fc0403d251f6b2fec3336b327c8c42b2cf5d074448273b251c0099d34602ace3033ae4232a0cca374e896061837e52cbb639aaba6fb34997d
@@ -7,8 +7,7 @@ class Gem::Specification
7
7
  end
8
8
 
9
9
  Gem::Specification.new do |s|
10
- # 1.8.x is not supported
11
- s.required_ruby_version = '>= 1.9.3'
10
+ s.required_ruby_version = '>= 2.2'
12
11
 
13
12
  s.name = 'appium_capybara'
14
13
  s.version = Appium::Capybara::VERSION
@@ -20,7 +19,7 @@ Gem::Specification.new do |s|
20
19
  s.homepage = 'https://github.com/appium/appium_capybara'
21
20
  s.require_paths = ['lib']
22
21
 
23
- s.add_runtime_dependency 'appium_lib', '>= 4.1.0'
22
+ s.add_runtime_dependency 'appium_lib', '>= 9.6.0'
24
23
  s.add_runtime_dependency 'capybara', '~> 2.7'
25
24
 
26
25
  s.add_development_dependency 'appium_thor', '~> 0.0', '>= 0.0.7'
data/example/Gemfile CHANGED
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'appium_capybara', :path => ".."
3
+ gem 'appium_capybara', path: '..'
4
4
  gem 'rspec', '~> 3.0.0'
5
- gem 'site_prism', '~> 2.6'
5
+ gem 'site_prism', '~> 2.6'
6
+ gem 'pry'
data/example/appium.txt CHANGED
@@ -1,9 +1,6 @@
1
1
  [caps]
2
2
  platformName = "ios"
3
- deviceName ="iPhone 6"
3
+ platformVersion = "10.3"
4
+ deviceName ="iPhone Simulator"
5
+ automationName = 'XCUITest'
4
6
  app = "./UICatalog.app.zip"
5
- platformVersion = "8.1"
6
-
7
- [appium_lib]
8
- sauce_username = ""
9
- sauce_access_key = ""
@@ -3,9 +3,15 @@ require 'capybara/rspec'
3
3
  require 'appium_capybara'
4
4
  require 'site_prism'
5
5
 
6
+ caps = Appium.load_appium_txt file: File.expand_path('./', 'appium.txt'), verbose: true
7
+
8
+ url = "http://localhost:4723/wd/hub"
9
+
6
10
  Capybara.register_driver(:appium) do |app|
7
- opts = Appium.load_appium_txt file: File.join(Dir.pwd, 'appium.txt')
8
- Appium::Capybara::Driver.new app, opts
11
+ all_options = caps.merge(appium_lib: {server_url: url})
12
+ puts all_options.inspect
13
+
14
+ Appium::Capybara::Driver.new app, all_options
9
15
  end
10
16
 
11
- Capybara.default_driver = :appium
17
+ Capybara.default_driver = :appium
@@ -5,4 +5,4 @@ describe 'UICatalog smoke test' do
5
5
  home_page = Pages::Home.new
6
6
  expect(home_page.navigation_bar.first).to be_truthy
7
7
  end
8
- end
8
+ end
@@ -19,7 +19,7 @@ module Appium::Capybara
19
19
  # To access the browser without creating one use @browser
20
20
  def browser
21
21
  unless @browser
22
- @appium_driver = Appium::Driver.new @options
22
+ @appium_driver = Appium::Driver.new @options, false
23
23
  # browser is the standard selenium driver without any appium methods
24
24
  @browser = @appium_driver.start_driver
25
25
 
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '1.3.0' unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2016-04-22' unless defined? ::Appium::Capybara::DATE
3
+ VERSION = '1.4.0' unless defined? ::Appium::Capybara::VERSION
4
+ DATE = '2017-09-19' unless defined? ::Appium::Capybara::DATE
5
5
  end
6
6
  end
data/release_notes.md CHANGED
@@ -1,3 +1,11 @@
1
+ #### v1.4.0 2017-09-19
2
+
3
+ - [9af61c9](https://github.com/appium/appium_capybara/commit/9af61c934208f3cd08baa91ef46d3d0e95f2b3bb) Release 1.4.0
4
+ - [4589baa](https://github.com/appium/appium_capybara/commit/4589baab0e33591868ccae8949630fdf3aea41bb) Merge pull request #31 from KazuCocoa/use_new_appium_driver
5
+ - [b79a578](https://github.com/appium/appium_capybara/commit/b79a578b0ff4cafda09bed17889b7353ed5f4441) revert path
6
+ - [f8f7f4c](https://github.com/appium/appium_capybara/commit/f8f7f4c848e90bb02afcd7f9ae6eac0c8231c1df) use the latest driver update appium.txt
7
+
8
+
1
9
  #### v1.3.0 2016-04-22
2
10
 
3
11
  - [9a2517c](https://github.com/appium/appium_capybara/commit/9a2517c7797ae1719a4ef91b0db939b11e9af2e5) Release 1.3.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appium_capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - scott.bonebrake@gmail.com
@@ -10,54 +10,54 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-04-22 00:00:00.000000000 Z
13
+ date: 2017-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: appium_lib
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 4.1.0
21
+ version: 9.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 4.1.0
28
+ version: 9.6.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: capybara
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '2.7'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '2.7'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: appium_thor
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0.0'
50
- - - '>='
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 0.0.7
53
53
  type: :development
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ~>
57
+ - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0.0'
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: 0.0.7
63
63
  description: Enables appium support in Capybara.
@@ -69,7 +69,7 @@ executables: []
69
69
  extensions: []
70
70
  extra_rdoc_files: []
71
71
  files:
72
- - .gitignore
72
+ - ".gitignore"
73
73
  - Gemfile
74
74
  - LICENSE-2.0.txt
75
75
  - README.md
@@ -101,19 +101,18 @@ require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: 1.9.3
106
+ version: '2.2'
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.2.2
114
+ rubygems_version: 2.6.8
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Enables appium support in Capybara
118
118
  test_files: []
119
- has_rdoc: