playerconnect-wsdsl 0.2.6 → 0.2.7
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/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/wsdsl.rb +11 -0
- data/playerconnect-wsdsl.gemspec +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Jeweler::Tasks.new do |gem|
|
|
11
11
|
gem.description = %Q{A Ruby DSL describing Web Services without implementation details.}
|
12
12
|
gem.email = "sdod"
|
13
13
|
gem.authors = ["Team SDOD"]
|
14
|
-
gem.version = "0.2.
|
14
|
+
gem.version = "0.2.7"
|
15
15
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
16
16
|
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
17
17
|
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.7
|
data/lib/wsdsl.rb
CHANGED
@@ -136,6 +136,7 @@ class WSDSL
|
|
136
136
|
@ssl = false
|
137
137
|
@auth_required = true
|
138
138
|
@extra = {}
|
139
|
+
@content_type = nil
|
139
140
|
end
|
140
141
|
|
141
142
|
# Checks the WSDSL flag to see if the controller names are pluralized.
|
@@ -237,6 +238,16 @@ class WSDSL
|
|
237
238
|
def enable_ssl
|
238
239
|
@ssl = true
|
239
240
|
end
|
241
|
+
|
242
|
+
# Sets and/or returns the service content_type
|
243
|
+
# @param [String] Valid HTTP content_type like 'multipart/form-data'
|
244
|
+
#
|
245
|
+
# @return [String] The content type for this service
|
246
|
+
# @api public
|
247
|
+
def content_type(ct=nil)
|
248
|
+
@content_type = ct if ct
|
249
|
+
@content_type
|
250
|
+
end
|
240
251
|
|
241
252
|
# Mark the current service as not accepting any params.
|
242
253
|
# This is purely for expressing the developer's objective since
|
data/playerconnect-wsdsl.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{playerconnect-wsdsl}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Team SDOD}]
|
12
|
-
s.date = %q{2011-07-
|
12
|
+
s.date = %q{2011-07-21}
|
13
13
|
s.description = %q{A Ruby DSL describing Web Services without implementation details.}
|
14
14
|
s.email = %q{sdod}
|
15
15
|
s.extra_rdoc_files = [
|
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.2.
|
4
|
+
version: 0.2.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-07-
|
12
|
+
date: 2011-07-21 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Ruby DSL describing Web Services without implementation details.
|
15
15
|
email: sdod
|