sidekick-client 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/GEM_RELEASE ADDED
@@ -0,0 +1,24 @@
1
+ To create gems, install the 'jeweler' and 'gemcutter' gem:
2
+
3
+ gem install jeweler
4
+ gem install gemcutter
5
+
6
+ To create a gemspec from scratch:
7
+
8
+ rake gemspec
9
+
10
+ To bump the version (a git commit is automatically made):
11
+
12
+ rake version:bump:minor (or...)
13
+ rake version:bump:major
14
+
15
+ To regenerate the gemspec, push to github and gemcutter, and tag the release:
16
+
17
+ rake release
18
+
19
+ To build a local version of the gem only:
20
+
21
+ rake build
22
+
23
+ More information at:
24
+ http://github.com/technicalpickles/jeweler
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -36,7 +36,17 @@ class SidekickClient
36
36
  def self.send_and_receive(cmd, args={}, queue_name=nil)
37
37
  SidekickClient.new.send_and_receive(cmd,args,queue_name)
38
38
  end
39
-
39
+
40
+ def self.send_freeform_message(message, queue_name)
41
+ SidekickClient.new.send_freeform_message(message, queue_name)
42
+ end
43
+
44
+ # Send an unformatted (freeform message)
45
+ def send_freeform_message(message, queue_name=nil)
46
+ @qconn.publish(message, queue_name || @config[:queue_name])
47
+ return true
48
+ end
49
+
40
50
  def send_and_disconnect(cmd, args={}, queue_name=nil)
41
51
  message = { :command => cmd, :args => args}
42
52
 
@@ -51,4 +61,4 @@ class SidekickClient
51
61
  response = @qconn.publish(message.to_yaml, queue_name || @config[:queue_name], temp_queue)
52
62
  return response && YAML.load(response)
53
63
  end
54
- end
64
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sidekick-client}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["yan"]
12
- s.date = %q{2010-01-25}
12
+ s.date = %q{2010-04-22}
13
13
  s.email = %q{yan@pritzker.ws}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.files = [
19
19
  ".document",
20
20
  ".gitignore",
21
+ "GEM_RELEASE",
21
22
  "LICENSE",
22
23
  "README.rdoc",
23
24
  "Rakefile",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekick-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - yan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-25 00:00:00 -06:00
12
+ date: 2010-04-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -34,6 +34,7 @@ extra_rdoc_files:
34
34
  files:
35
35
  - .document
36
36
  - .gitignore
37
+ - GEM_RELEASE
37
38
  - LICENSE
38
39
  - README.rdoc
39
40
  - Rakefile