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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3d72a7b1bda52dfa0633c68ccef7dfbda7e1f24
4
- data.tar.gz: 4a67e789a53ab800a50080e76ba6391662db41ac
3
+ metadata.gz: 51449dcbb3b335ba58d88fa1c84ce1fddabcebb7
4
+ data.tar.gz: 2bd8bb6c5962367c08d799597ba5d15f9ad11251
5
5
  SHA512:
6
- metadata.gz: 85221c8f5ac468414c30d5abdc95f79301edd589d6de166a3135295d004b94c6c6828ad69a7388a64a199b797a9447902701ada7e33705a2412877315bfc51de
7
- data.tar.gz: 42447beed04256733e0d364d9f5b2640be263678b2f8a7ec9e6751966fbd8caf578b178e9c5d2a68abb864f8be83177206fff164d9c29a312be7cdacdab846b4
6
+ metadata.gz: efe2dcf1bfc3eabcd1fd7e27eaa090f3d7127eeb3db0f653e3d98710085bd383a3d6103b25c65ef302be8fc762f56e445a27820706e10cf03bda4c384f76a504
7
+ data.tar.gz: a483eb4e9173f04acbc86295c8f13fd4c260184571e118b5506158f093b298e39f366de71a8b7586efc2fe5a60d1edc89f4ec00e30faf1bae4f326504d4543ef
@@ -146,13 +146,25 @@ module Endow
146
146
  def content_type_name
147
147
  content_type.blank? ?
148
148
  :no_content_type_specified :
149
- content_type.split( '/' ).join( '_' )
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
- accept.split( '/' ).join( '_' )
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
@@ -1,3 +1,3 @@
1
1
  module Endow
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-07 00:00:00.000000000 Z
11
+ date: 2014-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport