saral 0.0.8 → 0.0.9
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 +4 -4
- data/README.md +4 -0
- data/lib/saral/version.rb +1 -1
- data/lib/saral.rb +4 -2
- 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: 5e1aa2110336796fdb47950f52bdd1ff378c8b34
|
|
4
|
+
data.tar.gz: 7379a1436f7cb44bb7e55466effeb8868b04163e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd789d1ac3d7f9e9cce41313ee87e57ad1c446b1ff12a2a1cf4e99ab9ba2a22e6e907751e919443e687a562f20582a95a7d35fd65d78a61709ed2834e0a2e918
|
|
7
|
+
data.tar.gz: 46ca8976fae5fa72af05289091bff15813867a6e6d75d150cfe895218de7db33e6ec88d9f64b9386340456b100c29b47bb5a1ff940e32f62bf99ad981502cc69
|
data/README.md
CHANGED
|
@@ -27,3 +27,7 @@ Or install it yourself as:
|
|
|
27
27
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
28
28
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
29
29
|
5. Create new Pull Request
|
|
30
|
+
|
|
31
|
+
## Gem Version
|
|
32
|
+
|
|
33
|
+
[](http://badge.fury.io/rb/saral)
|
data/lib/saral/version.rb
CHANGED
data/lib/saral.rb
CHANGED
|
@@ -17,8 +17,10 @@ module Saral
|
|
|
17
17
|
[200, {'Content-Type' => 'text/html'}, [text]]
|
|
18
18
|
rescue LoadError
|
|
19
19
|
[400, {'Content-Type' => 'text/html'}, ["Sorry! The request had bad syntax or was inherently impossible to be satisfied."]]
|
|
20
|
-
rescue
|
|
21
|
-
[404, {'Content-Type' => 'text/html'}, ["Sorry!
|
|
20
|
+
rescue NameError
|
|
21
|
+
[404, {'Content-Type' => 'text/html'}, ["Sorry! NameError."]]
|
|
22
|
+
rescue TypeError
|
|
23
|
+
[404, {'Content-Type' => 'text/html'}, ["Sorry! TypeError."]]
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
26
|
end
|