Skip to content

Commit f281d36

Browse files
committed
hopefully this works
1 parent e3ecf58 commit f281d36

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

lib/pusher.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def default_client
6060
end
6161
end
6262

63+
require 'pusher/version'
6364
require 'pusher/channel'
6465
require 'pusher/request'
6566
require 'pusher/resource'

lib/pusher/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Request
99
def initialize(client, verb, uri, params, body = nil)
1010
@client, @verb, @uri = client, verb, uri
1111
@head = {
12-
'X-Pusher-Library' => 'pusher-http-ruby ' + "1.2.0.rc2" # TODO deduplicate
12+
'X-Pusher-Library' => 'pusher-http-ruby ' + Pusher::VERSION
1313
}
1414

1515
@body = body

lib/pusher/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Pusher
2+
VERSION = '1.2.0.rc2'
3+
end

pusher.gemspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# -*- encoding: utf-8 -*-
2+
3+
require_relative 'lib/pusher/version'
4+
25
Gem::Specification.new do |s|
36
s.name = "pusher"
4-
s.version = "1.2.0.rc2"
7+
s.version = Pusher::VERSION
58
s.platform = Gem::Platform::RUBY
69
s.authors = ["Pusher"]
710
s.email = ["support@pusher.com"]

0 commit comments

Comments
 (0)