motion-testflight 1.4 → 1.5

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bf654050bf3b2c9c27164dc95d7bf3d74a57b399
4
+ data.tar.gz: d1ed9f84b5f93c05a732be4bc8e16b67d312034b
5
+ SHA512:
6
+ metadata.gz: f87d56de278d7477681ac23ebdb1c5bf7b44caf4e5df472cdb0ad2eaf84f36152f660af9290b7c56edbe335004952b315f46e078c75e0ed190565a7f98b6338d
7
+ data.tar.gz: 162e441dacde0a0bf16f21a3b48c0f24e3cbb4686e005185080adc24999c4bb07297561381f868abde0179b495de7f89f5f92ea342f5d9ca909de3d1a590a57c
data/README.rdoc CHANGED
@@ -36,12 +36,22 @@ SDK and be submitted to the TestFlight platform.
36
36
  app.testflight.api_token = '<insert your API token here>'
37
37
  app.testflight.team_token = '<insert your team token here>'
38
38
  app.testflight.notify = true # default is false
39
+ app.testflight.identify_testers = true # default is false
39
40
  end
40
41
  end
41
42
  end
42
43
 
43
44
  You can retrieve the values for +api_token+ and +team_token+ in your TestFlight account page.
44
45
 
46
+ If you're using Testflight 1.2 or above, you should also add the app_token.
47
+
48
+ # ...
49
+ app.testflight do
50
+ # ...
51
+
52
+ app.testflight.app_token = '<insert your APP token here>'
53
+ end
54
+
45
55
  4. (Optional) You can also set up distribution lists, if needed.
46
56
 
47
57
  Motion::Project::App.setup do |app|
@@ -27,7 +27,7 @@ unless defined?(Motion::Project::Config)
27
27
  end
28
28
 
29
29
  class TestFlightConfig
30
- attr_accessor :sdk, :api_token, :team_token, :distribution_lists, :notify
30
+ attr_accessor :sdk, :api_token, :team_token, :app_token, :distribution_lists, :notify, :identify_testers
31
31
 
32
32
  def initialize(config)
33
33
  @config = config
@@ -48,8 +48,18 @@ class TestFlightConfig
48
48
  create_launcher
49
49
  end
50
50
 
51
+ def app_token=(app_token)
52
+ @app_token = app_token
53
+ create_launcher if team_token
54
+ end
55
+
56
+ def identify_testers=(identify_testers)
57
+ @identify_testers = identify_testers
58
+ create_launcher
59
+ end
60
+
51
61
  def inspect
52
- {:sdk => sdk, :api_token => api_token, :team_token => team_token, :distribution_lists => distribution_lists}.inspect
62
+ {:sdk => sdk, :api_token => api_token, :team_token => team_token, :app_token => app_token, :distribution_lists => distribution_lists}.inspect
53
63
  end
54
64
 
55
65
  private
@@ -61,7 +71,8 @@ class TestFlightConfig
61
71
 
62
72
  if Object.const_defined?('TestFlight') and !UIDevice.currentDevice.model.include?('Simulator')
63
73
  NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidBecomeActiveNotification, object:nil, queue:nil, usingBlock:lambda do |notification|
64
- TestFlight.takeOff('#{team_token}')
74
+ #{'TestFlight.setDeviceIdentifier(UIDevice.currentDevice.uniqueIdentifier)' if identify_testers}
75
+ TestFlight.takeOff('#{app_token || team_token}')
65
76
  end)
66
77
  end
67
78
  EOF
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-testflight
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
5
- prerelease:
4
+ version: '1.5'
6
5
  platform: ruby
7
6
  authors:
8
7
  - Laurent Sansonetti
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-26 00:00:00.000000000 Z
11
+ date: 2013-04-01 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: motion-testflight allows RubyMotion projects to easily embed the TestFlight
15
14
  SDK and be submitted to the TestFlight platform.
@@ -24,26 +23,25 @@ files:
24
23
  - lib/motion-testflight.rb
25
24
  homepage: http://www.rubymotion.com
26
25
  licenses: []
26
+ metadata: {}
27
27
  post_install_message:
28
28
  rdoc_options: []
29
29
  require_paths:
30
30
  - lib
31
31
  required_ruby_version: !ruby/object:Gem::Requirement
32
- none: false
33
32
  requirements:
34
- - - ! '>='
33
+ - - '>='
35
34
  - !ruby/object:Gem::Version
36
35
  version: '0'
37
36
  required_rubygems_version: !ruby/object:Gem::Requirement
38
- none: false
39
37
  requirements:
40
- - - ! '>='
38
+ - - '>='
41
39
  - !ruby/object:Gem::Version
42
40
  version: '0'
43
41
  requirements: []
44
42
  rubyforge_project:
45
- rubygems_version: 1.8.23
43
+ rubygems_version: 2.0.3
46
44
  signing_key:
47
- specification_version: 3
45
+ specification_version: 4
48
46
  summary: TestFlight integration for RubyMotion projects
49
47
  test_files: []