motion-deploygate 0.3.1 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/motion-deploygate.rb +10 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acf03704d8085fcbfa8c5accdd7dbdc2fd86f370
4
- data.tar.gz: 18dec5bbff71e768f42e91d6d65c8ad9d94db5fb
3
+ metadata.gz: 2c3709aab817a26b6f058a32da945f88acec2d0f
4
+ data.tar.gz: 34300c18ff4034aa1147da46dca629dc154fd032
5
5
  SHA512:
6
- metadata.gz: 712b11a14014f89bf8ddcf312ac4ac298a2569f6151f18325bd737273189e7bf463b4750bb748dee067a388dbc38c4bab98538531ee4cbd8e52034ba1b80de00
7
- data.tar.gz: b0451ea337fe4f1f14d4b9df1b286ac1ae14c2d4327cf670b2ef17900b5eefa2f6dbdf32b446346d73810dc957839777c426ec811a8368a0c69d26f3575fa3e4
6
+ metadata.gz: f0ae3c96e032eec34d18e4158d01d605c04f28adafb83145799497456056d045f184e509ce2d507a0e2dba40e2ba342be05db2035dac2dddce73811292e29a35
7
+ data.tar.gz: 485d417748202c2d623c0135717d59cecc3ca10bda07bfce0423bd0e45fc2d7f54dec9243f9eb43209b3332e23176b26113b3ff279fd4762c7065c3b6e2313d6
data/README.md CHANGED
@@ -45,7 +45,7 @@ Motion::Project::App.setup do |app|
45
45
  app.development do
46
46
  app.deploygate.user_id = '<user_id>'
47
47
  app.deploygate.api_key = '<api_key>'
48
- app.deploygate.user_infomation = true
48
+ app.deploygate.user_information = true
49
49
  app.deploygate.url_scheme = "deploygate.XXXXXXXXXXXX"
50
50
  app.deploygate.sdk = 'vendor/DeployGateSDK.framework'
51
51
  end
@@ -53,7 +53,7 @@ Motion::Project::App.setup do |app|
53
53
  end
54
54
  ```
55
55
 
56
- Then, add `application:didFinishLaunchingWithOptions:` method in your `AppDelegate` like the following.
56
+ Then, add `application:didFinishLaunchingWithOptions:` method in your `AppDelegate` like the following. (It will be generated automatically since ver 0.4)
57
57
 
58
58
  ```ruby
59
59
  class AppDelegate
@@ -23,6 +23,7 @@ class DeployGateConfig
23
23
  def user_infomation=(bool)
24
24
  @user_infomation = bool
25
25
  end
26
+ alias :user_information= :user_infomation=
26
27
 
27
28
  def url_scheme=(scheme)
28
29
  @config.info_plist['CFBundleURLTypes'] = [
@@ -58,6 +59,15 @@ if Object.const_defined?('DeployGateSDK') and !UIDevice.currentDevice.model.incl
58
59
  NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidFinishLaunchingNotification, object:nil, queue:nil, usingBlock:lambda do |notification|
59
60
  DeployGateSDK.sharedInstance.launchApplicationWithAuthor('#{@user_id}', key:'#{@api_key}', userInfomationEnabled:#{@user_infomation})
60
61
  end)
62
+
63
+ class #{@config.delegate_class}
64
+ unless #{@config.delegate_class}.method_defined?("application:openURL:sourceApplication:annotation:")
65
+ def application(application, openURL:url, sourceApplication:sourceApplication, annotation:annotation)
66
+ return DeployGateSDK.sharedInstance.handleOpenUrl(url, sourceApplication:sourceApplication, annotation:annotation)
67
+ end
68
+ end
69
+ end
70
+
61
71
  end
62
72
  EOF
63
73
  launcher_file = './app/deploygate_launcher.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-deploygate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2014-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake