pusher 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Wildfalcon
1
+ Copyright (c) 2009 New Bamboo
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -6,10 +6,10 @@ begin
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "pusher"
8
8
  gem.summary = %Q{Pusher App client}
9
- gem.description = %Q{Pusher App integration: Use to make your app send messages to Pusher}
10
- gem.email = "info@new-bamboo.co.uk"
9
+ gem.description = %Q{Wrapper for pusherapp.com REST api}
10
+ gem.email = "support@pusherapp.com"
11
11
  gem.homepage = "http://github.com/newbamboo/pusher-gem"
12
- gem.authors = ["Wildfalcon", "Ismasan"]
12
+ gem.authors = ["New Bamboo"]
13
13
  # gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
14
  gem.add_dependency "rest-client"
15
15
  gem.add_dependency "json"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/lib/pusher.rb CHANGED
@@ -21,7 +21,7 @@ class Pusher
21
21
  self.logger = Logger.new($STDOUT)
22
22
 
23
23
  def self.[](channel_id)
24
- raise ArgumentError unless (@key && @secret)
24
+ raise ArgumentError unless @key
25
25
  @channels ||= {}
26
26
  @channels[channel_id.to_s] = Channel.new(@key, channel_id)
27
27
  end
data/pusher.gemspec ADDED
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{pusher}
8
+ s.version = "0.3.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["New Bamboo"]
12
+ s.date = %q{2010-03-29}
13
+ s.description = %q{Wrapper for pusherapp.com REST api}
14
+ s.email = %q{support@pusherapp.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/pusher.rb",
27
+ "pusher.gemspec",
28
+ "spec/pusher_spec.rb",
29
+ "spec/spec.opts",
30
+ "spec/spec_helper.rb"
31
+ ]
32
+ s.homepage = %q{http://github.com/newbamboo/pusher-gem}
33
+ s.rdoc_options = ["--charset=UTF-8"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.6}
36
+ s.summary = %q{Pusher App client}
37
+ s.test_files = [
38
+ "spec/pusher_spec.rb",
39
+ "spec/spec_helper.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
+ s.add_runtime_dependency(%q<rest-client>, [">= 0"])
48
+ s.add_runtime_dependency(%q<json>, [">= 0"])
49
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
50
+ else
51
+ s.add_dependency(%q<rest-client>, [">= 0"])
52
+ s.add_dependency(%q<json>, [">= 0"])
53
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<rest-client>, [">= 0"])
57
+ s.add_dependency(%q<json>, [">= 0"])
58
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
59
+ end
60
+ end
61
+
data/spec/pusher_spec.rb CHANGED
@@ -22,16 +22,6 @@ describe Pusher do
22
22
  end
23
23
 
24
24
  describe 'with missing key' do
25
- before {Pusher.secret = '1234567890'}
26
- it 'should raise exception' do
27
- lambda {
28
- Pusher['test-channel']
29
- }.should raise_error(Pusher::ArgumentError)
30
- end
31
- end
32
-
33
- describe 'with missing secret' do
34
- before {Pusher.key = '1234567890'}
35
25
  it 'should raise exception' do
36
26
  lambda {
37
27
  Pusher['test-channel']
metadata CHANGED
@@ -5,17 +5,16 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
- - Wildfalcon
13
- - Ismasan
12
+ - New Bamboo
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-03-28 00:00:00 +00:00
17
+ date: 2010-03-29 00:00:00 +01:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -56,8 +55,8 @@ dependencies:
56
55
  version: 1.2.9
57
56
  type: :development
58
57
  version_requirements: *id003
59
- description: "Pusher App integration: Use to make your app send messages to Pusher"
60
- email: info@new-bamboo.co.uk
58
+ description: Wrapper for pusherapp.com REST api
59
+ email: support@pusherapp.com
61
60
  executables: []
62
61
 
63
62
  extensions: []
@@ -73,6 +72,7 @@ files:
73
72
  - Rakefile
74
73
  - VERSION
75
74
  - lib/pusher.rb
75
+ - pusher.gemspec
76
76
  - spec/pusher_spec.rb
77
77
  - spec/spec.opts
78
78
  - spec/spec_helper.rb