<NME> engine.rb
<BEF> module Refinery
  module Resources
    class Engine < ::Rails::Engine
      extend Refinery::Engine

      isolate_namespace Refinery
      engine_name :refinery_resources

      config.autoload_paths += %W( #{config.root}/lib )

      initializer 'attach-refinery-resources-with-dragonfly', :before => :finisher_hook do |app|
        ::Refinery::Dragonfly.configure!(Refinery::Resources)
        ::Refinery::Dragonfly.attach!(app, Refinery::Resources)
      end

      before_inclusion do
        Refinery::Plugin.register do |plugin|
          plugin.pathname = root
          plugin.name = 'refinery_files'
          plugin.menu_match = /refinery\/(refinery_)?(files|resources)$/
          plugin.version = %q{2.0.0}
          plugin.activity = { :class_name => :'refinery/resource' }
          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_resources_path }
        end

      config.after_initialize do
        Refinery.register_extension(Refinery::Resources)
      end
    end
  end
end

<MSG> Deprecate Refinery::Plugin#version.

AFAIK Plugin#version is not used anywhere.

<DFF> @@ -18,7 +18,6 @@ module Refinery
           plugin.pathname = root
           plugin.name = 'refinery_files'
           plugin.menu_match = /refinery\/(refinery_)?(files|resources)$/
-          plugin.version = %q{2.0.0}
           plugin.activity = { :class_name => :'refinery/resource' }
           plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_resources_path }
         end

