shenzhen 0.3.1 → 0.4.0

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: 40a600e0bd82337030039987135497e70d020729
4
- data.tar.gz: 4622921e0dbd0f0eb7aed77633029afab7d7b9ba
3
+ metadata.gz: 1f9a187824ca91b35c51b6bfe2e40f6695e1a8e5
4
+ data.tar.gz: fda3a6e48445a993313b4ec17d541c589af08c74
5
5
  SHA512:
6
- metadata.gz: 563f8060327384c06916c78f09c8d525598762d028a0696f79641ff2b05f045ac52334bd73a4d025e8a1b11bc4687b4553c280243a000adf8d8b61c0ea34edc0
7
- data.tar.gz: 8954faa5264bbbc988ac6122d68d0da68290f09cc2c357adcefad44c78c4c77eb331a12a7c7049262b0ce5bf719ececeff94687cb7ccfcc05291683a3e93ae1a
6
+ metadata.gz: 19fabb021e532109513e279beeb8ee561dbb85e65dd0ee78cc86bd7609bd880bf56714c7a22f52f18779802e2c8ef10695364060052652f9e1bb69964c5ad6c5
7
+ data.tar.gz: 439c65ea3ce6e5e6f3dddf4b9b9727f9d90c1a476c89be95c34dd2665fa13d2c35c4cf5906dc7c8550bc400f01d2bbb3039cead2e1acd4dcd954e258e0cf14b4
data/Gemfile.lock CHANGED
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shenzhen (0.3.1)
4
+ shenzhen (0.4.0)
5
5
  commander (~> 4.1)
6
+ dotenv (~> 0.7)
6
7
  faraday (~> 0.8)
7
8
  faraday_middleware (~> 0.9)
8
9
  json (~> 1.8)
@@ -12,6 +13,7 @@ GEM
12
13
  specs:
13
14
  commander (4.1.3)
14
15
  highline (~> 1.6.11)
16
+ dotenv (0.7.0)
15
17
  faraday (0.8.7)
16
18
  multipart-post (~> 1.1)
17
19
  faraday_middleware (0.9.0)
data/README.md CHANGED
@@ -40,6 +40,22 @@ Shenzhen adds the `ipa` command to your PATH:
40
40
  $ ipa build
41
41
  $ ipa distribute
42
42
 
43
+ #### TestFlight Distribution
44
+
45
+ $ ipa distribute:testflight -a API_TOKEN -T TEAM_TOKEN
46
+
47
+ > Shenzhen will load credentials from the environment variables `TESTFLIGHT_API_TOKEN` and `TESTFLIGHT_TEAM_TOKEN` unless otherwise specified.
48
+
49
+ #### HockeyApp Distribution
50
+
51
+ $ ipa distribute:hockeyapp -t API_TOKEN
52
+
53
+ > Shenzhen will load credentials from the environment variables `TESTFLIGHT_API_TOKEN` and `TESTFLIGHT_TEAM_TOKEN` unless otherwise specified.
54
+
55
+ #### FTP Distribution
56
+
57
+ $ ipa distribute:hockeyapp -h HOST -u USER -p PASSWORD -P FTP_PATH
58
+
43
59
  ## Contact
44
60
 
45
61
  Mattt Thompson
data/bin/ipa CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'dotenv'
4
+ Dotenv.load
5
+
3
6
  require 'commander/import'
4
7
 
5
8
  $:.push File.expand_path("../../lib", __FILE__)
data/lib/shenzhen.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Shenzhen
2
- VERSION = '0.3.1'
2
+ VERSION = '0.4.0'
3
3
  end
4
4
 
5
5
  require 'shenzhen/agvtool'
@@ -1,5 +1,5 @@
1
1
  command :build do |c|
2
- c.syntax = 'ipa build [options] [output]'
2
+ c.syntax = 'ipa build [options]'
3
3
  c.summary = 'Create a new .ipa file for your app'
4
4
  c.description = ''
5
5
 
@@ -24,10 +24,10 @@ command :build do |c|
24
24
  determine_workspace_or_project! unless @workspace || @project
25
25
 
26
26
  determine_configuration! unless @configuration
27
- say_error "Configuration #{@configuration} not found" and abort unless @xcodebuild_info.build_configurations.include?(@configuration)
27
+ say_error "Configuration #{@configuration} not found" and abort unless (@xcodebuild_info.build_configurations.include?(@configuration) rescue false)
28
28
 
29
29
  determine_scheme! unless @scheme
30
- say_error "Scheme #{@scheme} not found" and abort unless @xcodebuild_info.schemes.include?(@scheme)
30
+ say_error "Scheme #{@scheme} not found" and abort unless (@xcodebuild_info.schemes.include?(@scheme) rescue false)
31
31
 
32
32
  say_warning "Building \"#{@workspace || @project}\" with Scheme \"#{@scheme}\" and Configuration \"#{@configuration}\"\n" unless options.quiet
33
33
 
@@ -55,15 +55,15 @@ command :'distribute:hockeyapp' do |c|
55
55
  c.option '--notify', "Notify permitted teammates to install the build"
56
56
  c.option '--downloadOff', "Upload but don't allow download of this version just yet"
57
57
  c.option '--mandatory', "Make this update mandatory"
58
-
58
+
59
59
  c.action do |args, options|
60
60
  determine_file! unless @file = options.file
61
- say_error "Missing or unspecified .ipa file" and abort unless @file and File.exist?(@file)
61
+ say_warning "Missing or unspecified .ipa file" unless @file and File.exist?(@file)
62
62
 
63
63
  determine_dsym! unless @dsym = options.dsym
64
- say_error "Specified dSYM.zip file doesn't exist" if @dsym and !File.exist?(@dsym)
64
+ say_warning "Specified dSYM.zip file doesn't exist" if @dsym and !File.exist?(@dsym)
65
65
 
66
- determine_hockeyapp_api_token! unless @api_token = options.token
66
+ determine_hockeyapp_api_token! unless @api_token = options.token || ENV['HOCKEYAPP_API_TOKEN']
67
67
  say_error "Missing API Token" and abort unless @api_token
68
68
 
69
69
  determine_notes! unless @notes = options.notes
@@ -57,11 +57,11 @@ command :'distribute:testflight' do |c|
57
57
  determine_dsym! unless @dsym = options.dsym
58
58
  say_error "Specified dSYM.zip file doesn't exist" if @dsym and !File.exist?(@dsym)
59
59
 
60
- determine_testflight_api_token! unless @api_token = options.api_token
60
+ determine_testflight_api_token! unless @api_token = options.api_token || ENV['TESTFLIGHT_API_TOKEN']
61
61
  say_error "Missing API Token" and abort unless @api_token
62
62
 
63
- determine_testflight_team_token! unless @team_token = options.team_token
64
-
63
+ determine_testflight_team_token! unless @team_token = options.team_token || ENV['TESTFLIGHT_TEAM_TOKEN']
64
+
65
65
  determine_notes! unless @notes = options.notes
66
66
  say_error "Missing release notes" and abort unless @notes
67
67
 
data/shenzhen.gemspec CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency "json", "~> 1.8"
17
17
  s.add_dependency "faraday", "~> 0.8"
18
18
  s.add_dependency "faraday_middleware", "~> 0.9"
19
+ s.add_dependency "dotenv", "~> 0.7"
19
20
 
20
21
  s.add_development_dependency "rspec"
21
22
  s.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shenzhen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-23 00:00:00.000000000 Z
11
+ date: 2013-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '0.7'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '0.7'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement