playerconnect-wsdsl 0.4.0 → 0.4.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/lib/wsdsl.rb CHANGED
@@ -146,6 +146,18 @@ class WSDSL
146
146
  @extra = {}
147
147
  @content_type = nil
148
148
  end
149
+
150
+ def self.partials
151
+ @partials ||= {}
152
+ end
153
+
154
+ def self.define_partial(name, &block)
155
+ partials[name] = block
156
+ end
157
+
158
+ def self.partial(name, args)
159
+ partials[name].call(args) if(partials.has_key?(name))
160
+ end
149
161
 
150
162
  # Checks the WSDSL flag to see if the controller names are pluralized.
151
163
  #
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "playerconnect-wsdsl"
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Team SDOD"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playerconnect-wsdsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: