diviner 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5467393bad061b6c9adef478d9262d95b4fcfeba
4
+ data.tar.gz: 84806c7d1c6069e34c2403cf8e827d5c47694e1b
5
+ SHA512:
6
+ metadata.gz: 81db9f09664de05cea912fea3bd44debcfa5c359bfd7af1ee0642c76b6ff25c61f541d67f02b67c1468aacf2776f5842bd9dccd16a53d3d6dd98ef63574c757c
7
+ data.tar.gz: 9672ed16414963131c794deebfd11b341f0f3c9ac0635c6c5aaf83a06b45960d7848e3561005f029c2de1be8c0503644705fdadfa2eda76a53febf1eb25323ee
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "https://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+ gem 'ruby-stemmer'
6
+ gem 'picky'
7
+ # Add dependencies to develop your gem here.
8
+ # Include everything needed to run rake, tests, features, etc.
9
+ group :development do
10
+ gem "shoulda", ">= 0"
11
+ gem "rdoc", "~> 3.12"
12
+ gem "bundler", "~> 1.0"
13
+ gem "jeweler", "~> 2.0.1"
14
+ gem "simplecov", ">= 0"
15
+ gem 'test-unit'
16
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,97 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (4.2.6)
5
+ i18n (~> 0.7)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
+ thread_safe (~> 0.3, >= 0.3.4)
9
+ tzinfo (~> 1.1)
10
+ addressable (2.4.0)
11
+ builder (3.2.2)
12
+ descendants_tracker (0.0.4)
13
+ thread_safe (~> 0.3, >= 0.3.1)
14
+ docile (1.1.5)
15
+ faraday (0.9.2)
16
+ multipart-post (>= 1.2, < 3)
17
+ git (1.3.0)
18
+ github_api (0.14.0)
19
+ addressable (~> 2.4.0)
20
+ descendants_tracker (~> 0.0.4)
21
+ faraday (~> 0.8, < 0.10)
22
+ hashie (>= 3.4)
23
+ oauth2
24
+ hashie (3.4.4)
25
+ highline (1.7.8)
26
+ i18n (0.7.0)
27
+ jeweler (2.0.1)
28
+ builder
29
+ bundler (>= 1.0)
30
+ git (>= 1.2.5)
31
+ github_api
32
+ highline (>= 1.6.15)
33
+ nokogiri (>= 1.5.10)
34
+ rake
35
+ rdoc
36
+ json (1.8.3)
37
+ jwt (1.5.1)
38
+ mini_portile2 (2.1.0)
39
+ minitest (5.9.0)
40
+ multi_json (1.12.1)
41
+ multi_xml (0.5.5)
42
+ multipart-post (2.0.0)
43
+ nokogiri (1.6.8)
44
+ mini_portile2 (~> 2.1.0)
45
+ pkg-config (~> 1.1.7)
46
+ oauth2 (1.1.0)
47
+ faraday (>= 0.8, < 0.10)
48
+ jwt (~> 1.0, < 1.5.2)
49
+ multi_json (~> 1.3)
50
+ multi_xml (~> 0.5)
51
+ rack (>= 1.2, < 3)
52
+ picky (4.31.3)
53
+ activesupport
54
+ multi_json (~> 1.3)
55
+ rack_fast_escape (~> 2009.0)
56
+ pkg-config (1.1.7)
57
+ power_assert (0.2.7)
58
+ rack (1.6.4)
59
+ rack_fast_escape (2009.06.24)
60
+ url_escape
61
+ rake (11.2.2)
62
+ rdoc (3.12.2)
63
+ json (~> 1.4)
64
+ ruby-stemmer (0.9.6)
65
+ shoulda (3.5.0)
66
+ shoulda-context (~> 1.0, >= 1.0.1)
67
+ shoulda-matchers (>= 1.4.1, < 3.0)
68
+ shoulda-context (1.2.1)
69
+ shoulda-matchers (2.8.0)
70
+ activesupport (>= 3.0.0)
71
+ simplecov (0.11.2)
72
+ docile (~> 1.1.0)
73
+ json (~> 1.8)
74
+ simplecov-html (~> 0.10.0)
75
+ simplecov-html (0.10.0)
76
+ test-unit (3.1.5)
77
+ power_assert
78
+ thread_safe (0.3.5)
79
+ tzinfo (1.2.2)
80
+ thread_safe (~> 0.1)
81
+ url_escape (2009.06.24)
82
+
83
+ PLATFORMS
84
+ ruby
85
+
86
+ DEPENDENCIES
87
+ bundler (~> 1.0)
88
+ jeweler (~> 2.0.1)
89
+ picky
90
+ rdoc (~> 3.12)
91
+ ruby-stemmer
92
+ shoulda
93
+ simplecov
94
+ test-unit
95
+
96
+ BUNDLED WITH
97
+ 1.12.5
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2016 Ferhat Ziba
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,52 @@
1
+ = diviner
2
+
3
+ Inspired by http://bernhardwenzel.com/blog/2013/08/26/google-shopping-taxonomy-algorithm/
4
+
5
+ It matches from a list of categories the right category to a Product.
6
+
7
+ A Python version is here: https://github.com/BernhardWenzel/google-taxonomy-matcher
8
+
9
+
10
+ == Example
11
+
12
+ The keys are the method names from your product model.
13
+
14
+ keys = [:name, :description, :categories]
15
+
16
+ You tell in weights how important is that attribute.
17
+
18
+ weights = {categories: 3, name: 2, description: 1}
19
+
20
+
21
+ That is how you use the matcher
22
+
23
+ matcher = Deviner::Match.new(weights)
24
+ matcher.model(product, keys)
25
+
26
+ matcher.match(Category.all) # result will be the matching category
27
+
28
+
29
+ If your category parent is not category or the name from your category is not name, then you can change it, by giving it in the options fields
30
+
31
+ options = {language: 'de',
32
+ query_method: :name,
33
+ parent_method: :category,
34
+ has_parent: true}
35
+
36
+ matcher = Deviner::Match.new(weights)
37
+
38
+
39
+ == Contributing to diviner
40
+
41
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
42
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
43
+ * Fork the project.
44
+ * Start a feature/bugfix branch.
45
+ * Commit and push until you are happy with your contribution.
46
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
47
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
48
+
49
+ == Copyright
50
+
51
+ Copyright (c) 2016 Ferhat Ziba. See LICENSE.txt for
52
+ further details.
data/Rakefile ADDED
@@ -0,0 +1,51 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
17
+ gem.name = "diviner"
18
+ gem.homepage = "http://github.com/fero46/diviner"
19
+ gem.license = "MIT"
20
+ gem.summary = "It matches from a list of categories the right category to a Product."
21
+ gem.description = "It matches from a list of categories the right category to a Product."
22
+ gem.email = "fero.ziba@gmail.com"
23
+ gem.authors = ["Ferhat Ziba"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ desc "Code coverage detail"
36
+ task :simplecov do
37
+ ENV['COVERAGE'] = "true"
38
+ Rake::Task['test'].execute
39
+ end
40
+
41
+ task :default => :test
42
+
43
+ require 'rdoc/task'
44
+ Rake::RDocTask.new do |rdoc|
45
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
+
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "diviner #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
51
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/diviner.gemspec ADDED
@@ -0,0 +1,73 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: diviner 0.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "diviner"
9
+ s.version = "0.1.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Ferhat Ziba"]
14
+ s.date = "2016-06-13"
15
+ s.description = "It matches from a list of categories the right category to a Product."
16
+ s.email = "fero.ziba@gmail.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "diviner.gemspec",
30
+ "lib/deviner/match.rb",
31
+ "lib/diviner.rb",
32
+ "test/helper.rb",
33
+ "test/test_diviner.rb"
34
+ ]
35
+ s.homepage = "http://github.com/fero46/diviner"
36
+ s.licenses = ["MIT"]
37
+ s.rubygems_version = "2.4.8"
38
+ s.summary = "It matches from a list of categories the right category to a Product."
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 4
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<ruby-stemmer>, [">= 0"])
45
+ s.add_runtime_dependency(%q<picky>, [">= 0"])
46
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
47
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
48
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
49
+ s.add_development_dependency(%q<jeweler>, ["~> 2.0.1"])
50
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
51
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
52
+ else
53
+ s.add_dependency(%q<ruby-stemmer>, [">= 0"])
54
+ s.add_dependency(%q<picky>, [">= 0"])
55
+ s.add_dependency(%q<shoulda>, [">= 0"])
56
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
59
+ s.add_dependency(%q<simplecov>, [">= 0"])
60
+ s.add_dependency(%q<test-unit>, [">= 0"])
61
+ end
62
+ else
63
+ s.add_dependency(%q<ruby-stemmer>, [">= 0"])
64
+ s.add_dependency(%q<picky>, [">= 0"])
65
+ s.add_dependency(%q<shoulda>, [">= 0"])
66
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
67
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
68
+ s.add_dependency(%q<jeweler>, ["~> 2.0.1"])
69
+ s.add_dependency(%q<simplecov>, [">= 0"])
70
+ s.add_dependency(%q<test-unit>, [">= 0"])
71
+ end
72
+ end
73
+
@@ -0,0 +1,105 @@
1
+ # encoding: utf-8
2
+ module Deviner
3
+ class Match
4
+ require 'rubygems'
5
+ require 'lingua/stemmer'
6
+ require 'picky'
7
+
8
+ def initialize(weight=nil, options={})
9
+ @weights=weight
10
+ self.options.merge(options)
11
+ end
12
+
13
+
14
+ def constrains key
15
+ if @weights.present?
16
+ return {weight: Picky::Weights::Constant.new(@weights[key].to_i)}
17
+ else
18
+ return {weight: Weights::Constant.new()}
19
+ end
20
+ end
21
+
22
+ def options
23
+ {language: 'de',
24
+ query_method: :name,
25
+ parent_method: :category,
26
+ has_parent: true}
27
+ end
28
+
29
+ def index(model, keys)
30
+ myoptions = options
31
+ myconstrains = proc {|e| constrains(e) }
32
+ index = Picky::Index.new :model do
33
+ indexing stems_with: Lingua::Stemmer.new(language: myoptions[:language]),
34
+ substitutes_characters_with: Picky::CharacterSubstituters::WestEuropean.new
35
+
36
+ for key in keys
37
+ category key, myconstrains.call(key)
38
+ end
39
+ end
40
+ index.add model
41
+ index
42
+ end
43
+
44
+ def model(model, keys)
45
+ @index = index(model, keys)
46
+ @keys = keys
47
+ clear_cache
48
+ end
49
+
50
+ def match(categories)
51
+ result = []
52
+ for category in categories
53
+ score = score(category)
54
+ result << {value: score, category: category}
55
+ end
56
+
57
+ highest_value = result.map{|x| x[:value]}.sort.last
58
+ selected_category = nil
59
+ result.each do |hash|
60
+ if hash[:value] == highest_value
61
+ selected_category = hash[:category]
62
+ end
63
+ end
64
+
65
+ return selected_category
66
+
67
+ end
68
+
69
+
70
+ def cache
71
+ @cache||={}
72
+ end
73
+
74
+ def clear_cache
75
+ @cache={}
76
+ end
77
+
78
+ def score(category)
79
+ return 0 if category == nil
80
+ query = category.send(options[:query_method])
81
+ query = prepare_query(query)
82
+ return cache[query] if cache[query] != nil
83
+ search = Picky::Search.new @index
84
+ result = search.search(query)
85
+ if options[:has_parent]
86
+ parent = category.send(options[:parent_method])
87
+ else
88
+ parent = nil
89
+ end
90
+ cache[query] = result.total + score(parent)
91
+ end
92
+
93
+ def prepare_query query
94
+ query.gsub(",", " OR ").
95
+ gsub("&", " OR ").
96
+ gsub("ü", "ue").
97
+ gsub("ö", "oe").
98
+ gsub("ä", "ae").
99
+ gsub("Ü", "Ue").
100
+ gsub("Ö", "Oe").
101
+ gsub("Ä", "Ae")
102
+ end
103
+
104
+ end
105
+ end
data/lib/diviner.rb ADDED
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+
3
+ module Deviner
4
+ autoload :Match, 'deviner/match'
5
+ end
data/test/helper.rb ADDED
@@ -0,0 +1,97 @@
1
+ # encoding: utf-8
2
+ Encoding.default_external = Encoding::UTF_8
3
+
4
+ require 'simplecov'
5
+ require 'open-uri'
6
+ require 'net/http'
7
+
8
+ module SimpleCov::Configuration
9
+ def clean_filters
10
+ @filters = []
11
+ end
12
+ end
13
+
14
+ SimpleCov.configure do
15
+ clean_filters
16
+ load_profile 'test_frameworks'
17
+ end
18
+
19
+ ENV["COVERAGE"] && SimpleCov.start do
20
+ add_filter "/.rvm/"
21
+ end
22
+ require 'rubygems'
23
+ require 'bundler'
24
+ begin
25
+ Bundler.setup(:default, :development)
26
+ rescue Bundler::BundlerError => e
27
+ $stderr.puts e.message
28
+ $stderr.puts "Run `bundle install` to install missing gems"
29
+ exit e.status_code
30
+ end
31
+ require 'test/unit'
32
+ require 'shoulda'
33
+
34
+
35
+ TestCategory = Struct.new :name, :category
36
+
37
+ def TestCategory.name
38
+ self[:name]
39
+ end
40
+
41
+ def TestCategory.category
42
+ self[:category]
43
+ end
44
+
45
+
46
+ firstline = true
47
+ stack = ["dummy"]
48
+ @categories = []
49
+
50
+ uri = URI("https://www.google.com/basepages/producttype/taxonomy.de-DE.txt")
51
+ taxonomies = Net::HTTP.get(uri).force_encoding("UTF-8")
52
+
53
+ taxonomies.each_line do |line|
54
+
55
+ if firstline
56
+ firstline = false
57
+ next
58
+ end
59
+
60
+ names = line.split(" > ").map{|x| x.strip}
61
+
62
+ if stack.length > names.length
63
+ stack.pop
64
+ end
65
+
66
+ if stack.length == names.length
67
+ stack.pop
68
+ end
69
+
70
+ parent = stack.last
71
+ category = TestCategory.new(names.last,parent)
72
+ stack.push(category)
73
+ @categories << category
74
+ end
75
+
76
+
77
+ puts @categories
78
+
79
+ class MyTestCategory
80
+
81
+ def self.categories=(categories)
82
+ @categories = categories
83
+ end
84
+
85
+ def self.categories
86
+ @categories
87
+ end
88
+ end
89
+
90
+ MyTestCategory.categories= @categories
91
+
92
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
93
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
94
+ require 'diviner'
95
+
96
+ class Test::Unit::TestCase
97
+ end
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ require 'helper'
3
+
4
+ class TestDiviner < Test::Unit::TestCase
5
+ should "find simple testcase" do
6
+ Product = Struct.new :id, :name, :description, :categories
7
+ keys = [:name, :description, :categories]
8
+ weights = {categories: 3, name: 2, description: 1}
9
+ model = Product.new(1, "Weleda Calendula Massageöl, 100 ml",
10
+ "Das Calendula Massageöl für zarte und empfindliche Haut von Weleda
11
+ gibt belebende, wohlig wärmende Impulse. Das hochwertige Hautfunktionsöl
12
+ ist durch schonend hergestellte Ölauszüge von beruhigenden Ringelblumen- und
13
+ Kamillenblüten sowie Birkenblättern auch für empfindliche Haut gut geeignet.
14
+ Auf der Basis von reinem Sonnenblumenöl unterstützt es die natürliche Hautfunktion
15
+ wie z.B. das gesunde Fett-Feuchtigkeitsgleichgewicht der Haut.
16
+ für glatte und geschmeidige Haut aufgrund hervorragender Gleitfähigkeit besonders
17
+ gut für Massagen dezent-frischer Citrusduft belebt die Sinne und verbreitet gute
18
+ Laune für empfindliche und zarte Haut",
19
+ "Drogerie / Körperpflege / Creme, Lotion & Öl / Öl")
20
+ matcher = Deviner::Match.new(weights)
21
+ matcher.model(model, keys)
22
+ assert_equal "Massageöle", matcher.match(MyTestCategory.categories).name
23
+ end
24
+ end
metadata ADDED
@@ -0,0 +1,169 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: diviner
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ferhat Ziba
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruby-stemmer
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: picky
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
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: shoulda
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: rdoc
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: jeweler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.0.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.0.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: test-unit
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: It matches from a list of categories the right category to a Product.
126
+ email: fero.ziba@gmail.com
127
+ executables: []
128
+ extensions: []
129
+ extra_rdoc_files:
130
+ - LICENSE.txt
131
+ - README.rdoc
132
+ files:
133
+ - ".document"
134
+ - Gemfile
135
+ - Gemfile.lock
136
+ - LICENSE.txt
137
+ - README.rdoc
138
+ - Rakefile
139
+ - VERSION
140
+ - diviner.gemspec
141
+ - lib/deviner/match.rb
142
+ - lib/diviner.rb
143
+ - test/helper.rb
144
+ - test/test_diviner.rb
145
+ homepage: http://github.com/fero46/diviner
146
+ licenses:
147
+ - MIT
148
+ metadata: {}
149
+ post_install_message:
150
+ rdoc_options: []
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ requirements: []
164
+ rubyforge_project:
165
+ rubygems_version: 2.4.8
166
+ signing_key:
167
+ specification_version: 4
168
+ summary: It matches from a list of categories the right category to a Product.
169
+ test_files: []