symbolized_enum 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 561c3eda1dd4d441a4c238a4d290135449c42160
4
+ data.tar.gz: d061e242a2d84c3f7db935d3758445256e0da00b
5
+ SHA512:
6
+ metadata.gz: fe423b0a44739e3a14f490aab096c0db986ad2a7d0ee67336a5afb63a8136193363e7f906743cf286d0bf2fa5488978fa15a7c3fa19d5324b6562fa37641a133
7
+ data.tar.gz: 710182169cbb4638b7c8e72f85248622ead44f3e73eddbecbe4f5254cdcbfc4e65a82f620ef70c0a70b4c5b05184a319b500cd4ba72b0f73e4fb4fb00fd22341
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /log/
10
+ /gemfiles/*.gemfile.lock
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
14
+ .ruby-version
15
+ Gemfile.lock
16
+
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,37 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.3
3
+
4
+ Style/WordArray:
5
+ EnforcedStyle: brackets
6
+
7
+ Style/SymbolArray:
8
+ EnforcedStyle: brackets
9
+
10
+ Style/Documentation:
11
+ Enabled: false
12
+
13
+ Style/NumericLiterals:
14
+ Enabled: false
15
+
16
+ Style/FrozenStringLiteralComment:
17
+ Enabled: true
18
+ EnforcedStyle: always
19
+
20
+ Metrics/BlockLength:
21
+ Exclude:
22
+ - 'spec/**/*.rb'
23
+ - 'symbolized_enum.gemspec'
24
+
25
+ Metrics/LineLength:
26
+ Max: 120
27
+ Exclude:
28
+ - 'symbolized_enum.gemspec'
29
+
30
+ Metrics/ParameterLists:
31
+ Enabled: false
32
+
33
+ Metrics/AbcSize:
34
+ Enabled: false
35
+
36
+ Metrics/MethodLength:
37
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ sudo: false
3
+ gemfile:
4
+ - gemfiles/rails_5.0.gemfile
5
+ - gemfiles/rails_5.1.gemfile
6
+ - gemfiles/rails_5.2.gemfile
7
+ rvm:
8
+ - 2.3.7
9
+ - 2.4.4
10
+ - 2.5.1
11
+ - jruby-9.1.17.0
12
+ script:
13
+ - bundle exec rspec
14
+ - bundle exec rubocop
data/Appraisals ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-5.0' do
4
+ gem 'activerecord', '5.0.7'
5
+ gem 'activesupport', '5.0.7'
6
+ end
7
+
8
+ appraise 'rails-5.1' do
9
+ gem 'activerecord', '5.1.6'
10
+ gem 'activesupport', '5.1.6'
11
+ end
12
+
13
+ appraise 'rails-5.2' do
14
+ gem 'activerecord', '5.2.1'
15
+ gem 'activesupport', '5.2.1'
16
+ end
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at wleonard@salsify.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in symbolized_enum.gemspec
8
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Will Leonard
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,105 @@
1
+ # SymbolizedEnum
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/symbolized_enum.svg)][gem]
4
+ [![Build Status](https://travis-ci.com/will89/symbolized_enum.svg?branch=master)][travis]
5
+
6
+ [gem]: https://rubygems.org/gems/symbolized_enum
7
+ [travis]: http://travis-ci.com/will89/symbolized_enum
8
+
9
+ Provides a convenient interface to using an activerecord attribute as a symbol and using validates_inclusion_of with symbols.
10
+ Optionally, can generate predicate methods.
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'symbolized_enum'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install symbolized_enum
27
+
28
+ ## Usage
29
+
30
+ ```ruby
31
+ require 'symbolized_enum'
32
+
33
+ class Post < ApplicationRecord
34
+ include SymbolizedEnum
35
+
36
+ # A database column 'post_type' can be used as a symbolized enumeration by:
37
+ symbolized_enum :post_type, in: [:informative, :rant]
38
+ end
39
+
40
+ # Optional predicate methods
41
+ class Post < ApplicationRecord
42
+ include SymbolizedEnum
43
+
44
+ # A database column 'post_type' can be used as a symbolized enumeration by:
45
+ symbolized_enum :post_type, predicates: true, in: [:informative, :rant]
46
+ end
47
+
48
+ post = Post.new(post_type: :informative)
49
+ post.informative?
50
+ => true
51
+
52
+ # Predicate methods prefixed by attribute name
53
+ class Post < ApplicationRecord
54
+ include SymbolizedEnum
55
+
56
+ # A database column 'post_type' can be used as a symbolized enumeration by:
57
+ symbolized_enum :post_type, predicates: true, prefixed_predicate: true, in: [:informative, :rant]
58
+ end
59
+
60
+ post = Post.new(post_type: :informative)
61
+ post.post_type_informative?
62
+ => true
63
+
64
+ # Predicate methods suffixed by attribute name
65
+ class Post < ApplicationRecord
66
+ include SymbolizedEnum
67
+
68
+ # A database column 'post_type' can be used as a symbolized enumeration by:
69
+ symbolized_enum :post_type, predicates: true, suffixed_predicate: true, in: [:informative, :rant]
70
+ end
71
+
72
+ post = Post.new(post_type: :informative)
73
+ post.informative_post_type?
74
+ => true
75
+
76
+ # Predicate methods generated by proc
77
+ class Post < ApplicationRecord
78
+ include SymbolizedEnum
79
+
80
+ # A database column 'post_type' can be used as a symbolized enumeration by:
81
+ symbolized_enum :post_type, predicates: true, predicate_name_generator: proc { |attr_name, enum_value| "customizable_#{enum_value}_#{attr_name}?" }, in: [:informative, :rant]
82
+ end
83
+
84
+ post = Post.new(post_type: :informative)
85
+ post.customizable_informative_post_type?
86
+ => true
87
+ ```
88
+
89
+ ## Development
90
+
91
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
92
+
93
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
94
+
95
+ ## Contributing
96
+
97
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[will89]/symbolized_enum. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
98
+
99
+ ## License
100
+
101
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
102
+
103
+ ## Code of Conduct
104
+
105
+ Everyone interacting in the SymbolizedEnum project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[will89]/symbolized_enum/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'symbolized_enum'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by Appraisal
4
+
5
+ source 'https://rubygems.org'
6
+
7
+ gem 'activerecord', '5.0.7'
8
+ gem 'activesupport', '5.0.7'
9
+
10
+ gemspec path: '../'
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by Appraisal
4
+
5
+ source 'https://rubygems.org'
6
+
7
+ gem 'activerecord', '5.1.6'
8
+ gem 'activesupport', '5.1.6'
9
+
10
+ gemspec path: '../'
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by Appraisal
4
+
5
+ source 'https://rubygems.org'
6
+
7
+ gem 'activerecord', '5.2.1'
8
+ gem 'activesupport', '5.2.1'
9
+
10
+ gemspec path: '../'
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SymbolizedEnum
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'symbolized_enum/version'
4
+ require 'active_support'
5
+ require 'active_record'
6
+ require 'active_record-type-symbol'
7
+
8
+ module SymbolizedEnum
9
+ extend ActiveSupport::Concern
10
+
11
+ module ClassMethods
12
+ # @param [String, Symbol] attr_name Activerecord attribute to treat as a symbol
13
+ # @param kwargs [Boolean] :predicates (false) Generate boolean methods for each enum value.
14
+ # This must be true for any of the other predicate options to take effect
15
+ # @param kwargs [Boolean] :prefixed_predicate (false) Generate boolean methods for each enum value
16
+ # prefixed with the name of the attribute
17
+ # @param kwargs [Boolean] :suffixed_predicate (false) Generate boolean methods for each enum value
18
+ # suffixed with the name of the attribute
19
+ # @param kwargs [Proc, nil] :predicate_name_generator (nil) Generate boolean methods for each enum value by calling
20
+ # the proc with attribute name and enum value
21
+ # @param [Hash] **validates_inclusion_of_options Any options accepted by activerecord's validates_inclusion_of
22
+ def symbolized_enum(attr_name, predicates: false,
23
+ prefixed_predicate: false,
24
+ suffixed_predicate: false,
25
+ predicate_name_generator: nil,
26
+ **validates_inclusion_of_options)
27
+ attribute(attr_name, :symbol)
28
+ validates_inclusion_of(attr_name, validates_inclusion_of_options)
29
+
30
+ return unless predicates
31
+
32
+ enum_values = validates_inclusion_of_options[:in]
33
+ if prefixed_predicate
34
+ enum_values.each do |enum_value|
35
+ define_method("#{attr_name}_#{enum_value}?") do
36
+ send(attr_name) == enum_value
37
+ end
38
+ end
39
+ elsif suffixed_predicate
40
+ enum_values.each do |enum_value|
41
+ define_method("#{enum_value}_#{attr_name}?") do
42
+ send(attr_name) == enum_value
43
+ end
44
+ end
45
+ elsif predicate_name_generator
46
+ enum_values.each do |enum_value|
47
+ define_method(predicate_name_generator.call(attr_name, enum_value)) do
48
+ send(attr_name) == enum_value
49
+ end
50
+ end
51
+ else
52
+ enum_values.each do |enum_value|
53
+ define_method("#{enum_value}?") do
54
+ send(attr_name) == enum_value
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'symbolized_enum/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'symbolized_enum'
9
+ spec.version = SymbolizedEnum::VERSION
10
+ spec.authors = ['Will Leonard']
11
+ spec.email = ['wleonard@salsify.com']
12
+
13
+ spec.summary = 'Symbolized enum for activerecord'
14
+ spec.homepage = 'https://github.com/will89/symbolized_enum'
15
+ spec.license = 'MIT'
16
+
17
+ spec.metadata = {
18
+ 'homepage_uri' => 'https://github.com/will89/symbolized_enum',
19
+ 'changelog_uri' => 'https://github.com/will89/symbolized_enum/blob/master/CHANGELOG.md',
20
+ 'source_code_uri' => 'https://github.com/will89/symbolized_enum/',
21
+ 'bug_tracker_uri' => 'https://github.com/will89/symbolized_enum/issues'
22
+ }
23
+
24
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
+ f.match(%r{^(test|spec|features)/})
26
+ end
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+
31
+ spec.add_dependency 'activerecord', '>= 5.0', '< 5.3'
32
+ spec.add_dependency 'activerecord-type-symbol', '~> 0.2.0'
33
+ spec.add_dependency 'activesupport', '>= 5.0', '< 5.3'
34
+
35
+ spec.add_development_dependency 'appraisal'
36
+ spec.add_development_dependency 'bundler', '~> 1.16'
37
+ spec.add_development_dependency 'database_cleaner'
38
+ spec.add_development_dependency 'rake', '~> 10.0'
39
+ spec.add_development_dependency 'rspec', '~> 3.0'
40
+ spec.add_development_dependency 'rubocop'
41
+ spec.add_development_dependency 'with_model'
42
+
43
+ if RUBY_PLATFORM == 'java'
44
+ spec.add_development_dependency 'activerecord-jdbcsqlite3-adapter'
45
+ spec.add_development_dependency 'jdbc-sqlite3'
46
+ else
47
+ spec.add_development_dependency 'sqlite3'
48
+ end
49
+ end
metadata ADDED
@@ -0,0 +1,232 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: symbolized_enum
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Will Leonard
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.3'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '5.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.3'
33
+ - !ruby/object:Gem::Dependency
34
+ name: activerecord-type-symbol
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.2.0
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.2.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: activesupport
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '5.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '5.3'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '5.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '5.3'
67
+ - !ruby/object:Gem::Dependency
68
+ name: appraisal
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: bundler
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '1.16'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - "~>"
93
+ - !ruby/object:Gem::Version
94
+ version: '1.16'
95
+ - !ruby/object:Gem::Dependency
96
+ name: database_cleaner
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ - !ruby/object:Gem::Dependency
110
+ name: rake
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '10.0'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '10.0'
123
+ - !ruby/object:Gem::Dependency
124
+ name: rspec
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '3.0'
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '3.0'
137
+ - !ruby/object:Gem::Dependency
138
+ name: rubocop
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ - !ruby/object:Gem::Dependency
152
+ name: with_model
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ - !ruby/object:Gem::Dependency
166
+ name: sqlite3
167
+ requirement: !ruby/object:Gem::Requirement
168
+ requirements:
169
+ - - ">="
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ type: :development
173
+ prerelease: false
174
+ version_requirements: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ description:
180
+ email:
181
+ - wleonard@salsify.com
182
+ executables: []
183
+ extensions: []
184
+ extra_rdoc_files: []
185
+ files:
186
+ - ".gitignore"
187
+ - ".rspec"
188
+ - ".rubocop.yml"
189
+ - ".travis.yml"
190
+ - Appraisals
191
+ - CODE_OF_CONDUCT.md
192
+ - Gemfile
193
+ - LICENSE.txt
194
+ - README.md
195
+ - Rakefile
196
+ - bin/console
197
+ - bin/setup
198
+ - gemfiles/rails_5.0.gemfile
199
+ - gemfiles/rails_5.1.gemfile
200
+ - gemfiles/rails_5.2.gemfile
201
+ - lib/symbolized_enum.rb
202
+ - lib/symbolized_enum/version.rb
203
+ - symbolized_enum.gemspec
204
+ homepage: https://github.com/will89/symbolized_enum
205
+ licenses:
206
+ - MIT
207
+ metadata:
208
+ homepage_uri: https://github.com/will89/symbolized_enum
209
+ changelog_uri: https://github.com/will89/symbolized_enum/blob/master/CHANGELOG.md
210
+ source_code_uri: https://github.com/will89/symbolized_enum/
211
+ bug_tracker_uri: https://github.com/will89/symbolized_enum/issues
212
+ post_install_message:
213
+ rdoc_options: []
214
+ require_paths:
215
+ - lib
216
+ required_ruby_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ required_rubygems_version: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
226
+ requirements: []
227
+ rubyforge_project:
228
+ rubygems_version: 2.5.2
229
+ signing_key:
230
+ specification_version: 4
231
+ summary: Symbolized enum for activerecord
232
+ test_files: []