friendly_id-method_scopes 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +2 -0
- data/.ruby-gemspec +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +3 -0
- data/Gemfile +20 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +29 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +676 -0
- data/coverage/.resultset.json.lock +0 -0
- data/friendly_id-method_scopes.gemspec +154 -0
- data/lib/friendly_id/method_scopes.rb +69 -0
- data/lib/friendly_id/method_scopes/version.rb +9 -0
- data/spec/controllers/authors_controller_spec.rb +20 -0
- data/spec/controllers/books_controller_spec.rb +20 -0
- data/spec/dummy/Rakefile +9 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/assets/stylesheets/scaffold.css +1 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/authors_controller.rb +18 -0
- data/spec/dummy/app/controllers/books_controller.rb +23 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/author.rb +12 -0
- data/spec/dummy/app/models/book.rb +16 -0
- data/spec/dummy/app/models/role.rb +10 -0
- data/spec/dummy/app/views/authors/index.html.haml +5 -0
- data/spec/dummy/app/views/authors/show.html.haml +5 -0
- data/spec/dummy/app/views/books/index.html.haml +5 -0
- data/spec/dummy/app/views/books/show.html.haml +5 -0
- data/spec/dummy/app/views/layouts/application.html.haml +10 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +44 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/rolify.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +6 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/migrate/20150621221655_create_books.rb +10 -0
- data/spec/dummy/db/migrate/20150621221732_create_authors.rb +10 -0
- data/spec/dummy/db/migrate/20150622182214_rolify_create_roles.rb +19 -0
- data/spec/dummy/db/schema.rb +48 -0
- data/spec/dummy/db/seeds.rb +0 -0
- data/spec/dummy/db/seeds/authors.seeds.rb +2 -0
- data/spec/dummy/db/seeds/books.seeds.rb +9 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/factories/author.rb +6 -0
- data/spec/factories/book.rb +15 -0
- data/spec/models/author_spec.rb +11 -0
- data/spec/models/book_spec.rb +15 -0
- data/spec/rails_helper.rb +45 -0
- data/spec/routing/authors_routing_spec.rb +15 -0
- data/spec/routing/books_routing_spec.rb +15 -0
- data/spec/spec_helper.rb +94 -0
- data/spec/support/authors.rb +4 -0
- data/spec/support/books_with_authors.rb +7 -0
- metadata +306 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
RSpec.describe AuthorsController do
|
4
|
+
describe 'routing' do
|
5
|
+
|
6
|
+
it 'routes to #index' do
|
7
|
+
expect(:get => '/authors').to route_to('authors#index')
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'routes to #show' do
|
11
|
+
expect(:get => '/authors/author-slug').to route_to('authors#show', id: 'author-slug')
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
RSpec.describe BooksController do
|
4
|
+
describe 'routing' do
|
5
|
+
|
6
|
+
it 'routes to #index' do
|
7
|
+
expect(:get => '/authors/author-slug/books').to route_to('books#index', author_id: 'author-slug')
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'routes to #show' do
|
11
|
+
expect(:get => '/authors/author-slug/books/book-slug').to route_to('books#show', author_id: 'author-slug', id: 'book-slug')
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
4
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
5
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
6
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
7
|
+
# files.
|
8
|
+
#
|
9
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
10
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
11
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
12
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
13
|
+
# a separate helper file that requires the additional dependencies and performs
|
14
|
+
# the additional setup, and require it from the spec files that actually need
|
15
|
+
# 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
|
+
# Allows RSpec to persist some state between runs in order to support
|
56
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
57
|
+
# you configure your source control system to ignore this file.
|
58
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
59
|
+
|
60
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
61
|
+
# recommended. For more details, see:
|
62
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
63
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
64
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
65
|
+
config.disable_monkey_patching!
|
66
|
+
|
67
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
68
|
+
# file, and it's useful to allow more verbose output when running an
|
69
|
+
# individual spec file.
|
70
|
+
if config.files_to_run.one?
|
71
|
+
# Use the documentation formatter for detailed output,
|
72
|
+
# unless a formatter has already been configured
|
73
|
+
# (e.g. via a command-line flag).
|
74
|
+
config.default_formatter = 'doc'
|
75
|
+
end
|
76
|
+
|
77
|
+
# Print the 10 slowest examples and example groups at the
|
78
|
+
# end of the spec run, to help surface which specs are running
|
79
|
+
# particularly slow.
|
80
|
+
config.profile_examples = 10
|
81
|
+
|
82
|
+
# Run specs in random order to surface order dependencies. If you find an
|
83
|
+
# order dependency and want to debug it, you can fix the order by providing
|
84
|
+
# the seed, which is printed after each run.
|
85
|
+
# --seed 1234
|
86
|
+
config.order = :random
|
87
|
+
|
88
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
89
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
90
|
+
# test failures related to randomization by passing the same `--seed` value
|
91
|
+
# as the one that triggered the failure.
|
92
|
+
Kernel.srand config.seed
|
93
|
+
=end
|
94
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
shared_context 'books with authors' do
|
2
|
+
include_context 'authors'
|
3
|
+
let(:book_a) { first_author.books.friendly.find('book-a') }
|
4
|
+
let(:book_b_first) { first_author.books.friendly.find('book-b') }
|
5
|
+
let(:book_b_second) { second_author.books.friendly.find('book-b') }
|
6
|
+
let(:book_c) { second_author.books.friendly.find('book-c') }
|
7
|
+
end
|
metadata
ADDED
@@ -0,0 +1,306 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: friendly_id-method_scopes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Karen Lundgren
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-22 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'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: friendly_id
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jeweler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.8'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.8'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: shoulda-matchers
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.8'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.8'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rolify
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '4'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '4'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: seedbank
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.3'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.3'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: factory_girl_rails
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '4.5'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '4.5'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: faker
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '1.4'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '1.4'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: haml
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '4'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '4'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: database_cleaner
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.4'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '1.4'
|
195
|
+
description: FriendlyId Extension to allow method scopes, in addition to column and
|
196
|
+
relationship scopes.
|
197
|
+
email: karen.e.lundgren@gmail.com
|
198
|
+
executables: []
|
199
|
+
extensions: []
|
200
|
+
extra_rdoc_files:
|
201
|
+
- README.rdoc
|
202
|
+
files:
|
203
|
+
- ".rspec"
|
204
|
+
- ".ruby-gemspec"
|
205
|
+
- ".ruby-version"
|
206
|
+
- ".travis.yml"
|
207
|
+
- Gemfile
|
208
|
+
- MIT-LICENSE
|
209
|
+
- README.rdoc
|
210
|
+
- Rakefile
|
211
|
+
- VERSION
|
212
|
+
- coverage/.last_run.json
|
213
|
+
- coverage/.resultset.json
|
214
|
+
- coverage/.resultset.json.lock
|
215
|
+
- friendly_id-method_scopes.gemspec
|
216
|
+
- lib/friendly_id/method_scopes.rb
|
217
|
+
- lib/friendly_id/method_scopes/version.rb
|
218
|
+
- spec/controllers/authors_controller_spec.rb
|
219
|
+
- spec/controllers/books_controller_spec.rb
|
220
|
+
- spec/dummy/Rakefile
|
221
|
+
- spec/dummy/app/assets/javascripts/application.js
|
222
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
223
|
+
- spec/dummy/app/assets/stylesheets/scaffold.css
|
224
|
+
- spec/dummy/app/controllers/application_controller.rb
|
225
|
+
- spec/dummy/app/controllers/authors_controller.rb
|
226
|
+
- spec/dummy/app/controllers/books_controller.rb
|
227
|
+
- spec/dummy/app/models/.keep
|
228
|
+
- spec/dummy/app/models/author.rb
|
229
|
+
- spec/dummy/app/models/book.rb
|
230
|
+
- spec/dummy/app/models/role.rb
|
231
|
+
- spec/dummy/app/views/authors/index.html.haml
|
232
|
+
- spec/dummy/app/views/authors/show.html.haml
|
233
|
+
- spec/dummy/app/views/books/index.html.haml
|
234
|
+
- spec/dummy/app/views/books/show.html.haml
|
235
|
+
- spec/dummy/app/views/layouts/application.html.haml
|
236
|
+
- spec/dummy/bin/bundle
|
237
|
+
- spec/dummy/bin/rails
|
238
|
+
- spec/dummy/bin/rake
|
239
|
+
- spec/dummy/bin/setup
|
240
|
+
- spec/dummy/config.ru
|
241
|
+
- spec/dummy/config/application.rb
|
242
|
+
- spec/dummy/config/boot.rb
|
243
|
+
- spec/dummy/config/database.yml
|
244
|
+
- spec/dummy/config/environment.rb
|
245
|
+
- spec/dummy/config/environments/development.rb
|
246
|
+
- spec/dummy/config/environments/production.rb
|
247
|
+
- spec/dummy/config/environments/test.rb
|
248
|
+
- spec/dummy/config/initializers/assets.rb
|
249
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
250
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
251
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
252
|
+
- spec/dummy/config/initializers/inflections.rb
|
253
|
+
- spec/dummy/config/initializers/mime_types.rb
|
254
|
+
- spec/dummy/config/initializers/rolify.rb
|
255
|
+
- spec/dummy/config/initializers/session_store.rb
|
256
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
257
|
+
- spec/dummy/config/locales/en.yml
|
258
|
+
- spec/dummy/config/routes.rb
|
259
|
+
- spec/dummy/config/secrets.yml
|
260
|
+
- spec/dummy/db/migrate/20150621221655_create_books.rb
|
261
|
+
- spec/dummy/db/migrate/20150621221732_create_authors.rb
|
262
|
+
- spec/dummy/db/migrate/20150622182214_rolify_create_roles.rb
|
263
|
+
- spec/dummy/db/schema.rb
|
264
|
+
- spec/dummy/db/seeds.rb
|
265
|
+
- spec/dummy/db/seeds/authors.seeds.rb
|
266
|
+
- spec/dummy/db/seeds/books.seeds.rb
|
267
|
+
- spec/dummy/lib/assets/.keep
|
268
|
+
- spec/dummy/log/.keep
|
269
|
+
- spec/dummy/public/404.html
|
270
|
+
- spec/dummy/public/422.html
|
271
|
+
- spec/dummy/public/500.html
|
272
|
+
- spec/dummy/public/favicon.ico
|
273
|
+
- spec/factories/author.rb
|
274
|
+
- spec/factories/book.rb
|
275
|
+
- spec/models/author_spec.rb
|
276
|
+
- spec/models/book_spec.rb
|
277
|
+
- spec/rails_helper.rb
|
278
|
+
- spec/routing/authors_routing_spec.rb
|
279
|
+
- spec/routing/books_routing_spec.rb
|
280
|
+
- spec/spec_helper.rb
|
281
|
+
- spec/support/authors.rb
|
282
|
+
- spec/support/books_with_authors.rb
|
283
|
+
homepage: http://www.gemvein.com/museum/cases/friendly_id-method_scopes
|
284
|
+
licenses: []
|
285
|
+
metadata: {}
|
286
|
+
post_install_message:
|
287
|
+
rdoc_options: []
|
288
|
+
require_paths:
|
289
|
+
- lib
|
290
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
291
|
+
requirements:
|
292
|
+
- - ">="
|
293
|
+
- !ruby/object:Gem::Version
|
294
|
+
version: '0'
|
295
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
requirements: []
|
301
|
+
rubyforge_project:
|
302
|
+
rubygems_version: 2.4.5
|
303
|
+
signing_key:
|
304
|
+
specification_version: 4
|
305
|
+
summary: FriendlyId Extension to allow method scopes.
|
306
|
+
test_files: []
|