blast_off 0.1.0 → 0.2.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: 578457d20fa073b4c12678a03df66d030b865c2e
4
- data.tar.gz: c02318b3fb7a840a1e68539f56931d653a813e04
3
+ metadata.gz: 1202d1d5e2f9986fe696bf9d5380561292d91e45
4
+ data.tar.gz: 35baf8634c4c525a5e37220a8a5f85f5dd6beb5d
5
5
  SHA512:
6
- metadata.gz: 0b775b2d34a2967816f5d409ec4f3fb7df87c177ffea59b07a9bfa220f95921b5cbdb9d065a6a358c3dd5077af93433e72d0ed5ffd33a0aa98dcc2548ecb7ce8
7
- data.tar.gz: 7516f315ddb379016790c238766ba2956e4e37898c6ad6e7734f0cf654019475735c576c8783a47386c2694b07f340bc4d037f0bb922c24b29e1d66bac58a127
6
+ metadata.gz: f63439b3cde6a62bb732e5c170efa7df41db779086f2031232ccb0a554e1d8eeb1c8cc23105b021753403acc483bc522364e03f7d8c10a6c9321cf6859edb9b8
7
+ data.tar.gz: 041bff9493d50b1bdbc72abecd012042e1442f7fb7bb269b23346bbd2c229850e44f4e9b87850faa3ab0a4e1e52e07537e52040eedbb9d9d135f918e03567546
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ script: "bundle exec rspec spec"
3
+ rvm:
4
+ - 2.0.0
5
+ - ruby-head
6
+
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## [v0.2.0](https://github.com/linjunpop/blast_off/tree/v0.2.0)
6
+
7
+ * Let services' `generate` method return URL address.
8
+ * Use [goQR.me](http://goqr.me) to generate QR code, as Google chart infographics has been deprecated.
9
+ * Disable debug mode of qiniu-rs gem.
10
+
5
11
  ## [v0.1.0](https://github.com/linjunpop/blast_off/tree/v0.1.0)
6
12
 
7
13
  * Add html template.
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  An iOS beta distribution tool.
4
4
 
5
+ [![Build Status](https://travis-ci.org/linjunpop/blast_off.png?branch=master)](https://travis-ci.org/linjunpop/blast_off)
6
+ [![Gem Version](https://badge.fury.io/rb/blast_off.png)](http://badge.fury.io/rb/blast_off)
7
+ [![Code Climate](https://codeclimate.com/github/linjunpop/blast_off.png)](https://codeclimate.com/github/linjunpop/blast_off)
8
+
5
9
  Supported services:
6
10
 
7
11
  * Qiniu(http://qiniu.com)
@@ -63,9 +67,7 @@ Example:
63
67
 
64
68
  `$ blast_off qiniu --ipa_file_path=Foobar.ipa --bucket=foobar --access_key=$QINIU_ACCESS_KEY --secret_key=$QINIU_SECRET_KEY`
65
69
 
66
- ## Changelog
67
-
68
- https://github.com/linjunpop/blast_off/wiki/Changelog
70
+ ## [Changelog](CHANGELOG.md)
69
71
 
70
72
  ## Contributing
71
73
 
data/bin/blast_off CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'gli'
3
+ require 'rainbow'
3
4
  require 'blast_off'
4
5
 
5
6
  include GLI::App
@@ -28,12 +29,13 @@ command :qiniu do |c|
28
29
  help_now!('Secret Key is required') unless options[:secret_key]
29
30
  help_now!('Bucket is required') unless options[:bucket]
30
31
 
31
- BlastOff::Services::Qiniu.new(
32
+ url = BlastOff::Services::Qiniu.new(
32
33
  ipa_file_path: options[:ipa_file_path],
33
34
  access_key: options[:access_key],
34
35
  secret_key: options[:secret_key],
35
36
  bucket: options[:bucket]
36
37
  ).distribute
38
+ puts url.foreground(:white).background(:blue)
37
39
  end
38
40
  end
39
41
 
@@ -12,6 +12,7 @@ module BlastOff
12
12
  @qiniu_bucket = bucket
13
13
 
14
14
  ::Qiniu::RS.establish_connection!(
15
+ enable_debug: false,
15
16
  access_key: access_key,
16
17
  secret_key: secret_key
17
18
  )
@@ -40,7 +41,7 @@ module BlastOff
40
41
 
41
42
  upload(@ipa_file_path, "#{@ipa_file.name}.ipa")
42
43
 
43
- puts "#{base_url}/index.html".foreground(:white).background(:blue)
44
+ "#{base_url}/index.html"
44
45
  end
45
46
 
46
47
  private
@@ -39,7 +39,7 @@
39
39
  <body>
40
40
  <div class="container">
41
41
  <h1><%= app_name %></h1>
42
- <img src="http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=<%= base_url %>/index.html" alt="" />
42
+ <img src="http://api.qrserver.com/v1/create-qr-code/?size=250x250&data=<%= base_url %>/index.html" alt="" />
43
43
  <h2>Version: <%= app_version %></h2>
44
44
  <p>
45
45
  <a class="button" href="itms-services://?action=download-manifest&url=<%= base_url %>/manifest.plist">Install</a>
@@ -1,3 +1,3 @@
1
1
  module BlastOff
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/blast_off.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'rainbow'
2
1
  require 'ipa_reader'
3
2
 
4
3
  require "blast_off/version"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blast_off
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jun Lin
@@ -118,6 +118,7 @@ extra_rdoc_files: []
118
118
  files:
119
119
  - .gitignore
120
120
  - .rspec
121
+ - .travis.yml
121
122
  - CHANGELOG.md
122
123
  - Gemfile
123
124
  - LICENSE.txt