mmunicode_rails 0.4.1 → 0.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efe4af80708530194cd7998a23054c3fd951e6e9
4
- data.tar.gz: 57a0a9337fa86ffa65478c25966b96f6efede3c5
3
+ metadata.gz: 78a19839b655a6769596e1432598cac43c46d782
4
+ data.tar.gz: d513544460c2bf1b79a76f6bfe2cc9e1e6a342fc
5
5
  SHA512:
6
- metadata.gz: 7007e9002ec63a91c233178a6063b589550515602b4883fad40b24b002d40528cea61c77a4514f8fb4cdd677504d67defab1d1e3c88bca029dc1b925259b3d77
7
- data.tar.gz: 276423d68011ee1b85448aa4a92d500f2c37fbd53b9ea13a41256f534456870095d406fdfdcbbd7d9922223ff46af48b4cf45b35b1a1731ce7ce0f06b5d003a2
6
+ metadata.gz: 59fe15cc44f65b01a3e3fefeafd111e118ed91e8b391a4cebff105cfbc81e4cd85247c5e6d48e930d8019d7f978fa38ee565e9a1a79925136c4fad907e5181d7
7
+ data.tar.gz: b1cedc83c6d3fbd0a24dfbc2ced00a4b0b78244865202820083b4a8930317de90632d6f4f8e2fffb53b5231f4b68666a11a3018325f7e73f7c673c547cd1d9e9
@@ -1,3 +1,3 @@
1
1
  module MmunicodeRails
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -288,8 +288,30 @@ module MmunicodeRails
288
288
  @app = app
289
289
  end
290
290
 
291
+
291
292
  def call(env)
292
293
  request = Rack::Request.new env
294
+ #This monkey patching is a hack for rack 1.4.5 compatibility required for rails 3.2.*
295
+ unless request.respond_to? :update_param then
296
+ request.instance_eval do
297
+ def update_param(k, v)
298
+ found = false
299
+ if self.GET.has_key?(k)
300
+ found = true
301
+ self.GET[k] = v
302
+ end
303
+ if self.POST.has_key?(k)
304
+ found = true
305
+ self.POST[k] = v
306
+ end
307
+ unless found
308
+ self.GET[k] = v
309
+ end
310
+ @params = nil
311
+ nil
312
+ end
313
+ end
314
+ end
293
315
  converted_params = []
294
316
  request.params.each_pair do|key,value|
295
317
  puts "#{key}: #{value}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmunicode_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dreamingblackcat