├── .editorconfig ├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ ├── FEATURE_REQUEST.md │ └── config.yml ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── ci.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── appveyor.yml ├── bin ├── console └── setup ├── lib ├── strings-truncation.rb └── strings │ ├── truncation.rb │ └── truncation │ ├── configuration.rb │ ├── extensions.rb │ └── version.rb ├── spec ├── perf │ └── truncate_spec.rb ├── spec_helper.rb └── unit │ ├── configure_spec.rb │ ├── extensions_spec.rb │ ├── truncate_ansi_spec.rb │ ├── truncate_multibyte_spec.rb │ └── truncate_spec.rb ├── strings-truncation.gemspec └── tasks ├── console.rake ├── coverage.rake └── spec.rake /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: piotrmurach 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.github/ISSUE_TEMPLATE/BUG_REPORT.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | --require spec_helper 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/Rakefile -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/appveyor.yml -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/bin/setup -------------------------------------------------------------------------------- /lib/strings-truncation.rb: -------------------------------------------------------------------------------- 1 | require "strings/truncation" 2 | -------------------------------------------------------------------------------- /lib/strings/truncation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/lib/strings/truncation.rb -------------------------------------------------------------------------------- /lib/strings/truncation/configuration.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/lib/strings/truncation/configuration.rb -------------------------------------------------------------------------------- /lib/strings/truncation/extensions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/lib/strings/truncation/extensions.rb -------------------------------------------------------------------------------- /lib/strings/truncation/version.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/lib/strings/truncation/version.rb -------------------------------------------------------------------------------- /spec/perf/truncate_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/perf/truncate_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/unit/configure_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/unit/configure_spec.rb -------------------------------------------------------------------------------- /spec/unit/extensions_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/unit/extensions_spec.rb -------------------------------------------------------------------------------- /spec/unit/truncate_ansi_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/unit/truncate_ansi_spec.rb -------------------------------------------------------------------------------- /spec/unit/truncate_multibyte_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/unit/truncate_multibyte_spec.rb -------------------------------------------------------------------------------- /spec/unit/truncate_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/spec/unit/truncate_spec.rb -------------------------------------------------------------------------------- /strings-truncation.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/strings-truncation.gemspec -------------------------------------------------------------------------------- /tasks/console.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/tasks/console.rake -------------------------------------------------------------------------------- /tasks/coverage.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/tasks/coverage.rake -------------------------------------------------------------------------------- /tasks/spec.rake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/piotrmurach/strings-truncation/HEAD/tasks/spec.rake --------------------------------------------------------------------------------