hypertext_client 0.0.5 → 0.0.6
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.
- data/CHANGELOG +4 -0
- data/lib/hypertext_client/hypertext_client.rb +2 -2
- data/test/test_hypertext_client.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
# Hypertext provides an HTTP client based on HTTParty, with a few assumptions baked in.
|
20
20
|
module HypertextClient
|
21
|
-
VERSION = '0.0.
|
21
|
+
VERSION = '0.0.6'
|
22
22
|
|
23
23
|
extend ActiveSupport::Concern
|
24
24
|
# Include HTTParty
|
@@ -89,7 +89,7 @@ module HypertextClient
|
|
89
89
|
# Specify a base url for the client.
|
90
90
|
def base_url(base)
|
91
91
|
self.base_endpoint = base
|
92
|
-
base_uri self.base_endpoint + '/' + self.name.demodulize.pluralize.
|
92
|
+
base_uri self.base_endpoint + '/' + self.name.demodulize.pluralize.underscore
|
93
93
|
end
|
94
94
|
|
95
95
|
def belongs_to(*classes)
|
@@ -125,7 +125,7 @@ class HypertextClientTest < MiniTest::Unit::TestCase
|
|
125
125
|
assert_nil widget.has_id?
|
126
126
|
end
|
127
127
|
|
128
|
-
def
|
128
|
+
def test_gets_camelcased_classes_correctly
|
129
129
|
example = SkynetClient::CamelcaseClass.get 'example'
|
130
130
|
assert_equal example.property, "exists"
|
131
131
|
end
|