combat 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/settings.rb CHANGED
@@ -16,7 +16,12 @@ class Settings
16
16
  @ipa_file = "#{@filename}.ipa"
17
17
  @plist_file_url = "#{@url}#{@plist_file}"
18
18
  @template_file = options[:template] || "#{COMBAT_ROOT}/templates/template.erb"
19
- @qrcode = "http://qrcode.kaywa.com/img.php?s=8&d=#{ERB::Util.url_encode(@url)}"
19
+
20
+ if (type == 'android')
21
+ @qrcode = "http://qrcode.kaywa.com/img.php?s=8&d=#{ERB::Util.url_encode(@url)}#{@filename}.apk"
22
+ else
23
+ @qrcode = "http://qrcode.kaywa.com/img.php?s=8&d=#{ERB::Util.url_encode(@url)}"
24
+ end
20
25
  end
21
26
 
22
27
  def user_and_host
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Combat
2
- VERSION = '0.8.5'
2
+ VERSION = '0.8.6'
3
3
  end
@@ -75,8 +75,13 @@
75
75
  <% end %>
76
76
  </ol>
77
77
  <p class="desktop_only">
78
- QR code to this page
79
- <img src="<%= @qrcode %>" />
78
+ <% if @type == 'android' %>
79
+ Use QR code to install APK
80
+ <img src="<%= @qrcode %>" />
81
+ <% else %>
82
+ QR code to this page
83
+ <img src="<%= @qrcode %>" />
84
+ <% end %>
80
85
  </p>
81
86
  </div>
82
87
  </body>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: combat
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.5
5
+ version: 0.8.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tomislav Car