wsdsl 0.1.1 → 0.1.2

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.1
1
+ 0.1.2
data/lib/wsdsl.rb CHANGED
@@ -80,13 +80,13 @@ class WSDSL
80
80
  #
81
81
  # @return [String]
82
82
  # @api public
83
- attr_reader :action
83
+ attr_accessor :action
84
84
 
85
85
  # Name of the controller associated with the service
86
86
  #
87
87
  # @return [String]
88
88
  # @api public
89
- attr_reader :controller_name
89
+ attr_accessor :controller_name
90
90
 
91
91
  # Name of the service
92
92
  #
data/spec/wsdsl_spec.rb CHANGED
@@ -84,6 +84,17 @@ describe WSDSL do
84
84
  service.controller_name.should == "PlayerController"
85
85
  end
86
86
 
87
+
88
+ it "should let overwrite the controller name and action after initialization" do
89
+ describe_service "players/:id.xml" do |service|
90
+ service.controller_name = "CustomController"
91
+ service.action = "foo"
92
+ end
93
+ service = WSList.all.find{|s| s.url == "players/:id.xml"}
94
+ service.controller_name.should == "CustomController"
95
+ service.action.should == "foo"
96
+ end
97
+
87
98
  describe WSDSL::Params do
88
99
 
89
100
  before(:all) do
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.1"
8
+ s.version = "0.1.2"
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
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Aimonetti