valdemaximus-conduit 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -23,6 +23,10 @@ module ValdeMaximus
23
23
  get('/phone_numbers', {'phone_number[]' => phone_numbers, :date => date})
24
24
  end
25
25
 
26
+ def status_of_phone_number(phone_number, date=nil)
27
+ get("/phone_numbers/#{phone_number}")
28
+ end
29
+
26
30
  private
27
31
  def get(path, params={})
28
32
  @http = Net::HTTP.new(@domain, @port)
@@ -77,11 +81,5 @@ module ValdeMaximus
77
81
  end
78
82
 
79
83
  if __FILE__ == $0
80
- c = ValdeMaximus::Conduit.new(:format => 'yml', :domain => 'localhost', :port => 3000, :creds => 'f_Le6kzsCJi5tNP7rFpQ')
81
- c.status_of_phone_numbers(['8016946632', '8016025388'])
82
- # res = c.send_message('hello world 12',
83
- # ['8016946634, Tom Johnson',
84
- # '8016946632, Little T Johnson',
85
- # '8016946633, Big T Johnson'])
86
- # puts res
84
+ # c = ValdeMaximus::Conduit.new(:format => 'yml', :domain => 'localhost', :port => 3000, :creds => 'f_Le6kzsCJi5tNP7rFpQ')
87
85
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{valdemaximus-conduit}
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Johnson"]
12
- s.date = %q{2010-02-03}
12
+ s.date = %q{2010-02-26}
13
13
  s.description = %q{A Library to programmatically interface with portal}
14
14
  s.email = %q{valde.maximus@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valdemaximus-conduit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Johnson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-03 00:00:00 -07:00
12
+ date: 2010-02-26 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency