earlgrey 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5351b43b3940ebac8ba5b3956e2005df58c03f14
4
- data.tar.gz: 5259dfb0861a4d7d2c0d34d8233c092ff3d72692
3
+ metadata.gz: 0e2c1475df8675f191c0fbf6eb330bb3bd33b824
4
+ data.tar.gz: 329f733ec79f4c3c480b867a65ac0c1c56ba8c66
5
5
  SHA512:
6
- metadata.gz: a637f4edb2c30b86cb5040282322f166707f103f3ba077b5e5a3d3dfcb0e0f425a20b3ddeee426b0a81fca611263f495f486b4af2ee1e09d4812c824713380ea
7
- data.tar.gz: 8b8fead494186b62edefac8741bc6f947cd2c204d2160a5cee9b2f410c98693c7039b9ae12c5c0cb3d9991f499a9ebbdc98b6447a5a3a75ad1ead0a0eb6e3f37
6
+ metadata.gz: de03ac8b34e3cd50a69616829b1ae517966950ea23559231da09018f9984635b646b6d6f6a5c1c948cf1ebb7a467c51c98d3b3f67f39d0c0478bcd79ee8a6084
7
+ data.tar.gz: 4df7deec361904a5b7696a7a561b946f34f69ae0446574bb30e74da19caac4b32b69eb3ba0c3f5a7714f6f7e43489b000b4130ffff90081d582710b5657dd221
@@ -91,35 +91,37 @@ private func GREYSetCurrentAsFailable() {
91
91
  }
92
92
  }
93
93
 
94
- class EarlGrey: NSObject {
95
- public class func select(elementWithMatcher matcher:GREYMatcher,
96
- file: String = #file,
94
+ open class EarlGrey: NSObject {
95
+ open class func select(elementWithMatcher matcher:GREYMatcher,
96
+ file: StaticString = #file,
97
97
  line: UInt = #line) -> GREYElementInteraction {
98
- return EarlGreyImpl.invoked(fromFile: file, lineNumber: line).selectElement(with: matcher)
98
+ return EarlGreyImpl.invoked(fromFile: file.description, lineNumber: line)
99
+ .selectElement(with: matcher)
99
100
  }
100
101
 
101
- public class func setFailureHandler(handler: GREYFailureHandler,
102
- file: String = #file,
102
+ open class func setFailureHandler(handler: GREYFailureHandler,
103
+ file: StaticString = #file,
103
104
  line: UInt = #line) {
104
- return EarlGreyImpl.invoked(fromFile: file, lineNumber: line).setFailureHandler(handler)
105
+ return EarlGreyImpl.invoked(fromFile: file.description, lineNumber: line)
106
+ .setFailureHandler(handler)
105
107
  }
106
108
 
107
- public class func handle(exception: GREYFrameworkException,
109
+ open class func handle(exception: GREYFrameworkException,
108
110
  details: String,
109
- file: String = #file,
111
+ file: StaticString = #file,
110
112
  line: UInt = #line) {
111
- return EarlGreyImpl.invoked(fromFile: file, lineNumber: line).handle(exception,
112
- details: details)
113
+ return EarlGreyImpl.invoked(fromFile: file.description, lineNumber: line)
114
+ .handle(exception, details: details)
113
115
  }
114
116
 
115
- @discardableResult public class func rotateDeviceTo(orientation: UIDeviceOrientation,
117
+ @discardableResult open class func rotateDeviceTo(orientation: UIDeviceOrientation,
116
118
  errorOrNil: UnsafeMutablePointer<NSError?>!,
117
- file: String = #file,
119
+ file: StaticString = #file,
118
120
  line: UInt = #line)
119
121
  -> Bool {
120
- return EarlGreyImpl.invoked(fromFile: file, lineNumber: line)
121
- .rotateDevice(to: orientation,
122
- errorOrNil: errorOrNil)
122
+ return EarlGreyImpl.invoked(fromFile: file.description, lineNumber: line)
123
+ .rotateDevice(to: orientation,
124
+ errorOrNil: errorOrNil)
123
125
  }
124
126
  }
125
127
 
@@ -133,7 +135,6 @@ extension GREYInteraction {
133
135
  return self.assert(with: matcher(), error: error)
134
136
  }
135
137
 
136
-
137
138
  @discardableResult public func using(searchAction: GREYAction,
138
139
  onElementWithMatcher matcher: GREYMatcher) -> Self {
139
140
  return self.usingSearch(searchAction, onElementWith: matcher)
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module EarlGrey
17
- VERSION = '0.1.4'.freeze unless defined? ::EarlGrey::VERSION
17
+ VERSION = '0.1.5'.freeze unless defined? ::EarlGrey::VERSION
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earlgrey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - khandpur
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-12-20 00:00:00.000000000 Z
13
+ date: 2017-01-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colored
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.5.1
162
+ rubygems_version: 2.5.2
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: EarlGrey installer gem