blast_off 0.0.1 → 0.1.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: e7b002afbfb51f56c01ff7f590d4cd4cd626b3fe
4
- data.tar.gz: cee6323c3969bc87fc61737ed14b2514bd3a5867
3
+ metadata.gz: 578457d20fa073b4c12678a03df66d030b865c2e
4
+ data.tar.gz: c02318b3fb7a840a1e68539f56931d653a813e04
5
5
  SHA512:
6
- metadata.gz: 95fc1ab54143e4587eae88e6b8a8b4dfecf77daf711c381c6f283347abf70511bc4384ac4e2ec05306f088204c941e882d9e2ea686f592ed68462cccdf6b882a
7
- data.tar.gz: 6e8bc0a7a1d12dbecc2ab83c08f7221cdca5d6c55cae66710f9444eac466513b06722567e1589939b37c0eb8fbed56b4f15bec6dcfc93900e57bb91c7294d2ed
6
+ metadata.gz: 0b775b2d34a2967816f5d409ec4f3fb7df87c177ffea59b07a9bfa220f95921b5cbdb9d065a6a358c3dd5077af93433e72d0ed5ffd33a0aa98dcc2548ecb7ce8
7
+ data.tar.gz: 7516f315ddb379016790c238766ba2956e4e37898c6ad6e7734f0cf654019475735c576c8783a47386c2694b07f340bc4d037f0bb922c24b29e1d66bac58a127
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # CHANGELOG
2
+
3
+ ## master
4
+
5
+ ## [v0.1.0](https://github.com/linjunpop/blast_off/tree/v0.1.0)
6
+
7
+ * Add html template.
8
+
9
+ ## [v0.0.1](https://github.com/linjunpop/blast_off/tree/v0.0.1)
10
+
11
+ * Implemented distribute to Qiniu(http://qiniu.com).
12
+
data/README.md CHANGED
@@ -63,6 +63,10 @@ Example:
63
63
 
64
64
  `$ blast_off qiniu --ipa_file_path=Foobar.ipa --bucket=foobar --access_key=$QINIU_ACCESS_KEY --secret_key=$QINIU_SECRET_KEY`
65
65
 
66
+ ## Changelog
67
+
68
+ https://github.com/linjunpop/blast_off/wiki/Changelog
69
+
66
70
  ## Contributing
67
71
 
68
72
  1. Fork it
@@ -70,3 +74,7 @@ Example:
70
74
  3. Commit your changes (`git commit -am 'Add some feature'`)
71
75
  4. Push to the branch (`git push origin my-new-feature`)
72
76
  5. Create new Pull Request
77
+
78
+
79
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/linjunpop/blast_off/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
80
+
@@ -1,5 +1,7 @@
1
1
  require 'tempfile'
2
+ require 'ostruct'
2
3
  require 'qiniu-rs'
4
+ require 'erb'
3
5
 
4
6
  module BlastOff
5
7
  module Services
@@ -80,9 +82,14 @@ module BlastOff
80
82
  end
81
83
 
82
84
  def html_template
83
- html_content = <<-EOS
84
- <a href="itms-services://?action=download-manifest&url=#{base_url}/manifest.plist">Download</a>
85
- EOS
85
+ opts = OpenStruct.new({
86
+ app_name: @ipa_file.name,
87
+ app_version: @ipa_file.version,
88
+ base_url: base_url
89
+ })
90
+ template_file = File.join(File.dirname(File.expand_path(__FILE__)), '../template/index.html.erb')
91
+
92
+ ::ERB.new(File.read(template_file)).result(opts.instance_eval {binding})
86
93
  end
87
94
 
88
95
  end
@@ -0,0 +1,50 @@
1
+ <html>
2
+ <head>
3
+ <meta charset=utf-8" />
4
+ <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
5
+
6
+ <style type="text/css" media="all">
7
+ * {
8
+ display: border-box;
9
+ }
10
+ body {
11
+ margin: 0;
12
+ font-family: 'Avenir Next', 'Helvetica Neue', Arial, Helvetica, sans-serif;
13
+ }
14
+ .container {
15
+ margin: 30px auto 0 auto;
16
+ border: 1px solid #ccc;
17
+ width: 80vw;
18
+ max-width: 400px;
19
+ text-align: center;
20
+ }
21
+ .button {
22
+ margin: 0 10px 0 10px;
23
+ line-height: 60px;
24
+ font-size: 28px;
25
+ display: block;
26
+ color: white;
27
+ text-decoration: none;
28
+ text-transform: uppercase;
29
+ background-color: rgb(51, 204, 204);
30
+ }
31
+ h1 {
32
+ color: rgb(51, 204, 204);
33
+ }
34
+ </style>
35
+
36
+ <title><%= app_name %></title>
37
+ </head>
38
+
39
+ <body>
40
+ <div class="container">
41
+ <h1><%= app_name %></h1>
42
+ <img src="http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=<%= base_url %>/index.html" alt="" />
43
+ <h2>Version: <%= app_version %></h2>
44
+ <p>
45
+ <a class="button" href="itms-services://?action=download-manifest&url=<%= base_url %>/manifest.plist">Install</a>
46
+ </p>
47
+ </div>
48
+ </body>
49
+ </html>
50
+
@@ -1,3 +1,3 @@
1
1
  module BlastOff
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.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.0.1
4
+ version: 0.1.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-12 00:00:00.000000000 Z
11
+ date: 2013-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,6 +118,7 @@ extra_rdoc_files: []
118
118
  files:
119
119
  - .gitignore
120
120
  - .rspec
121
+ - CHANGELOG.md
121
122
  - Gemfile
122
123
  - LICENSE.txt
123
124
  - README.md
@@ -127,6 +128,7 @@ files:
127
128
  - lib/blast_off.rb
128
129
  - lib/blast_off/services.rb
129
130
  - lib/blast_off/services/qiniu.rb
131
+ - lib/blast_off/template/index.html.erb
130
132
  - lib/blast_off/version.rb
131
133
  - spec/blast_off/services/qiniu_spec.rb
132
134
  - spec/spec_helper.rb