pubnub-publisher 1.0.1 → 1.0.2

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: 6c9746182be62395a1bc58e0c89dd49822bb8870
4
- data.tar.gz: eea4c04dfa118ffd17cebd1c6b94d01f15d54780
3
+ metadata.gz: d243e78c36fc444f097e3f4ec316973673498af6
4
+ data.tar.gz: 02d031b67d92c9ac4ee14dfe5d3972cad0a68cdc
5
5
  SHA512:
6
- metadata.gz: b9cd29094bd772de854239e258a6d3772ea0244f5779ccfec99863d2b2cc79c352a7be013614534b3f58db61e1b7bd210a3f133c3d6f74eca34e9b9f57fa0da9
7
- data.tar.gz: 0cf14af323d35e6b70fda75d2785a10cd7966f8ddb847e633b8e958307066b115e0d466112e06567ed955edcda67efcf2ab90336050538b389f4ee6c3cf47da8
6
+ metadata.gz: 53ee59a90ef1aa2490dda3652a82581c08a774a03db2503f09b44f81c1c01133e6b8e7450551584a040b722408da246927145a5e3f112594b73f03b0af9b570f
7
+ data.tar.gz: b67746f64a99291e0219e4cf8ec883dc75d9129bfed9c96ec030c76d91daa742e274c9748e9f72dd81150934bbcf80be86c47132e3b7f8959c7c48bf4606bed6
data/CHANGELOG.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # Changelog
2
2
 
3
- * 1.0.1 added `Pubnub::Publisher.publish_key`,
3
+ * 1.0.2 Fixed a bug in the way the query was escaped.
4
+
5
+ * 1.0.1 Added `Pubnub::Publisher.publish_key`,
4
6
  `Pubnub::Publisher.subscribe`, and `Pubnub::Publisher.ssl` accessors so
5
7
  we can easily accessed the shared config main keys.
6
8
 
7
- * 1.0 first release
9
+ * 1.0 First release
@@ -1,5 +1,5 @@
1
1
  module Pubnub
2
2
  class Publisher
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  require "net/https"
2
2
  require "net/http"
3
3
  require "uri"
4
+ require "cgi"
4
5
  require "json"
5
6
  require "securerandom"
6
7
  require "pubnub/publisher/version"
@@ -108,7 +109,7 @@ module Pubnub
108
109
  raise ArgumentError if (channel.nil? || channel == "" || message.nil? || message == "")
109
110
 
110
111
  # prepare a GET request (come on pubnub, GET???)
111
- url = publish_url(channel) << "/#{URI.escape(message.to_json)}"
112
+ url = publish_url(channel) << "/#{CGI.escape(message.to_json)}"
112
113
  uri = URI.parse(url)
113
114
  http = Net::HTTP.new(uri.host, uri.port)
114
115
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubnub-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Aimonetti