atech-billy 1.0.6 → 1.0.7

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.
Files changed (3) hide show
  1. data/lib/billy.rb +1 -1
  2. data/lib/billy/service.rb +9 -0
  3. metadata +4 -4
@@ -12,7 +12,7 @@ require 'billy/invoice'
12
12
 
13
13
  module Billy
14
14
 
15
- VERSION = '1.0.6'
15
+ VERSION = '1.0.7'
16
16
 
17
17
  class << self
18
18
 
@@ -65,5 +65,14 @@ module Billy
65
65
  attributes.is_a?(Hash) ? self.new(attributes) : nil
66
66
  end
67
67
 
68
+ def self.validate_label(label)
69
+ result = Billy::Request.request('services/validate_label', :label => label)
70
+ if result.is_a?(Hash)
71
+ result['status'] == 'error' ? result['errors'] : true
72
+ else
73
+ false
74
+ end
75
+ end
76
+
68
77
  end
69
78
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atech-billy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
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-06-01 00:00:00.000000000Z
12
+ date: 2012-06-07 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: basic_ssl
16
- requirement: &70225877128660 !ruby/object:Gem::Requirement
16
+ requirement: &70353790542580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70225877128660
24
+ version_requirements: *70353790542580
25
25
  description:
26
26
  email: adam@atechmedia.com
27
27
  executables: []