pothoven-attachment_fu 3.3.0 → 3.3.1

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjRhMjdkMWRkOThhNDgyNDdhZjIwMTA3N2JjM2ZkN2Q1MjVmODljNA==
4
+ YTE4YjMyNGEwMzdiNjVhNmMyMTA2ZGNkN2I5MDJiN2RkYzE3NzY1MQ==
5
5
  data.tar.gz: !binary |-
6
- NjY2Yjg2MzQ1ZDU3MmY0YzVmNGIzMTBhNTIxYzBhM2Q0ZDI5MTEwMg==
6
+ MzFmMDhmYWM0NGNiMTEyMTViNjBlMTk5ZmY0ZGYyZDYyOTkzY2NkOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTI4OGU5OWJmZTUzY2E5YmNlMTVmZGY5MTVkYWVkNWQyNjg3OTY3MDJkYjY1
10
- ZTg2MmZjMzI3MzQ4MjJkM2RhY2RiZTFlMTUxOTkzMmFmNzY5NTA1NjgyMjVk
11
- ZmIyNjk1ZGMwM2I2OTI0YmNjZDcyYTExYzdkZmM1ZWM2ZjA2OTc=
9
+ OTA0ZmMxYTFjYzUyZDkwN2E2MmYzYjBhYjA2YjM3NjBhNmQyZDY4NTQwOWFj
10
+ Njk3MGU4MTMwZDU1YjBkZTQ1YWQ0MDdkZWQ0ZDEwNTg5NzEyM2U3NTBkMTNl
11
+ YjBiM2M1NTNjNDdmMzZjMDJjYWEyMTQ4NzUyZDA4ZmEyMTYzZWE=
12
12
  data.tar.gz: !binary |-
13
- OGYyZGI4NjYyYzRhMmM0NDE5ZmFiZTNmMzRjYTA2YTI5Njk2NzBjYWI4N2Jh
14
- ZDMyN2ZjMTI1ZTNhMDE4ZGQ1NzczNjU2ZDk2NTMxMWJhMWZjMzg0NGNjYWJi
15
- NGU3ZjlkODkyZmU4ZDI1ZTE0MDk1MzJiMzU3N2Y3ODA4MWI4NzI=
13
+ MGQ4MzUyOWUxNzFmN2RkMDAzNGI5OWE1NmYxOTNjNWU0NzhhODNhNmFiOTA2
14
+ MGE1NjUyODUxYzgyYWQ3OWE1MGEwY2RmYTA3YTc5ZGYyYTUzNDFiOGM4OGYx
15
+ ZjFhYzMwYjczZjUwNDJkZDZhYzU2M2I3ZTlmMGFiYzM2YmExZWU=
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * Oct 18, 2017 *
2
+ * Pull in changes from michaelsauter to replace alias_method_chain with alias_method for Rails 5 support *
3
+ * Update michaelsauter's alias_method changes to work in older Rails *
4
+ * Bump version to 3.3.1 *
5
+
1
6
  * Apr 19, 2017 *
2
7
  * Pull in changes from bacrossland to upgrade from aws-s3 gem to aws-sdk gem *
3
8
  * Bump version to 3.3.0 to try to protect auto builds using s3 gem from breaking *
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'red_artisan/core_image/processor'
2
3
 
3
4
  module Technoweenie # :nodoc:
@@ -6,7 +7,8 @@ module Technoweenie # :nodoc:
6
7
  module CoreImageProcessor
7
8
  def self.included(base)
8
9
  base.send :extend, ClassMethods
9
- base.alias_method_chain :process_attachment, :processing
10
+ base.send :alias_method, :process_attachment_without_processing, :process_attachment
11
+ base.send :alias_method, :process_attachment, :process_attachment_with_processing
10
12
  end
11
13
 
12
14
  module ClassMethods
@@ -6,7 +6,8 @@ module Technoweenie # :nodoc:
6
6
  module Gd2Processor
7
7
  def self.included(base)
8
8
  base.send :extend, ClassMethods
9
- base.alias_method_chain :process_attachment, :processing
9
+ base.send :alias_method, :process_attachment_without_processing, :process_attachment
10
+ base.send :alias_method, :process_attachment, :process_attachment_with_processing
10
11
  end
11
12
 
12
13
  module ClassMethods
@@ -56,4 +57,4 @@ module Technoweenie # :nodoc:
56
57
  end
57
58
  end
58
59
  end
59
- end
60
+ end
@@ -5,7 +5,8 @@ module Technoweenie # :nodoc:
5
5
  module ImageScienceProcessor
6
6
  def self.included(base)
7
7
  base.send :extend, ClassMethods
8
- base.alias_method_chain :process_attachment, :processing
8
+ base.alias_method :process_attachment_without_processing, :process_attachment
9
+ base.alias_method :process_attachment, :process_attachment_with_processing
9
10
  end
10
11
 
11
12
  module ClassMethods
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'mini_magick'
2
3
  module Technoweenie # :nodoc:
3
4
  module AttachmentFu # :nodoc:
@@ -5,7 +6,8 @@ module Technoweenie # :nodoc:
5
6
  module MiniMagickProcessor
6
7
  def self.included(base)
7
8
  base.send :extend, ClassMethods
8
- base.alias_method_chain :process_attachment, :processing
9
+ base.send :alias_method, :process_attachment_without_processing, :process_attachment
10
+ base.send :alias_method, :process_attachment, :process_attachment_with_processing
9
11
  end
10
12
 
11
13
  module ClassMethods
@@ -139,4 +141,4 @@ module Technoweenie # :nodoc:
139
141
  end
140
142
  end
141
143
  end
142
- end
144
+ end
@@ -13,7 +13,8 @@ module Technoweenie # :nodoc:
13
13
  module RmagickProcessor
14
14
  def self.included(base)
15
15
  base.send :extend, ClassMethods
16
- base.alias_method_chain :process_attachment, :processing
16
+ base.send :alias_method, :process_attachment_without_processing, :process_attachment
17
+ base.send :alias_method, :process_attachment, :process_attachment_with_processing
17
18
  end
18
19
 
19
20
  module ClassMethods
@@ -105,9 +105,10 @@ module OSX
105
105
 
106
106
  block.call f.valueForKey('outputImage')
107
107
  end
108
-
109
- alias_method_chain :method_missing, :filter_processing
110
-
108
+
109
+ alias_method :method_missing_without_filter_processing, :method_missing
110
+ alias_method :method_missing, :method_missing_with_filter_processing
111
+
111
112
  def save(target, format = OSX::NSJPEGFileType, properties = nil)
112
113
  bitmapRep = OSX::NSBitmapImageRep.alloc.initWithCIImage(self)
113
114
  blob = bitmapRep.representationUsingType_properties(format, properties)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pothoven-attachment_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Olson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-04-19 00:00:00.000000000 Z
12
+ date: 2017-10-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This is a fork of Rick Olson's attachment_fu adding Ruby 1.9 and Rails
15
15
  3.2 and Rails 4 support as well as some other enhancements.