kannel_status_hash 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.
- checksums.yaml +7 -0
- data/lib/kannel_status_hash.rb +22 -0
- metadata +58 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 09a1419093e8413a06de43995e86022334d3925d
|
|
4
|
+
data.tar.gz: 16b599946082a32f64be8631c47b03910e39a24a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 0f6cefe4c9368f00467db5de4a18278e5e530da19587375ea74c308b50b425bb6a5950a9338e23505dfe0ea5da04d542f0052018a882e79c20011c5e1a2d45f6
|
|
7
|
+
data.tar.gz: e250ac1ede4c0342db83f03ffb0231427f0244ff62b32698b781b566124292ed8f0c9a1b789c6d9fabf29ea4289680f36e16226e966d95b67b7785cddbac78fe
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require 'open-uri'
|
|
2
|
+
require 'active_support/core_ext'
|
|
3
|
+
require 'json'
|
|
4
|
+
|
|
5
|
+
class KannelStatus
|
|
6
|
+
|
|
7
|
+
attr_accessor :status_url
|
|
8
|
+
|
|
9
|
+
def initialize(url)
|
|
10
|
+
@status_url = url
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def get_status
|
|
14
|
+
result = {}
|
|
15
|
+
if @status_url
|
|
16
|
+
response = open(@status_url).read
|
|
17
|
+
result = Hash.from_xml(response)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
|
metadata
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: kannel_status_hash
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Sreekanth G S
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: activesupport
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '>='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '>='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
27
|
+
description: Pass it a Kannel Status XML url and get the status in Hash!
|
|
28
|
+
email: mail@sreekanth.in
|
|
29
|
+
executables: []
|
|
30
|
+
extensions: []
|
|
31
|
+
extra_rdoc_files: []
|
|
32
|
+
files:
|
|
33
|
+
- lib/kannel_status_hash.rb
|
|
34
|
+
homepage: https://github.com/xyris/kannel-status-hash
|
|
35
|
+
licenses:
|
|
36
|
+
- MIT
|
|
37
|
+
metadata: {}
|
|
38
|
+
post_install_message:
|
|
39
|
+
rdoc_options: []
|
|
40
|
+
require_paths:
|
|
41
|
+
- lib
|
|
42
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - '>='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
|
+
requirements:
|
|
49
|
+
- - '>='
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '0'
|
|
52
|
+
requirements: []
|
|
53
|
+
rubyforge_project:
|
|
54
|
+
rubygems_version: 2.0.3
|
|
55
|
+
signing_key:
|
|
56
|
+
specification_version: 4
|
|
57
|
+
summary: A gem to convert Kannel's XML status to Ruby Hash!
|
|
58
|
+
test_files: []
|