guard-frank 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Guard::Frank
2
2
 
3
- Guard gem for [Frank-Cucumber](http://www.testingwithfrank.com/)
3
+ Guard gem for [Frank-Cucumber](http://www.testingwithfrank.com/).
4
+ Guard::Frank automatically run your frank-cucumber features for iOS.
4
5
 
5
6
  ## Installation
6
7
 
@@ -19,12 +19,20 @@ module Guard
19
19
  UI.info "Could not run Frank. \n'#{self.bundle_path}' not found."
20
20
  return false
21
21
  end
22
- start_message = features.eql?("features") ? "Run all features" : "Run #{features}"
22
+ if features.eql?("features")
23
+ start_message = "Run all features"
24
+ else
25
+ features = features.join(' ') if features.kind_of? Array
26
+ start_message = "Run #{features}"
27
+ end
23
28
  UI.info start_message
24
29
  system(command(features))
25
30
  end
26
31
 
27
32
  def command(features)
33
+ if features.kind_of? Array
34
+ features = features.join(' ')
35
+ end
28
36
  "APP_BUNDLE_PATH='#{self.bundle_path}' cucumber #{features} --require features"
29
37
  end
30
38
 
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module FrankVersion
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-frank
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Denisov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-03 00:00:00 Z
18
+ date: 2012-05-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: guard