{'commit': 'diff --git a/authentication/lib/refinery/authentication/engine.rb b/authentication/lib/refinery/authentication/engine.rb\nindex c04d873cd..f26e1fc57 100644\n--- a/authentication/lib/refinery/authentication/engine.rb\n+++ b/authentication/lib/refinery/authentication/engine.rb\n@@ -12,7 +12,6 @@ module Refinery\n         Refinery::Plugin.register do |plugin|\n           plugin.pathname = root\n           plugin.name = \'refinery_users\'\n-          plugin.version = %q{2.0.0}\n           plugin.menu_match = %r{refinery/users$}\n           plugin.activity = {\n             :class_name => :\'refinery/user\',\ndiff --git a/core/lib/refinery/core/engine.rb b/core/lib/refinery/core/engine.rb\nindex 18fd32a33..4fcf3f2db 100644\n--- a/core/lib/refinery/core/engine.rb\n+++ b/core/lib/refinery/core/engine.rb\n@@ -50,7 +50,6 @@ module Refinery\n           plugin.pathname = root\n           plugin.name = \'refinery_core\'\n           plugin.class_name = \'RefineryEngine\'\n-          plugin.version = Refinery.version\n           plugin.hide_from_menu = true\n           plugin.always_allow_access = true\n           plugin.menu_match = /refinery\\/(refinery_)?core$/\n@@ -61,7 +60,6 @@ module Refinery\n         Refinery::Plugin.register do |plugin|\n           plugin.pathname = root\n           plugin.name = \'refinery_dialogs\'\n-          plugin.version = Refinery.version\n           plugin.hide_from_menu = true\n           plugin.always_allow_access = true\n           plugin.menu_match = /refinery\\/(refinery_)?dialogs/\ndiff --git a/core/lib/refinery/plugin.rb b/core/lib/refinery/plugin.rb\nindex 25d41f6be..0ce886366 100644\n--- a/core/lib/refinery/plugin.rb\n+++ b/core/lib/refinery/plugin.rb\n@@ -2,7 +2,7 @@ module Refinery\n   class Plugin\n \n     attr_accessor :name, :class_name, :controller, :directory, :url,\n-                  :version, :dashboard, :always_allow_access, :menu_match,\n+                  :dashboard, :always_allow_access, :menu_match,\n                   :hide_from_menu, :pathname, :plugin_activity\n \n     def self.register(&block)\n@@ -74,6 +74,14 @@ module Refinery\n       end\n     end\n \n+    def version\n+      Refinery.deprecate "Refinery::Plugin#version", :when => \'2.2\'\n+    end\n+    \n+    def version=(*)\n+      Refinery.deprecate "Refinery::Plugin#version=", :when => \'2.2\'\n+    end\n+\n   # Make this protected, so that only Plugin.register can use it.\n   protected\n \ndiff --git a/dashboard/lib/refinery/dashboard/engine.rb b/dashboard/lib/refinery/dashboard/engine.rb\nindex 0cba8a52e..49a34aee8 100644\n--- a/dashboard/lib/refinery/dashboard/engine.rb\n+++ b/dashboard/lib/refinery/dashboard/engine.rb\n@@ -13,7 +13,6 @@ module Refinery\n           plugin.pathname = root\n           plugin.name = \'refinery_dashboard\'\n           plugin.menu_match = %r{refinery/(refinery_)?dashboard$}\n-          plugin.version = %q{2.0.0}\n           plugin.always_allow_access = true\n           plugin.dashboard = true\n           plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_dashboard_path }\ndiff --git a/images/lib/refinery/images/engine.rb b/images/lib/refinery/images/engine.rb\nindex bc84bd427..6ed0d5834 100644\n--- a/images/lib/refinery/images/engine.rb\n+++ b/images/lib/refinery/images/engine.rb\n@@ -17,7 +17,6 @@ module Refinery\n         Refinery::Plugin.register do |plugin|\n           plugin.pathname = root\n           plugin.name = \'refinery_images\'\n-          plugin.version = %q{2.0.0}\n           plugin.menu_match = %r{refinery/image(_dialog)?s$}\n           plugin.activity = { :class_name => :\'refinery/image\' }\n           plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_images_path }\ndiff --git a/pages/lib/refinery/pages/engine.rb b/pages/lib/refinery/pages/engine.rb\nindex 27075b3a2..7d859175c 100644\n--- a/pages/lib/refinery/pages/engine.rb\n+++ b/pages/lib/refinery/pages/engine.rb\n@@ -22,7 +22,6 @@ module Refinery\n         Refinery::Plugin.register do |plugin|\n           plugin.pathname = root\n           plugin.name = \'refinery_pages\'\n-          plugin.version = %q{2.0.0}\n           plugin.menu_match = %r{refinery/page(_part|s_dialog)?s(/preview)?$}\n           plugin.activity = {\n             :class_name => :\'refinery/page\',\ndiff --git a/resources/lib/refinery/resources/engine.rb b/resources/lib/refinery/resources/engine.rb\nindex 940da110d..2ba28f91d 100644\n--- a/resources/lib/refinery/resources/engine.rb\n+++ b/resources/lib/refinery/resources/engine.rb\n@@ -18,7 +18,6 @@ module Refinery\n           plugin.pathname = root\n           plugin.name = \'refinery_files\'\n           plugin.menu_match = /refinery\\/(refinery_)?(files|resources)$/\n-          plugin.version = %q{2.0.0}\n           plugin.activity = { :class_name => :\'refinery/resource\' }\n           plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_resources_path }\n         end\n', 'commit_subject': 'Deprecate Refinery::Plugin#version.', 'repo_name': 'refinery/refinerycms', 'committer': {'name': 'Uģis Ozols', 'email': '2034ff49f86b31154f8bd08550f3de750ddb116b@gmail.com', 'time_sec': '1358171514', 'tz_offset': '120', 'date': {'seconds': '1358171514'}}, 'commit_tree': '82b636e529dbfd4123ca8d8e15bc598b0cba18e2', 'commit_message': 'Deprecate Refinery::Plugin#version.\n\nAFAIK Plugin#version is not used anywhere.\n', 'language_name': 'HTML', 'license': 'mit', 'hunks': "@@ -18,7 +18,6 @@ module Refinery\n           plugin.pathname = root\n           plugin.name = 'refinery_files'\n           plugin.menu_match = /refinery\\/(refinery_)?(files|resources)$/\n-          plugin.version = %q{2.0.0}\n           plugin.activity = { :class_name => :'refinery/resource' }\n           plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_resources_path }\n         end\n", 'addition_count': 0, 'deletion_count': 1, 'src_file': 'a/resources/lib/refinery/resources/engine.rb', 'tgt_file': 'b/resources/lib/refinery/resources/engine.rb', 'file_extension': '.rb', 'before_file': "module Refinery\n  module Resources\n    class Engine < ::Rails::Engine\n      extend Refinery::Engine\n\n      isolate_namespace Refinery\n      engine_name :refinery_resources\n\n      config.autoload_paths += %W( #{config.root}/lib )\n\n      initializer 'attach-refinery-resources-with-dragonfly', :before => :finisher_hook do |app|\n        ::Refinery::Dragonfly.configure!(Refinery::Resources)\n        ::Refinery::Dragonfly.attach!(app, Refinery::Resources)\n      end\n\n      before_inclusion do\n        Refinery::Plugin.register do |plugin|\n          plugin.pathname = root\n          plugin.name = 'refinery_files'\n          plugin.menu_match = /refinery\\/(refinery_)?(files|resources)$/\n          plugin.version = %q{2.0.0}\n          plugin.activity = { :class_name => :'refinery/resource' }\n          plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_resources_path }\n        end\n\n      config.after_initialize do\n        Refinery.register_extension(Refinery::Resources)\n      end\n    end\n  end\nend\n", 'message': 'Deprecate Refinery::Plugin#version.\n\nAFAIK Plugin#version is not used anywhere.\n', 'author_name': 'Uģis Ozols', 'lang': 'rb'}