appium_capybara 1.8.1 → 1.9.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
  SHA256:
3
- metadata.gz: 838caf9468d6e6513df67cc554df7109b7efeb4154960f0355af05613cf6cd25
4
- data.tar.gz: 800173f5e38349d0264a2fd978f9bfb201d3af333c495f816fd165c5af371358
3
+ metadata.gz: 3e580b26f96de413ba5f884a3415e64ee394e737804b60a7c0474db7c8df399e
4
+ data.tar.gz: b6d98a242aab223809ace04acba7f53628c0047dd9fe04717994e8480b5ef4cd
5
5
  SHA512:
6
- metadata.gz: 5617b2c7eb1b8745aae6ee8bc0752952c3609a7d8fca3c6469bc395f1779ecf16ef8cc2039ecb9c5bba63ca7393b1e4cbaf85f15e8686ac1fe073e8ade342c1c
7
- data.tar.gz: a9df43925ed328b4a8a1fc1d123c177dedacb1ecbf331627e8bdbc96c0fcc0e14cb18ce1684b8469baf1d010b70d96d04daf00fab09ef9ee3c38743c776fc41f
6
+ metadata.gz: 0b28ad6664372da0ee2019f076270cdea5cf0a0e7f92a78547d38ad0a1a823ede280313b1e39fcb32320475b50b4023e244761457a77d1e7953720f896866c45
7
+ data.tar.gz: b2c3c92b1e1ae17ba9f692b2c61d0b4bde9f8b35a00b6387c01b8ce4ba4911c6baf6cfadb1e89265a3f8c84b935039d94d51cee06d305a51534e40e5bf5fc1bc
@@ -78,6 +78,17 @@ module Appium::Capybara
78
78
  browser.execute_script('mobile: scroll', direction: 'down')
79
79
  end
80
80
 
81
+ # new
82
+ def swipe(opts)
83
+ start_x = opts.fetch :start_x, 0
84
+ start_y = opts.fetch :start_y, 0
85
+ end_x = opts.fetch :end_x, 0
86
+ end_y = opts.fetch :end_y, 0
87
+ duration = opts.fetch :duration, 200
88
+
89
+ Appium::TouchAction.new(browser).swipe(start_x: start_x, start_y: start_y, end_x: end_x, end_y: end_y, duration: duration).perform
90
+ end
91
+
81
92
  # new
82
93
  # Use :landscape or :portrait
83
94
  def rotate(opts)
@@ -1,6 +1,6 @@
1
1
  module Appium
2
2
  module Capybara
3
- VERSION = '1.8.1'.freeze unless defined? ::Appium::Capybara::VERSION
4
- DATE = '2019-06-23'.freeze unless defined? ::Appium::Capybara::DATE
3
+ VERSION = '1.9.0'.freeze unless defined? ::Appium::Capybara::VERSION
4
+ DATE = '2019-07-11'.freeze unless defined? ::Appium::Capybara::DATE
5
5
  end
6
6
  end
@@ -1,3 +1,9 @@
1
+ #### v1.9.0 2019-07-11
2
+
3
+ - [8c42306](https://github.com/appium/appium_capybara/commit/8c423067b4347ab64521f298737e76d1164f9929) Release 1.9.0
4
+ - [ad6df40](https://github.com/appium/appium_capybara/commit/ad6df40144c372dcac538f8f43054bf521f99695) feat: Added swipe feature for android and ios (#50)
5
+
6
+
1
7
  #### v1.8.1 2019-06-23
2
8
 
3
9
  - [805b248](https://github.com/appium/appium_capybara/commit/805b24839f414c936e408739a871be9df3620fbf) Release 1.8.1
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.8.1
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - scott.bonebrake@gmail.com
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-06-23 00:00:00.000000000 Z
13
+ date: 2019-07-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: appium_lib