TestFlightExporter 0.0.3 → 0.1.0.pre.stable

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: 052bc7e1678d11f15af785d88483aab0094603c5
4
- data.tar.gz: ffa7d445b1642cd57567aa408fdb5d8bbadde053
3
+ metadata.gz: 34d561cfa876b1e01b5da6a59111dd32783971a5
4
+ data.tar.gz: 5535d3a06a5d5a16a18fc92cb8e2557433942f04
5
5
  SHA512:
6
- metadata.gz: 9833004a1a88899d46dc819ddcc2aff002d69181df48dfa780dc321d00f280cebdf5fe101528fed70148f71b6ffd2bac640695ce7cde44321cc8706af56a3349
7
- data.tar.gz: 8556d2d824f1333a84ef7f30de19c35f8bfb04096bd7dc1740265f2658042c9e4aefd4af7fd0c6463df02f90cad1822516e90e73566c7e8662b82b23111e5b51
6
+ metadata.gz: 84f10e7c242fb3a04cfda958d0bfbe39b716eb1957c082d4f7ae8da5aaccfc916135ec2c20ca3c1126cab4111b3e3980ec8a31722ca4d6c6d372c2989770a250
7
+ data.tar.gz: 34c5612dca1ef483d36ffcf47cd7fef0ed41ef7261cfdc1c4acb2242d5036cf29402ba77b1a02189f31d093e902b8cc25267e3140668fd706b215d5150d41c4c
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <h3 align="center">
2
+ <a href="http://www.touchwonders.com"><img src="assets/tw_logo.png" alt="Touchwonders Logo" style="width:35%;"/></a>
3
+ </h3>
4
+
1
5
  # TestFlight Exporter
2
6
  **TL;DR**: TestFlight Exporter is a simple CLI tool that downloads archived builds from your TestFlightapp.com account.
3
7
 
@@ -16,7 +20,10 @@ TestFlight Exporter is available as a gem, which you can easily install by execu
16
20
  TestFlight Exporter is available as a simple CLI tool.
17
21
  You can invoke it by typing `tfexporter` on your terminal.
18
22
 
19
- Follow the setup assistent, which will configure the current TestFlight Exporter run to your needs. All selected builds and release notes will be saved in a folder named `out`.
23
+ Follow the setup assistent, which will configure the current TestFlight Exporter run to your needs. All selected builds and release notes will be saved in output folder specified by you.
24
+
25
+ Like all the CLI tool TestFlight Exporter comes with global options that you can use to fire the tool and take a break for a good coffee :coffee: .
26
+ Launch TestFlight exporter with `--help` option to have a quick overview about all of them.
20
27
 
21
28
  **Warning**: Depending on the number of builds you have in your TestFlight account, TestFlight Exporter could consume a lot of data/bandwidth.
22
29
 
@@ -39,6 +46,20 @@ And then execute:
39
46
 
40
47
  $ bundle install
41
48
 
