halitosis 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/halitosis/version.rb +1 -1
- data/lib/halitosis.rb +8 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 132a48c57ab46ecf35fe607abea9b4cb5fe1239093847c7881529d6e9ee24432
|
4
|
+
data.tar.gz: cca910ac243034a3207ea29d49fcbfb89a0cdca40d144210172bb6620a309a0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a567c4147e4755a43c374142dc7a6d7a316c6f73990ca0560fe0d8aad90bcfec3262f3da5950a7a7e1d723d2427ac34d8c59941d2792c1ea2de7585319b8f0
|
7
|
+
data.tar.gz: 71e056347098a5399605c14a95afbf8eeb25b4d938521d739f86571a67324daba2042b58996993ca7ee5f0f5dd296f4974506572c93ad2dae1aa69cd2e88b6dc
|
data/lib/halitosis/version.rb
CHANGED
data/lib/halitosis.rb
CHANGED
@@ -33,31 +33,28 @@ module Halitosis
|
|
33
33
|
base.extend ClassMethods
|
34
34
|
|
35
35
|
base.include Base
|
36
|
+
base.include Identifiers
|
36
37
|
base.include Attributes
|
38
|
+
base.include Links
|
39
|
+
base.include Meta
|
40
|
+
base.include Permissions
|
41
|
+
base.include Relationships
|
42
|
+
base.include RootLinks
|
43
|
+
base.include RootMeta
|
44
|
+
base.include RootPermissions
|
37
45
|
|
38
46
|
config.extensions.each { |extension| base.send :include, extension }
|
39
47
|
end
|
40
48
|
|
41
49
|
module ClassMethods
|
42
50
|
def resource(name)
|
43
|
-
include Identifiers
|
44
|
-
include Links
|
45
|
-
include Meta
|
46
|
-
include Permissions
|
47
|
-
include Relationships
|
48
51
|
include Halitosis::Resource
|
49
|
-
include RootLinks
|
50
|
-
include RootMeta
|
51
|
-
include RootPermissions
|
52
52
|
|
53
53
|
define_resource(name)
|
54
54
|
end
|
55
55
|
|
56
56
|
def collection(name, ...)
|
57
57
|
include Halitosis::Collection
|
58
|
-
include RootLinks
|
59
|
-
include RootMeta
|
60
|
-
include RootPermissions
|
61
58
|
|
62
59
|
define_collection(name, ...)
|
63
60
|
end
|