├── .codeclimate.yml ├── .editorconfig ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .simplecov ├── Appraisals ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── benchmarks ├── README.md └── benchmark.rb ├── bin ├── console ├── release ├── rspec ├── rubocop └── setup ├── dekorator.gemspec ├── gemfiles ├── rails_7.2.x.gemfile ├── rails_8.0.x.gemfile ├── rails_8.1.x.gemfile └── rails_head.gemfile ├── lib ├── dekorator.rb ├── dekorator │ ├── rails │ │ ├── controller.rb │ │ ├── record.rb │ │ └── tasks │ │ │ └── dekorator.rake │ ├── railtie.rb │ └── version.rb └── generators │ ├── decorator_generator.rb │ ├── dekorator │ ├── decorator │ │ ├── USAGE │ │ ├── decorator_generator.rb │ │ └── templates │ │ │ └── decorator.rb │ └── install │ │ └── install_generator.rb │ ├── rspec │ ├── decorator_generator.rb │ └── templates │ │ └── decorator_spec.rb │ └── test_unit │ ├── decorator_generator.rb │ └── templates │ └── decorator_test.rb └── spec ├── fixtures ├── decorators.rb └── models.rb ├── lib ├── dekorator_base_spec.rb └── dekorator_spec.rb └── spec_helper.rb /.codeclimate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/.codeclimate.yml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | --require spec_helper 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.simplecov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/.simplecov -------------------------------------------------------------------------------- /Appraisals: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/Appraisals -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/Rakefile -------------------------------------------------------------------------------- /benchmarks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/benchmarks/README.md -------------------------------------------------------------------------------- /benchmarks/benchmark.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/benchmarks/benchmark.rb -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/bin/console -------------------------------------------------------------------------------- /bin/release: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/bin/release -------------------------------------------------------------------------------- /bin/rspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/bin/rspec -------------------------------------------------------------------------------- /bin/rubocop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/bin/rubocop -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/bin/setup -------------------------------------------------------------------------------- /dekorator.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/dekorator.gemspec -------------------------------------------------------------------------------- /gemfiles/rails_7.2.x.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/gemfiles/rails_7.2.x.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_8.0.x.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/gemfiles/rails_8.0.x.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_8.1.x.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/gemfiles/rails_8.1.x.gemfile -------------------------------------------------------------------------------- /gemfiles/rails_head.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/gemfiles/rails_head.gemfile -------------------------------------------------------------------------------- /lib/dekorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/dekorator.rb -------------------------------------------------------------------------------- /lib/dekorator/rails/controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/dekorator/rails/controller.rb -------------------------------------------------------------------------------- /lib/dekorator/rails/record.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/dekorator/rails/record.rb -------------------------------------------------------------------------------- /lib/dekorator/rails/tasks/dekorator.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/dekorator/rails/tasks/dekorator.rake -------------------------------------------------------------------------------- /lib/dekorator/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/dekorator/railtie.rb -------------------------------------------------------------------------------- /lib/dekorator/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module Dekorator 4 | VERSION = "1.8.0".freeze 5 | end 6 | -------------------------------------------------------------------------------- /lib/generators/decorator_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/decorator_generator.rb -------------------------------------------------------------------------------- /lib/generators/dekorator/decorator/USAGE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/dekorator/decorator/USAGE -------------------------------------------------------------------------------- /lib/generators/dekorator/decorator/decorator_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/dekorator/decorator/decorator_generator.rb -------------------------------------------------------------------------------- /lib/generators/dekorator/decorator/templates/decorator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/dekorator/decorator/templates/decorator.rb -------------------------------------------------------------------------------- /lib/generators/dekorator/install/install_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/dekorator/install/install_generator.rb -------------------------------------------------------------------------------- /lib/generators/rspec/decorator_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/rspec/decorator_generator.rb -------------------------------------------------------------------------------- /lib/generators/rspec/templates/decorator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/rspec/templates/decorator_spec.rb -------------------------------------------------------------------------------- /lib/generators/test_unit/decorator_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/test_unit/decorator_generator.rb -------------------------------------------------------------------------------- /lib/generators/test_unit/templates/decorator_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/lib/generators/test_unit/templates/decorator_test.rb -------------------------------------------------------------------------------- /spec/fixtures/decorators.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/spec/fixtures/decorators.rb -------------------------------------------------------------------------------- /spec/fixtures/models.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/spec/fixtures/models.rb -------------------------------------------------------------------------------- /spec/lib/dekorator_base_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/spec/lib/dekorator_base_spec.rb -------------------------------------------------------------------------------- /spec/lib/dekorator_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/spec/lib/dekorator_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/komposable/dekorator/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------