xmpush 0.0.7 → 0.0.8

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: 93b3c64d2e444279c978631951b85d4ca50774a9
4
- data.tar.gz: f4e3c0c01b6c2a1d93799594f3d55397fee3da11
3
+ metadata.gz: 8f37a227980b81b227bdd0bdb0980793f6350322
4
+ data.tar.gz: c1d6bdfbefa2c63e0bcd4cd1ec612a3f2eba7a1d
5
5
  SHA512:
6
- metadata.gz: 36cfecf2bc363ee64f26197bd0bd73a8057c8e95b8a0243680092345bf2faa253ea88b82afdfba892abe8eda35f11e8637b226cf6f1dd4b74181db2b051a5f65
7
- data.tar.gz: 0c7efcb2becd559c3d37d54adb30166f910d433c1936b6e83ceb9b7065a6218d29b34a9b2ccc25413e036c6c9cb2fd4678f075456eb1e66fc4cbc50371447b4f
6
+ metadata.gz: 4bb0141dd53120550a982c0fdcd2d46aafe9e8f86f6ad6038ac936ffdba66bbfb40302157f3744d3e80997feb763d79373c153ae338bffcf768a9f2c5ad33213
7
+ data.tar.gz: 3b2cd59e451239bda030932fc5bf5c17f177dd5cca28a105be64ccd23ab229ba05efa77714c4d52701eba08cca477fddb2962b5e8fe157b5e7420467df65a6dd
@@ -12,7 +12,7 @@ module Xmpush
12
12
  @headers = headers
13
13
  end
14
14
 
15
- def post(url, body={}); conn.post url, body end
15
+ def post(url, body={}); conn.post url, body end
16
16
  def get(url, params={}); conn.get url, params end
17
17
 
18
18
  def conn
@@ -1,3 +1,3 @@
1
1
  module Xmpush
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/xmpush.rb CHANGED
@@ -56,7 +56,7 @@ module Xmpush
56
56
  resource_post('topic', message)
57
57
  when :topics
58
58
  return "must input topics" unless options[:topics]
59
- message.values.each{|v| v.merge!(topics: options[:topics].join(";$;"))}
59
+ message.values.each{|v| v.merge!(topics: options[:topics].join(";$;"), topic_op: options[:topic_op] || "UNION")}
60
60
  resource_post('mtopic', message)
61
61
  when :all
62
62
  resource_post('all', message)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - blackanger