motion-fabric 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/motion-fabric.rb +13 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5481157a15ef8f2e2a2e30855a42e7818df24be
4
- data.tar.gz: 83097f1a1c3a0e8550dc8aa6d656b0edbf249d3c
3
+ metadata.gz: e6fdcc31b873d10220bec84619c51fae77599de3
4
+ data.tar.gz: c59c891b77bfee86d42746ccd12d9e789f003a33
5
5
  SHA512:
6
- metadata.gz: 13ce83dbb9553a8bcbb32424a5c7d73ce5fff9be923a12c1461ac80f06ff507972117ccc941efa3ff63a150156cc9bf5da78682d829ad9fd502478176816d4ab
7
- data.tar.gz: cb1c625d502e9627e10662a50d78187cb7651fe8158ad681f2932b1f75c0566f5189825554e92fa53142fd6c3f07474782f51fc2e23a1eeebb6a587ff2378ac2
6
+ metadata.gz: a262984785728861b92ec6b847af140026da52e92f5e436afd3b65f9ac9d26c42325985f0bec0c52193c5f3a562b9d6699ada07da81a389ac1a8695b6491a485
7
+ data.tar.gz: 575163751ea4a52a377838aedd2e59b7f3785ea00a869bd01277f3bbf19552afc361f845a486ae81f1f4f1e1f7d559db476577a5a248279b9976c6947fe8969b
data/lib/motion-fabric.rb CHANGED
@@ -120,6 +120,7 @@ def fabric_run(platform)
120
120
  end
121
121
 
122
122
  namespace :fabric do
123
+ desc 'Create a new app in Fabric'
123
124
  task :setup do
124
125
  # Build for the simulator so we generate the data needed by the "run" tool
125
126
  Rake::Task["build:simulator"].execute
@@ -131,6 +132,7 @@ namespace :fabric do
131
132
  Rake::Task["simulator"].execute
132
133
  end
133
134
 
135
+ desc 'Upload a build to Crashlytics'
134
136
  task :upload do
135
137
  App.config.fabric.beta_block.call if App.config.fabric.beta_block
136
138
 
@@ -147,15 +149,25 @@ namespace :fabric do
147
149
  App.info "Fabric", "Uploading IPA"
148
150
  notes_path = File.join(Dir.tmpdir, 'fabric-notes.txt')
149
151
  open(notes_path, 'w') { |io| io.write ENV['notes'] }
150
- system(%Q{#{pods_root}/Crashlytics/submit #{api_key} #{build_secret} -ipaPath "#{App.config.archive}" -notesPath "#{notes_path}"})
152
+
153
+ args = ""
154
+ args << " -ipaPath \"#{App.config.archive}\""
155
+ args << " -notesPath \"#{notes_path}\""
156
+ args << " -emails \"#{ENV['emails']}\"" if ENV['emails']
157
+ args << " -groupAliases \"#{ENV['groups']}\"" if ENV['groups']
158
+ args << " -notifications \"#{ENV['notifications']}\"" if ENV['notifications']
159
+
160
+ system(%Q{#{pods_root}/Crashlytics/submit #{api_key} #{build_secret} #{args}})
151
161
  end
152
162
  end
153
163
 
154
164
  namespace :dsym do
165
+ desc 'Upload the dSYM file for the device executable to Crashlytics'
155
166
  task :device do
156
167
  fabric_run(App.config_without_setup.deploy_platform)
157
168
  end
158
169
 
170
+ desc 'Upload the dSYM file for the simulator executable to Crashlytics'
159
171
  task :simulator do
160
172
  fabric_run(App.config_without_setup.local_platform)
161
173
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - HipByte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: motion-cocoapods