acts-as-categorizable 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e1b8fe29b8cac9c2bcf5980bc84222b1760624eb
4
+ data.tar.gz: cae8cccf69b65d065e9907a63529b1d563966e29
5
+ SHA512:
6
+ metadata.gz: dfed0d292a1dd2000edc075beb959a3aead0a97e967aedb393bc0f684ebb532e4d82d28ac9c2561a09b235416aef6297d3bfd8cc2c593a2dbcabb7a8da8bf5e9
7
+ data.tar.gz: 6eef7463c23dbcdea85735f39129e3840e9dcad0102835181be48d69ddc9e531f90b94936a28e36688965a03d57ec3fd068566cd3d8c125251cef1276f546ab3
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
@@ -0,0 +1,37 @@
1
+ # Use this file to configure the Overcommit hooks you wish to use. This will
2
+ # extend the default configuration defined in:
3
+ # https://github.com/brigade/overcommit/blob/master/config/default.yml
4
+ #
5
+ # At the topmost level of this YAML file is a key representing type of hook
6
+ # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7
+ # customize each hook, such as whether to only run it on certain files (via
8
+ # `include`), whether to only display output if it fails (via `quiet`), etc.
9
+ #
10
+ # For a complete list of hooks, see:
11
+ # https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
12
+ #
13
+ # For a complete list of options that you can use to customize hooks, see:
14
+ # https://github.com/brigade/overcommit#configuration
15
+ #
16
+ # Uncomment the following lines to make the configuration take effect.
17
+
18
+ #PreCommit:
19
+ # RuboCop:
20
+ # enabled: true
21
+ # on_warn: fail # Treat all warnings as failures
22
+ #
23
+ # TrailingWhitespace:
24
+ # exclude:
25
+ # - '**/db/structure.sql' # Ignore trailing whitespace in generated files
26
+ #
27
+ #PostCheckout:
28
+ # ALL: # Special hook name that customizes all hooks of this type
29
+ # quiet: true # Change all post-checkout hooks to only display output on failure
30
+ #
31
+ # IndexTags:
32
+ # enabled: true # Generate a tags file with `ctags` each time HEAD changes
33
+
34
+ PreCommit:
35
+ RuboCop:
36
+ enabled: true
37
+ on_warn: fail
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ -fd -color
@@ -0,0 +1,25 @@
1
+ AllCops:
2
+ RunRailsCops: true
3
+ DisplayStyleGuide: true
4
+ DisplayCopNames: true
5
+ Include:
6
+ - '**/Gemfile'
7
+ Exclude:
8
+ - 'bin/*'
9
+
10
+ Metrics/LineLength:
11
+ Max: 100
12
+
13
+ Metrics/MethodLength:
14
+ Max: 20
15
+
16
+ Style/Documentation:
17
+ Enabled: false
18
+
19
+ Style/UnneededPercentQ:
20
+ Exclude:
21
+ - '*.gemspec'
22
+
23
+ Style/Filename
24
+ Exclude:
25
+ - 'Rakefile'
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in acts_as_categorizable.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Federico Moretti
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.
@@ -0,0 +1,60 @@
1
+ # ActsAsCategorizable
2
+
3
+ This gem allows any model to be categorized.
4
+
5
+ Categories can be defined in a tree structure, allowing items to be structured.
6
+ They also support slugs, so they can be used for Semantic URLs.
7
+
8
+ ## Usage (Rails 4+)
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'acts_as_categorizable'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install acts_as_categorizable
23
+
24
+ ## Installation
25
+
26
+ ```
27
+ rails g acts-as-categorizable:migration <table_name> # default 'aac_categories'
28
+ rake db:migrate
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ ```ruby
34
+ class Page < ActiveRecord::Base
35
+ acts_as_categorizable table_name: 'categories_table', # Default: 'aac_categories'
36
+ class_name: 'CustomCategory', # Default: 'ActsAsCategorizable::Category'
37
+ dependent: :destroy # Default: :nullify
38
+ end
39
+ ```
40
+
41
+ ## TODO
42
+ There are still a lot of things to add to this gem. Consider it as a work in progress.
43
+ Some of the missing stuff is:
44
+
45
+ - Unit testing
46
+ - Sortable categories
47
+ - Better searching functionality
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/woopasoft/acts_as_categorizable. 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/version/1/3/0/) code of conduct.
52
+
53
+ ## Special mentions
54
+ This gem is heavily inspired in [ActsAsMessageable](https://github.com/LTe/acts-as-messageable) and [ActsAsCommentable](https://github.com/jackdempsey/acts_as_commentable)
55
+ Thank you guys for publishing your work!
56
+
57
+ ## License
58
+
59
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
60
+
@@ -0,0 +1,10 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ require 'rspec/core'
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec) do |spec|
6
+ spec.rspec_opts = ['-fd -c --order random']
7
+ spec.pattern = FileList['spec/**/*_spec.rb']
8
+ end
9
+
10
+ task :default => :spec
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'acts-as-categorizable/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'acts-as-categorizable'
8
+ spec.version = ActsAsCategorizable::VERSION
9
+ spec.authors = ['Federico Moretti']
10
+ spec.email = ['federico.moretti@woopasoft.com']
11
+
12
+ spec.summary = %q(Makes a model categorizable)
13
+ spec.description = %q(Allows any model to be categorized.)
14
+ spec.homepage = 'https://github.com/woopasoft/acts_as_categorizable'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0")
18
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_dependency 'friendly_id', '~> 5.1.0', '>= 5.1.0'
24
+ spec.add_dependency 'ancestry', '~> 2.1.0', '>= 2.1.0'
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.10', '>= 1.10'
27
+ spec.add_development_dependency 'rake', '~> 10.0', '>= 10.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.4.0', '>= 3.4.0'
29
+ spec.add_development_dependency 'railties', '~> 4.2.5', '>= 4.2.5'
30
+ spec.add_development_dependency 'sqlite3', '~> 1.3.11', '>= 1.3.11'
31
+ spec.add_development_dependency 'database_cleaner', '~> 1.5.1', '>= 1.5.1'
32
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'acts_as_categorizable'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require 'pry'
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,11 @@
1
+ require 'acts-as-categorizable/version'
2
+
3
+ module ActsAsCategorizable
4
+ autoload :Model, 'acts-as-categorizable/model'
5
+ autoload :Scopes, 'acts-as-categorizable/scopes'
6
+ autoload :Finders, 'acts-as-categorizable/finders'
7
+ autoload :Category, 'acts-as-categorizable/category'
8
+ autoload :CategorizableCategory, 'acts-as-categorizable/categorizable_category'
9
+ end
10
+
11
+ require 'acts-as-categorizable/railtie'
@@ -0,0 +1,8 @@
1
+ module ActsAsCategorizable
2
+ class CategorizableCategory < ::ActiveRecord::Base
3
+ self.table_name = 'aac_categorizable_category'
4
+
5
+ belongs_to :category
6
+ belongs_to :categorizable, polymorphic: true
7
+ end
8
+ end
@@ -0,0 +1,53 @@
1
+ require 'friendly_id'
2
+ require 'ancestry'
3
+
4
+ module ActsAsCategorizable
5
+ class Category < ::ActiveRecord::Base
6
+ self.table_name = 'aac_categories'
7
+
8
+ # Includes
9
+ include ActsAsCategorizable::Scopes
10
+ include ActsAsCategorizable::Finders
11
+
12
+ # Extends
13
+ extend FriendlyId
14
+ friendly_id :slug_candidates, use: [:slugged, :finders]
15
+
16
+ # Make categories behave like a tree
17
+ has_ancestry orphan_strategy: :adopt
18
+
19
+ # Associations
20
+ has_many :categorizable_category
21
+ has_many :categorizables,
22
+ through: :categorizable_category,
23
+ source: :items
24
+
25
+ # Validations
26
+ validates :title, presence: true
27
+ validates :slug, uniqueness: true
28
+
29
+ # Callbacks
30
+ before_validation :ensure_title
31
+
32
+ def self.[](title)
33
+ where(title: title.to_s.camelize).first_or_create!
34
+ end
35
+
36
+ private
37
+
38
+ def slug_candidates
39
+ [
40
+ :title,
41
+ [:title, :id]
42
+ ]
43
+ end
44
+
45
+ def should_generate_new_friendly_id?
46
+ title_changed? && !slug_changed? # User can set slug
47
+ end
48
+
49
+ def ensure_title
50
+ self.title = slug.presence.try(:capitalize) if title.blank?
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,15 @@
1
+ require 'active_support/concern'
2
+
3
+ module ActsAsCategorizable
4
+ module Finders
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+
9
+ end
10
+
11
+ module ClassMethods
12
+ # TODO: define finders
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,60 @@
1
+ require 'ancestry'
2
+
3
+ module ActsAsCategorizable
4
+ module Model
5
+
6
+ def self.included(base)
7
+ base.extend ClassMethods
8
+ end
9
+
10
+ module ClassMethods
11
+ mattr_accessor :categories_class_name, :categories_category_class_name
12
+
13
+ # Makes ActiveRecord::Base object categorizable
14
+ def acts_as_categorizable(options = {})
15
+ default_options = {
16
+ table_name: 'aac_categories',
17
+ class_name: 'ActsAsCategorizable::Category',
18
+ dependent: :nullify
19
+ }
20
+ options = default_options.merge(options)
21
+
22
+ has_one :categorizable_category,
23
+ class_name: 'ActsAsCategorizable::CategorizableCategory',
24
+ as: :categorizable
25
+ has_one :category,
26
+ through: :categorizable_category,
27
+ as: :categorizable,
28
+ class_name: options[:class_name],
29
+ dependent: options[:dependent]
30
+
31
+ self.categories_class_name = options[:class_name].constantize
32
+ self.categories_category_class_name =
33
+ 'ActsAsCategorizable::CategorizableCategory'.constantize
34
+
35
+ # Make categories behave like a tree
36
+ self.categories_class_name.has_ancestry orphan_strategy: :adopt
37
+ self.categories_class_name.table_name = options[:table_name]
38
+ self.categories_class_name.initialize_scopes
39
+
40
+ # Scopes
41
+ scope :in_category, (-> (category) do
42
+ joins(:categorizable_category)
43
+ .where("#{self.categories_category_class_name.table_name}.category_id = ?",
44
+ category.try(:id))
45
+ end)
46
+
47
+ include ActsAsCategorizable::Model::InstanceMethods
48
+ end
49
+ end
50
+
51
+ module InstanceMethods
52
+ def category=(category)
53
+ if title.is_a?(String) && self.class.categories_class_name.respond_to?(:[])
54
+ category = self.class.categories_class_name[category]
55
+ end
56
+ super
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,10 @@
1
+ require 'active_record/railtie'
2
+ require 'active_support/core_ext'
3
+
4
+ module ActsAsCategorizable
5
+ class Railtie < Rails::Railtie
6
+ if defined?(ActiveRecord::Base)
7
+ ActiveRecord::Base.send :include, ActsAsCategorizable::Model
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,19 @@
1
+ require 'active_support/concern'
2
+
3
+ module ActsAsCategorizable
4
+ module Scopes
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ initialize_scopes
9
+ end
10
+
11
+ module ClassMethods
12
+ def initialize_scopes
13
+ scope :by_slug, -> (slug) { where(slug: slug) }
14
+ scope :search, -> (term) { where('title like :term', term: term) }
15
+ scope :active, -> { where(active: true) }
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,3 @@
1
+ module ActsAsCategorizable
2
+ VERSION = '0.1.2'
3
+ end
@@ -0,0 +1,24 @@
1
+ require 'rails/generators/migration'
2
+ require 'rails/generators/active_record'
3
+
4
+ module ActsAsCategorizable
5
+ class MigrationGenerator < Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+
8
+ namespace 'acts-as-categorizable:migration'
9
+
10
+ source_root File.join(File.dirname(__FILE__), 'templates')
11
+ argument :table_name, type: :string, default: 'aac_categories'
12
+
13
+ def self.next_migration_number(dirname)
14
+ ActiveRecord::Generators::Base.next_migration_number(dirname)
15
+ end
16
+
17
+ def create_migration_file
18
+ migration_template 'migration.rb',
19
+ 'db/migrate/create_aac_categories_table.rb' rescue nil
20
+ migration_template 'relation_migration.rb',
21
+ 'db/migrate/create_aac_categorizable_category_table.rb' rescue nil
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ class CreateAacCategoriesTable < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :<%= table_name %> do |t|
4
+ t.string :title, index: true
5
+ t.string :slug
6
+
7
+ t.references :categorizables, polymorphic: true
8
+ t.boolean :active, default: true
9
+
10
+ # ancestry
11
+ t.string :ancestry, index: true
12
+
13
+ t.timestamps null: false
14
+ end
15
+
16
+ add_index :<%= table_name %>,
17
+ [:categorizables_id, :categorizables_type],
18
+ name: 'aac_categorizable_id'
19
+ end
20
+
21
+ def self.down
22
+ drop_table :<%= table_name %>
23
+ end
24
+ end
@@ -0,0 +1,14 @@
1
+ class CreateAacCategorizableCategoryTable < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :aac_categorizable_category do |t|
4
+ t.references :categorizable, polymorphic: true
5
+ t.references :category
6
+ end
7
+
8
+ add_index :aac_categorizable_category, [:categorizable_id, :category_id], name: 'aac_ref_ids'
9
+ end
10
+
11
+ def self.down
12
+ drop_table :aac_categorizable_category
13
+ end
14
+ end
metadata ADDED
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: acts-as-categorizable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Federico Moretti
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-11-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: friendly_id
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.1.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.1.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 5.1.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.1.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: ancestry
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 2.1.0
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.1.0
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 2.1.0
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 2.1.0
53
+ - !ruby/object:Gem::Dependency
54
+ name: bundler
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '1.10'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '1.10'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.10'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '1.10'
73
+ - !ruby/object:Gem::Dependency
74
+ name: rake
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '10.0'
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '10.0'
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '10.0'
93
+ - !ruby/object:Gem::Dependency
94
+ name: rspec
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - "~>"
98
+ - !ruby/object:Gem::Version
99
+ version: 3.4.0
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 3.4.0
103
+ type: :development
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: 3.4.0
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 3.4.0
113
+ - !ruby/object:Gem::Dependency
114
+ name: railties
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: 4.2.5
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 4.2.5
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: 4.2.5
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 4.2.5
133
+ - !ruby/object:Gem::Dependency
134
+ name: sqlite3
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - "~>"
138
+ - !ruby/object:Gem::Version
139
+ version: 1.3.11
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: 1.3.11
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: 1.3.11
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 1.3.11
153
+ - !ruby/object:Gem::Dependency
154
+ name: database_cleaner
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.5.1
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 1.5.1
163
+ type: :development
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - "~>"
168
+ - !ruby/object:Gem::Version
169
+ version: 1.5.1
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 1.5.1
173
+ description: Allows any model to be categorized.
174
+ email:
175
+ - federico.moretti@woopasoft.com
176
+ executables: []
177
+ extensions: []
178
+ extra_rdoc_files: []
179
+ files:
180
+ - ".gitignore"
181
+ - ".overcommit.yml"
182
+ - ".rspec"
183
+ - ".rubocop.yml"
184
+ - ".travis.yml"
185
+ - CODE_OF_CONDUCT.md
186
+ - Gemfile
187
+ - LICENSE.txt
188
+ - README.md
189
+ - Rakefile
190
+ - acts-as-categorizable.gemspec
191
+ - bin/console
192
+ - bin/setup
193
+ - lib/acts-as-categorizable.rb
194
+ - lib/acts-as-categorizable/categorizable_category.rb
195
+ - lib/acts-as-categorizable/category.rb
196
+ - lib/acts-as-categorizable/finders.rb
197
+ - lib/acts-as-categorizable/model.rb
198
+ - lib/acts-as-categorizable/railtie.rb
199
+ - lib/acts-as-categorizable/scopes.rb
200
+ - lib/acts-as-categorizable/version.rb
201
+ - lib/generators/acts-as-categorizable/migration_generator.rb
202
+ - lib/generators/acts-as-categorizable/templates/migration.rb
203
+ - lib/generators/acts-as-categorizable/templates/relation_migration.rb
204
+ homepage: https://github.com/woopasoft/acts_as_categorizable
205
+ licenses:
206
+ - MIT
207
+ metadata: {}
208
+ post_install_message:
209
+ rdoc_options: []
210
+ require_paths:
211
+ - lib
212
+ required_ruby_version: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ required_rubygems_version: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ requirements: []
223
+ rubyforge_project:
224
+ rubygems_version: 2.4.6
225
+ signing_key:
226
+ specification_version: 4
227
+ summary: Makes a model categorizable
228
+ test_files: []