bookmark_system 0.0.6
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 +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/bookmark_system.gemspec +31 -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/bookmark_system.rb +45 -0
- data/lib/bookmark_system/.empty +0 -0
- data/lib/bookmark_system/.gitignore +0 -0
- data/lib/bookmark_system/.keep +0 -0
- data/lib/bookmark_system/bookmark.rb +155 -0
- data/lib/bookmark_system/bookmarkee.rb +58 -0
- data/lib/bookmark_system/bookmarker.rb +88 -0
- data/lib/bookmark_system/version.rb +12 -0
- data/lib/generators/.empty +0 -0
- data/lib/generators/.gitignore +0 -0
- data/lib/generators/.keep +0 -0
- data/lib/generators/bookmark_system/.empty +0 -0
- data/lib/generators/bookmark_system/.gitignore +0 -0
- data/lib/generators/bookmark_system/.keep +0 -0
- data/lib/generators/bookmark_system/bookmark_system_generator.rb +46 -0
- data/lib/generators/bookmark_system/templates/.empty +0 -0
- data/lib/generators/bookmark_system/templates/.gitignore +0 -0
- data/lib/generators/bookmark_system/templates/.keep +0 -0
- data/lib/generators/bookmark_system/templates/migration.rb +47 -0
- data/spec/.empty +0 -0
- data/spec/.gitignore +0 -0
- data/spec/.keep +0 -0
- data/spec/bookmark_system/.empty +0 -0
- data/spec/bookmark_system/.gitignore +0 -0
- data/spec/bookmark_system/.keep +0 -0
- data/spec/bookmark_system/bookmark_spec.rb +177 -0
- data/spec/bookmark_system/bookmarkee_spec.rb +69 -0
- data/spec/bookmark_system/bookmarker_spec.rb +96 -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_bookmarks.rb +47 -0
- data/spec/db/migrate/20140926000005_create_dummy_bookmarkers.rb +22 -0
- data/spec/db/migrate/20140926000010_create_dummy_bookmarkees.rb +22 -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 BookmarkSystem::Bookmarkee
|
|
5
|
+
###
|
|
6
|
+
shared_examples_for BookmarkSystem::Bookmarkee do
|
|
7
|
+
###
|
|
8
|
+
# Let bookmarkee be DummyBookmarkee.create
|
|
9
|
+
###
|
|
10
|
+
let(:bookmarkee) { DummyBookmarkee.create }
|
|
11
|
+
|
|
12
|
+
###
|
|
13
|
+
# Let bookmarker be DummyBookmarker.create
|
|
14
|
+
###
|
|
15
|
+
let(:bookmarker) { DummyBookmarker.create }
|
|
16
|
+
|
|
17
|
+
###
|
|
18
|
+
# Describes associations
|
|
19
|
+
###
|
|
20
|
+
describe "associations" do
|
|
21
|
+
###
|
|
22
|
+
# Should have many bookmarkers
|
|
23
|
+
###
|
|
24
|
+
it "should have many bookmarkers" do
|
|
25
|
+
should have_many(:bookmarkers)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
###
|
|
30
|
+
# Describes class methods
|
|
31
|
+
###
|
|
32
|
+
describe "class methods" do
|
|
33
|
+
###
|
|
34
|
+
# Should be a bookmarkee
|
|
35
|
+
###
|
|
36
|
+
it "should be a bookmarkee" do
|
|
37
|
+
expect(bookmarkee.is_bookmarkee?).to equal(true)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
###
|
|
41
|
+
# Should be bookmarked by a bookmarker
|
|
42
|
+
###
|
|
43
|
+
it "should specify if is bookmarked by a bookmarker" do
|
|
44
|
+
expect(BookmarkSystem::Bookmark).to receive(:bookmarks?).with(bookmarker, bookmarkee) { true }
|
|
45
|
+
|
|
46
|
+
expect(bookmarkee.bookmarked_by?(bookmarker)).to equal(true)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
###
|
|
50
|
+
# Should scope bookmarkers filtered by bookmarker type
|
|
51
|
+
###
|
|
52
|
+
it "should scope bookmarkers filtered by bookmarker type" do
|
|
53
|
+
scope = BookmarkSystem::Bookmark.scope_by_bookmarkee(bookmarkee).scope_by_bookmarker_type(DummyBookmarker)
|
|
54
|
+
|
|
55
|
+
expect(bookmarkee.bookmarkers_by(DummyBookmarker)).to eq(scope)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
###
|
|
61
|
+
# Describes DummyBookmarkee
|
|
62
|
+
###
|
|
63
|
+
describe DummyBookmarkee do
|
|
64
|
+
###
|
|
65
|
+
# It behaves like BookmarkSystem::Bookmarkee
|
|
66
|
+
###
|
|
67
|
+
it_behaves_like BookmarkSystem::Bookmarkee
|
|
68
|
+
end
|
|
69
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
###
|
|
4
|
+
# Shared examples for BookmarkSystem::Bookmarker
|
|
5
|
+
###
|
|
6
|
+
shared_examples_for BookmarkSystem::Bookmarker do
|
|
7
|
+
###
|
|
8
|
+
# Let bookmarkee be DummyBookmarkee.create
|
|
9
|
+
###
|
|
10
|
+
let(:bookmarkee) { DummyBookmarkee.create }
|
|
11
|
+
|
|
12
|
+
###
|
|
13
|
+
# Let bookmarker be DummyBookmarker.create
|
|
14
|
+
###
|
|
15
|
+
let(:bookmarker) { DummyBookmarker.create }
|
|
16
|
+
|
|
17
|
+
###
|
|
18
|
+
# Describes associations
|
|
19
|
+
###
|
|
20
|
+
describe "associations" do
|
|
21
|
+
###
|
|
22
|
+
# Should have many bookmarkees
|
|
23
|
+
###
|
|
24
|
+
it "should have many bookmarkees" do
|
|
25
|
+
should have_many(:bookmarkees)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
###
|
|
30
|
+
# Describes class methods
|
|
31
|
+
###
|
|
32
|
+
describe "class methods" do
|
|
33
|
+
###
|
|
34
|
+
# Should be a bookmarker
|
|
35
|
+
###
|
|
36
|
+
it "should be a bookmarker" do
|
|
37
|
+
expect(bookmarker.is_bookmarker?).to equal(true)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
###
|
|
41
|
+
# Should bookmark a bookmarkee
|
|
42
|
+
###
|
|
43
|
+
it "Should bookmark a bookmarkee" do
|
|
44
|
+
expect(BookmarkSystem::Bookmark).to receive(:bookmark).with(bookmarker, bookmarkee) { true }
|
|
45
|
+
|
|
46
|
+
expect(bookmarker.bookmark(bookmarkee)).to equal(true)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
###
|
|
50
|
+
# Should unbookmark a bookmarkee
|
|
51
|
+
###
|
|
52
|
+
it "Should unbookmark a bookmarkee" do
|
|
53
|
+
expect(BookmarkSystem::Bookmark).to receive(:unbookmark).with(bookmarker, bookmarkee) { true }
|
|
54
|
+
|
|
55
|
+
expect(bookmarker.unbookmark(bookmarkee)).to equal(true)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
###
|
|
59
|
+
# Should toggle bookmark a bookmarkee
|
|
60
|
+
###
|
|
61
|
+
it "Should toggle bookmark a bookmarkee" do
|
|
62
|
+
expect(BookmarkSystem::Bookmark).to receive(:toggle_bookmark).with(bookmarker, bookmarkee) { true }
|
|
63
|
+
|
|
64
|
+
expect(bookmarker.toggle_bookmark(bookmarkee)).to equal(true)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
###
|
|
68
|
+
# Should bookmark a bookmarkee
|
|
69
|
+
###
|
|
70
|
+
it "should specify if bookmarks a bookmarkee" do
|
|
71
|
+
expect(BookmarkSystem::Bookmark).to receive(:bookmarks?).with(bookmarker, bookmarkee) { true }
|
|
72
|
+
|
|
73
|
+
expect(bookmarker.bookmarks?(bookmarkee)).to equal(true)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
###
|
|
77
|
+
# Should scope bookmarkees filtered by bookmarkee type
|
|
78
|
+
###
|
|
79
|
+
it "should scope bookmarkees filtered by bookmarkee type" do
|
|
80
|
+
scope = BookmarkSystem::Bookmark.scope_by_bookmarker(bookmarker).scope_by_bookmarkee_type(DummyBookmarkee)
|
|
81
|
+
|
|
82
|
+
expect(bookmarker.bookmarkees_by(DummyBookmarkee)).to eq(scope)
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
###
|
|
88
|
+
# Describes DummyBookmarker
|
|
89
|
+
###
|
|
90
|
+
describe DummyBookmarker do
|
|
91
|
+
###
|
|
92
|
+
# It behaves like BookmarkSystem::Bookmarker
|
|
93
|
+
###
|
|
94
|
+
it_behaves_like BookmarkSystem::Bookmarker
|
|
95
|
+
end
|
|
96
|
+
|
data/spec/db/.empty
ADDED
|
File without changes
|
data/spec/db/.gitignore
ADDED
|
File without changes
|
data/spec/db/.keep
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
###
|
|
2
|
+
# CreateBookmarks class
|
|
3
|
+
#
|
|
4
|
+
# This class defines the test create bookmarks migration in bookmark system
|
|
5
|
+
###
|
|
6
|
+
class CreateBookmarks < ActiveRecord::Migration
|
|
7
|
+
###
|
|
8
|
+
# Changes the database
|
|
9
|
+
###
|
|
10
|
+
def change
|
|
11
|
+
###
|
|
12
|
+
# Bookmarks table creation
|
|
13
|
+
###
|
|
14
|
+
create_table :bookmarks do |t|
|
|
15
|
+
###
|
|
16
|
+
# Bookmarkee id field and bookmarkee type field definition
|
|
17
|
+
###
|
|
18
|
+
t.references :bookmarkee, polymorphic: true
|
|
19
|
+
|
|
20
|
+
###
|
|
21
|
+
# Bookmarker id fiel and bookmarker type field definition
|
|
22
|
+
###
|
|
23
|
+
t.references :bookmarker, polymorphic: true
|
|
24
|
+
|
|
25
|
+
###
|
|
26
|
+
# Timestamps fields definition
|
|
27
|
+
###
|
|
28
|
+
t.timestamps null: false
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
###
|
|
32
|
+
# Bookmarks table bookmarkee id field and bookmarkee type field index addition
|
|
33
|
+
###
|
|
34
|
+
add_index :bookmarks, [:bookmarkee_id, :bookmarkee_type], name: "bookmarks_bookmarkee_idx"
|
|
35
|
+
|
|
36
|
+
###
|
|
37
|
+
# Bookmarks table bookmarker id field and bookmarker type field index addition
|
|
38
|
+
###
|
|
39
|
+
add_index :bookmarks, [:bookmarker_id, :bookmarker_type], name: "bookmarks_bookmarker_idx"
|
|
40
|
+
|
|
41
|
+
###
|
|
42
|
+
# Bookmarks table bookmarkee id field and bookmarkee type field and bookmarker id field and bookmarker type field unique index addition
|
|
43
|
+
###
|
|
44
|
+
add_index :bookmarks, [:bookmarkee_id, :bookmarkee_type, :bookmarker_id, :bookmarker_type], name: "bookmarks_bookmarkee_bookmarker_idx", unique: true
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
###
|
|
2
|
+
# CreateDummyBookmarkers class
|
|
3
|
+
#
|
|
4
|
+
# This class defines the create dummy bookmarkers migration in bookmark system
|
|
5
|
+
###
|
|
6
|
+
class CreateDummyBookmarkers < ActiveRecord::Migration
|
|
7
|
+
###
|
|
8
|
+
# Changes the database
|
|
9
|
+
###
|
|
10
|
+
def change
|
|
11
|
+
###
|
|
12
|
+
# Dummy bookmarkers table creation
|
|
13
|
+
###
|
|
14
|
+
create_table :dummy_bookmarkers do |t|
|
|
15
|
+
###
|
|
16
|
+
# Timestamps fields definition
|
|
17
|
+
###
|
|
18
|
+
t.timestamps null: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
###
|
|
2
|
+
# CreateDummyBookmarkees class
|
|
3
|
+
#
|
|
4
|
+
# This class defines the create dummy bookmarkees migration in bookmark system
|
|
5
|
+
###
|
|
6
|
+
class CreateDummyBookmarkees < ActiveRecord::Migration
|
|
7
|
+
###
|
|
8
|
+
# Changes the database
|
|
9
|
+
###
|
|
10
|
+
def change
|
|
11
|
+
###
|
|
12
|
+
# Dummy bookmarkees table creation
|
|
13
|
+
###
|
|
14
|
+
create_table :dummy_bookmarkees do |t|
|
|
15
|
+
###
|
|
16
|
+
# Timestamps fields definition
|
|
17
|
+
###
|
|
18
|
+
t.timestamps null: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
require 'support/active_record'
|
|
2
|
+
require 'support/shoulda_matchers'
|
|
3
|
+
require 'bookmark_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
|
+
# DummyBookmarkee class
|
|
97
|
+
#
|
|
98
|
+
# This class defines the dummy bookmarkee model in bookmark system
|
|
99
|
+
###
|
|
100
|
+
class DummyBookmarkee < ActiveRecord::Base
|
|
101
|
+
###
|
|
102
|
+
# Acts as bookmarkee
|
|
103
|
+
act_as_bookmarkee
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
###
|
|
107
|
+
# DummyBookmarker class
|
|
108
|
+
#
|
|
109
|
+
# This class defines the dummy bookmarker model in bookmark system
|
|
110
|
+
###
|
|
111
|
+
class DummyBookmarker < ActiveRecord::Base
|
|
112
|
+
###
|
|
113
|
+
# Acts as bookmarker
|
|
114
|
+
act_as_bookmarker
|
|
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: bookmark_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 bookmark 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
|
+
- bookmark_system.gemspec
|
|
138
|
+
- gemfiles/.empty
|
|
139
|
+
- gemfiles/.gitignore
|
|
140
|
+
- gemfiles/.keep
|
|
141
|
+
- gemfiles/rails4.1.gemfile
|
|
142
|
+
- gemfiles/rails4.2.gemfile
|
|
143
|
+
- lib/.empty
|
|
144
|
+
- lib/.gitignore
|
|
145
|
+
- lib/.keep
|
|
146
|
+
- lib/bookmark_system.rb
|
|
147
|
+
- lib/bookmark_system/.empty
|
|
148
|
+
- lib/bookmark_system/.gitignore
|
|
149
|
+
- lib/bookmark_system/.keep
|
|
150
|
+
- lib/bookmark_system/bookmark.rb
|
|
151
|
+
- lib/bookmark_system/bookmarkee.rb
|
|
152
|
+
- lib/bookmark_system/bookmarker.rb
|
|
153
|
+
- lib/bookmark_system/version.rb
|
|
154
|
+
- lib/generators/.empty
|
|
155
|
+
- lib/generators/.gitignore
|
|
156
|
+
- lib/generators/.keep
|
|
157
|
+
- lib/generators/bookmark_system/.empty
|
|
158
|
+
- lib/generators/bookmark_system/.gitignore
|
|
159
|
+
- lib/generators/bookmark_system/.keep
|
|
160
|
+
- lib/generators/bookmark_system/bookmark_system_generator.rb
|
|
161
|
+
- lib/generators/bookmark_system/templates/.empty
|
|
162
|
+
- lib/generators/bookmark_system/templates/.gitignore
|
|
163
|
+
- lib/generators/bookmark_system/templates/.keep
|
|
164
|
+
- lib/generators/bookmark_system/templates/migration.rb
|
|
165
|
+
- spec/.empty
|
|
166
|
+
- spec/.gitignore
|
|
167
|
+
- spec/.keep
|
|
168
|
+
- spec/bookmark_system/.empty
|
|
169
|
+
- spec/bookmark_system/.gitignore
|
|
170
|
+
- spec/bookmark_system/.keep
|
|
171
|
+
- spec/bookmark_system/bookmark_spec.rb
|
|
172
|
+
- spec/bookmark_system/bookmarkee_spec.rb
|
|
173
|
+
- spec/bookmark_system/bookmarker_spec.rb
|
|
174
|
+
- spec/db/.empty
|
|
175
|
+
- spec/db/.gitignore
|
|
176
|
+
- spec/db/.keep
|
|
177
|
+
- spec/db/migrate/.empty
|
|
178
|
+
- spec/db/migrate/.gitignore
|
|
179
|
+
- spec/db/migrate/.keep
|
|
180
|
+
- spec/db/migrate/20140926000000_create_bookmarks.rb
|
|
181
|
+
- spec/db/migrate/20140926000005_create_dummy_bookmarkers.rb
|
|
182
|
+
- spec/db/migrate/20140926000010_create_dummy_bookmarkees.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/bookmark_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 bookmark system.
|
|
213
|
+
test_files:
|
|
214
|
+
- spec/.empty
|
|
215
|
+
- spec/.gitignore
|
|
216
|
+
- spec/.keep
|
|
217
|
+
- spec/bookmark_system/.empty
|
|
218
|
+
- spec/bookmark_system/.gitignore
|
|
219
|
+
- spec/bookmark_system/.keep
|
|
220
|
+
- spec/bookmark_system/bookmark_spec.rb
|
|
221
|
+
- spec/bookmark_system/bookmarkee_spec.rb
|
|
222
|
+
- spec/bookmark_system/bookmarker_spec.rb
|
|
223
|
+
- spec/db/.empty
|
|
224
|
+
- spec/db/.gitignore
|
|
225
|
+
- spec/db/.keep
|
|
226
|
+
- spec/db/migrate/.empty
|
|
227
|
+
- spec/db/migrate/.gitignore
|
|
228
|
+
- spec/db/migrate/.keep
|
|
229
|
+
- spec/db/migrate/20140926000000_create_bookmarks.rb
|
|
230
|
+
- spec/db/migrate/20140926000005_create_dummy_bookmarkers.rb
|
|
231
|
+
- spec/db/migrate/20140926000010_create_dummy_bookmarkees.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
|