blast_off 0.4.0 → 0.5.0
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/blast_off/services/qiniu.rb +8 -2
- data/lib/blast_off/template/index.html.erb +1 -1
- data/lib/blast_off/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bdbb21411e79882859fd66b6e211218cc4b190f8
|
|
4
|
+
data.tar.gz: cb316ac50d0159de07a4738815c44759e6934edf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1da81746aa89ed746fb18c9e424917899caacd57ac0cb16f5947910161c5669a2253c059bb3bcfee4c6a85fcbfd8047eaf7250c1fcb9e5d2f84a9519f75820e5
|
|
7
|
+
data.tar.gz: 73758f9b718fe7ff313a3a43610a46eea5c902648c330d08c4e8417c0bda215f5fa8c21cf9f0c2e7416cd3c2a4fb856fd1a04d97788b1fdacd2aedebf739fce7
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
@@ -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
|
-
"
|
|
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;
|
data/lib/blast_off/version.rb
CHANGED
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
|
+
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:
|
|
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.
|
|
186
|
+
rubygems_version: 2.1.11
|
|
187
187
|
signing_key:
|
|
188
188
|
specification_version: 4
|
|
189
189
|
summary: An iOS beta distribution tool.
|