acfs 0.23.0 → 0.23.1.b198
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/lib/acfs/errors.rb +1 -1
- data/lib/acfs/model/query_methods.rb +1 -1
- data/lib/acfs/version.rb +1 -1
- data/spec/acfs/model/query_methods_spec.rb +1 -1
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDAyODY1YjMyYjViYzUwZDM5ZDZkMzdiYzc5OGRkODQwODNjOWRiNA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDJmODA4YWQ4MTZjZmExOWE4YTU3ZDk5MmFhYjU1ZDk5NTk4NzExNg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NWQwNzBmNjBiYWVmMDczNzEyNjM2Yzg2ZDRmNTIzNWVjODllMzU1ZTNhOWNh
|
10
|
+
MjlmZjZmNjI0ZGE4MjIyNWFhY2FmODcwMGVkNDc3MjNlMmYwY2RlZGJjODMx
|
11
|
+
YTU0NzgyMjhjMDA2Nzk0N2Q4MzdhZThjNDc3ZWI3N2Q0YTIwOWM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NzM3ZDAyZTYwNGExYjZhZWI4NDRkZTg5YzhmMDQ1YWY3OGEyYzYyYjEzZDEz
|
14
|
+
MGRkNjMwMzk2ZWQ5ZWU2NzFlZjBiMDBlMWYyM2ZhZTI1NGVjOTdiMTBiMzU0
|
15
|
+
Mzc3NjVlODVmZWM4M2EyYjYxZjZmZjQzM2UwNjE3ZWJkMDcxYjE=
|
data/lib/acfs/errors.rb
CHANGED
@@ -89,7 +89,7 @@ module Acfs
|
|
89
89
|
# Gets raised if ressource type is no valid subclass of
|
90
90
|
# parent resource. Check if the type is set to the correct
|
91
91
|
# Acfs::Resource Name
|
92
|
-
class
|
92
|
+
class ResourceTypeError < Error
|
93
93
|
attr_reader :base_class
|
94
94
|
attr_reader :type_name
|
95
95
|
|
@@ -128,7 +128,7 @@ module Acfs::Model
|
|
128
128
|
def resource_class_lookup(type)
|
129
129
|
return self if type.nil?
|
130
130
|
klass = type.camelize.constantize
|
131
|
-
raise Acfs::
|
131
|
+
raise Acfs::ResourceTypeError, type_name: type, base_class: self unless klass <= self
|
132
132
|
klass
|
133
133
|
end
|
134
134
|
|
data/lib/acfs/version.rb
CHANGED
@@ -131,7 +131,7 @@ describe Acfs::Model::QueryMethods do
|
|
131
131
|
|
132
132
|
it 'should raise error if type is no subclass' do
|
133
133
|
Computer.all
|
134
|
-
expect { Acfs.run }.to raise_error(Acfs::
|
134
|
+
expect { Acfs.run }.to raise_error(Acfs::ResourceTypeError)
|
135
135
|
end
|
136
136
|
end
|
137
137
|
end
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.1.b198
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Graichen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '>='
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '>='
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - '>='
|
31
|
+
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - '>='
|
38
|
+
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionpack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - '>='
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - '>='
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: multi_json
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - '>='
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - '>='
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: typhoeus
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - '>='
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - '>='
|
80
|
+
- - ! '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rack
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - '>='
|
87
|
+
- - ! '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - '>='
|
94
|
+
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
@@ -212,14 +212,14 @@ require_paths:
|
|
212
212
|
- lib
|
213
213
|
required_ruby_version: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
|
-
- - '>='
|
215
|
+
- - ! '>='
|
216
216
|
- !ruby/object:Gem::Version
|
217
217
|
version: '0'
|
218
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - '
|
220
|
+
- - ! '>'
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
222
|
+
version: 1.3.1
|
223
223
|
requirements: []
|
224
224
|
rubyforge_project:
|
225
225
|
rubygems_version: 2.0.3
|
@@ -253,4 +253,3 @@ test_files:
|
|
253
253
|
- spec/spec_helper.rb
|
254
254
|
- spec/support/response.rb
|
255
255
|
- spec/support/service.rb
|
256
|
-
has_rdoc:
|