apple_vpp 1.0.0 → 1.0.1

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Njk4MWU4NzhlZWMwM2M2MTNjNDYxNDUxYjhiNWQwMDg0OTVmNDliZA==
4
+ MGRjNTMwZjAzYzU4NTU5ZTg4MDBjOWY2NzVkZjhlOTUwZGI4MGFjZA==
5
5
  data.tar.gz: !binary |-
6
- ZGY5YWEwZTIzM2UwODY3NGM5NjIyYzk1MTE4NWFjMGI0ZWExNDFiMw==
6
+ Y2RiMzFlZDUzZmQ5NzZkNjJlYWRjYTQ4MTlkYjQzM2FlZjFiNzkxMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmJjNjNlNTZmYzBhNWIyZWM1NmZhM2M3ZDM0NDY1NTk2MTkzNGY1MTIyNWY4
10
- MzFjNmFmYTVmNDViNzQ0ZjUxYzY2NGRmMmJjMTRiNzdlYWQ0M2JlZDBkNmVj
11
- OWNlNWQyYjVjYzM5MDAzYzU1OTc3NDU5OWZjM2QzNmZiNjcyNmU=
9
+ MjM0OTQ0MGUxY2Y3ODRkM2UwZWZlNTE2NDFlODczZjVkNDE0NTljZmE5Njk3
10
+ ZjdmMzcyMDlmMGMxNTU4NDNhMTIyNTVmN2Y5Mzg3YTYxZjQ5MGQ0ZDM0ZjIy
11
+ NzgwNDg4MTQ3NGY4MDg5MTk5ZTczM2IwZTdiMmQ2ZDk4ZTliNjU=
12
12
  data.tar.gz: !binary |-
13
- NDZiNmYxMzdmYWE0MWNiNTY2ZDEyNWVlM2IyOTkxODMzYmZmNWI5Y2ViZGIx
14
- ZTRkZDMxMTVlY2VlZDZkOGVkODgxMTY4Njc0Mzc4NDUzNDEwNTgxYjI0NzMx
15
- Mjc3YWY4M2E5MWFjZWZiNzYwNGI1NGMzOTJjZTI1MzU5NzZkMTQ=
13
+ N2YwNTNkMGM2NzYwMzNjZWMyN2E0YWMyNTBjY2UwYjdlOTUwMzM5MmViMzAz
14
+ NTMwM2JhMDQxYTZkOTg5MDA5NDRlYWMyODRlN2U3ZThhZDBhNGQ5NjRjNGFl
15
+ ODkzZWJjMTllZDU3NmIzMjdhY2I0YjhjN2EyYTI0M2RhNTY0Njg=
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  *.rbc
3
+ Gemfile.lock
3
4
  .bundle
4
5
  .config
5
6
  coverage
@@ -1,13 +1,12 @@
1
1
  module AppleVPP
2
2
  module Error
3
3
 
4
- def self.create_error_class code
5
- class_name = "Code#{code}"
6
- begin
7
- Module.const_get(class_name)
8
- self.const_set class_name, ( Class.new StandardError )
9
- rescue NameError
10
- end
4
+ codes = [ 9600, 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608, 9609,
5
+ 9610, 9611, 9612, 9613, 9614, 9615, 9616, 9617, 9618, 9619,
6
+ 9620, 9621, 9622, 9623 ]
7
+
8
+ codes.each do |code|
9
+ self.const_set "Code#{code}", ( Class.new StandardError )
11
10
  end
12
11
 
13
12
  end
@@ -41,10 +41,6 @@ module AppleVPP
41
41
  @errors[ i['errorNumber'] ] = i['errorMessage']
42
42
  end
43
43
 
44
- @errors.each do | number, _message|
45
- AppleVPP::Error.create_error_class( number )
46
- end
47
-
48
44
  @ready = true
49
45
  end
50
46
 
@@ -1,3 +1,3 @@
1
1
  module AppleVPP
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_vpp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Boyko
@@ -76,7 +76,6 @@ files:
76
76
  - .gitignore
77
77
  - .rspec
78
78
  - Gemfile
79
- - Gemfile.lock
80
79
  - LICENSE
81
80
  - LICENSE.txt
82
81
  - README.md
data/Gemfile.lock DELETED
@@ -1,31 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- apple_vpp (1.0.0)
5
- rest-client (~> 1.6.7)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- diff-lcs (1.2.4)
11
- mime-types (1.25)
12
- rake (10.1.0)
13
- rest-client (1.6.7)
14
- mime-types (>= 1.16)
15
- rspec (2.14.1)
16
- rspec-core (~> 2.14.0)
17
- rspec-expectations (~> 2.14.0)
18
- rspec-mocks (~> 2.14.0)
19
- rspec-core (2.14.4)
20
- rspec-expectations (2.14.0)
21
- diff-lcs (>= 1.1.3, < 2.0)
22
- rspec-mocks (2.14.1)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- apple_vpp!
29
- bundler (~> 1.3)
30
- rake
31
- rspec