simple_recommender 0.0.1

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 (68) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +34 -0
  4. data/lib/simple_recommender.rb +5 -0
  5. data/lib/simple_recommender/recommendable.rb +91 -0
  6. data/lib/simple_recommender/version.rb +3 -0
  7. data/lib/tasks/simple_recommender_tasks.rake +4 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  12. data/test/dummy/app/controllers/application_controller.rb +5 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/book.rb +10 -0
  15. data/test/dummy/app/models/like.rb +4 -0
  16. data/test/dummy/app/models/tag.rb +2 -0
  17. data/test/dummy/app/models/user.rb +3 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +13 -0
  19. data/test/dummy/bin/bundle +3 -0
  20. data/test/dummy/bin/rails +4 -0
  21. data/test/dummy/bin/rake +4 -0
  22. data/test/dummy/bin/setup +29 -0
  23. data/test/dummy/config.ru +4 -0
  24. data/test/dummy/config/application.rb +32 -0
  25. data/test/dummy/config/boot.rb +5 -0
  26. data/test/dummy/config/database.yml +85 -0
  27. data/test/dummy/config/environment.rb +5 -0
  28. data/test/dummy/config/environments/development.rb +41 -0
  29. data/test/dummy/config/environments/production.rb +79 -0
  30. data/test/dummy/config/environments/test.rb +42 -0
  31. data/test/dummy/config/initializers/assets.rb +11 -0
  32. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  33. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/test/dummy/config/initializers/inflections.rb +16 -0
  36. data/test/dummy/config/initializers/mime_types.rb +4 -0
  37. data/test/dummy/config/initializers/session_store.rb +3 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/dummy/config/locales/en.yml +23 -0
  40. data/test/dummy/config/routes.rb +56 -0
  41. data/test/dummy/config/secrets.yml +22 -0
  42. data/test/dummy/db/migrate/20170123001813_create_books.rb +9 -0
  43. data/test/dummy/db/migrate/20170123001819_create_users.rb +9 -0
  44. data/test/dummy/db/migrate/20170123001909_create_books_users.rb +11 -0
  45. data/test/dummy/db/migrate/20170123010745_enable_int_array_extension.rb +5 -0
  46. data/test/dummy/db/migrate/20170125030342_create_tags.rb +9 -0
  47. data/test/dummy/db/migrate/20170125030446_create_likes.rb +10 -0
  48. data/test/dummy/db/migrate/20170125032813_add_author_to_books.rb +5 -0
  49. data/test/dummy/db/migrate/20170125034331_create_books_tags.rb +8 -0
  50. data/test/dummy/db/migrate/20170125034341_remove_books_users.rb +5 -0
  51. data/test/dummy/db/schema.rb +63 -0
  52. data/test/dummy/log/development.log +511 -0
  53. data/test/dummy/log/test.log +5624 -0
  54. data/test/dummy/public/404.html +67 -0
  55. data/test/dummy/public/422.html +67 -0
  56. data/test/dummy/public/500.html +66 -0
  57. data/test/dummy/public/favicon.ico +0 -0
  58. data/test/dummy/test/models/book_test.rb +77 -0
  59. data/test/dummy/test/models/like_test.rb +7 -0
  60. data/test/dummy/test/models/tag_test.rb +7 -0
  61. data/test/dummy/test/models/user_test.rb +7 -0
  62. data/test/fixtures/books.yml +29 -0
  63. data/test/fixtures/likes.yml +57 -0
  64. data/test/fixtures/tags.yml +19 -0
  65. data/test/fixtures/users.yml +19 -0
  66. data/test/simple_recommender_test.rb +7 -0
  67. data/test/test_helper.rb +20 -0
  68. metadata +199 -0
