better_enum 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +67 -0
  4. data/Rakefile +23 -0
  5. data/lib/better_enum/extension.rb +22 -0
  6. data/lib/better_enum/railtie.rb +7 -0
  7. data/lib/better_enum/version.rb +3 -0
  8. data/lib/better_enum.rb +2 -0
  9. data/lib/tasks/better_enum_tasks.rake +4 -0
  10. data/spec/dummy/Rakefile +6 -0
  11. data/spec/dummy/app/assets/config/manifest.js +4 -0
  12. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  13. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  14. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  15. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  16. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  17. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  18. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  19. data/spec/dummy/app/jobs/application_job.rb +2 -0
  20. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  21. data/spec/dummy/app/models/application_record.rb +3 -0
  22. data/spec/dummy/app/models/employee.rb +3 -0
  23. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  25. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  26. data/spec/dummy/bin/bundle +3 -0
  27. data/spec/dummy/bin/rails +4 -0
  28. data/spec/dummy/bin/rake +4 -0
  29. data/spec/dummy/bin/setup +38 -0
  30. data/spec/dummy/bin/update +29 -0
  31. data/spec/dummy/bin/yarn +11 -0
  32. data/spec/dummy/config/application.rb +26 -0
  33. data/spec/dummy/config/boot.rb +5 -0
  34. data/spec/dummy/config/cable.yml +10 -0
  35. data/spec/dummy/config/database.yml +25 -0
  36. data/spec/dummy/config/environment.rb +5 -0
  37. data/spec/dummy/config/environments/development.rb +54 -0
  38. data/spec/dummy/config/environments/production.rb +91 -0
  39. data/spec/dummy/config/environments/test.rb +42 -0
  40. data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
  41. data/spec/dummy/config/initializers/assets.rb +14 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  44. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  45. data/spec/dummy/config/initializers/inflections.rb +16 -0
  46. data/spec/dummy/config/initializers/locale.rb +3 -0
  47. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  48. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/spec/dummy/config/locales/en.yml +33 -0
  50. data/spec/dummy/config/locales/ja.yml +33 -0
  51. data/spec/dummy/config/locales/models/employee/en.yml +18 -0
  52. data/spec/dummy/config/locales/models/employee/ja.yml +18 -0
  53. data/spec/dummy/config/puma.rb +56 -0
  54. data/spec/dummy/config/routes.rb +3 -0
  55. data/spec/dummy/config/secrets.yml +32 -0
  56. data/spec/dummy/config/spring.rb +6 -0
  57. data/spec/dummy/config.ru +5 -0
  58. data/spec/dummy/db/development.sqlite3 +0 -0
  59. data/spec/dummy/db/migrate/20170803134359_create_employee.rb +9 -0
  60. data/spec/dummy/db/schema.rb +21 -0
  61. data/spec/dummy/db/test.sqlite3 +0 -0
  62. data/spec/dummy/log/development.log +14 -0
  63. data/spec/dummy/log/test.log +815 -0
  64. data/spec/dummy/package.json +5 -0
  65. data/spec/dummy/public/404.html +67 -0
  66. data/spec/dummy/public/422.html +67 -0
  67. data/spec/dummy/public/500.html +66 -0
  68. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  69. data/spec/dummy/public/apple-touch-icon.png +0 -0
  70. data/spec/dummy/public/favicon.ico +0 -0
  71. data/spec/dummy/spec +1 -0
  72. data/spec/factories/employees.rb +15 -0
  73. data/spec/models/employee_spec.rb +37 -0
  74. data/spec/rails_helper.rb +57 -0
  75. data/spec/spec_helper.rb +100 -0
  76. metadata +240 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "dummy",
