pushit-ruby 0.1.0 → 0.1.1

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: 743da81562f9f70d95be67b0c7542aeeaa428709
4
- data.tar.gz: 553262cbff0b60f134d1aae105f11dccdaebbe8b
3
+ metadata.gz: 7aeffe28604bc09abf8cd3790350a2fac20f3da5
4
+ data.tar.gz: 53cf72b1703f8349e7b401c2a4c144ba76af53ce
5
5
  SHA512:
6
- metadata.gz: 4b4624ba51157cc25c0840670735c63406ede02d63ea63d69a3891ed69752d535ae63d4f42211ddc17e786e7753f8999e3cdebd19b30157981841b4e69c5e7b4
7
- data.tar.gz: 3b9acada7afe658dc90aaeaa42d778ff41fdb0a52e9626f85ac179735b88a07c741aefccae58e1d88c544bd29cd0074c5194cff26aee0756e2c41d74a60c5884
6
+ metadata.gz: e3d0ba24e9d3f8fbb2de0b5bb526bf6d435a94ffa77345fb0efa1097fd57295fd8f56057486323f48236df12b9e99a1f00201166fc53bc4f7b14110d14799149
7
+ data.tar.gz: 13d7c44f11efa2ddfb6115ec3238b8e6f6c7d8dfa467f39af3f6a24f442a684f0044a343270277d6dc66216c616a350ad7211ad2e9ad147748dbeb3643894a5c
data/lib/pushit.rb CHANGED
@@ -1,6 +1,6 @@
1
- require "pushit/version"
2
- require "pushit/channel"
3
- require "pushit/request"
1
+ require 'pushit/version'
2
+ require 'pushit/channel'
3
+ require 'pushit/request'
4
4
 
5
5
  module Pushit
6
6
  end
@@ -4,13 +4,12 @@ module Pushit
4
4
  require 'multi_json'
5
5
 
6
6
  def initialize(channel_name, options = {})
7
- options = {
8
- :scheme => 'https',
9
- :host => 'pushit-beta.herokuapp.com'
7
+ options = {
8
+ scheme: 'https',
9
+ host: 'ws.slaask.com'
10
10
  }.merge(options)
11
11
 
12
- @channel_name = channel_name
13
-
12
+ @channel_name = channel_name
14
13
  @scheme, @host, @port = options.values_at(
15
14
  :scheme, :host, :port
16
15
  )
@@ -24,10 +23,10 @@ module Pushit
24
23
 
25
24
  def url(event)
26
25
  URI::HTTPS.build({
27
- :scheme => @scheme,
28
- :host => @host,
29
- :port => @port,
30
- :path => "/publish/#{@channel_name}/#{event}"
26
+ scheme: @scheme,
27
+ host: @host,
28
+ port: @port,
29
+ path: "/publish/#{@channel_name}/#{event}"
31
30
  })
32
31
  end
33
32
  end
@@ -1,3 +1,3 @@
1
1
  module Pushit
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushit-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémi Delhaye