aninipot 0.0.1 → 0.0.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/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem "rake"
4
- # Specify your gem's dependencies in textile_editor_helper.gemspec
4
+ # Specify your gem's dependencies in aninipot.gemspec
5
5
  gemspec
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
- aninipot
2
- ============
3
-
4
1
  #Aninipot
5
2
 
6
- A ruby gem for consuming Firefly API. Aninipot is a Cebuano term of Firefly.
3
+ A ruby gem for consuming Semaphore API. Firefly API has been changed to Semaphore.
4
+
5
+ Aninipot is a Cebuano term of Firefly.
7
6
 
8
7
  ## Requirements
9
8
 
@@ -14,11 +13,13 @@ A ruby gem for consuming Firefly API. Aninipot is a Cebuano term of Firefly.
14
13
  $ gem install aninipot
15
14
 
16
15
  ## Configuration
17
- The configuration below will be provided by Smart Devnet. Apply for access (http://www.smart.com.ph/developer)
18
-
16
+ Get your API keys here (http://semaphore.co/)
17
+
18
+ Masking is now supported.
19
+
19
20
  client = Aninipot::Client.configure do |config|
20
21
  config.api = ''
21
- config.from = 2337
22
+ config.from = MASKNAME
22
23
  end
23
24
 
24
25
  ## Sending SMS
data/aninipot.gemspec CHANGED
@@ -3,14 +3,14 @@ lib = File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'aninipot'
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.date = '2012-11-24'
8
8
  s.email = 'me@iantusil.com'
9
9
 
10
- s.summary = "A ruby gem for consuming Firefly API"
11
- s.description = "A ruby gem for consuming Firefly API (currently supports SMS only)."
10
+ s.summary = "A ruby gem for consuming Semaphore API"
11
+ s.description = "A ruby gem for consuming Semaphore API (currently supports SMS only)."
12
12
  s.author = "Ian Bert Tusil"
13
- s.homepage = 'http://www.fireflyapi.com/'
13
+ s.homepage = 'http://semaphore.co/'
14
14
  s.license = 'MIT'
15
15
 
16
16
  s.platform = Gem::Platform::RUBY
@@ -3,7 +3,7 @@ module Aninipot
3
3
  include ClassSupportMixin
4
4
  include Aninipot::Configuration
5
5
 
6
- set_attributes :host => 'fireflyapi.com',
6
+ set_attributes :host => 'www.semaphore.co',
7
7
  :port => '80',
8
8
  :api => '',
9
9
  :from => ''
@@ -1,3 +1,3 @@
1
- module Smart
1
+ module Aninipot
2
2
  VERSION = '0.0.1'
3
3
  end
@@ -9,14 +9,14 @@ describe Aninipot do
9
9
 
10
10
  def initialize_rest_client
11
11
  Aninipot::Client.configure do |config|
12
- config.api = config_file['api'].to_s
12
+ config.api = config_file['api']
13
13
  config.from = config_file['from']
14
14
  end
15
15
  end
16
16
 
17
17
  it 'should be able to send sms' do
18
18
  begin
19
- response = @client.send_sms("+639275866897", "Test Data")
19
+ response = @client.send_sms("+639176230655", "Test Data")
20
20
  rescue Exception => e
21
21
  e.message.must_equal Aninipot::Response.new(200).to_s
22
22
  end
data/test/test_helper.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require 'yaml'
2
- require 'minitest/pride'
2
+ # require 'minitest/pride'
3
3
  require 'minitest/autorun'
4
- require 'minitest/spec'
5
- require 'minitest/matchers'
4
+ # require 'minitest/spec'
5
+ # require 'minitest/matchers'
6
6
 
7
7
  def config_file
8
8
  config ||= YAML::load(File.open((File.join(File.dirname(__FILE__), 'config.yml'))))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aninipot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-24 00:00:00.000000000Z
12
+ date: 2012-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
16
- requirement: &319170 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,8 +21,13 @@ dependencies:
21
21
  version: 4.3.3
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *319170
25
- description: A ruby gem for consuming Firefly API (currently supports SMS only).
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 4.3.3
30
+ description: A ruby gem for consuming Semaphore API (currently supports SMS only).
26
31
  email: me@iantusil.com
27
32
  executables: []
28
33
  extensions: []
@@ -43,7 +48,7 @@ files:
43
48
  - test/test_aninipot.rb
44
49
  - test/test_helper.rb
45
50
  - travis.yml
46
- homepage: http://www.fireflyapi.com/
51
+ homepage: http://semaphore.co/
47
52
  licenses:
48
53
  - MIT
49
54
  post_install_message:
@@ -64,10 +69,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
69
  version: '0'
65
70
  requirements: []
66
71
  rubyforge_project:
67
- rubygems_version: 1.8.17
72
+ rubygems_version: 1.8.25
68
73
  signing_key:
69
74
  specification_version: 3
70
- summary: A ruby gem for consuming Firefly API
75
+ summary: A ruby gem for consuming Semaphore API
71
76
  test_files:
72
77
  - test/test_aninipot.rb
73
78
  - test/test_helper.rb