Hello community,
here is the log from the commit of package rubygem-responders for openSUSE:Factory checked in at 2019-08-06 15:10:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-responders (Old)
and /work/SRC/openSUSE:Factory/.rubygem-responders.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-responders"
Tue Aug 6 15:10:32 2019 rev:7 rq:717319 version:3.0.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-responders/rubygem-responders.changes 2019-06-19 21:00:55.202114284 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-responders.new.4126/rubygem-responders.changes 2019-08-06 15:10:33.443769558 +0200
@@ -1,0 +2,11 @@
+Fri Jul 19 09:32:43 UTC 2019 - Stephan Kulow
+
+- updated to version 3.0.0
+ see installed CHANGELOG.md
+
+ ## 3.0.0
+
+ * Remove support for Rails 4.2
+ * Remove support for Ruby < 2.4
+
+-------------------------------------------------------------------
Old:
----
responders-2.4.1.gem
New:
----
responders-3.0.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-responders.spec ++++++
--- /var/tmp/diff_new_pack.akqnUj/_old 2019-08-06 15:10:34.067769269 +0200
+++ /var/tmp/diff_new_pack.akqnUj/_new 2019-08-06 15:10:34.071769267 +0200
@@ -24,13 +24,13 @@
#
Name: rubygem-responders
-Version: 2.4.1
+Version: 3.0.0
Release: 0
%define mod_name responders
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: %{ruby >= 2.4.0}
BuildRequires: %{rubygem gem2rpm}
-BuildRequires: %{ruby}
BuildRequires: ruby-macros >= 5
Url: https://github.com/plataformatec/responders
Source: https://rubygems.org/gems/%{mod_full_name}.gem
++++++ responders-2.4.1.gem -> responders-3.0.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-01-21 17:43:21.000000000 +0100
+++ new/CHANGELOG.md 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,8 @@
+## 3.0.0
+
+* Remove support for Rails 4.2
+* Remove support for Ruby < 2.4
+
## 2.4.1
* Add support for Rails 6 beta
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MIT-LICENSE new/MIT-LICENSE
--- old/MIT-LICENSE 2019-01-21 17:43:21.000000000 +0100
+++ new/MIT-LICENSE 2019-06-22 00:44:26.000000000 +0200
@@ -1,4 +1,4 @@
-Copyright 2009-2016 Plataformatec. http://plataformatec.com.br
+Copyright 2009-2019 Plataformatec. http://plataformatec.com.br
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2019-01-21 17:43:21.000000000 +0100
+++ new/README.md 2019-06-22 00:44:26.000000000 +0200
@@ -179,7 +179,7 @@
end
```
-Now you would see the message "bob@bob.com was successfully created" instead of the default "Invitation was successfully created."
+Now you would see the message "name@example.com was successfully created" instead of the default "Invitation was successfully created."
## Generator
@@ -253,4 +253,4 @@
http://github.com/plataformatec/responders/issues
-MIT License. Copyright 2009-2016 Plataformatec. http://plataformatec.com.br
+MIT License. Copyright 2009-2019 Plataformatec. http://plataformatec.com.br
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_controller/respond_with.rb new/lib/action_controller/respond_with.rb
--- old/lib/action_controller/respond_with.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/action_controller/respond_with.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,5 +1,7 @@
-require 'active_support/core_ext/array/extract_options'
-require 'action_controller/metal/mime_responds'
+# frozen_string_literal: true
+
+require "active_support/core_ext/array/extract_options"
+require "action_controller/metal/mime_responds"
module ActionController #:nodoc:
module RespondWith
@@ -37,8 +39,8 @@
def respond_to(*mimes)
options = mimes.extract_options!
- only_actions = Array(options.delete(:only)).map(&:to_s)
- except_actions = Array(options.delete(:except)).map(&:to_s)
+ only_actions = Array(options.delete(:only)).map(&:to_sym)
+ except_actions = Array(options.delete(:except)).map(&:to_sym)
hash = mimes_for_respond_to.dup
mimes.each do |mime|
@@ -238,7 +240,7 @@
# Collect mimes declared in the class method respond_to valid for the
# current action.
def collect_mimes_from_class_level #:nodoc:
- action = action_name.to_s
+ action = action_name.to_sym
self.class.mimes_for_respond_to.keys.select do |mime|
config = self.class.mimes_for_respond_to[mime]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_controller/responder.rb new/lib/action_controller/responder.rb
--- old/lib/action_controller/responder.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/action_controller/responder.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,4 +1,6 @@
-require 'active_support/json'
+# frozen_string_literal: true
+
+require "active_support/json"
module ActionController #:nodoc:
# Responsible for exposing a resource to different mime requests,
@@ -121,12 +123,12 @@
attr_reader :controller, :request, :format, :resource, :resources, :options
DEFAULT_ACTIONS_FOR_VERBS = {
- :post => :new,
- :patch => :edit,
- :put => :edit
+ post: :new,
+ patch: :edit,
+ put: :edit
}
- def initialize(controller, resources, options={})
+ def initialize(controller, resources, options = {})
@controller = controller
@request = @controller.request
@format = @controller.formats.first
@@ -142,8 +144,8 @@
end
end
- delegate :head, :render, :redirect_to, :to => :controller
- delegate :get?, :post?, :patch?, :put?, :delete?, :to => :request
+ delegate :head, :render, :redirect_to, to: :controller
+ delegate :get?, :post?, :patch?, :put?, :delete?, to: :request
# Undefine :to_json and :to_yaml since it's defined on Object
undef_method(:to_json) if method_defined?(:to_json)
@@ -213,7 +215,7 @@
if get?
display resource
elsif post?
- display resource, :status => :created, :location => api_location
+ display resource, status: :created, location: api_location
else
head :no_content
end
@@ -256,7 +258,7 @@
#
# render xml: @user, status: :created
#
- def display(resource, given_options={})
+ def display(resource, given_options = {})
controller.render given_options.merge!(options).merge!(format => resource)
end
@@ -291,7 +293,7 @@
end
def json_resource_errors
- {:errors => resource.errors}
+ { errors: resource.errors }
end
def response_overridden?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rails/responders_controller_generator.rb new/lib/generators/rails/responders_controller_generator.rb
--- old/lib/generators/rails/responders_controller_generator.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/generators/rails/responders_controller_generator.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,4 +1,6 @@
-require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
+# frozen_string_literal: true
+
+require "rails/generators/rails/scaffold_controller/scaffold_controller_generator"
module Rails
module Generators
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rails/templates/api_controller.rb new/lib/generators/rails/templates/api_controller.rb
--- old/lib/generators/rails/templates/api_controller.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/generators/rails/templates/api_controller.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,51 +0,0 @@
-<% if namespaced? -%>
-require_dependency "<%= namespaced_file_path %>/application_controller"
-
-<% end -%>
-<% module_namespacing do -%>
-class <%= controller_class_name %>Controller < ApplicationController
- before_action :set_<%= singular_table_name %>, only: [:show, :update, :destroy]
-
- respond_to :json
-
-<% unless options[:singleton] -%>
- def index
- @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
- respond_with(@<%= plural_table_name %>)
- end
-<% end -%>
-
- def show
- respond_with(@<%= singular_table_name %>)
- end
-
- def create
- @<%= singular_table_name %> = <%= orm_class.build(class_name, attributes_params) %>
- <%= "flash[:notice] = '#{class_name} was successfully created.' if " if flash? %>@<%= orm_instance.save %>
- respond_with(@<%= singular_table_name %>)
- end
-
- def update
- <%= "flash[:notice] = '#{class_name} was successfully updated.' if " if flash? %>@<%= orm_instance.update(attributes_params) %>
- respond_with(@<%= singular_table_name %>)
- end
-
- def destroy
- @<%= orm_instance.destroy %>
- respond_with(@<%= singular_table_name %>)
- end
-
- private
- def set_<%= singular_table_name %>
- @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
- end
-
- def <%= "#{singular_table_name}_params" %>
- <%- if attributes_names.empty? -%>
- params[:<%= singular_table_name %>]
- <%- else -%>
- params.require(:<%= singular_table_name %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
- <%- end -%>
- end
-end
-<% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rails/templates/api_controller.rb.tt new/lib/generators/rails/templates/api_controller.rb.tt
--- old/lib/generators/rails/templates/api_controller.rb.tt 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/generators/rails/templates/api_controller.rb.tt 2019-06-22 00:44:26.000000000 +0200
@@ -0,0 +1,51 @@
+<% if namespaced? -%>
+require_dependency "<%= namespaced_file_path %>/application_controller"
+
+<% end -%>
+<% module_namespacing do -%>
+class <%= controller_class_name %>Controller < ApplicationController
+ before_action :set_<%= singular_table_name %>, only: [:show, :update, :destroy]
+
+ respond_to :json
+
+<% unless options[:singleton] -%>
+ def index
+ @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
+ respond_with(@<%= plural_table_name %>)
+ end
+<% end -%>
+
+ def show
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def create
+ @<%= singular_table_name %> = <%= orm_class.build(class_name, attributes_params) %>
+ <%= "flash[:notice] = '#{class_name} was successfully created.' if " if flash? %>@<%= orm_instance.save %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def update
+ <%= "flash[:notice] = '#{class_name} was successfully updated.' if " if flash? %>@<%= orm_instance.update(attributes_params) %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def destroy
+ @<%= orm_instance.destroy %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ private
+ def set_<%= singular_table_name %>
+ @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
+ end
+
+ def <%= "#{singular_table_name}_params" %>
+ <%- if attributes_names.empty? -%>
+ params[:<%= singular_table_name %>]
+ <%- else -%>
+ params.require(:<%= singular_table_name %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
+ <%- end -%>
+ end
+end
+<% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rails/templates/controller.rb new/lib/generators/rails/templates/controller.rb
--- old/lib/generators/rails/templates/controller.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/generators/rails/templates/controller.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,59 +0,0 @@
-<% if namespaced? -%>
-require_dependency "<%= namespaced_file_path %>/application_controller"
-
-<% end -%>
-<% module_namespacing do -%>
-class <%= controller_class_name %>Controller < ApplicationController
- before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
-
- respond_to :html
-
-<% unless options[:singleton] -%>
- def index
- @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
- respond_with(@<%= plural_table_name %>)
- end
-<% end -%>
-
- def show
- respond_with(@<%= singular_table_name %>)
- end
-
- def new
- @<%= singular_table_name %> = <%= orm_class.build(class_name) %>
- respond_with(@<%= singular_table_name %>)
- end
-
- def edit
- end
-
- def create
- @<%= singular_table_name %> = <%= orm_class.build(class_name, attributes_params) %>
- <%= "flash[:notice] = '#{class_name} was successfully created.' if " if flash? %>@<%= orm_instance.save %>
- respond_with(@<%= singular_table_name %>)
- end
-
- def update
- <%= "flash[:notice] = '#{class_name} was successfully updated.' if " if flash? %>@<%= orm_instance.update(attributes_params) %>
- respond_with(@<%= singular_table_name %>)
- end
-
- def destroy
- @<%= orm_instance.destroy %>
- respond_with(@<%= singular_table_name %>)
- end
-
- private
- def set_<%= singular_table_name %>
- @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
- end
-
- def <%= "#{singular_table_name}_params" %>
- <%- if attributes_names.empty? -%>
- params[:<%= singular_table_name %>]
- <%- else -%>
- params.require(:<%= singular_table_name %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
- <%- end -%>
- end
-end
-<% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/rails/templates/controller.rb.tt new/lib/generators/rails/templates/controller.rb.tt
--- old/lib/generators/rails/templates/controller.rb.tt 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/generators/rails/templates/controller.rb.tt 2019-06-22 00:44:26.000000000 +0200
@@ -0,0 +1,59 @@
+<% if namespaced? -%>
+require_dependency "<%= namespaced_file_path %>/application_controller"
+
+<% end -%>
+<% module_namespacing do -%>
+class <%= controller_class_name %>Controller < ApplicationController
+ before_action :set_<%= singular_table_name %>, only: [:show, :edit, :update, :destroy]
+
+ respond_to :html
+
+<% unless options[:singleton] -%>
+ def index
+ @<%= plural_table_name %> = <%= orm_class.all(class_name) %>
+ respond_with(@<%= plural_table_name %>)
+ end
+<% end -%>
+
+ def show
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def new
+ @<%= singular_table_name %> = <%= orm_class.build(class_name) %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def edit
+ end
+
+ def create
+ @<%= singular_table_name %> = <%= orm_class.build(class_name, attributes_params) %>
+ <%= "flash[:notice] = '#{class_name} was successfully created.' if " if flash? %>@<%= orm_instance.save %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def update
+ <%= "flash[:notice] = '#{class_name} was successfully updated.' if " if flash? %>@<%= orm_instance.update(attributes_params) %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ def destroy
+ @<%= orm_instance.destroy %>
+ respond_with(@<%= singular_table_name %>)
+ end
+
+ private
+ def set_<%= singular_table_name %>
+ @<%= singular_table_name %> = <%= orm_class.find(class_name, "params[:id]") %>
+ end
+
+ def <%= "#{singular_table_name}_params" %>
+ <%- if attributes_names.empty? -%>
+ params[:<%= singular_table_name %>]
+ <%- else -%>
+ params.require(:<%= singular_table_name %>).permit(<%= attributes_names.map { |name| ":#{name}" }.join(', ') %>)
+ <%- end -%>
+ end
+end
+<% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/generators/responders/install_generator.rb new/lib/generators/responders/install_generator.rb
--- old/lib/generators/responders/install_generator.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/generators/responders/install_generator.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
module Generators
class InstallGenerator < Rails::Generators::Base
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders/collection_responder.rb new/lib/responders/collection_responder.rb
--- old/lib/responders/collection_responder.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders/collection_responder.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
# This responder modifies your current responder to redirect
# to the collection page on POST/PUT/DELETE.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders/controller_method.rb new/lib/responders/controller_method.rb
--- old/lib/responders/controller_method.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders/controller_method.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
module ControllerMethod
# Adds the given responders to the current controller's responder, allowing you to cherry-pick
@@ -18,7 +20,8 @@
#
def responders(*responders)
self.responder = responders.inject(Class.new(responder)) do |klass, responder|
- responder = case responder
+ responder = \
+ case responder
when Module
responder
when String, Symbol
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders/flash_responder.rb new/lib/responders/flash_responder.rb
--- old/lib/responders/flash_responder.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders/flash_responder.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
# Responder to automatically set flash messages based on I18n API. It checks for
# message based on the current action, but also allows defaults to be set, using
@@ -94,7 +96,7 @@
ActionView::Helpers::TagHelper
)
- def initialize(controller, resources, options={})
+ def initialize(controller, resources, options = {})
super
@flash = options.delete(:flash)
@notice = options.delete(:notice)
@@ -148,9 +150,9 @@
def mount_i18n_options(status) #:nodoc:
options = {
- :default => flash_defaults_by_namespace(status),
- :resource_name => resource_name,
- :downcase_resource_name => resource_name.downcase
+ default: flash_defaults_by_namespace(status),
+ resource_name: resource_name,
+ downcase_resource_name: resource_name.downcase
}
controller_options = controller_interpolation_options
@@ -180,13 +182,13 @@
def flash_defaults_by_namespace(status) #:nodoc:
defaults = []
- slices = controller.controller_path.split('/')
+ slices = controller.controller_path.split("/")
lookup = Responders::FlashResponder.namespace_lookup
begin
- controller_scope = :"flash.#{slices.fill(controller.controller_name, -1).join('.')}.#{controller.action_name}.#{status}"
+ controller_scope = :"flash.#{slices.fill(controller.controller_name, -1).join(".")}.#{controller.action_name}.#{status}"
- actions_scope = lookup ? slices.fill('actions', -1).join('.') : :actions
+ actions_scope = lookup ? slices.fill("actions", -1).join(".") : :actions
actions_scope = :"flash.#{actions_scope}.#{controller.action_name}.#{status}"
defaults << :"#{controller_scope}_html"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders/http_cache_responder.rb new/lib/responders/http_cache_responder.rb
--- old/lib/responders/http_cache_responder.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders/http_cache_responder.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
# Set HTTP Last-Modified headers based on the given resource. It's used only
# on API behavior (to_format) and is useful for a client to check in the server
@@ -9,7 +11,7 @@
# the digest of the body.
#
module HttpCacheResponder
- def initialize(controller, resources, options={})
+ def initialize(controller, resources, options = {})
super
@http_cache = options.delete(:http_cache)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders/location_responder.rb new/lib/responders/location_responder.rb
--- old/lib/responders/location_responder.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders/location_responder.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
module LocationResponder
def self.included(_base)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders/version.rb new/lib/responders/version.rb
--- old/lib/responders/version.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders/version.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module Responders
- VERSION = "2.4.1".freeze
+ VERSION = "3.0.0"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/responders.rb new/lib/responders.rb
--- old/lib/responders.rb 2019-01-21 17:43:21.000000000 +0100
+++ new/lib/responders.rb 2019-06-22 00:44:26.000000000 +0200
@@ -1,18 +1,20 @@
-require 'action_controller'
-require 'rails/railtie'
+# frozen_string_literal: true
+
+require "action_controller"
+require "rails/railtie"
module ActionController
- autoload :Responder, 'action_controller/responder'
- autoload :RespondWith, 'action_controller/respond_with'
+ autoload :Responder, "action_controller/responder"
+ autoload :RespondWith, "action_controller/respond_with"
end
module Responders
- autoload :FlashResponder, 'responders/flash_responder'
- autoload :HttpCacheResponder, 'responders/http_cache_responder'
- autoload :CollectionResponder, 'responders/collection_responder'
- autoload :LocationResponder, 'responders/location_responder'
+ autoload :FlashResponder, "responders/flash_responder"
+ autoload :HttpCacheResponder, "responders/http_cache_responder"
+ autoload :CollectionResponder, "responders/collection_responder"
+ autoload :LocationResponder, "responders/location_responder"
- require 'responders/controller_method'
+ require "responders/controller_method"
class Railtie < ::Rails::Railtie
config.responders = ActiveSupport::OrderedOptions.new
@@ -20,8 +22,8 @@
config.responders.namespace_lookup = false
# Add load paths straight to I18n, so engines and application can overwrite it.
- require 'active_support/i18n'
- I18n.load_path << File.expand_path('../responders/locales/en.yml', __FILE__)
+ require "active_support/i18n"
+ I18n.load_path << File.expand_path("../responders/locales/en.yml", __FILE__)
initializer "responders.flash_responder" do |app|
Responders::FlashResponder.flash_keys = app.config.responders.flash_keys
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-01-21 17:43:21.000000000 +0100
+++ new/metadata 2019-06-22 00:44:26.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: responders
version: !ruby/object:Gem::Version
- version: 2.4.1
+ version: 3.0.0
platform: ruby
authors:
- José Valim
autorequire:
bindir: bin
cert_chain: []
-date: 2019-01-21 00:00:00.000000000 Z
+date: 2019-06-21 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: railties
@@ -16,40 +16,28 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 4.2.0
- - - "<"
- - !ruby/object:Gem::Version
- version: '6.0'
+ version: '5.0'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 4.2.0
- - - "<"
- - !ruby/object:Gem::Version
- version: '6.0'
+ version: '5.0'
- !ruby/object:Gem::Dependency
name: actionpack
requirement: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 4.2.0
- - - "<"
- - !ruby/object:Gem::Version
- version: '6.0'
+ version: '5.0'
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: 4.2.0
- - - "<"
- - !ruby/object:Gem::Version
- version: '6.0'
+ version: '5.0'
description: A set of Rails responders to dry up your application
email: contact@plataformatec.com.br
executables: []
@@ -63,8 +51,8 @@
- lib/action_controller/responder.rb
- lib/generators/rails/USAGE
- lib/generators/rails/responders_controller_generator.rb
-- lib/generators/rails/templates/api_controller.rb
-- lib/generators/rails/templates/controller.rb
+- lib/generators/rails/templates/api_controller.rb.tt
+- lib/generators/rails/templates/controller.rb.tt
- lib/generators/responders/install_generator.rb
- lib/responders.rb
- lib/responders/collection_responder.rb
@@ -86,15 +74,14 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: '0'
+ version: 2.4.0
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project: responders
-rubygems_version: 2.7.6
+rubygems_version: 3.0.1
signing_key:
specification_version: 4
summary: A set of Rails responders to dry up your application