├── .gitignore ├── .rspec ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── Gemfile.lock ├── LICENSE.txt ├── README.md ├── Rakefile ├── i18n-spec.gemspec ├── lib ├── i18n-spec.rb └── i18n-spec │ ├── failure_message.rb │ ├── matchers │ ├── be_a_complete_translation_of_matcher.rb │ ├── be_a_subset_of_matcher.rb │ ├── be_named_like_top_level_namespace_matcher.rb │ ├── be_parseable_matcher.rb │ ├── have_a_valid_locale_matcher.rb │ ├── have_legacy_interpolations.rb │ ├── have_missing_pluralization_keys_matcher.rb │ ├── have_one_top_level_namespace_matcher.rb │ └── have_valid_pluralization_keys_matcher.rb │ ├── models │ └── locale_file.rb │ ├── shared_examples │ └── valid_locale_file.rb │ ├── tasks.rb │ └── version.rb └── spec ├── fixtures ├── en.yml ├── es.yml ├── fr.yml ├── invalid_locale.yml ├── invalid_pluralization_keys.yml ├── legacy_interpolations.yml ├── missing_pluralization_keys.yml ├── multiple_top_levels.yml ├── not_subset.yml └── unparseable.yml ├── lib └── i18n-spec │ ├── matchers_spec.rb │ └── models │ └── locale_file_spec.rb └── spec_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/Rakefile -------------------------------------------------------------------------------- /i18n-spec.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/i18n-spec.gemspec -------------------------------------------------------------------------------- /lib/i18n-spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec.rb -------------------------------------------------------------------------------- /lib/i18n-spec/failure_message.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/failure_message.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/be_a_complete_translation_of_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/be_a_complete_translation_of_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/be_a_subset_of_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/be_a_subset_of_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/be_named_like_top_level_namespace_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/be_named_like_top_level_namespace_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/be_parseable_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/be_parseable_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/have_a_valid_locale_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/have_a_valid_locale_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/have_legacy_interpolations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/have_legacy_interpolations.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/have_missing_pluralization_keys_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/have_missing_pluralization_keys_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/have_one_top_level_namespace_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/have_one_top_level_namespace_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/matchers/have_valid_pluralization_keys_matcher.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/matchers/have_valid_pluralization_keys_matcher.rb -------------------------------------------------------------------------------- /lib/i18n-spec/models/locale_file.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/models/locale_file.rb -------------------------------------------------------------------------------- /lib/i18n-spec/shared_examples/valid_locale_file.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/shared_examples/valid_locale_file.rb -------------------------------------------------------------------------------- /lib/i18n-spec/tasks.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/lib/i18n-spec/tasks.rb -------------------------------------------------------------------------------- /lib/i18n-spec/version.rb: -------------------------------------------------------------------------------- 1 | module I18nSpec 2 | VERSION = "0.6.0" 3 | end 4 | -------------------------------------------------------------------------------- /spec/fixtures/en.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/en.yml -------------------------------------------------------------------------------- /spec/fixtures/es.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/es.yml -------------------------------------------------------------------------------- /spec/fixtures/fr.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/fr.yml -------------------------------------------------------------------------------- /spec/fixtures/invalid_locale.yml: -------------------------------------------------------------------------------- 1 | lol: 2 | foo: bar 3 | -------------------------------------------------------------------------------- /spec/fixtures/invalid_pluralization_keys.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/invalid_pluralization_keys.yml -------------------------------------------------------------------------------- /spec/fixtures/legacy_interpolations.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/legacy_interpolations.yml -------------------------------------------------------------------------------- /spec/fixtures/missing_pluralization_keys.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/missing_pluralization_keys.yml -------------------------------------------------------------------------------- /spec/fixtures/multiple_top_levels.yml: -------------------------------------------------------------------------------- 1 | en: 2 | hello: world 3 | fr: 4 | bonjour: monde -------------------------------------------------------------------------------- /spec/fixtures/not_subset.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/fixtures/not_subset.yml -------------------------------------------------------------------------------- /spec/fixtures/unparseable.yml: -------------------------------------------------------------------------------- 1 | : foo: bar: -------------------------------------------------------------------------------- /spec/lib/i18n-spec/matchers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/lib/i18n-spec/matchers_spec.rb -------------------------------------------------------------------------------- /spec/lib/i18n-spec/models/locale_file_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/lib/i18n-spec/models/locale_file_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tigrish/i18n-spec/HEAD/spec/spec_helper.rb --------------------------------------------------------------------------------