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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e944c88f1fa1a5a523c4f2b07ff3c5e39396c5a6
4
- data.tar.gz: 02291680f962ee4509394f172aad14254e3af449
3
+ metadata.gz: 1152b540182d3c686bd408815b2aaa26f485ece6
4
+ data.tar.gz: 3ff89e4b902db18baea56fd54f7cd59e99693500
5
5
  SHA512:
6
- metadata.gz: a1ba080e1db290229119ab64dbb51c6acb07a03a1a426c35e844a2011cf1c6f762d2526d640ab5e03d60227e8f0b479efca6487cbb334c59af2a551a12bb4cef
7
- data.tar.gz: 8320fb55ae0c7b751aa850c8b18b447972bc9b9e1327323b4938648a2a388c999bccbb2b59f6f864bd14a2418776a9abbbb0171f2ead15b1f8b0fdfccd838712
6
+ metadata.gz: 8d2bcd10bb02a846c231be79db55ca8c726102bab59c5c64375ac4e74f4ec8c42297e275b097c98b96977185bab4fde057883de648d88a76ea97510c9c76c8f5
7
+ data.tar.gz: 7fac5cc8c2a0af1fb7c4c08190aac34d691e15a21c476dd454af716f9eec4212b765791ab1ea5877dc18e2c5702de0e9acfcb65110017a3ac785a51d0d3ff1e8
@@ -1,3 +1,3 @@
1
1
  module Xmpush
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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] = @bundle_id
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 suppot sandbox" if @sandbox
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
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-21 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday