eztexting 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -5,6 +5,7 @@ RELEASE_NOTES
5
5
  Rakefile
6
6
  VERSION
7
7
  examples/example_script.rb
8
+ eztexting.gemspec
8
9
  lib/eztexting.rb
9
10
  lib/eztexting/availablity.rb
10
11
  lib/eztexting/base.rb
data/README.textile CHANGED
@@ -43,7 +43,7 @@ Eztexting.connect!('username','password')
43
43
  # The response will be an array , the first element will be the response mapped from the code to the literal that the Eztexting
44
44
  # documentation lists out. The second element will be the raw value. In some cases this bit is important , in the credit balance
45
45
  # check this would be the number of credits.
46
- options = {:subject => "testing out how awesome eztexting is", :phonenumber => "5165551234", :message => "Wow this is so simple and easy to use"}
46
+ options = {:subject => "testing out how awesome eztexting is", :phonenumber => "5555555555", :message => "Wow this is so simple and easy to use"}
47
47
  Eztexting::Sms.single(options)
48
48
  # => ["Message Sent",1]
49
49
 
@@ -56,7 +56,7 @@ Eztexting::Availablity.check("my_keyowrd_to_check")
56
56
  # => ["The Keyword Is Available", 1]
57
57
 
58
58
  # Make Voice Broadcast
59
- options = {:phonenumbers => 51659232132, :soundsource => "http://mywebsite.com/dunder_mifflin_is_a_part_of_sabre.wav", :callerid => 4013210192}
59
+ options = {:phonenumbers => 5555555555, :soundsource => "http://mywebsite.com/dunder_mifflin_is_a_part_of_sabre.wav", :callerid => 5555555555}
60
60
  Eztexting::Voice.broadcast(options)
61
61
  # => ["Campaign Sent",1]
62
62
  </pre></notextile>
data/RELEASE_NOTES CHANGED
@@ -1,7 +1,41 @@
1
- EzTexting.connect!("joshm","qwerty")
2
- message = {:phonenumber=>"5164920096", :password=>"qwerty", :user=>"joshm", :message=>"test", :subject=>"testddsada"}
1
+ Carrier Lookup Account Issues
2
+ The Eztexting service has a slight caveat for usage of the carrier lookup command. Unfortunately the account system is setup so that
3
+ you must have one account for the Carrier lookup API command and another for all other commands. To use this gem with respect to this
4
+ issue you need to swap the accounts (calling the Eztexting.connect! method) when using the carrier lookup command and then swap
5
+ if back to your account for the rest of the API when you use those commands
6
+
7
+ Example
8
+ ---------------------------------------------------------
9
+ 1) Cache your credentials for your account for the API
10
+
11
+ # Account for API usage (except carrier lookup)
12
+ Eztexting.connect!(username_for_api_without_carrier,password)
13
+ # => "credentials cached"
14
+
15
+ 2) Use as you wish for all commands except the carrier lookup
16
+ options = {
17
+ :subject => "testing out how awesome eztexting is",
18
+ :phonenumber => "5555555555",
19
+ :message => "Wow this is so simple and easy to use"
20
+ }
21
+ Eztexting::Sms.single(options)
22
+ # => ["Message Sent",1]
23
+
24
+ Eztexting::Credits.balance
25
+ # => ["The amount of plan and additional credits available", 54353]
26
+
27
+
28
+ 3) Swap your credentials by calling the connect! method again with the different account information
29
+
30
+ Eztexting.connect!(carrier_lookup_enabled_account,password)
31
+ # => "credentials cached
32
+
33
+
34
+ 4) Call the lookup command as much as you need
35
+ Eztexting::Lookup.carrier(5555555555)
36
+
37
+
38
+ 5) When you need to use any of the other API commands change your cached credentials back to the account for the rest of the API
39
+ Eztexting.connect!(username_for_api_without_carrier,password)
40
+ # => "credentials cached"
3
41
 
4
- EzTexting::Sms.single(message)
5
- // 1
6
- EzTexting::Credits.check?
7
- // 689
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake'
3
3
  require 'echoe'
4
4
  require 'yard'
5
5
 
6
- Echoe.new('eztexting', '0.3.0') do |p|
6
+ Echoe.new('eztexting', '0.3.1') do |p|
7
7
  p.description = "A Gem to make using eztexting simple and fun"
8
8
  p.url = "http://github.com/EzTexting/eztexting"
9
9
  p.author = "David Malin"
@@ -15,5 +15,5 @@ Eztexting::Availability.check("money")
15
15
 
16
16
 
17
17
  # Now lets make an acutal text message. Make a hash with the parameters for the api call
18
- msg = {:phonenumber=>"5165551234", :message=>"My First Text MEssage", :subject=>"This is an awesome service. I love eztexting"}
18
+ msg = {:phonenumber=>"5555555555", :message=>"My First Text Message", :subject=>"This is an awesome service. I love eztexting"}
19
19
  Eztexting::Sms.single(msg)
data/eztexting.gemspec CHANGED
@@ -2,27 +2,27 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{eztexting}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["David Malin"]
9
- s.date = %q{2010-09-08}
9
+ s.date = %q{2010-09-09}
10
10
  s.description = %q{A Gem to make using eztexting simple and fun}
11
11
  s.email = %q{dmalin@eztexting.com}
12
12
  s.extra_rdoc_files = ["LICENSE", "README.textile", "lib/eztexting.rb", "lib/eztexting/availablity.rb", "lib/eztexting/base.rb", "lib/eztexting/credits.rb", "lib/eztexting/keywords.rb", "lib/eztexting/lookup.rb", "lib/eztexting/sms.rb", "lib/eztexting/voice.rb"]
13
- s.files = ["LICENSE", "Manifest", "README.textile", "RELEASE_NOTES", "Rakefile", "VERSION", "examples/example_script.rb", "lib/eztexting.rb", "lib/eztexting/availablity.rb", "lib/eztexting/base.rb", "lib/eztexting/credits.rb", "lib/eztexting/keywords.rb", "lib/eztexting/lookup.rb", "lib/eztexting/sms.rb", "lib/eztexting/voice.rb", "spec/eztexting/eztexting_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "eztexting.gemspec"]
13
+ s.files = ["LICENSE", "Manifest", "README.textile", "RELEASE_NOTES", "Rakefile", "VERSION", "examples/example_script.rb", "eztexting.gemspec", "lib/eztexting.rb", "lib/eztexting/availablity.rb", "lib/eztexting/base.rb", "lib/eztexting/credits.rb", "lib/eztexting/keywords.rb", "lib/eztexting/lookup.rb", "lib/eztexting/sms.rb", "lib/eztexting/voice.rb", "spec/eztexting/eztexting_spec.rb", "spec/spec.opts", "spec/spec_helper.rb"]
14
14
  s.homepage = %q{http://github.com/EzTexting/eztexting}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Eztexting", "--main", "README.textile"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = %q{eztexting}
18
- s.rubygems_version = %q{1.3.5}
18
+ s.rubygems_version = %q{1.3.7}
19
19
  s.summary = %q{A Gem to make using eztexting simple and fun}
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
23
  s.specification_version = 3
24
24
 
25
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
25
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
26
  s.add_runtime_dependency(%q<httparty>, [">= 0.6.0"])
27
27
  else
28
28
  s.add_dependency(%q<httparty>, [">= 0.6.0"])
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eztexting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ hash: 17
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 1
10
+ version: 0.3.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - David Malin
@@ -9,19 +15,25 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-09-08 00:00:00 -04:00
18
+ date: 2010-09-09 00:00:00 -04:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: httparty
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 0
32
+ - 6
33
+ - 0
23
34
  version: 0.6.0
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  description: A Gem to make using eztexting simple and fun
26
38
  email: dmalin@eztexting.com
27
39
  executables: []
@@ -47,6 +59,7 @@ files:
47
59
  - Rakefile
48
60
  - VERSION
49
61
  - examples/example_script.rb
62
+ - eztexting.gemspec
50
63
  - lib/eztexting.rb
51
64
  - lib/eztexting/availablity.rb
52
65
  - lib/eztexting/base.rb
@@ -58,7 +71,6 @@ files:
58
71
  - spec/eztexting/eztexting_spec.rb
59
72
  - spec/spec.opts
60
73
  - spec/spec_helper.rb
61
- - eztexting.gemspec
62
74
  has_rdoc: true
63
75
  homepage: http://github.com/EzTexting/eztexting
64
76
  licenses: []
@@ -74,21 +86,28 @@ rdoc_options:
74
86
  require_paths:
75
87
  - lib
76
88
  required_ruby_version: !ruby/object:Gem::Requirement
89
+ none: false
77
90
  requirements:
78
91
  - - ">="
79
92
  - !ruby/object:Gem::Version
93
+ hash: 3
94
+ segments:
95
+ - 0
80
96
  version: "0"
81
- version:
82
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
83
99
  requirements:
84
100
  - - ">="
85
101
  - !ruby/object:Gem::Version
102
+ hash: 11
103
+ segments:
104
+ - 1
105
+ - 2
86
106
  version: "1.2"
87
- version:
88
107
  requirements: []
89
108
 
90
109
  rubyforge_project: eztexting
91
- rubygems_version: 1.3.5
110
+ rubygems_version: 1.3.7
92
111
  signing_key:
93
112
  specification_version: 3
94
113
  summary: A Gem to make using eztexting simple and fun