xmpush 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmpush/version.rb +1 -1
- data/lib/xmpush.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1152b540182d3c686bd408815b2aaa26f485ece6
|
4
|
+
data.tar.gz: 3ff89e4b902db18baea56fd54f7cd59e99693500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d2bcd10bb02a846c231be79db55ca8c726102bab59c5c64375ac4e74f4ec8c42297e275b097c98b96977185bab4fde057883de648d88a76ea97510c9c76c8f5
|
7
|
+
data.tar.gz: 7fac5cc8c2a0af1fb7c4c08190aac34d691e15a21c476dd454af716f9eec4212b765791ab1ea5877dc18e2c5702de0e9acfcb65110017a3ac785a51d0d3ff1e8
|
data/lib/xmpush/version.rb
CHANGED
data/lib/xmpush.rb
CHANGED
@@ -13,7 +13,7 @@ require 'xmpush/feedback'
|
|
13
13
|
module Xmpush
|
14
14
|
class Service
|
15
15
|
|
16
|
-
attr_accessor :ios_secret, :android_secret, :bundle_id, :package_name, :sandbox
|
16
|
+
attr_accessor :ios_secret, :android_secret, :bundle_id, :package_name, :connection_adapter, :sandbox
|
17
17
|
|
18
18
|
def initialize(ios_secret: "", android_secret: "", bundle_id: "", package_name: "", connection_adapter: :net_http, sandbox: false)
|
19
19
|
@sandbox = sandbox
|
@@ -59,7 +59,7 @@ module Xmpush
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
private
|
62
|
+
private
|
63
63
|
|
64
64
|
def ios_builder(message={})
|
65
65
|
message[:restricted_package_name] = @bundle_id
|
@@ -67,7 +67,7 @@ private
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def android_builder(message={})
|
70
|
-
message[:restricted_package_name] = @
|
70
|
+
message[:restricted_package_name] = @package_name
|
71
71
|
AndroidBuilder.new(message).build
|
72
72
|
end
|
73
73
|
|
@@ -77,7 +77,7 @@ private
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def android_http
|
80
|
-
return "android don't
|
80
|
+
return "android don't support sandbox" if @sandbox
|
81
81
|
host = @sandbox ? Xmpush::XmResource::SANDBOX_DOMAIN : Xmpush::XmResource::OFFICIAL_DOMAIN
|
82
82
|
Xmpush::HttpBase.new(host, @android_secret, @connection_adapter)
|
83
83
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmpush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- blackanger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|