trivial_decorator 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 65a59fa7d0609c9fab4501c2f775fb612de3703d
4
+ data.tar.gz: 4dbde9f08ab4105074ccb968c2ef73e952927811
5
+ SHA512:
6
+ metadata.gz: 1ae904f2e25182e43daa337d1803ab7fc559af24a04be982dbceeb6032db466d046ada8fa7f299fcae36a6f8cbb46e6c420e1315889ab731cd6446f3e00b881a
7
+ data.tar.gz: ceea5b2c307b6d5ab8122208f7ff906e90160cb388f632e92120491e06da4821019a4c84f292e2e69644eb53cc498caa050a2208fb4d557c7e88f3699cb34f42
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ spec/dummy/log/*.log
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.0
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at damianbackowski@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in trivial_decorator.gemspec
6
+ gemspec
@@ -0,0 +1,172 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ trivial_decorator (1.0.0)
5
+ rails (>= 4.0.0, < 6.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (5.1.4)
11
+ actionpack (= 5.1.4)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (~> 0.6.1)
14
+ actionmailer (5.1.4)
15
+ actionpack (= 5.1.4)
16
+ actionview (= 5.1.4)
17
+ activejob (= 5.1.4)
18
+ mail (~> 2.5, >= 2.5.4)
19
+ rails-dom-testing (~> 2.0)
20
+ actionpack (5.1.4)
21
+ actionview (= 5.1.4)
22
+ activesupport (= 5.1.4)
23
+ rack (~> 2.0)
24
+ rack-test (>= 0.6.3)
25
+ rails-dom-testing (~> 2.0)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (5.1.4)
28
+ activesupport (= 5.1.4)
29
+ builder (~> 3.1)
30
+ erubi (~> 1.4)
31
+ rails-dom-testing (~> 2.0)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
+ activejob (5.1.4)
34
+ activesupport (= 5.1.4)
35
+ globalid (>= 0.3.6)
36
+ activemodel (5.1.4)
37
+ activesupport (= 5.1.4)
38
+ activerecord (5.1.4)
39
+ activemodel (= 5.1.4)
40
+ activesupport (= 5.1.4)
41
+ arel (~> 8.0)
42
+ activesupport (5.1.4)
43
+ concurrent-ruby (~> 1.0, >= 1.0.2)
44
+ i18n (~> 0.7)
45
+ minitest (~> 5.1)
46
+ tzinfo (~> 1.1)
47
+ addressable (2.5.2)
48
+ public_suffix (>= 2.0.2, < 4.0)
49
+ arel (8.0.0)
50
+ builder (3.2.3)
51
+ capybara (2.16.1)
52
+ addressable
53
+ mini_mime (>= 0.1.3)
54
+ nokogiri (>= 1.3.3)
55
+ rack (>= 1.0.0)
56
+ rack-test (>= 0.5.4)
57
+ xpath (~> 2.0)
58
+ concurrent-ruby (1.0.5)
59
+ crass (1.0.3)
60
+ diff-lcs (1.3)
61
+ erubi (1.7.0)
62
+ factory_bot (4.8.2)
63
+ activesupport (>= 3.0.0)
64
+ factory_bot_rails (4.8.2)
65
+ factory_bot (~> 4.8.2)
66
+ railties (>= 3.0.0)
67
+ globalid (0.4.1)
68
+ activesupport (>= 4.2.0)
69
+ i18n (0.9.1)
70
+ concurrent-ruby (~> 1.0)
71
+ kaminari (1.1.1)
72
+ activesupport (>= 4.1.0)
73
+ kaminari-actionview (= 1.1.1)
74
+ kaminari-activerecord (= 1.1.1)
75
+ kaminari-core (= 1.1.1)
76
+ kaminari-actionview (1.1.1)
77
+ actionview
78
+ kaminari-core (= 1.1.1)
79
+ kaminari-activerecord (1.1.1)
80
+ activerecord
81
+ kaminari-core (= 1.1.1)
82
+ kaminari-core (1.1.1)
83
+ loofah (2.1.1)
84
+ crass (~> 1.0.2)
85
+ nokogiri (>= 1.5.9)
86
+ mail (2.7.0)
87
+ mini_mime (>= 0.1.1)
88
+ method_source (0.9.0)
89
+ mini_mime (1.0.0)
90
+ mini_portile2 (2.3.0)
91
+ minitest (5.10.3)
92
+ nio4r (2.1.0)
93
+ nokogiri (1.8.1)
94
+ mini_portile2 (~> 2.3.0)
95
+ public_suffix (3.0.1)
96
+ rack (2.0.3)
97
+ rack-test (0.8.2)
98
+ rack (>= 1.0, < 3)
99
+ rails (5.1.4)
100
+ actioncable (= 5.1.4)
101
+ actionmailer (= 5.1.4)
102
+ actionpack (= 5.1.4)
103
+ actionview (= 5.1.4)
104
+ activejob (= 5.1.4)
105
+ activemodel (= 5.1.4)
106
+ activerecord (= 5.1.4)
107
+ activesupport (= 5.1.4)
108
+ bundler (>= 1.3.0)
109
+ railties (= 5.1.4)
110
+ sprockets-rails (>= 2.0.0)
111
+ rails-dom-testing (2.0.3)
112
+ activesupport (>= 4.2.0)
113
+ nokogiri (>= 1.6)
114
+ rails-html-sanitizer (1.0.3)
115
+ loofah (~> 2.0)
116
+ railties (5.1.4)
117
+ actionpack (= 5.1.4)
118
+ activesupport (= 5.1.4)
119
+ method_source
120
+ rake (>= 0.8.7)
121
+ thor (>= 0.18.1, < 2.0)
122
+ rake (10.5.0)
123
+ rspec-core (3.6.0)
124
+ rspec-support (~> 3.6.0)
125
+ rspec-expectations (3.6.0)
126
+ diff-lcs (>= 1.2.0, < 2.0)
127
+ rspec-support (~> 3.6.0)
128
+ rspec-mocks (3.6.0)
129
+ diff-lcs (>= 1.2.0, < 2.0)
130
+ rspec-support (~> 3.6.0)
131
+ rspec-rails (3.6.1)
132
+ actionpack (>= 3.0)
133
+ activesupport (>= 3.0)
134
+ railties (>= 3.0)
135
+ rspec-core (~> 3.6.0)
136
+ rspec-expectations (~> 3.6.0)
137
+ rspec-mocks (~> 3.6.0)
138
+ rspec-support (~> 3.6.0)
139
+ rspec-support (3.6.0)
140
+ sprockets (3.7.1)
141
+ concurrent-ruby (~> 1.0)
142
+ rack (> 1, < 3)
143
+ sprockets-rails (3.2.1)
144
+ actionpack (>= 4.0)
145
+ activesupport (>= 4.0)
146
+ sprockets (>= 3.0.0)
147
+ sqlite3 (1.3.13)
148
+ thor (0.20.0)
149
+ thread_safe (0.3.6)
150
+ tzinfo (1.2.4)
151
+ thread_safe (~> 0.1)
152
+ websocket-driver (0.6.5)
153
+ websocket-extensions (>= 0.1.0)
154
+ websocket-extensions (0.1.3)
155
+ xpath (2.1.0)
156
+ nokogiri (~> 1.3)
157
+
158
+ PLATFORMS
159
+ ruby
160
+
161
+ DEPENDENCIES
162
+ bundler (~> 1.16)
163
+ capybara (~> 2.16.1)
164
+ factory_bot_rails (~> 4.8.2)
165
+ kaminari (~> 1.1.1)
166
+ rake (~> 10.0)
167
+ rspec-rails (~> 3.6.0)
168
+ sqlite3 (~> 1.3)
169
+ trivial_decorator!
170
+
171
+ BUNDLED WITH
172
+ 1.16.0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Damian Baćkowski
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.
@@ -0,0 +1,83 @@
1
+ # TrivialDecorator [![Build Status](https://travis-ci.org/dbackowski/trivial_decorator.svg?branch=master)](https://travis-ci.org/dbackowski/trivial_decorator)
2
+
3
+ A simple decorator for Rails.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'trivial_decorator'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install trivial_decorator
20
+
21
+ ## Usage
22
+
23
+ #### Writing Decorators
24
+
25
+ Decorators inherit from TrivialDecorator::Base, live in your app/decorators directory, and are named for the model that they decorate:
26
+
27
+ ```ruby
28
+ # app/decorators/user_decorator.rb
29
+
30
+ class UserDecorator < TrivialDecorator::Base
31
+ def full_name
32
+ first_name + " " + last_name
33
+ end
34
+ end
35
+ ```
36
+
37
+ #### Accessing helpers
38
+
39
+ ```ruby
40
+ # app/decorators/user_decorator.rb
41
+
42
+ class UserDecorator < TrivialDecorator::Base
43
+ def full_name
44
+ h.content_tag(:strong, first_name + " " + last_name)
45
+ end
46
+ end
47
+ ```
48
+
49
+ #### Decorating Objects
50
+
51
+ ```ruby
52
+ # app/controllers/users_controller.rb
53
+
54
+ class UsersController < ApplicationController
55
+ def index
56
+ @users = decorate(User.all)
57
+ end
58
+ end
59
+ ```
60
+
61
+ This will use UserDecorator, if you want to use other decorator, just pass his class name as second param to decorate.
62
+
63
+ ```ruby
64
+ # app/controllers/users_controller.rb
65
+
66
+ class UsersController < ApplicationController
67
+ def index
68
+ @users = decorate(User.all, OtherDecorator)
69
+ end
70
+ end
71
+ ```
72
+
73
+ ## Contributing
74
+
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dbackowski/trivial_decorator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
76
+
77
+ ## License
78
+
79
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
80
+
81
+ ## Code of Conduct
82
+
83
+ Everyone interacting in the TrivialDecorator project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/dbackowski/trivial_decorator/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require "bundler/gem_tasks"
8
+ require "rspec/core/rake_task"
9
+
10
+ RSpec::Core::RakeTask.new(:spec)
11
+
12
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "trivial_decorator"
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(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,18 @@
1
+ require "trivial_decorator/version"
2
+ require "trivial_decorator/base"
3
+ require "trivial_decorator/collection_proxy"
4
+
5
+ module TrivialDecorator
6
+ def decorate(object, decorator_class = nil)
7
+ decorator_class ||= "#{object.model.name}Decorator".constantize
8
+
9
+ if object.respond_to? :each
10
+ TrivialDecorator::CollectionProxy.new(object, object.map { |o| decorator_class.new(o, view_context) })
11
+ else
12
+ decorator_class.new(object, view_context)
13
+ end
14
+ end
15
+ end
16
+
17
+ ActionController::Base.send :include, TrivialDecorator
18
+ ActionController::Base.send :helper_method, :decorate
@@ -0,0 +1,22 @@
1
+ module TrivialDecorator
2
+ class Base < SimpleDelegator
3
+ def initialize(object, view_context)
4
+ super(object)
5
+ @view_context = view_context
6
+ end
7
+
8
+ def helpers
9
+ view_context
10
+ end
11
+
12
+ def model
13
+ __getobj__
14
+ end
15
+
16
+ alias h helpers
17
+
18
+ private
19
+
20
+ attr_reader :view_context
21
+ end
22
+ end
@@ -0,0 +1,24 @@
1
+ module TrivialDecorator
2
+ class CollectionProxy
3
+ delegate :current_page, :total_pages, :limit_value, :model_name, :total_count,
4
+ :total_entries, :per_page, :offset, to: :original_collection
5
+
6
+ def initialize(original_collection, decorated_collection)
7
+ @original_collection = original_collection
8
+ @decorated_collection = decorated_collection
9
+ end
10
+
11
+ def method_missing(method, *args, &block)
12
+ decorated_collection.send(method, *args, &block)
13
+ end
14
+
15
+ def respond_to_missing?(method_name, include_private = false)
16
+ decorated_collection.respond_to_missing?(method_name, include_private) ||
17
+ original_collection.respond_to_missing?(method_name, include_private)
18
+ end
19
+
20
+ private
21
+
22
+ attr_reader :original_collection, :decorated_collection
23
+ end
24
+ end
@@ -0,0 +1,3 @@
1
+ module TrivialDecorator
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "trivial_decorator/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "trivial_decorator"
8
+ spec.version = TrivialDecorator::VERSION
9
+ spec.authors = ["Damian Baćkowski"]
10
+ spec.email = ["damianbackowski@gmail.com"]
11
+
12
+ spec.summary = "A simple decorator for Rails."
13
+ spec.description = "A simple decorator for Rails."
14
+ spec.homepage = "https://github.com/dbackowski/trivial_decorator"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency "rails", ">= 4.0.0", "< 6.0"
25
+ spec.add_development_dependency "bundler", "~> 1.16"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec-rails", "~> 3.6.0"
28
+ spec.add_development_dependency "sqlite3", "~> 1.3"
29
+ spec.add_development_dependency "capybara", "~> 2.16.1"
30
+ spec.add_development_dependency "factory_bot_rails", "~> 4.8.2"
31
+ spec.add_development_dependency "kaminari", "~> 1.1.1"
32
+ end
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trivial_decorator
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Damian Baćkowski
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-12-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 4.0.0
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.16'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.16'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '10.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '10.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec-rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 3.6.0
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 3.6.0
75
+ - !ruby/object:Gem::Dependency
76
+ name: sqlite3
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.3'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '1.3'
89
+ - !ruby/object:Gem::Dependency
90
+ name: capybara
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: 2.16.1
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: 2.16.1
103
+ - !ruby/object:Gem::Dependency
104
+ name: factory_bot_rails
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 4.8.2
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: 4.8.2
117
+ - !ruby/object:Gem::Dependency
118
+ name: kaminari
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 1.1.1
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.1.1
131
+ description: A simple decorator for Rails.
132
+ email:
133
+ - damianbackowski@gmail.com
134
+ executables: []
135
+ extensions: []
136
+ extra_rdoc_files: []
137
+ files:
138
+ - ".gitignore"
139
+ - ".rspec"
140
+ - ".travis.yml"
141
+ - CODE_OF_CONDUCT.md
142
+ - Gemfile
143
+ - Gemfile.lock
144
+ - LICENSE.txt
145
+ - README.md
146
+ - Rakefile
147
+ - bin/console
148
+ - bin/setup
149
+ - lib/trivial_decorator.rb
150
+ - lib/trivial_decorator/base.rb
151
+ - lib/trivial_decorator/collection_proxy.rb
152
+ - lib/trivial_decorator/version.rb
153
+ - trivial_decorator.gemspec
154
+ homepage: https://github.com/dbackowski/trivial_decorator
155
+ licenses:
156
+ - MIT
157
+ metadata: {}
158
+ post_install_message:
159
+ rdoc_options: []
160
+ require_paths:
161
+ - lib
162
+ required_ruby_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ requirements: []
173
+ rubyforge_project:
174
+ rubygems_version: 2.6.11
175
+ signing_key:
176
+ specification_version: 4
177
+ summary: A simple decorator for Rails.
178
+ test_files: []