├── .gitignore ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── bin ├── console └── setup ├── enum.gemspec ├── lib ├── enum.rb ├── enum │ ├── base.rb │ ├── predicates.rb │ ├── token_not_found_error.rb │ └── version.rb └── safe-enum.rb └── test ├── base_test.rb ├── predicates_test.rb ├── support ├── fixtures.rb └── translations.rb └── test_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/.travis.yml -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/bin/setup -------------------------------------------------------------------------------- /enum.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/enum.gemspec -------------------------------------------------------------------------------- /lib/enum.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/lib/enum.rb -------------------------------------------------------------------------------- /lib/enum/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/lib/enum/base.rb -------------------------------------------------------------------------------- /lib/enum/predicates.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/lib/enum/predicates.rb -------------------------------------------------------------------------------- /lib/enum/token_not_found_error.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/lib/enum/token_not_found_error.rb -------------------------------------------------------------------------------- /lib/enum/version.rb: -------------------------------------------------------------------------------- 1 | module Enum 2 | VERSION = '0.3.1' 3 | end 4 | -------------------------------------------------------------------------------- /lib/safe-enum.rb: -------------------------------------------------------------------------------- 1 | require 'enum' 2 | -------------------------------------------------------------------------------- /test/base_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/test/base_test.rb -------------------------------------------------------------------------------- /test/predicates_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/test/predicates_test.rb -------------------------------------------------------------------------------- /test/support/fixtures.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/test/support/fixtures.rb -------------------------------------------------------------------------------- /test/support/translations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/test/support/translations.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mezuka/enum/HEAD/test/test_helper.rb --------------------------------------------------------------------------------