wox 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.rvmrc +1 -0
  2. data/README.md +87 -0
  3. data/lib/wox/version.rb +1 -1
  4. metadata +5 -3
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm 1.8.7
@@ -0,0 +1,87 @@
1
+ # The Wizard of Xcode
2
+
3
+ wox is a ruby gem that adds useful rake tasks in order to have happier iOS devs.
4
+
5
+ ## Install
6
+
7
+ First set up bundler in your xcode app directory (unless you already have!)
8
+
9
+ $ cd ~/code/angry_turds
10
+ $ gem install bundler
11
+ $ bundle init
12
+
13
+ Then edit your Gemfile to look something like this:
14
+
15
+ # Gemfile
16
+ source :rubygems
17
+ gem "wox"
18
+
19
+ Then run the bundle command:
20
+
21
+ $ bundle
22
+
23
+ Now, create a Rakefile (unless you already have one!):
24
+
25
+ # Rakefile
26
+ require 'bundler'
27
+ Bundler.require
28
+
29
+ Wox::Tasks.create :info_plist => 'Resources/Info.plist' do
30
+ build :debug, :configuration => 'Debug'
31
+ end
32
+
33
+ Now run rake -T to show you the available rake commands and you should see something like this:
34
+
35
+ $ rake -T
36
+ rake build:debug # Build angry_turds 0.1 with Debug configuration
37
+ rake info:configurations # List available configurations
38
+ rake info:sdks # List available sdks
39
+ $ rake build:debug
40
+ Building angry_turds 0.3 configuration:Debug
41
+ Success. Results in build/build-Debug.log
42
+
43
+ If you get an error you might need to check the path of the info plist file. We use that to get the version number of the app.
44
+
45
+ ## Moar stuff!
46
+
47
+ Ok so there's a few more things you can do, like creating ipa files and publishing to TestFlight. That looks like this:
48
+
49
+ # Rakefile
50
+ Wox::Tasks.create :info_plist => 'Resources/Info.plist', :sdk => 'iphoneos', :configuration => 'Release' do
51
+ build :debug, :configuration => 'Debug'
52
+
53
+ build :release, :developer_certificate => 'iPhone Developer: Dangerous Dave (9GZ84DL0DZ)' do
54
+ ipa :app_store, :provisioning_profile => 'App Store'
55
+ ipa :adhoc, :provisioning_profile => 'Team Provisioning Profile' do
56
+ testflight :publish, :api_token => 'nphsZ6nVXMl0brDEsevLY0wRfU6iP0NLaQH3nqoh8jG',
57
+ :team_token => 'Qfom2HnGGJnXrUVnOKAxKAmpNO3wdQ9panhtqcA',
58
+ :notes => proc { File.read("CHANGELOG") },
59
+ :notify => 'Internal'
60
+
61
+ end
62
+ end
63
+ end
64
+
65
+ There's a few things to notice here. Some tasks need to be nested inside other tasks. This allows them to share environment variables. For example :configuration => 'Release' is on the outer most scope at the top there. That sets the default for all the tasks inside. Any task can override the default like the first build :debug task does. The build :release task sets a developer certificate here which is then shared by the two inner ipa tasks.
66
+
67
+ rake -T again:
68
+
69
+ $ rake -T
70
+ rake build:debug # Build angry_turds 0.1 with Debug configuration
71
+ rake build:release # Build angry_turds 0.1 with Release configuration
72
+ rake info:configurations # List available configurations
73
+ rake info:sdks # List available sdks
74
+ rake ipa:adhoc # Creates build/angry_turds-0.1-release-adhoc.ipa
75
+ rake ipa:app_store # Creates build/angry_turds-0.1-release-app_store.ipa
76
+ rake testflight:publish # Publishes build/angry_turds-0.1-release-adhoc.ipa to testflight
77
+
78
+ You'll need to sign up to [TestFlight](http://testflightapp.com) to get your API key and team token which you can plug in here.
79
+
80
+ Also check your development certificate and provisioning profile from inside Xcode.
81
+
82
+ ## Wrapping up
83
+
84
+ This is very much a WIP! So please log any bugs or feedback you might have and feel free to fork and go nuts!
85
+
86
+
87
+
@@ -1,3 +1,3 @@
1
1
  module Wox
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wox
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
  - Dave Newman
@@ -43,7 +43,9 @@ extra_rdoc_files: []
43
43
 
44
44
  files:
45
45
  - .gitignore
46
+ - .rvmrc
46
47
  - Gemfile
48
+ - README.md
47
49
  - Rakefile
48
50
  - lib/wox.rb
49
51
  - lib/wox/build_environment.rb