endow 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/endow/endpoint.rb +14 -2
- data/lib/endow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51449dcbb3b335ba58d88fa1c84ce1fddabcebb7
|
4
|
+
data.tar.gz: 2bd8bb6c5962367c08d799597ba5d15f9ad11251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe2dcf1bfc3eabcd1fd7e27eaa090f3d7127eeb3db0f653e3d98710085bd383a3d6103b25c65ef302be8fc762f56e445a27820706e10cf03bda4c384f76a504
|
7
|
+
data.tar.gz: a483eb4e9173f04acbc86295c8f13fd4c260184571e118b5506158f093b298e39f366de71a8b7586efc2fe5a60d1edc89f4ec00e30faf1bae4f326504d4543ef
|
data/lib/endow/endpoint.rb
CHANGED
@@ -146,13 +146,25 @@ module Endow
|
|
146
146
|
def content_type_name
|
147
147
|
content_type.blank? ?
|
148
148
|
:no_content_type_specified :
|
149
|
-
|
149
|
+
determine_content_type_name
|
150
|
+
end
|
151
|
+
|
152
|
+
# Override for custom MIMEs, etc
|
153
|
+
#
|
154
|
+
def determine_content_type_name
|
155
|
+
content_type.split( '/' ).join( '_' )
|
150
156
|
end
|
151
157
|
|
152
158
|
def accept_name
|
153
159
|
accept.blank? ?
|
154
160
|
:no_accept_specified :
|
155
|
-
|
161
|
+
determine_accept_name
|
162
|
+
end
|
163
|
+
|
164
|
+
# Override for custom MIMEs, etc
|
165
|
+
#
|
166
|
+
def determine_accept_name
|
167
|
+
accept.split( '/' ).join( '_' )
|
156
168
|
end
|
157
169
|
|
158
170
|
def default_headers
|
data/lib/endow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: endow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Harrelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|