cerulean 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cerulean.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2832093c83fe1a7ea7fd5085f472225316671c02
|
4
|
+
data.tar.gz: 360cf066301789c50d7cdb523e4d2e4672c54393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b368ed9c73bca4e11fd3c18422ba0b3897fdcb72934edb1442944a507ff997db7fa232a05fed5ea787222a71e78f1338f3c39ee59d8cc6cff082418f47a18c6a
|
7
|
+
data.tar.gz: f453577231ac84ba507fca160a57f2f0874965660519330c46daaa039974f0ffdd6a120d59fb2ec96fca49db6d8cba786543192c85bfa5e7751eed765bc976e9
|
data/lib/cerulean.rb
CHANGED
@@ -50,6 +50,14 @@ module Cerulean
|
|
50
50
|
endpoint(name, &block)
|
51
51
|
end
|
52
52
|
|
53
|
+
def put(name, &block)
|
54
|
+
endpoint(name, &block)
|
55
|
+
end
|
56
|
+
|
57
|
+
def delete(name, &block)
|
58
|
+
endpoint(name, &block)
|
59
|
+
end
|
60
|
+
|
53
61
|
def endpoint(name, &block)
|
54
62
|
self.class_variable_set(:@@meta, {}) unless self.class_variable_defined?(:@@meta)
|
55
63
|
|
@@ -143,4 +151,4 @@ module Cerulean
|
|
143
151
|
end
|
144
152
|
end
|
145
153
|
end
|
146
|
-
end
|
154
|
+
end
|