like_system 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.empty +0 -0
- data/.gitignore +15 -0
- data/.keep +0 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +23 -0
- data/Appraisals +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +93 -0
- data/Rakefile +8 -0
- data/gemfiles/.empty +0 -0
- data/gemfiles/.gitignore +0 -0
- data/gemfiles/.keep +0 -0
- data/gemfiles/rails4.1.gemfile +7 -0
- data/gemfiles/rails4.2.gemfile +7 -0
- data/lib/.empty +0 -0
- data/lib/.gitignore +0 -0
- data/lib/.keep +0 -0
- data/lib/generators/.empty +0 -0
- data/lib/generators/.gitignore +0 -0
- data/lib/generators/.keep +0 -0
- data/lib/generators/like_system/.empty +0 -0
- data/lib/generators/like_system/.gitignore +0 -0
- data/lib/generators/like_system/.keep +0 -0
- data/lib/generators/like_system/like_system_generator.rb +46 -0
- data/lib/generators/like_system/templates/.empty +0 -0
- data/lib/generators/like_system/templates/.gitignore +0 -0
- data/lib/generators/like_system/templates/.keep +0 -0
- data/lib/generators/like_system/templates/migration.rb +47 -0
- data/lib/like_system.rb +45 -0
- data/lib/like_system/.empty +0 -0
- data/lib/like_system/.gitignore +0 -0
- data/lib/like_system/.keep +0 -0
- data/lib/like_system/like.rb +155 -0
- data/lib/like_system/likee.rb +58 -0
- data/lib/like_system/liker.rb +88 -0
- data/lib/like_system/version.rb +12 -0
- data/like_system.gemspec +31 -0
- data/spec/.empty +0 -0
- data/spec/.gitignore +0 -0
- data/spec/.keep +0 -0
- data/spec/db/.empty +0 -0
- data/spec/db/.gitignore +0 -0
- data/spec/db/.keep +0 -0
- data/spec/db/migrate/.empty +0 -0
- data/spec/db/migrate/.gitignore +0 -0
- data/spec/db/migrate/.keep +0 -0
- data/spec/db/migrate/20140926000000_create_likes.rb +47 -0
- data/spec/db/migrate/20140926000005_create_dummy_likers.rb +22 -0
- data/spec/db/migrate/20140926000010_create_dummy_likees.rb +22 -0
- data/spec/like_system/.empty +0 -0
- data/spec/like_system/.gitignore +0 -0
- data/spec/like_system/.keep +0 -0
- data/spec/like_system/like_spec.rb +177 -0
- data/spec/like_system/likee_spec.rb +69 -0
- data/spec/like_system/liker_spec.rb +96 -0
- data/spec/spec_helper.rb +116 -0
- data/spec/support/.empty +0 -0
- data/spec/support/.gitignore +0 -0
- data/spec/support/.keep +0 -0
- data/spec/support/active_record.rb +12 -0
- data/spec/support/shoulda_matchers.rb +2 -0
- metadata +237 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
###
|
4
|
+
# Shared examples for LikeSystem::Likee
|
5
|
+
###
|
6
|
+
shared_examples_for LikeSystem::Likee do
|
7
|
+
###
|
8
|
+
# Let likee be DummyLikee.create
|
9
|
+
###
|
10
|
+
let(:likee) { DummyLikee.create }
|
11
|
+
|
12
|
+
###
|
13
|
+
# Let liker be DummyLiker.create
|
14
|
+
###
|
15
|
+
let(:liker) { DummyLiker.create }
|
16
|
+
|
17
|
+
###
|
18
|
+
# Describes associations
|
19
|
+
###
|
20
|
+
describe "associations" do
|
21
|
+
###
|
22
|
+
# Should have many likers
|
23
|
+
###
|
24
|
+
it "should have many likers" do
|
25
|
+
should have_many(:likers)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
###
|
30
|
+
# Describes class methods
|
31
|
+
###
|
32
|
+
describe "class methods" do
|
33
|
+
###
|
34
|
+
# Should be a likee
|
35
|
+
###
|
36
|
+
it "should be a likee" do
|
37
|
+
expect(likee.is_likee?).to equal(true)
|
38
|
+
end
|
39
|
+
|
40
|
+
###
|
41
|
+
# Should be liked by a liker
|
42
|
+
###
|
43
|
+
it "should specify if is liked by a liker" do
|
44
|
+
expect(LikeSystem::Like).to receive(:likes?).with(liker, likee) { true }
|
45
|
+
|
46
|
+
expect(likee.liked_by?(liker)).to equal(true)
|
47
|
+
end
|
48
|
+
|
49
|
+
###
|
50
|
+
# Should scope likers filtered by liker type
|
51
|
+
###
|
52
|
+
it "should scope likers filtered by liker type" do
|
53
|
+
scope = LikeSystem::Like.scope_by_likee(likee).scope_by_liker_type(DummyLiker)
|
54
|
+
|
55
|
+
expect(likee.likers_by(DummyLiker)).to eq(scope)
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
###
|
61
|
+
# Describes DummyLikee
|
62
|
+
###
|
63
|
+
describe DummyLikee do
|
64
|
+
###
|
65
|
+
# It behaves like LikeSystem::Likee
|
66
|
+
###
|
67
|
+
it_behaves_like LikeSystem::Likee
|
68
|
+
end
|
69
|
+
|
@@ -0,0 +1,96 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
###
|
4
|
+
# Shared examples for LikeSystem::Liker
|
5
|
+
###
|
6
|
+
shared_examples_for LikeSystem::Liker do
|
7
|
+
###
|
8
|
+
# Let likee be DummyLikee.create
|
9
|
+
###
|
10
|
+
let(:likee) { DummyLikee.create }
|
11
|
+
|
12
|
+
###
|
13
|
+
# Let liker be DummyLiker.create
|
14
|
+
###
|
15
|
+
let(:liker) { DummyLiker.create }
|
16
|
+
|
17
|
+
###
|
18
|
+
# Describes associations
|
19
|
+
###
|
20
|
+
describe "associations" do
|
21
|
+
###
|
22
|
+
# Should have many likees
|
23
|
+
###
|
24
|
+
it "should have many likees" do
|
25
|
+
should have_many(:likees)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
###
|
30
|
+
# Describes class methods
|
31
|
+
###
|
32
|
+
describe "class methods" do
|
33
|
+
###
|
34
|
+
# Should be a liker
|
35
|
+
###
|
36
|
+
it "should be a liker" do
|
37
|
+
expect(liker.is_liker?).to equal(true)
|
38
|
+
end
|
39
|
+
|
40
|
+
###
|
41
|
+
# Should like a likee
|
42
|
+
###
|
43
|
+
it "Should like a likee" do
|
44
|
+
expect(LikeSystem::Like).to receive(:like).with(liker, likee) { true }
|
45
|
+
|
46
|
+
expect(liker.like(likee)).to equal(true)
|
47
|
+
end
|
48
|
+
|
49
|
+
###
|
50
|
+
# Should unlike a likee
|
51
|
+
###
|
52
|
+
it "Should unlike a likee" do
|
53
|
+
expect(LikeSystem::Like).to receive(:unlike).with(liker, likee) { true }
|
54
|
+
|
55
|
+
expect(liker.unlike(likee)).to equal(true)
|
56
|
+
end
|
57
|
+
|
58
|
+
###
|
59
|
+
# Should toggle like a likee
|
60
|
+
###
|
61
|
+
it "Should toggle like a likee" do
|
62
|
+
expect(LikeSystem::Like).to receive(:toggle_like).with(liker, likee) { true }
|
63
|
+
|
64
|
+
expect(liker.toggle_like(likee)).to equal(true)
|
65
|
+
end
|
66
|
+
|
67
|
+
###
|
68
|
+
# Should like a likee
|
69
|
+
###
|
70
|
+
it "should specify if likes a likee" do
|
71
|
+
expect(LikeSystem::Like).to receive(:likes?).with(liker, likee) { true }
|
72
|
+
|
73
|
+
expect(liker.likes?(likee)).to equal(true)
|
74
|
+
end
|
75
|
+
|
76
|
+
###
|
77
|
+
# Should scope likees filtered by likee type
|
78
|
+
###
|
79
|
+
it "should scope likees filtered by likee type" do
|
80
|
+
scope = LikeSystem::Like.scope_by_liker(liker).scope_by_likee_type(DummyLikee)
|
81
|
+
|
82
|
+
expect(liker.likees_by(DummyLikee)).to eq(scope)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
###
|
88
|
+
# Describes DummyLiker
|
89
|
+
###
|
90
|
+
describe DummyLiker do
|
91
|
+
###
|
92
|
+
# It behaves like LikeSystem::Liker
|
93
|
+
###
|
94
|
+
it_behaves_like LikeSystem::Liker
|
95
|
+
end
|
96
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
require 'support/active_record'
|
2
|
+
require 'support/shoulda_matchers'
|
3
|
+
require 'like_system'
|
4
|
+
|
5
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
6
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
7
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
8
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
9
|
+
#
|
10
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
11
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
12
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
13
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
14
|
+
# a separate helper file that requires the additional dependencies and performs
|
15
|
+
# the additional setup, and require it from the spec files that actually need it.
|
16
|
+
#
|
17
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
18
|
+
# users commonly want.
|
19
|
+
#
|
20
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
21
|
+
RSpec.configure do |config|
|
22
|
+
# rspec-expectations config goes here. You can use an alternate
|
23
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
24
|
+
# assertions if you prefer.
|
25
|
+
config.expect_with :rspec do |expectations|
|
26
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
27
|
+
# and `failure_message` of custom matchers include text for helper methods
|
28
|
+
# defined using `chain`, e.g.:
|
29
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
30
|
+
# # => "be bigger than 2 and smaller than 4"
|
31
|
+
# ...rather than:
|
32
|
+
# # => "be bigger than 2"
|
33
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
34
|
+
end
|
35
|
+
|
36
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
37
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
38
|
+
config.mock_with :rspec do |mocks|
|
39
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
40
|
+
# a real object. This is generally recommended, and will default to
|
41
|
+
# `true` in RSpec 4.
|
42
|
+
mocks.verify_partial_doubles = true
|
43
|
+
end
|
44
|
+
|
45
|
+
# The settings below are suggested to provide a good initial experience
|
46
|
+
# with RSpec, but feel free to customize to your heart's content.
|
47
|
+
=begin
|
48
|
+
# These two settings work together to allow you to limit a spec run
|
49
|
+
# to individual examples or groups you care about by tagging them with
|
50
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
51
|
+
# get run.
|
52
|
+
config.filter_run :focus
|
53
|
+
config.run_all_when_everything_filtered = true
|
54
|
+
|
55
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
56
|
+
# For more details, see:
|
57
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
58
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
59
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
60
|
+
config.disable_monkey_patching!
|
61
|
+
|
62
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
63
|
+
# be too noisy due to issues in dependencies.
|
64
|
+
config.warnings = true
|
65
|
+
|
66
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
67
|
+
# file, and it's useful to allow more verbose output when running an
|
68
|
+
# individual spec file.
|
69
|
+
if config.files_to_run.one?
|
70
|
+
# Use the documentation formatter for detailed output,
|
71
|
+
# unless a formatter has already been configured
|
72
|
+
# (e.g. via a command-line flag).
|
73
|
+
config.default_formatter = 'doc'
|
74
|
+
end
|
75
|
+
|
76
|
+
# Print the 10 slowest examples and example groups at the
|
77
|
+
# end of the spec run, to help surface which specs are running
|
78
|
+
# particularly slow.
|
79
|
+
config.profile_examples = 10
|
80
|
+
|
81
|
+
# Run specs in random order to surface order dependencies. If you find an
|
82
|
+
# order dependency and want to debug it, you can fix the order by providing
|
83
|
+
# the seed, which is printed after each run.
|
84
|
+
# --seed 1234
|
85
|
+
config.order = :random
|
86
|
+
|
87
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
88
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
89
|
+
# test failures related to randomization by passing the same `--seed` value
|
90
|
+
# as the one that triggered the failure.
|
91
|
+
Kernel.srand config.seed
|
92
|
+
=end
|
93
|
+
end
|
94
|
+
|
95
|
+
###
|
96
|
+
# DummyLikee class
|
97
|
+
#
|
98
|
+
# This class defines the dummy likee model in like system
|
99
|
+
###
|
100
|
+
class DummyLikee < ActiveRecord::Base
|
101
|
+
###
|
102
|
+
# Acts as likee
|
103
|
+
act_as_likee
|
104
|
+
end
|
105
|
+
|
106
|
+
###
|
107
|
+
# DummyLiker class
|
108
|
+
#
|
109
|
+
# This class defines the dummy liker model in like system
|
110
|
+
###
|
111
|
+
class DummyLiker < ActiveRecord::Base
|
112
|
+
###
|
113
|
+
# Acts as liker
|
114
|
+
act_as_liker
|
115
|
+
end
|
116
|
+
|
data/spec/support/.empty
ADDED
File without changes
|
File without changes
|
data/spec/support/.keep
ADDED
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'active_record'
|
2
|
+
|
3
|
+
###
|
4
|
+
# Active record database configuration
|
5
|
+
###
|
6
|
+
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'
|
7
|
+
|
8
|
+
###
|
9
|
+
# Active record migrator configuration
|
10
|
+
###
|
11
|
+
ActiveRecord::Migrator.up 'spec/db/migrate'
|
12
|
+
|
metadata
ADDED
@@ -0,0 +1,237 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: like_system
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pablo Martin Viva
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-05 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
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.1'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: appraisal
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.7'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.7'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '10.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '10.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '3.1'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.1'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: shoulda-matchers
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '2.7'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '2.7'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: sqlite3
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.3'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '1.3'
|
117
|
+
description: An active record like system developed using ruby on rails 4.1 applying
|
118
|
+
domain driven design and test driven development principles.
|
119
|
+
email:
|
120
|
+
- pmviva@gmail.com
|
121
|
+
executables: []
|
122
|
+
extensions: []
|
123
|
+
extra_rdoc_files: []
|
124
|
+
files:
|
125
|
+
- ".empty"
|
126
|
+
- ".gitignore"
|
127
|
+
- ".keep"
|
128
|
+
- ".rspec"
|
129
|
+
- ".ruby-gemset"
|
130
|
+
- ".ruby-version"
|
131
|
+
- ".travis.yml"
|
132
|
+
- Appraisals
|
133
|
+
- Gemfile
|
134
|
+
- LICENSE.txt
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- gemfiles/.empty
|
138
|
+
- gemfiles/.gitignore
|
139
|
+
- gemfiles/.keep
|
140
|
+
- gemfiles/rails4.1.gemfile
|
141
|
+
- gemfiles/rails4.2.gemfile
|
142
|
+
- lib/.empty
|
143
|
+
- lib/.gitignore
|
144
|
+
- lib/.keep
|
145
|
+
- lib/generators/.empty
|
146
|
+
- lib/generators/.gitignore
|
147
|
+
- lib/generators/.keep
|
148
|
+
- lib/generators/like_system/.empty
|
149
|
+
- lib/generators/like_system/.gitignore
|
150
|
+
- lib/generators/like_system/.keep
|
151
|
+
- lib/generators/like_system/like_system_generator.rb
|
152
|
+
- lib/generators/like_system/templates/.empty
|
153
|
+
- lib/generators/like_system/templates/.gitignore
|
154
|
+
- lib/generators/like_system/templates/.keep
|
155
|
+
- lib/generators/like_system/templates/migration.rb
|
156
|
+
- lib/like_system.rb
|
157
|
+
- lib/like_system/.empty
|
158
|
+
- lib/like_system/.gitignore
|
159
|
+
- lib/like_system/.keep
|
160
|
+
- lib/like_system/like.rb
|
161
|
+
- lib/like_system/likee.rb
|
162
|
+
- lib/like_system/liker.rb
|
163
|
+
- lib/like_system/version.rb
|
164
|
+
- like_system.gemspec
|
165
|
+
- spec/.empty
|
166
|
+
- spec/.gitignore
|
167
|
+
- spec/.keep
|
168
|
+
- spec/db/.empty
|
169
|
+
- spec/db/.gitignore
|
170
|
+
- spec/db/.keep
|
171
|
+
- spec/db/migrate/.empty
|
172
|
+
- spec/db/migrate/.gitignore
|
173
|
+
- spec/db/migrate/.keep
|
174
|
+
- spec/db/migrate/20140926000000_create_likes.rb
|
175
|
+
- spec/db/migrate/20140926000005_create_dummy_likers.rb
|
176
|
+
- spec/db/migrate/20140926000010_create_dummy_likees.rb
|
177
|
+
- spec/like_system/.empty
|
178
|
+
- spec/like_system/.gitignore
|
179
|
+
- spec/like_system/.keep
|
180
|
+
- spec/like_system/like_spec.rb
|
181
|
+
- spec/like_system/likee_spec.rb
|
182
|
+
- spec/like_system/liker_spec.rb
|
183
|
+
- spec/spec_helper.rb
|
184
|
+
- spec/support/.empty
|
185
|
+
- spec/support/.gitignore
|
186
|
+
- spec/support/.keep
|
187
|
+
- spec/support/active_record.rb
|
188
|
+
- spec/support/shoulda_matchers.rb
|
189
|
+
homepage: http://github.com/pmviva/like_system
|
190
|
+
licenses:
|
191
|
+
- MIT
|
192
|
+
metadata: {}
|
193
|
+
post_install_message:
|
194
|
+
rdoc_options: []
|
195
|
+
require_paths:
|
196
|
+
- lib
|
197
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 2.0.0
|
202
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: '0'
|
207
|
+
requirements: []
|
208
|
+
rubyforge_project:
|
209
|
+
rubygems_version: 2.4.6
|
210
|
+
signing_key:
|
211
|
+
specification_version: 4
|
212
|
+
summary: An active record like system.
|
213
|
+
test_files:
|
214
|
+
- spec/.empty
|
215
|
+
- spec/.gitignore
|
216
|
+
- spec/.keep
|
217
|
+
- spec/db/.empty
|
218
|
+
- spec/db/.gitignore
|
219
|
+
- spec/db/.keep
|
220
|
+
- spec/db/migrate/.empty
|
221
|
+
- spec/db/migrate/.gitignore
|
222
|
+
- spec/db/migrate/.keep
|
223
|
+
- spec/db/migrate/20140926000000_create_likes.rb
|
224
|
+
- spec/db/migrate/20140926000005_create_dummy_likers.rb
|
225
|
+
- spec/db/migrate/20140926000010_create_dummy_likees.rb
|
226
|
+
- spec/like_system/.empty
|
227
|
+
- spec/like_system/.gitignore
|
228
|
+
- spec/like_system/.keep
|
229
|
+
- spec/like_system/like_spec.rb
|
230
|
+
- spec/like_system/likee_spec.rb
|
231
|
+
- spec/like_system/liker_spec.rb
|
232
|
+
- spec/spec_helper.rb
|
233
|
+
- spec/support/.empty
|
234
|
+
- spec/support/.gitignore
|
235
|
+
- spec/support/.keep
|
236
|
+
- spec/support/active_record.rb
|
237
|
+
- spec/support/shoulda_matchers.rb
|