blast_off 0.4.0 → 0.5.0

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: feae66a594b3e6f3eb76901e643710dbdd5b4416
4
- data.tar.gz: bfa3be21c8a40e7547008cc3c5f170e79f99741c
3
+ metadata.gz: bdbb21411e79882859fd66b6e211218cc4b190f8
4
+ data.tar.gz: cb316ac50d0159de07a4738815c44759e6934edf
5
5
  SHA512:
6
- metadata.gz: 08259f43dcc167f72abe9b1a8ed39dfbec29fa473bbd7666f8a536f26d8526da9d3e64bcee254e13ad7ef216a10d2ec7a7ae0de1ea223408a857137e19e77362
7
- data.tar.gz: cb8876dd26b18931c16942ae8c73d8cf4ed512a2c6a1fd021d4d9ec65152a33218e0348c096161d706095f77786dbd38d31355ea0fea81928ad13e0b00719d0d
6
+ metadata.gz: 1da81746aa89ed746fb18c9e424917899caacd57ac0cb16f5947910161c5669a2253c059bb3bcfee4c6a85fcbfd8047eaf7250c1fcb9e5d2f84a9519f75820e5
7
+ data.tar.gz: 73758f9b718fe7ff313a3a43610a46eea5c902648c330d08c4e8417c0bda215f5fa8c21cf9f0c2e7416cd3c2a4fb856fd1a04d97788b1fdacd2aedebf739fce7
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## [v0.5.0](https://github.com/linjunpop/blast_off/tree/v0.5.0)
6
+
7
+ * Move QR image to the bottom of page.
8
+ * [Qiniu] Custom domain and secure connection.
9
+
5
10
  ## [v0.4.0](https://github.com/linjunpop/blast_off/tree/v0.4.0)
6
11
 
7
12
  * Generate upload token based on bucket and key.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # BlastOff
1
+ # BlastOff :rocket:
2
2
 
3
3
  An iOS beta distribution tool.
4
4
 
@@ -6,10 +6,12 @@ require 'erb'
6
6
  module BlastOff
7
7
  module Services
8
8
  class Qiniu
9
- def initialize(ipa_file_path:nil, access_key:'', secret_key:'', bucket:'')
9
+ def initialize(ipa_file_path:nil, access_key:'', secret_key:'', bucket:'', custom_domain:'', use_secure_connection:true)
10
10
  @ipa_file_path = ipa_file_path
11
11
  @ipa_file = ::IpaReader::IpaFile.new(ipa_file_path)
12
12
  @bucket = bucket
13
+ @custom_domain = custom_domain || "#{@bucket}.qiniudn.com"
14
+ @use_secure_connection = use_secure_connection
13
15
 
14
16
  ::Qiniu::RS.establish_connection!(
15
17
  enable_debug: false,
@@ -46,7 +48,11 @@ module BlastOff
46
48
  end
47
49
 
48
50
  def base_url
49
- "http://#{@bucket}.qiniudn.com/#{base_path}"
51
+ "#{protocal}://#{@custom_domain}/#{base_path}"
52
+ end
53
+
54
+ def protocal
55
+ @use_secure_connection ? "https" : "http"
50
56
  end
51
57
 
52
58
  def upload_string(string, name, mime_type)
@@ -39,11 +39,11 @@
39
39
  <body>
40
40
  <div class="container">
41
41
  <h1><%= ipa.name %></h1>
42
- <div class="qr-image"></div>
43
42
  <h2>Version: <%= ipa.short_version %> (<%= ipa.version %>)</h2>
44
43
  <p>
45
44
  <a class="button" href="<%= install_url %>">Install</a>
46
45
  </p>
46
+ <div class="qr-image"></div>
47
47
  </div>
48
48
  <script type="text/javascript" charset="utf-8">
49
49
  var qrImageUrl = "http://api.qrserver.com/v1/create-qr-code/?size=250x250&data=" + document.URL;
@@ -1,3 +1,3 @@
1
1
  module BlastOff
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blast_off
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: '0'
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.0.14
186
+ rubygems_version: 2.1.11
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: An iOS beta distribution tool.