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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.6 (October 7, 2010)
2
+
3
+ More improvements to camel-cased class names
4
+
1
5
  ## 0.0.5 (October 7, 2010)
2
6
 
3
7
  Handle camel-cased class names better
@@ -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.5'
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.downcase
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 gets_camelcased_classes_correctly
128
+ def test_gets_camelcased_classes_correctly
129
129
  example = SkynetClient::CamelcaseClass.get 'example'
130
130
  assert_equal example.property, "exists"
131
131
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Quid, Inc.