wordnik 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -50,12 +50,12 @@ task :generate_usage_docs do
50
50
 
51
51
  # Required kwargs
52
52
  operation.required_kwargs.each do |parameter|
53
- file.write " :#{parameter.name}* #{' ' * (29-parameter.name.size)} #{parameter.description}\n"
53
+ file.write " :#{parameter.name.underscore}* #{' ' * (29-parameter.name.underscore.size)} #{parameter.description}\n"
54
54
  end
55
55
 
56
56
  # Optional kwargs
57
57
  operation.optional_kwargs.each do |parameter|
58
- file.write " :#{parameter.name} #{' ' * (30-parameter.name.size)} #{parameter.description}\n"
58
+ file.write " :#{parameter.name.underscore} #{' ' * (30-parameter.name.underscore.size)} #{parameter.description}\n"
59
59
  end
60
60
  end
61
61
 
@@ -15,14 +15,11 @@ module Wordnik
15
15
 
16
16
  # Fudge body param into having the name :body
17
17
  self.name = :body if self.name.blank?
18
-
19
- # Change camelcase to underscore
20
- self.name = self.name.to_s.underscore
21
18
  end
22
19
 
23
20
  def human_name
24
21
  return "request body" if self.param_type == 'body'
25
- self.name
22
+ self.name.to_s
26
23
  end
27
24
 
28
25
  def has_allowable_array?
@@ -1,3 +1,3 @@
1
1
  module Wordnik
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wordnik
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.2
5
+ version: 0.4.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Zeke Sikelianos
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-04 00:00:00 -07:00
14
+ date: 2011-04-06 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency