asterisk-ami 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3eb66f2410e0015663bbbb1a8c4b0b3634bea943
4
- data.tar.gz: 2d9c4156b2c46e7bb96207d0442495492b4c116d
3
+ metadata.gz: 23aad48f08a544364eb4b8141a1a007ccbf9ad44
4
+ data.tar.gz: b8a33710c383e6862b7d1ad8a3a2298697ffdc75
5
5
  SHA512:
6
- metadata.gz: 65aa25c87e102d4db1340e899c712b545f0320fb8b66e774e3b7fc6d3487cd9dca2910fc2d8c3c31b6072bdb0b6c86dfeb841e3660bac19ed060255c8d5bcfd1
7
- data.tar.gz: b8b51aa1f3ef5d63e4f3dec088b9b995f68b26603916388379e2b88f79986ec1dea5db1b8a0ecc2298324e3d8af0f9e4dead438bd790ed18eeae622f18baa4fe
6
+ metadata.gz: 72b32e800d65e830cadb351785a91ea6b4affa3a07ea5a62f09fb77deb02a5cde68bc11c5c207d6faba61b131c94d8b85b4a2dddc4a8ef054d88e918cf87d516
7
+ data.tar.gz: 136424727ecabc5559b08096db78e5647bcd05e183e741820469b41f9910411bbf684a5c21f00c294307be76c447b7328ec12e2efbbfbbef3ca8c77fcafd5f0f
@@ -1,5 +1,5 @@
1
1
  module Asterisk
2
2
  module Ami
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -0,0 +1,9 @@
1
+ class String
2
+ def is_json?
3
+ begin
4
+ !!JSON.parse(self)
5
+ rescue
6
+ false
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asterisk-ami
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stewart McKee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-25 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: titleize
@@ -105,6 +105,7 @@ files:
105
105
  - lib/asterisk/message_helper.rb
106
106
  - lib/asterisk/response.rb
107
107
  - lib/asterisk/server/socket.rb
108
+ - lib/string.rb
108
109
  homepage: ''
109
110
  licenses:
110
111
  - MIT