@@ -0,0 +1,20 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
+ require "rails/test_help"
7
+ require "minitest/spec"
8
+
9
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
10
+ # to be shown.
11
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
+
13
+ # Load support files
14
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
15
+
16
+ # Load fixtures from the engine
17
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
19
+ ActiveSupport::TestCase.fixtures :all
20
+ end
metadata ADDED
@@ -0,0 +1,199 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simple_recommender
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Geoffrey Litt
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-01-28 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.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pg
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.19'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.19'
41
+ description: simple_recommender offers item-based similarity recommendations for a
42
+ Rails app using Postgres, using your existing ActiveRecord associations
43
+ email:
44
+ - gklitt@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - MIT-LICENSE
50
+ - Rakefile
51
+ - lib/simple_recommender.rb
52
+ - lib/simple_recommender/recommendable.rb
53
+ - lib/simple_recommender/version.rb
54
+ - lib/tasks/simple_recommender_tasks.rake
55
+ - test/dummy/README.rdoc
56
+ - test/dummy/Rakefile
57
+ - test/dummy/app/assets/javascripts/application.js
58
+ - test/dummy/app/assets/stylesheets/application.css
59
+ - test/dummy/app/controllers/application_controller.rb
60
+ - test/dummy/app/helpers/application_helper.rb
61
+ - test/dummy/app/models/book.rb
62
+ - test/dummy/app/models/like.rb
63
+ - test/dummy/app/models/tag.rb
64
+ - test/dummy/app/models/user.rb
65
+ - test/dummy/app/views/layouts/application.html.erb
66
+ - test/dummy/bin/bundle
67
+ - test/dummy/bin/rails
68
+ - test/dummy/bin/rake
69
+ - test/dummy/bin/setup
70
+ - test/dummy/config.ru
71
+ - test/dummy/config/application.rb
72
+ - test/dummy/config/boot.rb
73
+ - test/dummy/config/database.yml
74
+ - test/dummy/config/environment.rb
75
+ - test/dummy/config/environments/development.rb
76
+ - test/dummy/config/environments/production.rb
77
+ - test/dummy/config/environments/test.rb
78
+ - test/dummy/config/initializers/assets.rb
79
+ - test/dummy/config/initializers/backtrace_silencers.rb
80
+ - test/dummy/config/initializers/cookies_serializer.rb
81
+ - test/dummy/config/initializers/filter_parameter_logging.rb
82
+ - test/dummy/config/initializers/inflections.rb
83
+ - test/dummy/config/initializers/mime_types.rb
84
+ - test/dummy/config/initializers/session_store.rb
85
+ - test/dummy/config/initializers/wrap_parameters.rb
86
+ - test/dummy/config/locales/en.yml
87
+ - test/dummy/config/routes.rb
88
+ - test/dummy/config/secrets.yml
89
+ - test/dummy/db/migrate/20170123001813_create_books.rb
90
+ - test/dummy/db/migrate/20170123001819_create_users.rb
91
+ - test/dummy/db/migrate/20170123001909_create_books_users.rb
92
+ - test/dummy/db/migrate/20170123010745_enable_int_array_extension.rb
93
+ - test/dummy/db/migrate/20170125030342_create_tags.rb
94
+ - test/dummy/db/migrate/20170125030446_create_likes.rb
95
+ - test/dummy/db/migrate/20170125032813_add_author_to_books.rb
96
+ - test/dummy/db/migrate/20170125034331_create_books_tags.rb
97
+ - test/dummy/db/migrate/20170125034341_remove_books_users.rb
98
+ - test/dummy/db/schema.rb
99
+ - test/dummy/log/development.log
100
+ - test/dummy/log/test.log
101
+ - test/dummy/public/404.html
102
+ - test/dummy/public/422.html
103
+ - test/dummy/public/500.html
104
+ - test/dummy/public/favicon.ico
105
+ - test/dummy/test/models/book_test.rb
106
+ - test/dummy/test/models/like_test.rb
107
+ - test/dummy/test/models/tag_test.rb
108
+ - test/dummy/test/models/user_test.rb
109
+ - test/fixtures/books.yml
110
+ - test/fixtures/likes.yml
111
+ - test/fixtures/tags.yml
112
+ - test/fixtures/users.yml
113
+ - test/simple_recommender_test.rb
114
+ - test/test_helper.rb
115
+ homepage: https://github.com/geoffreylitt/simple_recommender
116
+ licenses:
117
+ - MIT
118
+ metadata: {}
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.2.2
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: A simple recommendation engine for Rails
139
+ test_files:
140
+ - test/dummy/app/assets/javascripts/application.js
141
+ - test/dummy/app/assets/stylesheets/application.css
142
+ - test/dummy/app/controllers/application_controller.rb
143
+ - test/dummy/app/helpers/application_helper.rb
144
+ - test/dummy/app/models/book.rb
145
+ - test/dummy/app/models/like.rb
146
+ - test/dummy/app/models/tag.rb
147
+ - test/dummy/app/models/user.rb
148
+ - test/dummy/app/views/layouts/application.html.erb
149
+ - test/dummy/bin/bundle
150
+ - test/dummy/bin/rails
151
+ - test/dummy/bin/rake
152
+ - test/dummy/bin/setup
153
+ - test/dummy/config/application.rb
154
+ - test/dummy/config/boot.rb
155
+ - test/dummy/config/database.yml
156
+ - test/dummy/config/environment.rb
157
+ - test/dummy/config/environments/development.rb
158
+ - test/dummy/config/environments/production.rb
159
+ - test/dummy/config/environments/test.rb
160
+ - test/dummy/config/initializers/assets.rb
161
+ - test/dummy/config/initializers/backtrace_silencers.rb
162
+ - test/dummy/config/initializers/cookies_serializer.rb
163
+ - test/dummy/config/initializers/filter_parameter_logging.rb
164
+ - test/dummy/config/initializers/inflections.rb
165
+ - test/dummy/config/initializers/mime_types.rb
166
+ - test/dummy/config/initializers/session_store.rb
167
+ - test/dummy/config/initializers/wrap_parameters.rb
168
+ - test/dummy/config/locales/en.yml
169
+ - test/dummy/config/routes.rb
170
+ - test/dummy/config/secrets.yml
171
+ - test/dummy/config.ru
172
+ - test/dummy/db/migrate/20170123001813_create_books.rb
173
+ - test/dummy/db/migrate/20170123001819_create_users.rb
174
+ - test/dummy/db/migrate/20170123001909_create_books_users.rb
175
+ - test/dummy/db/migrate/20170123010745_enable_int_array_extension.rb
176
+ - test/dummy/db/migrate/20170125030342_create_tags.rb
177
+ - test/dummy/db/migrate/20170125030446_create_likes.rb
178
+ - test/dummy/db/migrate/20170125032813_add_author_to_books.rb
179
+ - test/dummy/db/migrate/20170125034331_create_books_tags.rb
180
+ - test/dummy/db/migrate/20170125034341_remove_books_users.rb
181
+ - test/dummy/db/schema.rb
182
+ - test/dummy/log/development.log
183
+ - test/dummy/log/test.log
184
+ - test/dummy/public/404.html
185
+ - test/dummy/public/422.html
186
+ - test/dummy/public/500.html
187
+ - test/dummy/public/favicon.ico
188
+ - test/dummy/Rakefile
189
+ - test/dummy/README.rdoc
190
+ - test/dummy/test/models/book_test.rb
191
+ - test/dummy/test/models/like_test.rb
192
+ - test/dummy/test/models/tag_test.rb
193
+ - test/dummy/test/models/user_test.rb
194
+ - test/fixtures/books.yml
195
+ - test/fixtures/likes.yml
196
+ - test/fixtures/tags.yml
197
+ - test/fixtures/users.yml
198
+ - test/simple_recommender_test.rb
199
+ - test/test_helper.rb