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 +4 -4
- data/lib/udrs/engine.rb +4 -0
- data/lib/udrs/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: 00cc7b3c48709ff730512c5d007687d3d223abc8
|
4
|
+
data.tar.gz: 6dffbd95c32da4ad34c21d8980052272ffdec3c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa93bccad200693c67a47bbb79f11def51367f14fb09d0ea3445bdc3a053e5419c0615cd185ee7728abb4ac4ff7b96e4644da2a907a4d53b8dbbefb61ac79dc9
|
7
|
+
data.tar.gz: 4877b5f4d4ce04b87dd7f9dad8b7b31751094bfc9202de3677afc33e16c916c3069d4938824a5514052376919eede02535aa9ea885f7df07c2ff955ebbefe286
|
data/lib/udrs/engine.rb
CHANGED
@@ -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
|
data/lib/udrs/version.rb
CHANGED
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.
|
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
|
+
date: 2016-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_predicates
|