crud_responder 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7e8a51bb6c0fefbc54ff8893f51eace63e06842b
4
+ data.tar.gz: 9e361cc28d3daf1f03085189023d0c99053eb76e
5
+ SHA512:
6
+ metadata.gz: 663c616cbb37453a9f7bb08e2b781f1c85a65b7466f1d16a0b222590633f119cc0033fb1a1a99650d5da03d91be261557c988106867865dc014b1f607546bd8d
7
+ data.tar.gz: 55a66aee9c7d40564eac7463fa7fcb00ad2c45474c7204a22c82e4bb0f2e51b750dca3470c7b76fd607931a6bb65c05505dc7bafffddb38d53bf74015b50d6ee
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ RunRailsCops: true
3
+
4
+ Exclude:
5
+ - '*.gemspec'
6
+ - 'bin/*'
7
+ - 'Rakefile'
8
+
9
+ Metrics/LineLength:
10
+ Max: 160
11
+
12
+ Style/Documentation:
13
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in crud_responder.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Oleg Antonyan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,190 @@
1
+ # CrudResponder
2
+
3
+ ### Embrace CRUD interface for your models
4
+
5
+ We should keep controllers skinny and don't repeat ourself, right? But this scaffolded action doesn't look very DRY:
6
+ ```ruby
7
+ def create
8
+ @post = Post.new(post_params)
9
+
10
+ respond_to do |format|
11
+ if @post.save
12
+ format.html { redirect_to @post, notice: 'Post was successfully created.' }
13
+ format.json { render :show, status: :created, location: @post }
14
+ else
15
+ format.html { render :new }
16
+ format.json { render json: @post.errors, status: :unprocessable_entity }
17
+ end
18
+ end
19
+ end
20
+ ```
21
+ You can make it simpler if you don't need to respond to anything but html, or use [`responders`](https://github.com/plataformatec/responders) gem.
22
+
23
+ Let's assume we need only html and also add flash message on error:
24
+ ```ruby
25
+ def create
26
+ @post = Post.new(post_params)
27
+
28
+ if @post.save
29
+ redirect_to @post, notice: 'Post was successfully updated.' }
30
+ else
31
+ flash[:alert] = "Error updating post: #{@post.errors.full_messages.to_sentence}"
32
+ render :edit
33
+ end
34
+ end
35
+ ```
36
+ But it's still not DRY because we have to repeat this code in every controller, and even a different action of the same controller:
37
+ ```ruby
38
+ def update
39
+ @post = Post.find(params[:id])
40
+
41
+ if @post.update(post_params)
42
+ redirect_to @post, notice: 'Post was successfully created.'
43
+ else
44
+ flash[:alert] = "Error creating post: #{@post.errors.full_messages.to_sentence}"
45
+ render :new
46
+ end
47
+ end
48
+ ```
49
+ But the only differences between these actions are:
50
+ * Method called on a model
51
+ * Action on success
52
+ * Action on error
53
+ * Text in flash message on success
54
+ * Text in flash message on error
55
+
56
+ And they are repeated over and over again. Let's extract these differences:
57
+ ```ruby
58
+ def create
59
+ @post = Post.new(post_params)
60
+ crud_respond @post # will call save, set flashes and redirects/render appropriately
61
+ end
62
+
63
+ def update
64
+ @post = Post.find(params[:id])
65
+ @post.assign_attributes(post_params)
66
+ crud_respond @post # also call save
67
+ end
68
+
69
+ def destroy
70
+ @post = Post.find(params[:id])
71
+ crud_respond @post # call destroy because called from destroy action
72
+ end
73
+
74
+ ```
75
+ Method to call on the object determined by the name of controller's action.
76
+
77
+ ## Installation
78
+
79
+ Add this line to your application's Gemfile:
80
+
81
+ ```ruby
82
+ gem 'crud_responder', github: 'olegantonyan/crud_responder'
83
+ ```
84
+
85
+ And then execute:
86
+
87
+ $ bundle install
88
+
89
+ Or install it yourself as:
90
+
91
+ $ gem install crud_responder
92
+
93
+ ## Usage
94
+
95
+ Include `CrudResponder` into your `ApplicationController` (or whatever base controller you have)
96
+ ```ruby
97
+ class ApplicationController
98
+ include CrudResponder
99
+ end
100
+ ```
101
+
102
+ Use `crud_respond` method with object you need to create, update or destroy. Optionally, you can pass options to this method to override default redirect and render actions
103
+ ```ruby
104
+ def create
105
+ @post = Post.new(post_params)
106
+ crud_respond @post, success_url: root_path, error_action: :custom_new_action
107
+ # will redirect to root_path in case of success or render :custom_new_action otherwise
108
+ end
109
+ ```
110
+ By default you will be redirected to object show, objects index or back in this order. And render :new when creating object and :edit when updating.
111
+
112
+ You can specify `error_url` instead of `error_action` to be redirected instead of action render in case of error.
113
+ ```ruby
114
+ def create
115
+ @post = Post.new(post_params)
116
+ crud_respond @post, success_url: root_path, error_url: 'https://google.com'
117
+ # will redirect to root_path in case of success or to https://google.com otherwise
118
+ end
119
+ ```
120
+
121
+ You can also specify per-controller default options:
122
+ ```ruby
123
+ private
124
+
125
+ def crud_responder_default_options
126
+ { success_url: root_path }
127
+ # will redirect to `root_path` for every successful request in this controller
128
+ end
129
+ ```
130
+
131
+ If you need to create a bunch of objects (not just one) you can create wrapper class with same interface. For example, uploading multiple files:
132
+ ```ruby
133
+ # app/controllers/media_items_controller.rb
134
+ class MediaItemsController < ApplicationController
135
+ def create_multiple
136
+ @media_item_multiple = MediaItem::CreateMultiple.new(media_item_create_multiple_params)
137
+ crud_respond @media_item_multiple, success_url: media_items_path
138
+ end
139
+
140
+ private
141
+
142
+ def media_item_create_multiple_params
143
+ params.require(:media_item_create_multiple).permit(:description, files: [])
144
+ end
145
+ end
146
+
147
+ # app/models/media_item/create_multiple.rb
148
+ class MediaItem::CreateMultiple
149
+ include ActiveModel::Model
150
+
151
+ attr_accessor :description, :files
152
+ validates :files, presence: true
153
+
154
+ def save
155
+ return false unless valid?
156
+ ActiveRecord::Base.transaction do
157
+ files.each do |file|
158
+ MediaItem.create!(description: description, file: file)
159
+ end
160
+ end
161
+ true
162
+ rescue ActiveRecord::RecordInvalid => e
163
+ errors.add(:base, e.to_s)
164
+ false
165
+ end
166
+ end
167
+ ```
168
+ Now your controllers are skinny again! Also, you are forced to think in terms of CRUD interface to models and REST to controllers.
169
+
170
+ ## TODO
171
+
172
+ * Cutomizing flash messages (+ task to copy skeleton locale)
173
+ * Support for pure API controllers (which is much simplier)
174
+ * Testing
175
+ * Push to rubygems
176
+
177
+ ## Development
178
+
179
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
180
+
181
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
182
+
183
+ ## Contributing
184
+
185
+ Bug reports and pull requests are welcome on GitHub at https://github.com/olegantonyan/crud_responder. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
186
+
187
+
188
+ ## License
189
+
190
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "crud_responder"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,12 @@
1
+ en:
2
+ flash:
3
+ actions:
4
+ create:
5
+ notice: '%{resource_name} %{resource_desc} was successfully created.'
6
+ alert: '%{resource_name} %{resource_desc} cannot be created. %{errors}'
7
+ update:
8
+ notice: '%{resource_name} %{resource_desc} was successfully updated.'
9
+ alert: '%{resource_name} %{resource_desc} cannot be updated. %{errors}'
10
+ destroy:
11
+ notice: '%{resource_name} %{resource_desc} was successfully destroyed.'
12
+ alert: '%{resource_name} %{resource_desc} cannot be destroyed. %{errors}'
@@ -0,0 +1,12 @@
1
+ ru:
2
+ flash:
3
+ actions:
4
+ create:
5
+ notice: '%{resource_name} %{resource_desc} был успешно создан.'
6
+ alert: '%{resource_name} %{resource_desc} не может быть создан. %{errors}'
7
+ update:
8
+ notice: '%{resource_name} %{resource_desc} был успешно обновлён.'
9
+ alert: '%{resource_name} %{resource_desc} не может быть обновлён. %{errors}'
10
+ destroy:
11
+ notice: '%{resource_name} %{resource_desc} был успешно удалён.'
12
+ alert: '%{resource_name} %{resource_desc} не может быть удалён. %{errors}'
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'crud_responder/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "crud_responder"
8
+ spec.version = CrudResponder::VERSION
9
+ spec.authors = ["Oleg Antonyan"]
10
+ spec.email = ["oleg.b.antonyan@gmail.com"]
11
+
12
+ spec.summary = %q{DRY out your controler actions for CRUD operations with flash messages}
13
+ spec.description = %q{Don't repeat object.save, object.update, object.destroy and flash[:alert], flash[:notice] in every controller. Use action's name to decide what to do}
14
+ spec.homepage = "https://github.com/olegantonyan/crud_responder"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_development_dependency "bundler", "~> 1.10"
23
+ spec.add_development_dependency "rake", "~> 10.0"
24
+ spec.add_development_dependency "rspec", "~> 3"
25
+ spec.add_dependency "railties", "~> 4"
26
+ spec.add_dependency "actionpack", "~> 4"
27
+ end
@@ -0,0 +1,52 @@
1
+ require 'action_dispatch/routing/polymorphic_routes'
2
+
3
+ module CrudResponder
4
+ class DefaultOptions
5
+ include ActionDispatch::Routing::PolymorphicRoutes
6
+
7
+ def self.all_available
8
+ @_all_available ||= new(nil, nil).public_methods(false).map(&:to_sym)
9
+ end
10
+
11
+ def initialize(method, object)
12
+ @method = method
13
+ @object = object
14
+ end
15
+
16
+ def success_url
17
+ if method == :destroy
18
+ object_index_url
19
+ else
20
+ object_url
21
+ end || :back
22
+ end
23
+
24
+ def error_action
25
+ if object.persisted?
26
+ :edit
27
+ else
28
+ :new
29
+ end
30
+ end
31
+
32
+ def error_url
33
+ nil
34
+ end
35
+
36
+ private
37
+
38
+ attr_reader :method, :object
39
+
40
+ def object_index_url
41
+ polymorphic_url(object.class)
42
+ rescue NoMethodError
43
+ nil
44
+ end
45
+
46
+ def object_url
47
+ polymorphic_url(object)
48
+ rescue NoMethodError
49
+ nil
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,3 @@
1
+ module CrudResponder
2
+ VERSION = '0.2.2'
3
+ end
@@ -0,0 +1,110 @@
1
+ require 'crud_responder/version'
2
+ require 'crud_responder/default_options'
3
+ require 'action_view/helpers/text_helper'
4
+
5
+ module CrudResponder
6
+ include ActionView::Helpers::TextHelper
7
+
8
+ protected
9
+
10
+ def crud_respond(object, opts = {})
11
+ method = opts.fetch(:method, method_by_caller(caller))
12
+ options = final_options(opts, method, object)
13
+ if perform(caller, object, method)
14
+ success(options)
15
+ else
16
+ error(options)
17
+ end
18
+ end
19
+
20
+ private
21
+
22
+ def success(options)
23
+ redirect_to options[:success_url]
24
+ end
25
+
26
+ def error(options)
27
+ if options[:error_url]
28
+ redirect_to options[:error_url]
29
+ else
30
+ render options[:error_action]
31
+ end
32
+ end
33
+
34
+ def final_options(opts, method, object)
35
+ @_options ||= begin
36
+ {}.tap do |result|
37
+ DefaultOptions.all_available.each do |opt|
38
+ result[opt] = opts.fetch(opt) { |key| specific_options_for(key) || default_options_for(key, method, object) }
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ def default_options_for(opt, method, object)
45
+ default_options(method, object).public_send(opt)
46
+ end
47
+
48
+ def default_options(method, object)
49
+ @_default_options ||= DefaultOptions.new(method, object)
50
+ end
51
+
52
+ def specific_options_for(opt)
53
+ return nil unless respond_to?(:crud_responder_default_options, true)
54
+ result = send(:crud_responder_default_options)
55
+ return nil unless result
56
+ result.fetch(opt, nil)
57
+ end
58
+
59
+ def caller_name(kaller)
60
+ kaller[0][/`.*'/][1..-2]
61
+ end
62
+
63
+ def method_by_caller(kaller)
64
+ if caller_name(kaller) =~ /destroy/
65
+ :destroy
66
+ else
67
+ :save
68
+ end
69
+ end
70
+
71
+ def perform(kaller, object, method)
72
+ ok = object.public_send(method)
73
+ t_key = "flash.actions.#{action_by_caller(kaller)}.#{ok ? 'notice' : 'alert'}"
74
+ if ok
75
+ flash_success I18n.t(t_key, resource_name: resource_name_by_object(object), resource_desc: object.to_s)
76
+ else
77
+ flash_error I18n.t(t_key, resource_name: resource_name_by_object(object), resource_desc: object.to_s, errors: object.errors.full_messages.to_sentence)
78
+ end
79
+ ok
80
+ end
81
+
82
+ def action_by_caller(kaller)
83
+ case caller_name(kaller)
84
+ when /destroy/
85
+ :destroy
86
+ when /update/
87
+ :update
88
+ when /create/
89
+ :create
90
+ else
91
+ "unknown_action_from_#{caller_name(kaller)}".to_sym
92
+ end
93
+ end
94
+
95
+ def resource_name_by_object(object)
96
+ object.class.to_s
97
+ end
98
+
99
+ def flash_success(msg)
100
+ flash[:notice] = truncate_message(msg)
101
+ end
102
+
103
+ def flash_error(msg)
104
+ flash[:alert] = truncate_message(msg)
105
+ end
106
+
107
+ def truncate_message(msg)
108
+ truncate(msg.to_s, length: 256, escape: false)
109
+ end
110
+ end
metadata ADDED
@@ -0,0 +1,132 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: crud_responder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
5
+ platform: ruby
6
+ authors:
7
+ - Oleg Antonyan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-12-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: railties
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4'
69
+ - !ruby/object:Gem::Dependency
70
+ name: actionpack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '4'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '4'
83
+ description: Don't repeat object.save, object.update, object.destroy and flash[:alert],
84
+ flash[:notice] in every controller. Use action's name to decide what to do
85
+ email:
86
+ - oleg.b.antonyan@gmail.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".rubocop.yml"
94
+ - ".travis.yml"
95
+ - CODE_OF_CONDUCT.md
96
+ - Gemfile
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - bin/console
101
+ - bin/setup
102
+ - config/locales/en.yml
103
+ - config/locales/ru.yml
104
+ - crud_responder.gemspec
105
+ - lib/crud_responder.rb
106
+ - lib/crud_responder/default_options.rb
107
+ - lib/crud_responder/version.rb
108
+ homepage: https://github.com/olegantonyan/crud_responder
109
+ licenses:
110
+ - MIT
111
+ metadata: {}
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ requirements: []
127
+ rubyforge_project:
128
+ rubygems_version: 2.4.5.1
129
+ signing_key:
130
+ specification_version: 4
131
+ summary: DRY out your controler actions for CRUD operations with flash messages
132
+ test_files: []