earlgrey 0.0.10 → 0.0.11

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: f56e83c7ad91d9c73faf7666b1543b32a8c47d25
4
- data.tar.gz: bbb1edf1a70f96e5674052d915d82f0ccff057ec
3
+ metadata.gz: 9f36bc6a721d75e8ee68ee2244ba849b43f99b7a
4
+ data.tar.gz: 3d333da0ebd4ce8ff9bb7bdb1ae59381f8733d03
5
5
  SHA512:
6
- metadata.gz: e9ad619367e513319ea0a8fc9d881a2212abc4d3e4988681df2a92f27025d2a0c4fd48c65d61ca46c5abc9f5caa0ba976e008c9e98873a8f8a7ad819fadb5be9
7
- data.tar.gz: de323507eca9b4e0fd4695a95b2e6909b0accbf5ceace999f5f5229144e29bc2812d3fdcfa4f9f95d17cc8e5dd33fee2a178de6713ba3cd0d13c81da948c6a78
6
+ metadata.gz: af56e22da2a799917b2f593c22381318a156940ac4fdb598a6fdc18607601c6097cd51b240259b70c1c3f6b3dfe023fc6de66e15d7fb9053ea6b5c1dd5d5a998
7
+ data.tar.gz: 903de92e97084430438a070b7f6d7d476aa4458ee591092a7441e39ef33e6e4e573717e73c115e55328cdea430e429e23d9df96e9e48fce98a0ea4c872ac0418
@@ -17,15 +17,15 @@
17
17
  import EarlGrey
18
18
 
19
19
  public func grey_allOfMatchers(args: AnyObject...) -> GREYMatcher! {
20
- return GREYAllOf.init(matchers: args)
20
+ return GREYAllOf(matchers: args)
21
21
  }
22
22
 
23
23
  public func grey_anyOfMatchers(args: AnyObject...) -> GREYMatcher! {
24
- return GREYAnyOf.init(matchers: args)
24
+ return GREYAnyOf(matchers: args)
25
25
  }
26
26
 
27
- public func EarlGrey() -> EarlGreyImpl! {
28
- return EarlGreyImpl.invokedFromFile(__FILE__, lineNumber: __LINE__)
27
+ public func EarlGrey(file: String = __FILE__, line: UInt = __LINE__) -> EarlGreyImpl! {
28
+ return EarlGreyImpl.invokedFromFile(file, lineNumber: line)
29
29
  }
30
30
 
31
31
  public func GREYAssert(@autoclosure expression: () -> BooleanType, reason: String) {
@@ -104,10 +104,10 @@ private func GREYAssert(@autoclosure expression: () -> BooleanType,
104
104
  }
105
105
  }
106
106
 
107
- private func GREYSetCurrentAsFailable() {
107
+ private func GREYSetCurrentAsFailable(file: String = __FILE__, line: UInt = __LINE__) {
108
108
  let greyFailureHandlerSelector =
109
109
  Selector("GREYFailureHandler.setInvocationFile(__FILE__, andInvocationLine:__LINE__)")
110
110
  if greyFailureHandler.respondsToSelector(greyFailureHandlerSelector) {
111
- greyFailureHandler.setInvocationFile!(__FILE__, andInvocationLine: __LINE__)
111
+ greyFailureHandler.setInvocationFile!(file, andInvocationLine: line)
112
112
  }
113
113
  }
@@ -15,15 +15,15 @@
15
15
  //
16
16
 
17
17
  public func grey_allOfMatchers(args: AnyObject...) -> GREYMatcher! {
18
- return GREYAllOf.init(matchers: args)
18
+ return GREYAllOf(matchers: args)
19
19
  }
20
20
 
21
21
  public func grey_anyOfMatchers(args: AnyObject...) -> GREYMatcher! {
22
- return GREYAnyOf.init(matchers: args)
22
+ return GREYAnyOf(matchers: args)
23
23
  }
24
24
 
25
- public func EarlGrey() -> EarlGreyImpl! {
26
- return EarlGreyImpl.invokedFromFile(#file, lineNumber: #line)
25
+ public func EarlGrey(file: String = #file, line: UInt = #line) -> EarlGreyImpl! {
26
+ return EarlGreyImpl.invokedFromFile(file, lineNumber: line)
27
27
  }
28
28
 
29
29
  public func GREYAssert(@autoclosure expression: () -> BooleanType, reason: String) {
@@ -102,10 +102,10 @@ private func GREYAssert(@autoclosure expression: () -> BooleanType,
102
102
  }
103
103
  }
104
104
 
105
- private func GREYSetCurrentAsFailable() {
105
+ private func GREYSetCurrentAsFailable(file: String = #file, line: UInt = #line) {
106
106
  let greyFailureHandlerSelector =
107
107
  #selector(GREYFailureHandler.setInvocationFile(_:andInvocationLine:))
108
108
  if greyFailureHandler.respondsToSelector(greyFailureHandlerSelector) {
109
- greyFailureHandler.setInvocationFile!(#file, andInvocationLine: #line)
109
+ greyFailureHandler.setInvocationFile!(file, andInvocationLine: line)
110
110
  }
111
111
  }
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module EarlGrey
17
- VERSION = '0.0.10'.freeze unless defined? ::EarlGrey::VERSION
17
+ VERSION = '0.0.11'.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.0.10
4
+ version: 0.0.11
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-09-01 00:00:00.000000000 Z
13
+ date: 2016-09-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colored