wsdsl 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/lib/wsdsl.rb CHANGED
@@ -125,7 +125,8 @@ class WSDSL
125
125
  @response = WSDSL::Response.new
126
126
  @name = extract_service_root_name(url)
127
127
  if WSDSL.use_pluralized_controllers
128
- @controller_name = "#{ExtlibCopy.classify(ExtlibCopy::Inflection.pluralize(name))}Controller"
128
+ base_name = ExtlibCopy::Inflection.pluralize(ExtlibCopy::Inflection.singular(name))
129
+ @controller_name = "#{ExtlibCopy.classify(base_name)}Controller"
129
130
  else
130
131
  @controller_name = "#{ExtlibCopy.classify(name)}Controller"
131
132
  end
data/spec/wsdsl_spec.rb CHANGED
@@ -79,6 +79,8 @@ describe WSDSL do
79
79
  WSDSL.use_pluralized_controllers = true
80
80
  service = WSDSL.new("player/:id.xml")
81
81
  service.controller_name.should == "PlayersController"
82
+ service = WSDSL.new("players/:id.xml")
83
+ service.controller_name.should == "PlayersController"
82
84
  WSDSL.use_pluralized_controllers = false
83
85
  service = WSDSL.new("player/:id.xml")
84
86
  service.controller_name.should == "PlayerController"
data/wsdsl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wsdsl}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Aimonetti"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Aimonetti