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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 308c8edb8904f012feaeefd3c6b37aaafb7e71d6
|
4
|
+
data.tar.gz: 0a1cf42457e7a9809c98245e2844bb20beaf0a24
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 757d988c31f80a9ff3ccdece037fbc286e81c1cf5a14c80bbb0e9e6a0ba52228f234885aa157c0857d8fed516528f7024ad41922d128bdbc495433258e3f685a
|
7
|
+
data.tar.gz: edf6b63fe64ea4cbc30ca09832828842db157d4c98c25a228b1456c488200a1582b82aa0892f5e518280728a05f9eb49532f663412c4fd59ecee0b354f66700f
|
data/.rspec
ADDED
data/.ruby-gemspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
friendly_id-method_scopes
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.2
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem 'rails', '~> 4'
|
4
|
+
gem 'friendly_id', '~> 5'
|
5
|
+
gem 'jeweler', '~> 2'
|
6
|
+
|
7
|
+
group :development, :test do
|
8
|
+
gem 'sqlite3', '~> 1'
|
9
|
+
gem 'rspec-rails', '~> 3.3'
|
10
|
+
gem 'shoulda-matchers', '~> 2.8'
|
11
|
+
gem 'rolify', '~> 4'
|
12
|
+
gem 'seedbank', '~> 0.3'
|
13
|
+
gem 'factory_girl_rails', '~> 4.5'
|
14
|
+
gem 'faker', '~> 1.4'
|
15
|
+
gem 'haml', '~> 4'
|
16
|
+
gem 'database_cleaner', '~> 1.4'
|
17
|
+
end
|
18
|
+
|
19
|
+
gem 'coveralls', '~> 0.8', require: false
|
20
|
+
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2015 Karen Lundgren
|
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,29 @@
|
|
1
|
+
= FriendlyId::MethodScopes
|
2
|
+
|
3
|
+
{rdoc-image:https://badge.fury.io/gh/gemvein%2Ffriendly_id-method_scopes.svg}[http://badge.fury.io/gh/gemvein%2Ffriendly_id-method_scopes]
|
4
|
+
{rdoc-image:https://travis-ci.org/gemvein/friendly_id-method_scopes.svg}[https://travis-ci.org/gemvein/friendly_id-method_scopes]
|
5
|
+
{rdoc-image:https://coveralls.io/repos/gemvein/friendly_id-method_scopes/badge.png}[https://coveralls.io/r/gemvein/friendly_id-method_scopes]
|
6
|
+
|
7
|
+
FriendlyId Extension to allow method scopes, in addition to column and relationship scopes
|
8
|
+
|
9
|
+
== Installation
|
10
|
+
|
11
|
+
In your Gemfile:
|
12
|
+
|
13
|
+
gem 'friendly_id'
|
14
|
+
gem 'friendly_id-method_scopes'
|
15
|
+
|
16
|
+
== Usage
|
17
|
+
|
18
|
+
In your model:
|
19
|
+
|
20
|
+
extend FriendlyId
|
21
|
+
friendly_id :name, use: [:slugged, :method_scopes], scope_methods: :custom_method_name
|
22
|
+
|
23
|
+
def custom_method_name
|
24
|
+
# Code returning an array of eligible ids here
|
25
|
+
end
|
26
|
+
|
27
|
+
== License
|
28
|
+
|
29
|
+
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'FriendlyId::MethodScopes'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
begin
|
18
|
+
require 'jeweler'
|
19
|
+
Jeweler::Tasks.new do |s|
|
20
|
+
s.name = "friendly_id-method_scopes"
|
21
|
+
s.summary = "FriendlyId Extension to allow method scopes."
|
22
|
+
s.email = "karen.e.lundgren@gmail.com"
|
23
|
+
s.homepage = "http://www.gemvein.com/museum/cases/friendly_id-method_scopes"
|
24
|
+
s.description = "FriendlyId Extension to allow method scopes, in addition to column and relationship scopes."
|
25
|
+
s.authors = ["Karen Lundgren"]
|
26
|
+
end
|
27
|
+
rescue LoadError
|
28
|
+
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
29
|
+
end
|
30
|
+
|
31
|
+
begin
|
32
|
+
require 'rspec/core/rake_task'
|
33
|
+
RSpec::Core::RakeTask.new(:spec)
|
34
|
+
rescue LoadError
|
35
|
+
end
|
36
|
+
task :default => [:spec]
|
37
|
+
|
38
|
+
Bundler::GemHelper.install_tasks
|
39
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.5
|
@@ -0,0 +1,676 @@
|
|
1
|
+
{
|
2
|
+
"RSpec": {
|
3
|
+
"coverage": {
|
4
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/controllers/authors_controller_spec.rb": [
|
5
|
+
1,
|
6
|
+
null,
|
7
|
+
1,
|
8
|
+
1,
|
9
|
+
null,
|
10
|
+
1,
|
11
|
+
1,
|
12
|
+
1,
|
13
|
+
1,
|
14
|
+
null,
|
15
|
+
null,
|
16
|
+
null,
|
17
|
+
1,
|
18
|
+
1,
|
19
|
+
1,
|
20
|
+
1,
|
21
|
+
null,
|
22
|
+
null,
|
23
|
+
null,
|
24
|
+
null
|
25
|
+
],
|
26
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/rails_helper.rb": [
|
27
|
+
null,
|
28
|
+
1,
|
29
|
+
1,
|
30
|
+
null,
|
31
|
+
1,
|
32
|
+
1,
|
33
|
+
1,
|
34
|
+
1,
|
35
|
+
1,
|
36
|
+
1,
|
37
|
+
null,
|
38
|
+
null,
|
39
|
+
null,
|
40
|
+
null,
|
41
|
+
null,
|
42
|
+
null,
|
43
|
+
null,
|
44
|
+
null,
|
45
|
+
null,
|
46
|
+
null,
|
47
|
+
null,
|
48
|
+
null,
|
49
|
+
null,
|
50
|
+
null,
|
51
|
+
null,
|
52
|
+
3,
|
53
|
+
null,
|
54
|
+
null,
|
55
|
+
null,
|
56
|
+
1,
|
57
|
+
null,
|
58
|
+
1,
|
59
|
+
1,
|
60
|
+
1,
|
61
|
+
1,
|
62
|
+
1,
|
63
|
+
1,
|
64
|
+
null,
|
65
|
+
1,
|
66
|
+
22,
|
67
|
+
22,
|
68
|
+
null,
|
69
|
+
null,
|
70
|
+
1,
|
71
|
+
null
|
72
|
+
],
|
73
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/environment.rb": [
|
74
|
+
null,
|
75
|
+
1,
|
76
|
+
null,
|
77
|
+
null,
|
78
|
+
1
|
79
|
+
],
|
80
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/application.rb": [
|
81
|
+
1,
|
82
|
+
null,
|
83
|
+
null,
|
84
|
+
1,
|
85
|
+
1,
|
86
|
+
1,
|
87
|
+
1,
|
88
|
+
1,
|
89
|
+
null,
|
90
|
+
null,
|
91
|
+
1,
|
92
|
+
1,
|
93
|
+
1,
|
94
|
+
null,
|
95
|
+
1,
|
96
|
+
1,
|
97
|
+
null,
|
98
|
+
null,
|
99
|
+
null,
|
100
|
+
null,
|
101
|
+
null,
|
102
|
+
null,
|
103
|
+
null,
|
104
|
+
null,
|
105
|
+
null,
|
106
|
+
null,
|
107
|
+
null,
|
108
|
+
null,
|
109
|
+
null,
|
110
|
+
1,
|
111
|
+
null,
|
112
|
+
1,
|
113
|
+
1,
|
114
|
+
1,
|
115
|
+
1,
|
116
|
+
1,
|
117
|
+
1,
|
118
|
+
1,
|
119
|
+
1,
|
120
|
+
1,
|
121
|
+
null,
|
122
|
+
null,
|
123
|
+
null,
|
124
|
+
null
|
125
|
+
],
|
126
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/boot.rb": [
|
127
|
+
null,
|
128
|
+
1,
|
129
|
+
null,
|
130
|
+
1,
|
131
|
+
1
|
132
|
+
],
|
133
|
+
"/home/work/Gems/friendly_id-method_scopes/lib/friendly_id/method_scopes.rb": [
|
134
|
+
1,
|
135
|
+
1,
|
136
|
+
null,
|
137
|
+
null,
|
138
|
+
null,
|
139
|
+
1,
|
140
|
+
1,
|
141
|
+
null,
|
142
|
+
null,
|
143
|
+
null,
|
144
|
+
null,
|
145
|
+
1,
|
146
|
+
1,
|
147
|
+
1,
|
148
|
+
null,
|
149
|
+
null,
|
150
|
+
null,
|
151
|
+
null,
|
152
|
+
null,
|
153
|
+
null,
|
154
|
+
null,
|
155
|
+
null,
|
156
|
+
1,
|
157
|
+
4,
|
158
|
+
4,
|
159
|
+
4,
|
160
|
+
null,
|
161
|
+
4,
|
162
|
+
4,
|
163
|
+
null,
|
164
|
+
1,
|
165
|
+
null,
|
166
|
+
1,
|
167
|
+
4,
|
168
|
+
null,
|
169
|
+
1,
|
170
|
+
null,
|
171
|
+
1,
|
172
|
+
1,
|
173
|
+
null,
|
174
|
+
1,
|
175
|
+
4,
|
176
|
+
4,
|
177
|
+
4,
|
178
|
+
4,
|
179
|
+
null,
|
180
|
+
null,
|
181
|
+
null,
|
182
|
+
1,
|
183
|
+
null,
|
184
|
+
1,
|
185
|
+
4,
|
186
|
+
4,
|
187
|
+
null,
|
188
|
+
null,
|
189
|
+
null,
|
190
|
+
1,
|
191
|
+
4,
|
192
|
+
4,
|
193
|
+
null,
|
194
|
+
null,
|
195
|
+
null,
|
196
|
+
1,
|
197
|
+
8,
|
198
|
+
8,
|
199
|
+
null,
|
200
|
+
null,
|
201
|
+
null,
|
202
|
+
null
|
203
|
+
],
|
204
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/environments/test.rb": [
|
205
|
+
1,
|
206
|
+
null,
|
207
|
+
null,
|
208
|
+
null,
|
209
|
+
null,
|
210
|
+
null,
|
211
|
+
null,
|
212
|
+
1,
|
213
|
+
null,
|
214
|
+
null,
|
215
|
+
null,
|
216
|
+
null,
|
217
|
+
1,
|
218
|
+
null,
|
219
|
+
null,
|
220
|
+
1,
|
221
|
+
1,
|
222
|
+
null,
|
223
|
+
null,
|
224
|
+
1,
|
225
|
+
1,
|
226
|
+
null,
|
227
|
+
null,
|
228
|
+
1,
|
229
|
+
null,
|
230
|
+
null,
|
231
|
+
1,
|
232
|
+
null,
|
233
|
+
null,
|
234
|
+
null,
|
235
|
+
null,
|
236
|
+
1,
|
237
|
+
null,
|
238
|
+
null,
|
239
|
+
1,
|
240
|
+
null,
|
241
|
+
null,
|
242
|
+
1,
|
243
|
+
null,
|
244
|
+
null,
|
245
|
+
null,
|
246
|
+
null
|
247
|
+
],
|
248
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/assets.rb": [
|
249
|
+
null,
|
250
|
+
null,
|
251
|
+
null,
|
252
|
+
1,
|
253
|
+
null,
|
254
|
+
null,
|
255
|
+
null,
|
256
|
+
null,
|
257
|
+
null,
|
258
|
+
null,
|
259
|
+
null
|
260
|
+
],
|
261
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/backtrace_silencers.rb": [
|
262
|
+
null,
|
263
|
+
null,
|
264
|
+
null,
|
265
|
+
null,
|
266
|
+
null,
|
267
|
+
null,
|
268
|
+
null
|
269
|
+
],
|
270
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/cookies_serializer.rb": [
|
271
|
+
null,
|
272
|
+
null,
|
273
|
+
1
|
274
|
+
],
|
275
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/filter_parameter_logging.rb": [
|
276
|
+
null,
|
277
|
+
null,
|
278
|
+
null,
|
279
|
+
1
|
280
|
+
],
|
281
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/inflections.rb": [
|
282
|
+
null,
|
283
|
+
null,
|
284
|
+
null,
|
285
|
+
null,
|
286
|
+
null,
|
287
|
+
null,
|
288
|
+
null,
|
289
|
+
null,
|
290
|
+
null,
|
291
|
+
null,
|
292
|
+
null,
|
293
|
+
null,
|
294
|
+
null,
|
295
|
+
null,
|
296
|
+
null,
|
297
|
+
null
|
298
|
+
],
|
299
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/mime_types.rb": [
|
300
|
+
null,
|
301
|
+
null,
|
302
|
+
null,
|
303
|
+
null
|
304
|
+
],
|
305
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/rolify.rb": [
|
306
|
+
1,
|
307
|
+
null,
|
308
|
+
null,
|
309
|
+
null,
|
310
|
+
null,
|
311
|
+
null,
|
312
|
+
null
|
313
|
+
],
|
314
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/app/models/role.rb": [
|
315
|
+
1,
|
316
|
+
1,
|
317
|
+
1,
|
318
|
+
null,
|
319
|
+
1,
|
320
|
+
null,
|
321
|
+
null,
|
322
|
+
null,
|
323
|
+
1,
|
324
|
+
null
|
325
|
+
],
|
326
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/session_store.rb": [
|
327
|
+
null,
|
328
|
+
null,
|
329
|
+
1
|
330
|
+
],
|
331
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/initializers/wrap_parameters.rb": [
|
332
|
+
null,
|
333
|
+
null,
|
334
|
+
null,
|
335
|
+
null,
|
336
|
+
null,
|
337
|
+
null,
|
338
|
+
1,
|
339
|
+
1,
|
340
|
+
null,
|
341
|
+
null,
|
342
|
+
null,
|
343
|
+
null,
|
344
|
+
null,
|
345
|
+
null
|
346
|
+
],
|
347
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/factories/author.rb": [
|
348
|
+
1,
|
349
|
+
1,
|
350
|
+
1,
|
351
|
+
3,
|
352
|
+
null,
|
353
|
+
null
|
354
|
+
],
|
355
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/factories/book.rb": [
|
356
|
+
1,
|
357
|
+
1,
|
358
|
+
1,
|
359
|
+
1,
|
360
|
+
1,
|
361
|
+
null,
|
362
|
+
null,
|
363
|
+
null,
|
364
|
+
null,
|
365
|
+
null,
|
366
|
+
1,
|
367
|
+
4,
|
368
|
+
null,
|
369
|
+
null,
|
370
|
+
null
|
371
|
+
],
|
372
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/config/routes.rb": [
|
373
|
+
1,
|
374
|
+
1,
|
375
|
+
1,
|
376
|
+
null,
|
377
|
+
1,
|
378
|
+
null
|
379
|
+
],
|
380
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/support/books_with_authors.rb": [
|
381
|
+
1,
|
382
|
+
8,
|
383
|
+
10,
|
384
|
+
14,
|
385
|
+
10,
|
386
|
+
8,
|
387
|
+
null
|
388
|
+
],
|
389
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/support/authors.rb": [
|
390
|
+
1,
|
391
|
+
20,
|
392
|
+
12,
|
393
|
+
null
|
394
|
+
],
|
395
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/app/controllers/authors_controller.rb": [
|
396
|
+
1,
|
397
|
+
1,
|
398
|
+
null,
|
399
|
+
null,
|
400
|
+
1,
|
401
|
+
2,
|
402
|
+
null,
|
403
|
+
null,
|
404
|
+
null,
|
405
|
+
1,
|
406
|
+
null,
|
407
|
+
null,
|
408
|
+
1,
|
409
|
+
null,
|
410
|
+
1,
|
411
|
+
2,
|
412
|
+
null,
|
413
|
+
null
|
414
|
+
],
|
415
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/app/controllers/application_controller.rb": [
|
416
|
+
1,
|
417
|
+
null,
|
418
|
+
null,
|
419
|
+
1,
|
420
|
+
null
|
421
|
+
],
|
422
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/controllers/books_controller_spec.rb": [
|
423
|
+
1,
|
424
|
+
null,
|
425
|
+
1,
|
426
|
+
1,
|
427
|
+
null,
|
428
|
+
1,
|
429
|
+
1,
|
430
|
+
1,
|
431
|
+
1,
|
432
|
+
null,
|
433
|
+
null,
|
434
|
+
null,
|
435
|
+
1,
|
436
|
+
1,
|
437
|
+
1,
|
438
|
+
1,
|
439
|
+
null,
|
440
|
+
null,
|
441
|
+
null,
|
442
|
+
null
|
443
|
+
],
|
444
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/app/controllers/books_controller.rb": [
|
445
|
+
1,
|
446
|
+
1,
|
447
|
+
1,
|
448
|
+
null,
|
449
|
+
null,
|
450
|
+
1,
|
451
|
+
2,
|
452
|
+
null,
|
453
|
+
null,
|
454
|
+
null,
|
455
|
+
1,
|
456
|
+
null,
|
457
|
+
null,
|
458
|
+
1,
|
459
|
+
null,
|
460
|
+
1,
|
461
|
+
2,
|
462
|
+
null,
|
463
|
+
null,
|
464
|
+
1,
|
465
|
+
4,
|
466
|
+
null,
|
467
|
+
null
|
468
|
+
],
|
469
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/controllers/authors_controller_spec.rb": [
|
470
|
+
1,
|
471
|
+
null,
|
472
|
+
1,
|
473
|
+
1,
|
474
|
+
null,
|
475
|
+
1,
|
476
|
+
1,
|
477
|
+
1,
|
478
|
+
1,
|
479
|
+
null,
|
480
|
+
null,
|
481
|
+
null,
|
482
|
+
1,
|
483
|
+
1,
|
484
|
+
1,
|
485
|
+
1,
|
486
|
+
null,
|
487
|
+
null,
|
488
|
+
null,
|
489
|
+
null
|
490
|
+
],
|
491
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/controllers/books_controller_spec.rb": [
|
492
|
+
1,
|
493
|
+
null,
|
494
|
+
1,
|
495
|
+
1,
|
496
|
+
null,
|
497
|
+
1,
|
498
|
+
1,
|
499
|
+
1,
|
500
|
+
1,
|
501
|
+
null,
|
502
|
+
null,
|
503
|
+
null,
|
504
|
+
1,
|
505
|
+
1,
|
506
|
+
1,
|
507
|
+
1,
|
508
|
+
null,
|
509
|
+
null,
|
510
|
+
null,
|
511
|
+
null
|
512
|
+
],
|
513
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/models/author_spec.rb": [
|
514
|
+
1,
|
515
|
+
null,
|
516
|
+
1,
|
517
|
+
1,
|
518
|
+
null,
|
519
|
+
1,
|
520
|
+
2,
|
521
|
+
2,
|
522
|
+
null,
|
523
|
+
null,
|
524
|
+
null
|
525
|
+
],
|
526
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/app/models/author.rb": [
|
527
|
+
1,
|
528
|
+
null,
|
529
|
+
1,
|
530
|
+
null,
|
531
|
+
null,
|
532
|
+
1,
|
533
|
+
1,
|
534
|
+
null,
|
535
|
+
1,
|
536
|
+
14,
|
537
|
+
null,
|
538
|
+
null
|
539
|
+
],
|
540
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/models/book_spec.rb": [
|
541
|
+
1,
|
542
|
+
null,
|
543
|
+
1,
|
544
|
+
1,
|
545
|
+
null,
|
546
|
+
1,
|
547
|
+
2,
|
548
|
+
2,
|
549
|
+
null,
|
550
|
+
1,
|
551
|
+
2,
|
552
|
+
2,
|
553
|
+
null,
|
554
|
+
null,
|
555
|
+
null
|
556
|
+
],
|
557
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/app/models/book.rb": [
|
558
|
+
1,
|
559
|
+
null,
|
560
|
+
1,
|
561
|
+
null,
|
562
|
+
null,
|
563
|
+
1,
|
564
|
+
1,
|
565
|
+
null,
|
566
|
+
1,
|
567
|
+
4,
|
568
|
+
null,
|
569
|
+
null,
|
570
|
+
1,
|
571
|
+
4,
|
572
|
+
null,
|
573
|
+
null
|
574
|
+
],
|
575
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/routing/authors_routing_spec.rb": [
|
576
|
+
1,
|
577
|
+
null,
|
578
|
+
1,
|
579
|
+
1,
|
580
|
+
null,
|
581
|
+
1,
|
582
|
+
1,
|
583
|
+
null,
|
584
|
+
null,
|
585
|
+
1,
|
586
|
+
1,
|
587
|
+
null,
|
588
|
+
null,
|
589
|
+
null,
|
590
|
+
null
|
591
|
+
],
|
592
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/dummy/spec/routing/books_routing_spec.rb": [
|
593
|
+
1,
|
594
|
+
null,
|
595
|
+
1,
|
596
|
+
1,
|
597
|
+
null,
|
598
|
+
1,
|
599
|
+
1,
|
600
|
+
null,
|
601
|
+
null,
|
602
|
+
1,
|
603
|
+
1,
|
604
|
+
null,
|
605
|
+
null,
|
606
|
+
null,
|
607
|
+
null
|
608
|
+
],
|
609
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/models/author_spec.rb": [
|
610
|
+
1,
|
611
|
+
null,
|
612
|
+
1,
|
613
|
+
1,
|
614
|
+
null,
|
615
|
+
1,
|
616
|
+
2,
|
617
|
+
2,
|
618
|
+
null,
|
619
|
+
null,
|
620
|
+
null
|
621
|
+
],
|
622
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/models/book_spec.rb": [
|
623
|
+
1,
|
624
|
+
null,
|
625
|
+
1,
|
626
|
+
1,
|
627
|
+
null,
|
628
|
+
1,
|
629
|
+
2,
|
630
|
+
2,
|
631
|
+
null,
|
632
|
+
1,
|
633
|
+
2,
|
634
|
+
2,
|
635
|
+
null,
|
636
|
+
null,
|
637
|
+
null
|
638
|
+
],
|
639
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/routing/authors_routing_spec.rb": [
|
640
|
+
1,
|
641
|
+
null,
|
642
|
+
1,
|
643
|
+
1,
|
644
|
+
null,
|
645
|
+
1,
|
646
|
+
1,
|
647
|
+
null,
|
648
|
+
null,
|
649
|
+
1,
|
650
|
+
1,
|
651
|
+
null,
|
652
|
+
null,
|
653
|
+
null,
|
654
|
+
null
|
655
|
+
],
|
656
|
+
"/home/work/Gems/friendly_id-method_scopes/spec/routing/books_routing_spec.rb": [
|
657
|
+
1,
|
658
|
+
null,
|
659
|
+
1,
|
660
|
+
1,
|
661
|
+
null,
|
662
|
+
1,
|
663
|
+
1,
|
664
|
+
null,
|
665
|
+
null,
|
666
|
+
1,
|
667
|
+
1,
|
668
|
+
null,
|
669
|
+
null,
|
670
|
+
null,
|
671
|
+
null
|
672
|
+
]
|
673
|
+
},
|
674
|
+
"timestamp": 1435007115
|
675
|
+
}
|
676
|
+
}
|