yolo 1.1.12 → 1.1.15

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -41,15 +41,18 @@ It is recommended that you have [rvm](https://rvm.io/) installed and do not inst
41
41
  * [Calabash](https://github.com/alexefish/yolo/wiki/Calabash)
42
42
 
43
43
  ## Jenkins
44
- Running yolo from your Jenkins jobs is very simple, the following plugins are required:
44
+ Running yolo from your Jenkins jobs is very simple.
45
45
 
46
- * [Rake Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Rake+Plugin)
47
- * [rvm](https://wiki.jenkins-ci.org/display/JENKINS/RVM+Plugin)
48
- * [Jenkins Git Plugin](http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin)
46
+ Ensure you project contains a Gemfile with the required gems, e.g:
49
47
 
50
- You can then simply add a rake build step to execute yolo rake tasks, e.g:
48
+ source 'https://rubygems.org'
51
49
 
52
- ![Jenkins Setup](http://i.imgur.com/7zm05pT.png)
50
+ gem 'rake'
51
+ gem 'yolo', '>= 1.1.12'
52
+
53
+ You can simply add an execute shell build step to execute yolo rake tasks, e.g:
54
+
55
+ ![Jenkins Setup](http://i.imgur.com/HoXQVoe.png)
53
56
 
54
57
  ## License
55
58
 
@@ -152,7 +152,7 @@ module Yolo
152
152
  #
153
153
  # @return [String] The full path to the current users home directory
154
154
  def user_directory
155
- Dir.pwd
155
+ File.expand_path('~')
156
156
  end
157
157
 
158
158
  #
@@ -20,7 +20,7 @@ module Yolo
20
20
  # @param info_plist_path [String] The full path to an xcode projects info_plist
21
21
  # @return [Xcode] An Xcode instance
22
22
  def initialize(info_plist_path = "")
23
- self.prefs_plist_path = "#{Dir.pwd}/Library/Preferences/com.apple.dt.Xcode.plist"
23
+ self.prefs_plist_path = "#{File.expand_path('~')}/Library/Preferences/com.apple.dt.Xcode.plist"
24
24
  self.info_plist_path = info_plist_path
25
25
  end
26
26
 
@@ -39,7 +39,7 @@ module Yolo
39
39
  # @return [String] The full path to Xcode's build location
40
40
  def build_path
41
41
  path = prefs["IDECustomDerivedDataLocation"]
42
- path = "#{Dir.pwd}/Library/Developer/Xcode/DerivedData" unless path
42
+ path = "#{File.expand_path('~')}/Library/Developer/Xcode/DerivedData" unless path
43
43
  path
44
44
  end
45
45
 
@@ -38,7 +38,7 @@ describe Yolo::Tools::Ios::Xcode do
38
38
 
39
39
  it "should recognise a default build folder location" do
40
40
  @xcode.stub(:prefs){{}}
41
- Dir.stub(:pwd){"path"}
41
+ File.stub(:expand_path){"path"}
42
42
  @xcode.build_path.should eq("path/Library/Developer/Xcode/DerivedData")
43
43
  end
44
44
  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.1.12
4
+ version: 1.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: