atheme 0.0.3 → 0.0.4

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: b15500edb979b29e50bc1cb01f91e5507be129c8
4
- data.tar.gz: 35f5730fa0e94e25971eef9e50f6600834add6ba
3
+ metadata.gz: 1ef808aa81937926711c9c9222cfbaf6ededde5c
4
+ data.tar.gz: 2c0801d9b8f22cb983553d044223a95865a267c2
5
5
  SHA512:
6
- metadata.gz: c7ae6e9f1c3cbfc740d65ffa8300229ad43a18be4d5c443e597d2ba11a1adffa2f1c6a068cf035319305b5fbe91346a5b9b229c82d105d3a376421a5a513c7ee
7
- data.tar.gz: a72b4205d9bf18f369f0465add1310298d81652e1e3407f4c2a999cd1471597f50b3728454a6efec72edc29109dbe63716c39c0610fdca8acd5671bb730e1041
6
+ metadata.gz: 4b407ac82837f0a9415a9f935690cbb4e3adecafa8c72dc6d61cd77ae1c175c7e4811979353f2b855afef6e15ec0fb6f730278cf06ff59ba2d075893b0941771
7
+ data.tar.gz: cd978456efc0e66bda28bb1ea4ca8403554966c5e7655e9f24819aedef1b3590da3f9b9f7d8528f71396981853398f68dcf462af1c14fcea14bfaec1cca13cdc
checksums.yaml.gz.sig ADDED
@@ -0,0 +1,3 @@
1
+ T�0ǣ��u��������gˮ˭+����7�T��WG�^�:axѰ��9�F�������Zk�ĕ�?Ҭ g���X���S�a�zq%����d�j<'Š�Wt����(��n�4׿�Q�vӕ_X��R)�,#'2��'�R�ۃ�ԳI4u]HaJ�?�€�ݾ���E�]:j!�]{u��<��(��3L��
2
+ �2�p{
3
+ �� s)� T�������"He��#�c(��0���8+�n�����'��@��
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Atheme Ruby
2
2
 
3
+ [![Code Climate](https://codeclimate.com/github/zaphyous/atheme-ruby.png)](https://codeclimate.com/github/zaphyous/atheme-ruby) [![Dependency Status](https://gemnasium.com/zaphyous/atheme-ruby.png)](https://gemnasium.com/zaphyous/atheme-ruby)
4
+
3
5
  A ruby way to access the [Atheme IRC Services](http://www.atheme.net) XMLRPC interface.
4
6
 
5
7
  ## Installation
data/lib/atheme/errors.rb CHANGED
@@ -1,4 +1,4 @@
1
- module Atheme
2
- class NoUserSetError < StandardError
1
+ module Atheme::Error
2
+ class NoUserSet < StandardError
3
3
  end
4
4
  end
@@ -4,7 +4,7 @@ class Atheme::Service
4
4
  end
5
5
 
6
6
  def self.method_missing(method, *args, &block)
7
- raise Atheme::NoUserSetError, 'No user has been set' if Atheme.user.nil?
7
+ raise Atheme::Error::NoUserSet, 'No user has been set' if Atheme.user.nil?
8
8
 
9
9
  Atheme.call('atheme.command', Atheme.user.cookie, Atheme.user.username, Atheme.user.ip, self.name.gsub('Atheme::', ''), method, *args)
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Atheme
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -10,4 +10,10 @@ describe 'Atheme::Service' do
10
10
 
11
11
  expect(Atheme::ChanServ.help).to be_true
12
12
  end
13
+
14
+ it 'should raise an error when no user is set' do
15
+ Atheme.user = nil
16
+
17
+ expect { Atheme::ChanServ.help }.to raise_error Atheme::Error::NoUserSet
18
+ end
13
19
  end
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,15 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atheme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Newton
8
8
  - Robert Babcock
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain: []
12
- date: 2013-04-02 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ4wDAYDVQQDDAVqYW1l
15
+ czEYMBYGCgmSJomT8ixkARkWCFphcGh5b3VzMRMwEQYK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ebimCM21ychbBqkWzJGPlIfqgvmOMbQc/TwQcwkYPgoX6l
32
+ QdB79NrQet5m6RR7qA5joVvZhZA=
33
+ -----END CERTIFICATE-----
34
+ date: 2013-04-10 00:00:00.000000000 Z
13
35
  dependencies:
14
36
  - !ruby/object:Gem::Dependency
15
37
  name: bundler
metadata.gz.sig ADDED
Binary file