udrs 0.1.0 → 0.1.1

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: c2c17a09654a55b9b2e30ee71b9f6f5d940f32e8
4
- data.tar.gz: 7ece63f00f97b75c1e955679c0f55a681a5802b3
3
+ metadata.gz: 00cc7b3c48709ff730512c5d007687d3d223abc8
4
+ data.tar.gz: 6dffbd95c32da4ad34c21d8980052272ffdec3c3
5
5
  SHA512:
6
- metadata.gz: da98fe1ffe17900362377dc6bc3baeab6807578b8746ec96f21fefde97af0f72db7a65a7354a92591879e57a1432c0e53ff89d41c0a1a210f34c9b2875dcf8c3
7
- data.tar.gz: 8a944d33c23d1ce309e78c65523ba15951d25fca0fbf8c2eab62c2b5b9df8304c6e0672525c400a1e9ab1ae44b50b676b8d9913b01524a2de575cb3c09a95fcb
6
+ metadata.gz: aa93bccad200693c67a47bbb79f11def51367f14fb09d0ea3445bdc3a053e5419c0615cd185ee7728abb4ac4ff7b96e4644da2a907a4d53b8dbbefb61ac79dc9
7
+ data.tar.gz: 4877b5f4d4ce04b87dd7f9dad8b7b31751094bfc9202de3677afc33e16c916c3069d4938824a5514052376919eede02535aa9ea885f7df07c2ff955ebbefe286
@@ -9,6 +9,10 @@ module UDRS
9
9
 
10
10
  Mime::Type.register_alias('application/pdf', :pdf) if !Mime::Type.lookup_by_extension(:pdf)
11
11
  Mime::Type.register_alias('application/octet-stream', :escp) if !Mime::Type.lookup_by_extension(:escp)
12
+
13
+ ActionController::MimeResponds::Collector.send(:define_method, 'udrs') do |&block|
14
+ return any(*%i(pdf escp), &block)
15
+ end
12
16
  end
13
17
  end
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module Udrs
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michon van Dooren
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_predicates