49
+ ## Credits
50
+
51
+ TestFlight exporter is created by me, [Fabio Milano](https://twitter.com/fabiom_milano). I am an iOS Engineer at [Touchwonders](http://www.touchwonders.com/),
52
+ a mobile app agency based in the Netherlands .
53
+
54
+ At Touchwonders, we have been using TestFlightapp.com for the past few years to share the latest builds with our clients and to distribute Betas for [Highstreetapp](http://www.highstreetapp.com).
55
+
56
+ My goal was to create a script to export your app binaries in a fast and simple way, I hope you like it.
57
+
58
+ We'd like to thank the TestFlight team for their efforts – we were happy users of their services.
59
+ TestFlight will shutdown next week but I will maintain it until the shutdown.
60
+
61
+ Follow us on twitter @touchwonders and let me know what you think!
62
+
42
63
  ## License
43
64
 
44
65
  TestFlight exporter is available under the MIT license. See the LICENSE file for more info.
Binary file
data/bin/tfexporter CHANGED
@@ -14,8 +14,8 @@ class TestFlightExporterApplication
14
14
  include Commander::Methods
15
15
 
16
16
  def run
17
- program :version, Osiris::VERSION
18
- program :description, 'CLI for \'Test Flight Exporter\' - Migrate all your IPA automatically on your Mac'
17
+ program :version, TestFlightExporter::VERSION
18
+ program :description, 'CLI for \'Test Flight Exporter\' - Export your app binaries from Testflightapp.com in a fast and simple way'
19
19
  program :help, 'Author', 'Fabio Milano'
20
20
  program :help, 'Website', 'http://www.touchwonders.com'
21
21
  program :help_formatter, :compact
@@ -23,7 +23,8 @@ class TestFlightExporterApplication
23
23
  global_option '--verbose'
24
24
  global_option '--username STRING', String, 'Your testflight account username'
25
25
  global_option '--password STRING', String, 'Your testflight account password'
26
- global_option '--output STRING', String, 'Path to your output folder where your IPA will be downloaded'
26
+ global_option '--output STRING', String, 'Path to your output folder where your binaries will be downloaded'
27
+ global_option '--team STRING', String, 'Team name to process'
27
28
 
28
29
  always_trace!
29
30
 
@@ -34,7 +35,7 @@ class TestFlightExporterApplication
34
35
  c.action do |args, options|
35
36
  ENV['VERBOSE_MODE'] = 'true' if options.verbose
36
37
 
37
- TestFlightExporter::Setup.new.setup(options.username, options.password, options.output)
38
+ TestFlightExporter::Setup.new.setup(options.username, options.password, options.output, options.team)
38
39
  end
39
40
  end
40
41
 
@@ -15,9 +15,10 @@ module TestFlightExporter
15
15
  @team_list = Hash.new
16
16
  end
17
17
 
18
- def setup (username=nil, password=nil, output_folder=nil)
18
+ def setup (username=nil, password=nil, output_folder=nil, team=nil)
19
19
  @username = username
20
20
  @password = password
21
+ @team = team
21
22
  @path = output_folder
22
23
  @username = ask("Enter your TestFlight username: ") { |q| q.echo = true } if @username.nil?
23
24
  @password = ask("Enter your TestFlight password: ") { |q| q.echo = "*" } if @password.nil?
@@ -70,12 +71,21 @@ module TestFlightExporter
70
71
  Helper.exit_with_error "Something went wrong during authentication process."
71
72
  end
72
73
 
74
+ unless @team.nil?
75
+ process_teams false, @team
76
+ return
77
+ end
78
+
73
79
  if (@team_list.count > 1)
74
80
 
75
81
  # We have multiple teams for current account hence we present a nice menu selection to the user
76
82
  choose do |menu|
77
83
  menu.prompt = "Please choose your team? "
78
84
 
85
+ menu.choice(@current_team.to_s) do |choice|
86
+ process_teams false, choice
87
+ end
88
+
79
89
  @team_list.each do |team_name, team_id|
80
90
  menu.choice(team_name) do |choice|
81
91
  process_teams false, choice
@@ -110,7 +120,7 @@ module TestFlightExporter
110
120
  process_dashboard_page @agent.get("https://testflightapp.com/dashboard/applications/")
111
121
  end
112
122
  else
113
- if @current_team.eql? team_name
123
+ if @current_team.to_s == team_name
114
124
  # process current team
115
125
  Helper.log.info "Processing team: #{@current_team}".blue
116
126
 
@@ -1,3 +1,3 @@
1
- module Osiris
2
- VERSION = "0.0.3"
1
+ module TestFlightExporter
2
+ VERSION = "0.1.0-stable"
3
3
  end
@@ -5,10 +5,10 @@ require 'testflight_exporter/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "TestFlightExporter"
8
- spec.version = Osiris::VERSION
8
+ spec.version = TestFlightExporter::VERSION
9
9
  spec.authors = ["Fabio Milano"]
10
10
  spec.email = ["fabio@touchwonders.com"]
11
- spec.summary = %q{A simple tool that helps you migrating your TestFlight build to your local environment}
11
+ spec.summary = %q{A simple tool that helps you migrating your TestFlight binaries to your local environment}
12
12
  spec.homepage = ""
13
13
  spec.license = "MIT"
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TestFlightExporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0.pre.stable
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Milano
@@ -107,6 +107,7 @@ files:
107
107
  - LICENSE.txt
108
108
  - README.md
109
109
  - Rakefile
110
+ - assets/tw_logo.png
110
111
  - bin/tfexporter
111
112
  - lib/helpers.rb
112
113
  - lib/testflight_exporter.rb
@@ -127,14 +128,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
128
  version: '0'
128
129
  required_rubygems_version: !ruby/object:Gem::Requirement
129
130
  requirements:
130
- - - ">="
131
+ - - ">"
131
132
  - !ruby/object:Gem::Version
132
- version: '0'
133
+ version: 1.3.1
133
134
  requirements: []
134
135
  rubyforge_project:
135
136
  rubygems_version: 2.4.4
136
137
  signing_key:
137
138
  specification_version: 4
138
- summary: A simple tool that helps you migrating your TestFlight build to your local
139
+ summary: A simple tool that helps you migrating your TestFlight binaries to your local
139
140
  environment
140
141
  test_files: []