yolo 1.3.6 → 1.4.0

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: e0da37b6adffca283ebb6a6803aef9d2597c1d27
4
- data.tar.gz: c94d40d0f05cbc2af77ef2e201e72eccad46934d
3
+ metadata.gz: e4dd259c2a3b442e3a86b54369b447d458e09394
4
+ data.tar.gz: 5b666ec8029738cdc9faeed759f3cbc65d1a93c7
5
5
  SHA512:
6
- metadata.gz: 371989a66dc466306acb36a6221defcf6f5fe3ae215255782feb08b4ebb0c25567d4fc52e61ea1a25f49aef437c36b676b668dd9acb95d07ec425962e343d995
7
- data.tar.gz: 64ed3c0ebba731fbbf991092bdd093cf573700a9da4761fac5a6c3de09236df30f3cc751754aafcf8fb88414e7b8dddee1b071d56618fd4fdfefe4a74493786b
6
+ metadata.gz: 367fcbaf10690b69d6ff65b281974a141004e48121b66bc80f829ec38ca797e569605d756c1682bc544b8847de797b373ae254d1269661efc068642e92ac80f9
7
+ data.tar.gz: 01e1648e4aaebae015925e8ddaa24f84b0d3412860a72504cb66229dab93a60cb97055f497e845ad402a3aa38dc2d0b95eaad674da77a94d8bce17b6ad33a577
@@ -24,6 +24,21 @@ module Yolo
24
24
  return options.compact.join(" ")
25
25
  end
26
26
 
27
+ #
28
+ # Returns the build class's scheme attribute,
29
+ # if no attribute is set then check for the scheme env var
30
+ #
31
+ # @return [String] The build class's scheme attribute
32
+ def scheme
33
+ scheme = @scheme
34
+
35
+ if !scheme
36
+ scheme = ENV['YOLO_BUILD_SCHEME']
37
+ end
38
+
39
+ return scheme
40
+ end
41
+
27
42
  #
28
43
  # Defines rake tasks available to the Build class
29
44
  #
@@ -26,6 +26,21 @@ module Yolo
26
26
  super
27
27
  end
28
28
 
29
+ #
30
+ # Returns the calabash class's scheme attribute,
31
+ # if no attribute is set then check for the scheme env var
32
+ #
33
+ # @return [String] The calabash class's scheme attribute
34
+ def scheme
35
+ scheme = @scheme
36
+
37
+ if !scheme
38
+ scheme = ENV['YOLO_CALABASH_SCHEME']
39
+ end
40
+
41
+ return scheme
42
+ end
43
+
29
44
  #
30
45
  # Defines rake tasks available to the Calabash class
31
46
  #
@@ -35,6 +35,21 @@ module Yolo
35
35
  return options.compact.join(" ")
36
36
  end
37
37
 
38
+ #
39
+ # Returns the ocunit class's scheme attribute,
40
+ # if no attribute is set then check for the scheme env var
41
+ #
42
+ # @return [String] The ocunit class's scheme attribute
43
+ def scheme
44
+ scheme = @scheme
45
+
46
+ if !scheme
47
+ scheme = ENV['YOLO_OCUNIT_SCHEME']
48
+ end
49
+
50
+ return scheme
51
+ end
52
+
38
53
  #
39
54
  # Defines rake tasks available to the OCUnit class
40
55
  #
@@ -36,7 +36,7 @@ module Yolo
36
36
  # Returns the release class's mail_to attribute,
37
37
  # if no attribute is set then check for the config env var
38
38
  #
39
- # @return The release class's mail_to attribute
39
+ # @return [Array] The release class's mail_to attribute
40
40
  def mail_to
41
41
  mail_to = @mail_to
42
42
 
@@ -48,11 +48,26 @@ module Yolo
48
48
  return mail_to
49
49
  end
50
50
 
51
+ #
52
+ # Returns the release class's scheme attribute,
53
+ # if no attribute is set then check for the scheme env var
54
+ #
55
+ # @return [String] The release class's scheme attribute
56
+ def scheme
57
+ scheme = @scheme
58
+
59
+ if !scheme
60
+ scheme = ENV['YOLO_RELEASE_SCHEME']
61
+ end
62
+
63
+ return scheme
64
+ end
65
+
51
66
  #
52
67
  # Returns the release class's configuration attribute,
53
68
  # if no attribute is set then check for the config env var
54
69
  #
55
- # @return The release class's configuration attribute
70
+ # @return [String] The release class's configuration attribute
56
71
  def configuration
57
72
  config = @configuration
58
73
 
@@ -19,5 +19,18 @@ describe Yolo::Tasks::Ios::Build do
19
19
  @buildtask.configuration = "Debug"
20
20
  @buildtask.build_opts_string.should match(/CODE_SIGN_IDENTITY='' CODE_SIGNING_REQUIRED=NO/)
21
21
  end
22
+
23
+ it "should use the scheme if it is set" do
24
+ scheme = "TEST_SCHEME"
25
+ @buildtask.scheme = scheme
26
+ @buildtask.scheme.should eq(scheme)
27
+ end
28
+
29
+ it "should use the scheme env var if no scheme is set" do
30
+ scheme = "TEST_SCHEME"
31
+ ENV['YOLO_BUILD_SCHEME'] = scheme
32
+
33
+ @buildtask.scheme.should eq(scheme)
34
+ end
22
35
  end
23
36
  end
@@ -22,5 +22,18 @@ describe Yolo::Tasks::Ios::Calabash do
22
22
  it "should set test-reports/calabash as the default output directory" do
23
23
  @calabash.output_dir.should eq("test-reports/calabash")
24
24
  end
25
+
26
+ it "should use the scheme if it is set" do
27
+ scheme = "TEST_SCHEME"
28
+ @calabash.scheme = scheme
29
+ @calabash.scheme.should eq(scheme)
30
+ end
31
+
32
+ it "should use the scheme env var if no scheme is set" do
33
+ scheme = "TEST_SCHEME"
34
+ ENV['YOLO_CALABASH_SCHEME'] = scheme
35
+
36
+ @calabash.scheme.should eq(scheme)
37
+ end
25
38
  end
26
39
  end
@@ -14,6 +14,19 @@ describe Yolo::Tasks::Ios::OCUnit do
14
14
  it "should set junit as the default test output" do
15
15
  @ocunit.test_output.should eq(:junit)
16
16
  end
17
+
18
+ it "should use the scheme if it is set" do
19
+ scheme = "TEST_SCHEME"
20
+ @ocunit.scheme = scheme
21
+ @ocunit.scheme.should eq(scheme)
22
+ end
23
+
24
+ it "should use the scheme env var if no scheme is set" do
25
+ scheme = "TEST_SCHEME"
26
+ ENV['YOLO_OCUNIT_SCHEME'] = scheme
27
+
28
+ @ocunit.scheme.should eq(scheme)
29
+ end
17
30
  end
18
31
 
19
32
  describe "when building an options string" do
@@ -210,5 +210,18 @@ describe Yolo::Tasks::Ios::Release do
210
210
  @release.mail_to.should eq(mail_to)
211
211
  end
212
212
 
213
+ it "should use the scheme if it is set" do
214
+ scheme = "TEST_SCHEME"
215
+ @release.scheme = scheme
216
+ @release.scheme.should eq(scheme)
217
+ end
218
+
219
+ it "should use the scheme env var if no scheme is set" do
220
+ scheme = "TEST_SCHEME"
221
+ ENV['YOLO_RELEASE_SCHEME'] = scheme
222
+
223
+ @release.scheme.should eq(scheme)
224
+ end
225
+
213
226
  end
214
227
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fish