crayfish 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmYwYTAwNjU2OTllZmJlOTkwZWI1YjI0NTM5NGY2NTExNzU2NDc3MA==
4
+ ZWFjYjBlNGFmOWNlNmM3NWI2MTA0Nzg0NjVmYzc5MWJmZDFmYTkzYw==
5
5
  data.tar.gz: !binary |-
6
- ZDZjYjI0Yjc0MjU3YTI2OTQwMmM1NGY0ZTU2Yjk4MDIzNTZlYWQxNA==
6
+ MThlYzk3MDI0MzliZTBjOWQ2MGFlNDkzOTZlMDZlYTViOTlmMmI5Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2QxMWNhNGRiOGNmMWFjMGI5MTMxMGFjOWU0YzQzOTA1ODQ5ODA0OTc5MjNm
10
- MzMxYmVlNTliMWIzY2YwZDZmZDdkOWE4Nzg4N2Q0MGEwNWNiMWZlYzk3YTcx
11
- ZjczYjE0MmU4MTA4ZTJkNTFkNTFjZmEyMzkzYzU5MGZjNTFmOGY=
9
+ ZDJlMjZmMGJkY2Y0Njc0ZjgxOTgxOGEzYjFkYTFmZTRiMDk5MzM0NWE1ZDRm
10
+ OGI4MjE5MmYzZDcwNDk3NWFmZDQwOGU3MTczOTAxMzE1YzEyYjk1MGRiZWU1
11
+ OWU5NTJiYmExNzEwMDQ1Nzk0YzUxODM3YjRlZTQ5NjhkYjg4ZGY=
12
12
  data.tar.gz: !binary |-
13
- ODVkODA1NWE3YTc4NjA4NzVhZDI2ZGMwMGZkZWQwNDc4Y2Y2NDA0YzViOTg3
14
- ZjgyZWQ2Y2I5Zjg1Mjc1ZmExNjcwYjI5ZTExZmQ0ZTc5ZThkYzYzMzNhNjk5
15
- M2U2NDFmZGEwYWQ3MWNkOTMyMGZjM2ZiZjFhMDlmYjkzZDYxNjc=
13
+ M2EyM2M1ZTUxMDYxYTJhMzIwMDgyMTlmYTJkYTNiZDFhNzYzZmY3YjBmMDli
14
+ MDU4NDc1NDZlOGZjZWMyMDE3NTU2MzU3ZmMwZmYxMzUzZTU1N2IyYzAwNDNm
15
+ OGQzMWJhZTZkNWZhOTRlZDAyZGE5MWZiNDVkZmY3MGM2ZmQ2MDE=
data/README.md CHANGED
@@ -70,7 +70,7 @@ gem 'prawn', :git => 'git://github.com/teknobingo/prawn.git', :branch => 'master
70
70
 
71
71
  Which gives you a single paged PDF looking like this:
72
72
 
73
- ![](http://github.com/patrickhno/crayfish/raw/master/doc/example.png)
73
+ ![](https://raw.githubusercontent.com/patrickhno/crayfish/master/doc/example.png)
74
74
 
75
75
  You can also use Prawn directly:
76
76
 
@@ -31,7 +31,7 @@ module Crayfish
31
31
  controller_options = controller ? controller.send(:options) || {} : {}
32
32
  @options = Crayfish::ActionController.options.merge(Hash[*controller_options.map{ |k,v| [k.to_sym,v] }.flatten])
33
33
 
34
- if controller
34
+ if controller && controller.respond_to?(:response)
35
35
  if options[:html]
36
36
  controller.response.content_type ||= Mime::HTML
37
37
  else
@@ -41,7 +41,7 @@ module Crayfish
41
41
 
42
42
  inline = options[:inline] ? 'inline' : 'attachment'
43
43
  filename = options[:filename] ? "filename=#{options[:filename]}" : nil
44
- controller.headers["Content-Disposition"] = [inline,filename].compact.join(';') if controller
44
+ controller.headers["Content-Disposition"] = [inline,filename].compact.join(';') if controller && controller.respond_to?(:headers)
45
45
  end
46
46
 
47
47
  end
@@ -21,5 +21,5 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  module Crayfish
24
- VERSION = "0.2.6"
24
+ VERSION = "0.2.7"
25
25
  end
@@ -1809,3 +1809,26 @@ undefined local variable or method `aaa' for #<CrayfishActionViewTest::ActionVie
1809
1809
   (0.0ms) rollback transaction
1810
1810
   (0.0ms) begin transaction
1811
1811
   (0.0ms) rollback transaction
1812
+  (0.7ms) begin transaction
1813
+  (0.0ms) rollback transaction
1814
+  (0.1ms) begin transaction
1815
+ unknown node p in CrayHtml
1816
+  (0.1ms) rollback transaction
1817
+  (0.0ms) begin transaction
1818
+  (0.0ms) rollback transaction
1819
+  (0.0ms) begin transaction
1820
+  (0.0ms) rollback transaction
1821
+  (0.0ms) begin transaction
1822
+  (0.0ms) rollback transaction
1823
+  (0.0ms) begin transaction
1824
+  (0.0ms) rollback transaction
1825
+  (0.0ms) begin transaction
1826
+  (0.0ms) rollback transaction
1827
+  (0.0ms) begin transaction
1828
+  (0.0ms) rollback transaction
1829
+  (0.0ms) begin transaction
1830
+  (0.0ms) rollback transaction
1831
+  (0.0ms) begin transaction
1832
+  (0.0ms) rollback transaction
1833
+  (0.0ms) begin transaction
1834
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crayfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Hanevold
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-23 00:00:00.000000000 Z
11
+ date: 2014-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails