trumpet-trumpet 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
3
2
  :major: 0
4
3
  :minor: 0
4
+ :patch: 3
@@ -21,7 +21,7 @@ module Trumpet
21
21
  end
22
22
 
23
23
  def broadcast(message)
24
- Message.new(Trumpet::Request.post("/channels/#{@name}/messages", :parameters => message.to_h))
24
+ Trumpet::Request.post("/channels/#{@name}/messages", :parameters => message.to_h, :parse_response => false)
25
25
  end
26
26
 
27
27
  def messages
@@ -37,4 +37,4 @@ module Trumpet
37
37
  end
38
38
  end
39
39
  end
40
- end
40
+ end
@@ -37,10 +37,7 @@ module Trumpet
37
37
  puts "And plain to h: #{to_h}"
38
38
 
39
39
  unless @id
40
- attributes = Trumpet::Request.post('/messages', :parameters => self.to_h)
41
- @@attributes.each do |attr|
42
- self.send "#{attr.to_s}=".to_sym, (attributes[attr] || attributes[attr.to_s])
43
- end
40
+ Trumpet::Request.post('/messages', :parameters => self.to_h, :parse_response => false)
44
41
  end
45
42
  end
46
43
 
@@ -34,7 +34,7 @@ module Trumpet
34
34
  end
35
35
 
36
36
  def broadcast(message)
37
- Trumpet::Request.post("/transmitters/#{@transmitter_id}/messages", :parameters => message.to_h)
37
+ Trumpet::Request.post("/transmitters/#{@transmitter_id}/messages", :parameters => message.to_h, :parse_response => false)
38
38
  end
39
39
 
40
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trumpet-trumpet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Taras
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-01 00:00:00 -07:00
12
+ date: 2009-05-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -84,7 +84,7 @@ requirements: []
84
84
  rubyforge_project:
85
85
  rubygems_version: 1.2.0
86
86
  signing_key:
87
- specification_version: 2
87
+ specification_version: 3
88
88
  summary: The official trumpet gem
89
89
  test_files:
90
90
  - spec/channel_spec.rb