effective_slugs 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.md +128 -0
- data/Rakefile +23 -0
- data/app/models/concerns/acts_as_sluggable.rb +167 -0
- data/lib/effective_slugs/engine.rb +20 -0
- data/lib/effective_slugs/version.rb +3 -0
- data/lib/effective_slugs.rb +23 -0
- data/lib/generators/effective_slugs/install_generator.rb +17 -0
- data/lib/generators/templates/README +1 -0
- data/lib/generators/templates/effective_slugs.rb +3 -0
- data/lib/tasks/effective_slugs_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +6 -0
- data/spec/dummy/log/test.log +2 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/effective_slugs_spec.rb +7 -0
- data/spec/spec_helper.rb +34 -0
- data/spec/support/factories.rb +1 -0
- metadata +211 -0
metadata
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: effective_slugs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Code and Effect
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-06-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: factory_girl_rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: psych
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: sqlite3
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: Generates a URL-appropriate slug, as required, when saving a record.
|
95
|
+
Also overrides ActiveRecord .find() methods to accept the slug, or an id as the
|
96
|
+
parameter.
|
97
|
+
email:
|
98
|
+
- info@codeandeffect.com
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- app/models/concerns/acts_as_sluggable.rb
|
104
|
+
- lib/effective_slugs/engine.rb
|
105
|
+
- lib/effective_slugs/version.rb
|
106
|
+
- lib/effective_slugs.rb
|
107
|
+
- lib/generators/effective_slugs/install_generator.rb
|
108
|
+
- lib/generators/templates/effective_slugs.rb
|
109
|
+
- lib/generators/templates/README
|
110
|
+
- lib/tasks/effective_slugs_tasks.rake
|
111
|
+
- MIT-LICENSE
|
112
|
+
- Rakefile
|
113
|
+
- README.md
|
114
|
+
- spec/dummy/app/assets/javascripts/application.js
|
115
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
116
|
+
- spec/dummy/app/controllers/application_controller.rb
|
117
|
+
- spec/dummy/app/helpers/application_helper.rb
|
118
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
119
|
+
- spec/dummy/config/application.rb
|
120
|
+
- spec/dummy/config/boot.rb
|
121
|
+
- spec/dummy/config/database.yml
|
122
|
+
- spec/dummy/config/environment.rb
|
123
|
+
- spec/dummy/config/environments/development.rb
|
124
|
+
- spec/dummy/config/environments/production.rb
|
125
|
+
- spec/dummy/config/environments/test.rb
|
126
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
127
|
+
- spec/dummy/config/initializers/inflections.rb
|
128
|
+
- spec/dummy/config/initializers/mime_types.rb
|
129
|
+
- spec/dummy/config/initializers/secret_token.rb
|
130
|
+
- spec/dummy/config/initializers/session_store.rb
|
131
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
132
|
+
- spec/dummy/config/locales/en.yml
|
133
|
+
- spec/dummy/config/routes.rb
|
134
|
+
- spec/dummy/config.ru
|
135
|
+
- spec/dummy/db/development.sqlite3
|
136
|
+
- spec/dummy/db/schema.rb
|
137
|
+
- spec/dummy/db/test.sqlite3
|
138
|
+
- spec/dummy/log/development.log
|
139
|
+
- spec/dummy/log/test.log
|
140
|
+
- spec/dummy/public/404.html
|
141
|
+
- spec/dummy/public/422.html
|
142
|
+
- spec/dummy/public/500.html
|
143
|
+
- spec/dummy/public/favicon.ico
|
144
|
+
- spec/dummy/Rakefile
|
145
|
+
- spec/dummy/README.rdoc
|
146
|
+
- spec/dummy/script/rails
|
147
|
+
- spec/effective_slugs_spec.rb
|
148
|
+
- spec/spec_helper.rb
|
149
|
+
- spec/support/factories.rb
|
150
|
+
homepage: https://github.com/code-and-effect/effective_slugs
|
151
|
+
licenses: []
|
152
|
+
post_install_message:
|
153
|
+
rdoc_options: []
|
154
|
+
require_paths:
|
155
|
+
- lib
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
none: false
|
164
|
+
requirements:
|
165
|
+
- - ! '>='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
requirements: []
|
169
|
+
rubyforge_project:
|
170
|
+
rubygems_version: 1.8.25
|
171
|
+
signing_key:
|
172
|
+
specification_version: 3
|
173
|
+
summary: Effectively create url-appropriate slugs for any object
|
174
|
+
test_files:
|
175
|
+
- spec/dummy/app/assets/javascripts/application.js
|
176
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
177
|
+
- spec/dummy/app/controllers/application_controller.rb
|
178
|
+
- spec/dummy/app/helpers/application_helper.rb
|
179
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
180
|
+
- spec/dummy/config/application.rb
|
181
|
+
- spec/dummy/config/boot.rb
|
182
|
+
- spec/dummy/config/database.yml
|
183
|
+
- spec/dummy/config/environment.rb
|
184
|
+
- spec/dummy/config/environments/development.rb
|
185
|
+
- spec/dummy/config/environments/production.rb
|
186
|
+
- spec/dummy/config/environments/test.rb
|
187
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
188
|
+
- spec/dummy/config/initializers/inflections.rb
|
189
|
+
- spec/dummy/config/initializers/mime_types.rb
|
190
|
+
- spec/dummy/config/initializers/secret_token.rb
|
191
|
+
- spec/dummy/config/initializers/session_store.rb
|
192
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
193
|
+
- spec/dummy/config/locales/en.yml
|
194
|
+
- spec/dummy/config/routes.rb
|
195
|
+
- spec/dummy/config.ru
|
196
|
+
- spec/dummy/db/development.sqlite3
|
197
|
+
- spec/dummy/db/schema.rb
|
198
|
+
- spec/dummy/db/test.sqlite3
|
199
|
+
- spec/dummy/log/development.log
|
200
|
+
- spec/dummy/log/test.log
|
201
|
+
- spec/dummy/public/404.html
|
202
|
+
- spec/dummy/public/422.html
|
203
|
+
- spec/dummy/public/500.html
|
204
|
+
- spec/dummy/public/favicon.ico
|
205
|
+
- spec/dummy/Rakefile
|
206
|
+
- spec/dummy/README.rdoc
|
207
|
+
- spec/dummy/script/rails
|
208
|
+
- spec/effective_slugs_spec.rb
|
209
|
+
- spec/spec_helper.rb
|
210
|
+
- spec/support/factories.rb
|
211
|
+
has_rdoc:
|