3
+ "private": true,
4
+ "dependencies": {}
5
+ }
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
File without changes
data/spec/dummy/spec ADDED
@@ -0,0 +1 @@
1
+ spec/dummy/../../spec
@@ -0,0 +1,15 @@
1
+ FactoryGirl.define do
2
+ factory :employee do
3
+ gender :male
4
+ age 28
5
+ name 'test'
6
+
7
+ trait :male { gender :male }
8
+ trait :female { gender :female }
9
+ trait :other { gender :other }
10
+
11
+ factory :employee_male, traits: [:male]
12
+ factory :employee_female, traits: [:female]
13
+ factory :employee_other, traits: [:other]
14
+ end
15
+ end
@@ -0,0 +1,37 @@
1
+ require 'rails_helper'
2
+
3
+ RSpec.describe Employee, type: :model do
4
+ describe 'about singleton methods' do
5
+ describe '.genders' do
6
+ it { expect(Employee.genders).to eq('male' => 0, 'female' => 1, 'other' => 2) }
7
+ end
8
+ describe '.gender_text' do
9
+ it('with male') { expect(Employee.gender_label(:male)).to eq '男性' }
10
+ it('with female') { expect(Employee.gender_label(:female)).to eq '女性' }
11
+ it('with other') { expect(Employee.gender_label(:other)).to eq 'その他' }
12
+ end
13
+ describe '.gender_value' do
14
+ context('with male') { it { expect(Employee.gender_value(:male)).to eq 0 } }
15
+ context('with female') { it { expect(Employee.gender_value(:female)).to eq 1 } }
16
+ context('with other') { it { expect(Employee.gender_value(:other)).to eq 2 } }
17
+ end
18
+ describe '.gender_texts' do
19
+ it { expect(Employee.gender_labels).to eq('male' => '男性', 'female' => '女性', 'other' => 'その他') }
20
+ end
21
+ end
22
+ describe 'about instance methods' do
23
+ let(:male) { create(:employee_male) }
24
+ let(:female) { create(:employee_female) }
25
+ let(:other) { create(:employee_other) }
26
+ describe '#gender_label' do
27
+ context('about male') { it { expect(male.gender_label).to eq '男性' } }
28
+ context('about female') { it { expect(female.gender_label).to eq '女性' } }
29
+ context('about other') { it { expect(other.gender_label).to eq 'その他' } }
30
+ end
31
+ describe '#gender_value' do
32
+ context('about male') { it { expect(male.gender_value).to eq 0 } }
33
+ context('about female') { it { expect(female.gender_value).to eq 1 } }
34
+ context('about other') { it { expect(other.gender_value).to eq 2 } }
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,57 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ require 'spec_helper'
3
+ ENV['RAILS_ENV'] ||= 'test'
4
+ require File.expand_path('../dummy/config/environment', __FILE__)
5
+ # Prevent database truncation if the environment is production
6
+ abort("The Rails environment is running in production mode!") if Rails.env.production?
7
+ require 'rspec/rails'
8
+ # Add additional requires below this line. Rails is not loaded until this point!
9
+
10
+ # Requires supporting ruby files with custom matchers and macros, etc, in
11
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
12
+ # run as spec files by default. This means that files in spec/support that end
13
+ # in _spec.rb will both be required and run as specs, causing the specs to be
14
+ # run twice. It is recommended that you do not name files matching this glob to
15
+ # end with _spec.rb. You can configure this pattern with the --pattern
16
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
17
+ #
18
+ # The following line is provided for convenience purposes. It has the downside
19
+ # of increasing the boot-up time by auto-requiring all files in the support
20
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
21
+ # require only the support files necessary.
22
+ #
23
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
24
+
25
+ # Checks for pending migration and applies them before tests are run.
26
+ # If you are not using ActiveRecord, you can remove this line.
27
+ ActiveRecord::Migration.maintain_test_schema!
28
+
29
+ RSpec.configure do |config|
30
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
31
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
32
+
33
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
34
+ # examples within a transaction, remove the following line or assign false
35
+ # instead of true.
36
+ config.use_transactional_fixtures = true
37
+
38
+ # RSpec Rails can automatically mix in different behaviours to your tests
39
+ # based on their file location, for example enabling you to call `get` and
40
+ # `post` in specs under `spec/controllers`.
41
+ #
42
+ # You can disable this behaviour by removing the line below, and instead
43
+ # explicitly tag your specs with their type, e.g.:
44
+ #
45
+ # RSpec.describe UsersController, :type => :controller do
46
+ # # ...
47
+ # end
48
+ #
49
+ # The different available types are documented in the features, such as in
50
+ # https://relishapp.com/rspec/rspec-rails/docs
51
+ config.infer_spec_type_from_file_location!
52
+
53
+ # Filter lines from Rails gems in backtraces.
54
+ config.filter_rails_from_backtrace!
55
+ # arbitrary gems may also be filtered via:
56
+ # config.filter_gems_from_backtrace("gem name")
57
+ end
@@ -0,0 +1,100 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ require 'factory_girl_rails'
17
+
18
+ RSpec.configure do |config|
19
+ # rspec-expectations config goes here. You can use an alternate
20
+ # assertion/expectation library such as wrong or the stdlib/minitest
21
+ # assertions if you prefer.
22
+ config.expect_with :rspec do |expectations|
23
+ # This option will default to `true` in RSpec 4. It makes the `description`
24
+ # and `failure_message` of custom matchers include text for helper methods
25
+ # defined using `chain`, e.g.:
26
+ # be_bigger_than(2).and_smaller_than(4).description
27
+ # # => "be bigger than 2 and smaller than 4"
28
+ # ...rather than:
29
+ # # => "be bigger than 2"
30
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
+ end
32
+
33
+ # rspec-mocks config goes here. You can use an alternate test double
34
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
35
+ config.mock_with :rspec do |mocks|
36
+ # Prevents you from mocking or stubbing a method that does not exist on
37
+ # a real object. This is generally recommended, and will default to
38
+ # `true` in RSpec 4.
39
+ mocks.verify_partial_doubles = true
40
+ end
41
+
42
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
+ # have no way to turn it off -- the option exists only for backwards
44
+ # compatibility in RSpec 3). It causes shared context metadata to be
45
+ # inherited by the metadata hash of host groups and examples, rather than
46
+ # triggering implicit auto-inclusion in groups with matching metadata.
47
+ config.shared_context_metadata_behavior = :apply_to_host_groups
48
+
49
+ # The settings below are suggested to provide a good initial experience
50
+ # with RSpec, but feel free to customize to your heart's content.
51
+ =begin
52
+ # This allows you to limit a spec run to individual examples or groups
53
+ # you care about by tagging them with `:focus` metadata. When nothing
54
+ # is tagged with `:focus`, all examples get run. RSpec also provides
55
+ # aliases for `it`, `describe`, and `context` that include `:focus`
56
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
57
+ config.filter_run_when_matching :focus
58
+
59
+ # Allows RSpec to persist some state between runs in order to support
60
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
61
+ # you configure your source control system to ignore this file.
62
+ config.example_status_persistence_file_path = "spec/examples.txt"
63
+
64
+ # Limits the available syntax to the non-monkey patched syntax that is
65
+ # recommended. For more details, see:
66
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
67
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
68
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
69
+ config.disable_monkey_patching!
70
+
71
+ # Many RSpec users commonly either run the entire suite or an individual
72
+ # file, and it's useful to allow more verbose output when running an
73
+ # individual spec file.
74
+ if config.files_to_run.one?
75
+ # Use the documentation formatter for detailed output,
76
+ # unless a formatter has already been configured
77
+ # (e.g. via a command-line flag).
78
+ config.default_formatter = "doc"
79
+ end
80
+
81
+ # Print the 10 slowest examples and example groups at the
82
+ # end of the spec run, to help surface which specs are running
83
+ # particularly slow.
84
+ config.profile_examples = 10
85
+
86
+ # Run specs in random order to surface order dependencies. If you find an
87
+ # order dependency and want to debug it, you can fix the order by providing
88
+ # the seed, which is printed after each run.
89
+ # --seed 1234
90
+ config.order = :random
91
+
92
+ # Seed global randomization in this process using the `--seed` CLI option.
93
+ # Setting this allows you to use `--seed` to deterministically reproduce
94
+ # test failures related to randomization by passing the same `--seed` value
95
+ # as the one that triggered the failure.
96
+ Kernel.srand config.seed
97
+ =end
98
+
99
+ config.include FactoryGirl::Syntax::Methods
100
+ end
metadata ADDED
@@ -0,0 +1,240 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: better_enum
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - smoriwaki
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-04 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.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: factory_girl_rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Sligntly extension of builtin enum.
70
+ email:
71
+ - smoriwaki@cuon.co.jp
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - MIT-LICENSE
77
+ - README.md
78
+ - Rakefile
79
+ - lib/better_enum.rb
80
+ - lib/better_enum/extension.rb
81
+ - lib/better_enum/railtie.rb
82
+ - lib/better_enum/version.rb
83
+ - lib/tasks/better_enum_tasks.rake
84
+ - spec/dummy/Rakefile
85
+ - spec/dummy/app/assets/config/manifest.js
86
+ - spec/dummy/app/assets/javascripts/application.js
87
+ - spec/dummy/app/assets/javascripts/cable.js
88
+ - spec/dummy/app/assets/stylesheets/application.css
89
+ - spec/dummy/app/channels/application_cable/channel.rb
90
+ - spec/dummy/app/channels/application_cable/connection.rb
91
+ - spec/dummy/app/controllers/application_controller.rb
92
+ - spec/dummy/app/helpers/application_helper.rb
93
+ - spec/dummy/app/jobs/application_job.rb
94
+ - spec/dummy/app/mailers/application_mailer.rb
95
+ - spec/dummy/app/models/application_record.rb
96
+ - spec/dummy/app/models/employee.rb
97
+ - spec/dummy/app/views/layouts/application.html.erb
98
+ - spec/dummy/app/views/layouts/mailer.html.erb
99
+ - spec/dummy/app/views/layouts/mailer.text.erb
100
+ - spec/dummy/bin/bundle
101
+ - spec/dummy/bin/rails
102
+ - spec/dummy/bin/rake
103
+ - spec/dummy/bin/setup
104
+ - spec/dummy/bin/update
105
+ - spec/dummy/bin/yarn
106
+ - spec/dummy/config.ru
107
+ - spec/dummy/config/application.rb
108
+ - spec/dummy/config/boot.rb
109
+ - spec/dummy/config/cable.yml
110
+ - spec/dummy/config/database.yml
111
+ - spec/dummy/config/environment.rb
112
+ - spec/dummy/config/environments/development.rb
113
+ - spec/dummy/config/environments/production.rb
114
+ - spec/dummy/config/environments/test.rb
115
+ - spec/dummy/config/initializers/application_controller_renderer.rb
116
+ - spec/dummy/config/initializers/assets.rb
117
+ - spec/dummy/config/initializers/backtrace_silencers.rb
118
+ - spec/dummy/config/initializers/cookies_serializer.rb
119
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
120
+ - spec/dummy/config/initializers/inflections.rb
121
+ - spec/dummy/config/initializers/locale.rb
122
+ - spec/dummy/config/initializers/mime_types.rb
123
+ - spec/dummy/config/initializers/wrap_parameters.rb
124
+ - spec/dummy/config/locales/en.yml
125
+ - spec/dummy/config/locales/ja.yml
126
+ - spec/dummy/config/locales/models/employee/en.yml
127
+ - spec/dummy/config/locales/models/employee/ja.yml
128
+ - spec/dummy/config/puma.rb
129
+ - spec/dummy/config/routes.rb
130
+ - spec/dummy/config/secrets.yml
131
+ - spec/dummy/config/spring.rb
132
+ - spec/dummy/db/development.sqlite3
133
+ - spec/dummy/db/migrate/20170803134359_create_employee.rb
134
+ - spec/dummy/db/schema.rb
135
+ - spec/dummy/db/test.sqlite3
136
+ - spec/dummy/log/development.log
137
+ - spec/dummy/log/test.log
138
+ - spec/dummy/package.json
139
+ - spec/dummy/public/404.html
140
+ - spec/dummy/public/422.html
141
+ - spec/dummy/public/500.html
142
+ - spec/dummy/public/apple-touch-icon-precomposed.png
143
+ - spec/dummy/public/apple-touch-icon.png
144
+ - spec/dummy/public/favicon.ico
145
+ - spec/dummy/spec
146
+ - spec/factories/employees.rb
147
+ - spec/models/employee_spec.rb
148
+ - spec/rails_helper.rb
149
+ - spec/spec_helper.rb
150
+ homepage: https://github.com/smoriwaki/better_enum
151
+ licenses:
152
+ - MIT
153
+ metadata: {}
154
+ post_install_message:
155
+ rdoc_options: []
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ requirements: []
169
+ rubyforge_project:
170
+ rubygems_version: 2.6.11
171
+ signing_key:
172
+ specification_version: 4
173
+ summary: Slightly extension of builtin enum.
174
+ test_files:
175
+ - spec/dummy/Rakefile
176
+ - spec/dummy/app/assets/config/manifest.js
177
+ - spec/dummy/app/assets/javascripts/application.js
178
+ - spec/dummy/app/assets/javascripts/cable.js
179
+ - spec/dummy/app/assets/stylesheets/application.css
180
+ - spec/dummy/app/channels/application_cable/channel.rb
181
+ - spec/dummy/app/channels/application_cable/connection.rb
182
+ - spec/dummy/app/controllers/application_controller.rb
183
+ - spec/dummy/app/helpers/application_helper.rb
184
+ - spec/dummy/app/jobs/application_job.rb
185
+ - spec/dummy/app/mailers/application_mailer.rb
186
+ - spec/dummy/app/models/application_record.rb
187
+ - spec/dummy/app/models/employee.rb
188
+ - spec/dummy/app/views/layouts/application.html.erb
189
+ - spec/dummy/app/views/layouts/mailer.html.erb
190
+ - spec/dummy/app/views/layouts/mailer.text.erb
191
+ - spec/dummy/bin/bundle
192
+ - spec/dummy/bin/rails
193
+ - spec/dummy/bin/rake
194
+ - spec/dummy/bin/setup
195
+ - spec/dummy/bin/update
196
+ - spec/dummy/bin/yarn
197
+ - spec/dummy/config/application.rb
198
+ - spec/dummy/config/boot.rb
199
+ - spec/dummy/config/cable.yml
200
+ - spec/dummy/config/database.yml
201
+ - spec/dummy/config/environment.rb
202
+ - spec/dummy/config/environments/development.rb
203
+ - spec/dummy/config/environments/production.rb
204
+ - spec/dummy/config/environments/test.rb
205
+ - spec/dummy/config/initializers/application_controller_renderer.rb
206
+ - spec/dummy/config/initializers/assets.rb
207
+ - spec/dummy/config/initializers/backtrace_silencers.rb
208
+ - spec/dummy/config/initializers/cookies_serializer.rb
209
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
210
+ - spec/dummy/config/initializers/inflections.rb
211
+ - spec/dummy/config/initializers/locale.rb
212
+ - spec/dummy/config/initializers/mime_types.rb
213
+ - spec/dummy/config/initializers/wrap_parameters.rb
214
+ - spec/dummy/config/locales/en.yml
215
+ - spec/dummy/config/locales/ja.yml
216
+ - spec/dummy/config/locales/models/employee/en.yml
217
+ - spec/dummy/config/locales/models/employee/ja.yml
218
+ - spec/dummy/config/puma.rb
219
+ - spec/dummy/config/routes.rb
220
+ - spec/dummy/config/secrets.yml
221
+ - spec/dummy/config/spring.rb
222
+ - spec/dummy/config.ru
223
+ - spec/dummy/db/development.sqlite3
224
+ - spec/dummy/db/migrate/20170803134359_create_employee.rb
225
+ - spec/dummy/db/schema.rb
226
+ - spec/dummy/db/test.sqlite3
227
+ - spec/dummy/log/development.log
228
+ - spec/dummy/log/test.log
229
+ - spec/dummy/package.json
230
+ - spec/dummy/public/404.html
231
+ - spec/dummy/public/422.html
232
+ - spec/dummy/public/500.html
233
+ - spec/dummy/public/apple-touch-icon-precomposed.png
234
+ - spec/dummy/public/apple-touch-icon.png
235
+ - spec/dummy/public/favicon.ico
236
+ - spec/dummy/spec
237
+ - spec/factories/employees.rb
238
+ - spec/models/employee_spec.rb
239
+ - spec/rails_helper.rb
240
+ - spec/spec_helper.rb