acc 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2IxMWEyOTQ2YzYxNGI2ZDE5NmYxOTRhZmIwNDY0MTEyZjlkNTBkOQ==
4
+ MzIzN2EwNmFiYTAzZjBjNzA5NTg5ODFlM2RiZjEzN2E0MjlkODMzYQ==
5
5
  data.tar.gz: !binary |-
6
- YWVjMTMyMjQ0OGE1MDZhZTgzNWZiODNjMTFkZjcyZmZmYTQzMTQ2NQ==
6
+ YzQ0YzU3YTY4NmU2Y2FhYTk0YTAzYmNiNjBhZTliMzBmZmZhNDhiMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTBmN2YyYzNiOTdjMGY2YWY0NzIyY2NjYTI4MGUwY2E3ZGZkNTI4NWYxNTAx
10
- MTg5ZDkzODZiYzkyYmU1NDBlNzg2MTkxZWNkMDBlYTFiNTY5MTMwN2Q2ZmRh
11
- ODNjZjc4ZjljMzI5Yjk2ODUxZjQ2YTc2MjkzYjI0YzVjNmMyOTk=
9
+ MjY5OGJlMjU2NjcwZjU5MzBmNTBhOGQ3NGIwMzE0MjgxMTQ1MjFmNDM2MDE5
10
+ ZjhkNDhmZWQ0ZjE3Mzg4MGVkZTkwMTI1OGRjYjJjMjRlMzY0MGNjY2MzZmE4
11
+ N2M0ZTgxNzExYTA1NDgyMGE3NzJlOThiMWY5MjlhNGJmMjcyYjA=
12
12
  data.tar.gz: !binary |-
13
- NjkxNjU3Yzg5ZmZiZGZmOGVhZmNmNzNmYWUzZDk4ZTQ3MjM4OTI3MTgwMDY2
14
- OWNmNTc0NTMwYzdiYzM0YjExYjkxNzk5NmE4MzA4YzAyOWVkMjIzMTNjYjNk
15
- OTNjYWExMWRhNmY2ZWE3ZDE4MjI2NDFhMTQxZTlmZmM4ZGQ2N2U=
13
+ MmU2MDQzZTFmNTA5MzkwMGM4NGVkMTc4OGRmMWExMDUwOGUzMzE5NjE0MDFj
14
+ ZGJkYTdkNDNkNDU3MTE5NjIzYjBlOWEwODE5ZTA2ZTQ0MzAzMDFiYzZhMWQz
15
+ MGE0ZDU4YWViNDM1YmMxOTFiZmI5MWE3NjU1NjQxZjMyZGY4MjI=
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Acc
1
+ # Acc [![Build Status](https://travis-ci.org/nsarno/acc.svg)](https://travis-ci.org/nsarno/acc)
2
2
 
3
3
  Interface for the AppleCare Connect Device Enrollment Program API
4
4
 
data/acc.gemspec CHANGED
@@ -6,6 +6,7 @@ require 'acc/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "acc"
8
8
  spec.version = Acc::VERSION
9
+ spec.licenses = ['MIT']
9
10
  spec.authors = ["Arnaud MESUREUR"]
10
11
  spec.email = ["arnaud.mesureur@gmail.com"]
11
12
 
@@ -15,6 +15,10 @@ class Acc::BulkEnrollResponse
15
15
  error_response.nil? ? [] : error_response.collect { |e| e['errorMessage'] }
16
16
  end
17
17
 
18
+ def raw_data
19
+ @response
20
+ end
21
+
18
22
  def data
19
23
  {
20
24
  dep_transaction_id: @response['deviceEnrollmentTransactionId'],
@@ -19,7 +19,6 @@ class Acc::CheckTransactionResponse
19
19
  error_response.kind_of?(Array) ? in_progress_array_error? : in_progress_error?
20
20
  end
21
21
 
22
-
23
22
  def in_progress_array_error?
24
23
  !error_response.nil? && error_response.first['errorCode'] == 'DEP-ERR-4003'
25
24
  end
@@ -37,6 +36,10 @@ class Acc::CheckTransactionResponse
37
36
  messages.delete_if { |msg| msg.nil? }
38
37
  end
39
38
 
39
+ def raw_data
40
+ @response
41
+ end
42
+
40
43
  def data
41
44
  @response
42
45
  end
data/lib/acc/service.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'curb'
2
+ require 'json'
2
3
 
3
4
  class Acc::Service
4
5
  def bulk_enroll data
data/lib/acc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Acc
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud MESUREUR
@@ -102,7 +102,8 @@ files:
102
102
  - lib/acc/service.rb
103
103
  - lib/acc/version.rb
104
104
  homepage: https://github.com/nsarno/acc
105
- licenses: []
105
+ licenses:
106
+ - MIT
106
107
  metadata: {}
107
108
  post_install_message:
108
109
  rdoc_options: []