lines-engine 1.2.3 → 1.2.5
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.ruby-gemset +1 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +39 -35
- data/app/assets/stylesheets/lines/article.scss +2 -0
- data/app/assets/stylesheets/lines/footer.scss +2 -0
- data/app/assets/stylesheets/lines/general.scss +3 -1
- data/app/assets/stylesheets/lines/messages.scss +1 -0
- data/app/assets/stylesheets/lines/navbar.scss +2 -0
- data/app/assets/stylesheets/lines/pagination.scss +2 -0
- data/app/controllers/lines/admin/articles_controller.rb +6 -6
- data/app/controllers/lines/admin/authors_controller.rb +8 -8
- data/app/controllers/lines/admin/pictures_controller.rb +4 -4
- data/app/controllers/lines/articles_controller.rb +6 -6
- data/app/controllers/lines/password_resets_controller.rb +2 -2
- data/app/mailers/lines/user_mailer.rb +1 -1
- data/app/models/lines/picture.rb +1 -1
- data/app/models/lines/user.rb +3 -3
- data/app/uploaders/document_uploader.rb +1 -1
- data/app/uploaders/hero_image_uploader.rb +1 -1
- data/app/uploaders/picture_uploader.rb +2 -1
- data/app/views/lines/admin/articles/_form.html.erb +2 -2
- data/certs/lines-engine.pem +19 -19
- data/config/initializers/load_config.rb +3 -2
- data/config/lines_config.yml +4 -1
- data/db/migrate/20140505122014_base_migration.rb +1 -1
- data/db/migrate/20140702160602_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +1 -1
- data/db/migrate/20140702160603_add_missing_unique_indices.acts_as_taggable_on_engine.rb +1 -1
- data/db/migrate/20140702160604_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +1 -1
- data/db/migrate/20141027143656_add_teaser_to_article.rb +1 -1
- data/db/migrate/20150421093311_add_reset_password_fields_to_users.rb +1 -1
- data/lib/lines/engine.rb +1 -1
- data/lib/lines/version.rb +1 -1
- data/lines.gemspec +1 -1
- metadata +24 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0207d7cdc25de8c7ee3246d3675634f9053bc82f
|
|
4
|
+
data.tar.gz: e6818090c5d68c4301fe40a27095d472200eb925
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f010862a3753e97cb21caa9c7a3c7b1cc7e5f58f0a7ce95402e12dd8ac8f975568b4658a37e1e0c0b17f73a5f068e97346f579596941dcf132ffceb4da433d3
|
|
7
|
+
data.tar.gz: d71c94e774063a04a21a25291931c7a05e6803e431440670e40560c492ab80d0e1527e04b2848fbacb50d2bad78702f28d0267fa86994f9ac4aedb3d35c73665
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/.ruby-gemset
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
lines-engine
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.5
|
|
4
|
+
- Allow ERB syntax in `lines_config.yml`
|
|
5
|
+
|
|
6
|
+
## 1.2.4
|
|
7
|
+
- Can specify carrierwave storage in `lines_config.yml`
|
|
8
|
+
- Fixed namespacing bugs
|
|
9
|
+
|
|
3
10
|
## 1.2.3
|
|
4
11
|
- fix No such middleware to insert before: ActionDispatch::Static (Thanks to @scottbarrow)
|
|
5
12
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
lines-engine (1.2.
|
|
4
|
+
lines-engine (1.2.5)
|
|
5
5
|
acts-as-taggable-on (>= 3.5)
|
|
6
6
|
bcrypt (~> 3.1.0, >= 3.1.0)
|
|
7
7
|
bcrypt-ruby (>= 3.0.0)
|
|
8
8
|
carrierwave (>= 0.10.0)
|
|
9
9
|
coffee-rails (>= 4.0.0, < 6)
|
|
10
|
-
friendly_id (>= 5.
|
|
10
|
+
friendly_id (>= 5.2.4)
|
|
11
11
|
i18n (>= 0.7.0)
|
|
12
12
|
jquery-fileupload-rails (>= 0.4.1)
|
|
13
13
|
jquery-rails (>= 3.1.0, < 6)
|
|
@@ -69,15 +69,15 @@ GEM
|
|
|
69
69
|
i18n (~> 0.7)
|
|
70
70
|
minitest (~> 5.1)
|
|
71
71
|
tzinfo (~> 1.1)
|
|
72
|
-
acts-as-taggable-on (
|
|
73
|
-
activerecord (
|
|
72
|
+
acts-as-taggable-on (6.0.0)
|
|
73
|
+
activerecord (~> 5.0)
|
|
74
74
|
addressable (2.4.0)
|
|
75
75
|
airbrussh (1.1.1)
|
|
76
76
|
sshkit (>= 1.6.1, != 1.7.0)
|
|
77
77
|
arel (7.1.4)
|
|
78
78
|
autoprefixer-rails (6.5.1.1)
|
|
79
79
|
execjs
|
|
80
|
-
bcrypt (3.1.
|
|
80
|
+
bcrypt (3.1.12)
|
|
81
81
|
bcrypt-ruby (3.1.5)
|
|
82
82
|
bcrypt (>= 3.1.3)
|
|
83
83
|
builder (3.2.2)
|
|
@@ -95,7 +95,7 @@ GEM
|
|
|
95
95
|
rack (>= 1.0.0)
|
|
96
96
|
rack-test (>= 0.5.4)
|
|
97
97
|
xpath (~> 2.0)
|
|
98
|
-
carrierwave (1.2.
|
|
98
|
+
carrierwave (1.2.3)
|
|
99
99
|
activemodel (>= 4.0.0)
|
|
100
100
|
activesupport (>= 4.0.0)
|
|
101
101
|
mime-types (>= 1.16)
|
|
@@ -108,7 +108,7 @@ GEM
|
|
|
108
108
|
execjs
|
|
109
109
|
coffee-script-source (1.12.2)
|
|
110
110
|
concurrent-ruby (1.0.2)
|
|
111
|
-
crass (1.0.
|
|
111
|
+
crass (1.0.4)
|
|
112
112
|
diff-lcs (1.2.5)
|
|
113
113
|
erubis (2.7.0)
|
|
114
114
|
execjs (2.7.0)
|
|
@@ -121,9 +121,9 @@ GEM
|
|
|
121
121
|
i18n (~> 0.5)
|
|
122
122
|
ffi (1.9.14)
|
|
123
123
|
formatador (0.2.5)
|
|
124
|
-
friendly_id (5.2.
|
|
124
|
+
friendly_id (5.2.4)
|
|
125
125
|
activerecord (>= 4.0.0)
|
|
126
|
-
globalid (0.4.
|
|
126
|
+
globalid (0.4.1)
|
|
127
127
|
activesupport (>= 4.2.0)
|
|
128
128
|
guard (2.14.0)
|
|
129
129
|
formatador (>= 0.2.4)
|
|
@@ -138,28 +138,28 @@ GEM
|
|
|
138
138
|
guard (>= 2.1.1)
|
|
139
139
|
rspec (>= 2.14, < 4.0)
|
|
140
140
|
i18n (0.7.0)
|
|
141
|
-
jquery-fileupload-rails (0.
|
|
141
|
+
jquery-fileupload-rails (1.0.0)
|
|
142
142
|
actionpack (>= 3.1)
|
|
143
143
|
railties (>= 3.1)
|
|
144
|
-
|
|
145
|
-
jquery-rails (4.3.
|
|
144
|
+
sassc
|
|
145
|
+
jquery-rails (4.3.3)
|
|
146
146
|
rails-dom-testing (>= 1, < 3)
|
|
147
147
|
railties (>= 4.2.0)
|
|
148
148
|
thor (>= 0.14, < 2.0)
|
|
149
149
|
jquery-ui-rails (6.0.1)
|
|
150
150
|
railties (>= 3.2.16)
|
|
151
|
-
kaminari (1.1.
|
|
151
|
+
kaminari (1.1.1)
|
|
152
152
|
activesupport (>= 4.1.0)
|
|
153
|
-
kaminari-actionview (= 1.1.
|
|
154
|
-
kaminari-activerecord (= 1.1.
|
|
155
|
-
kaminari-core (= 1.1.
|
|
156
|
-
kaminari-actionview (1.1.
|
|
153
|
+
kaminari-actionview (= 1.1.1)
|
|
154
|
+
kaminari-activerecord (= 1.1.1)
|
|
155
|
+
kaminari-core (= 1.1.1)
|
|
156
|
+
kaminari-actionview (1.1.1)
|
|
157
157
|
actionview
|
|
158
|
-
kaminari-core (= 1.1.
|
|
159
|
-
kaminari-activerecord (1.1.
|
|
158
|
+
kaminari-core (= 1.1.1)
|
|
159
|
+
kaminari-activerecord (1.1.1)
|
|
160
160
|
activerecord
|
|
161
|
-
kaminari-core (= 1.1.
|
|
162
|
-
kaminari-core (1.1.
|
|
161
|
+
kaminari-core (= 1.1.1)
|
|
162
|
+
kaminari-core (1.1.1)
|
|
163
163
|
launchy (2.4.3)
|
|
164
164
|
addressable (~> 2.3)
|
|
165
165
|
listen (3.1.5)
|
|
@@ -169,17 +169,18 @@ GEM
|
|
|
169
169
|
loofah (2.0.3)
|
|
170
170
|
nokogiri (>= 1.5.9)
|
|
171
171
|
lumberjack (1.0.10)
|
|
172
|
-
mail (2.
|
|
173
|
-
|
|
174
|
-
meta-tags (2.
|
|
172
|
+
mail (2.7.1)
|
|
173
|
+
mini_mime (>= 0.1.1)
|
|
174
|
+
meta-tags (2.11.0)
|
|
175
175
|
actionpack (>= 3.2.0, < 5.3)
|
|
176
176
|
method_source (0.8.2)
|
|
177
177
|
mime-types (3.1)
|
|
178
178
|
mime-types-data (~> 3.2015)
|
|
179
179
|
mime-types-data (3.2016.0521)
|
|
180
|
+
mini_mime (1.0.1)
|
|
180
181
|
mini_portile2 (2.1.0)
|
|
181
182
|
minitest (5.9.1)
|
|
182
|
-
multi_json (1.
|
|
183
|
+
multi_json (1.13.1)
|
|
183
184
|
mysql2 (0.4.5)
|
|
184
185
|
nenv (0.3.0)
|
|
185
186
|
net-scp (1.2.1)
|
|
@@ -188,7 +189,7 @@ GEM
|
|
|
188
189
|
nio4r (1.2.1)
|
|
189
190
|
nokogiri (1.6.8.1)
|
|
190
191
|
mini_portile2 (~> 2.1.0)
|
|
191
|
-
nokogumbo (1.
|
|
192
|
+
nokogumbo (1.5.0)
|
|
192
193
|
nokogiri
|
|
193
194
|
notiffany (0.1.1)
|
|
194
195
|
nenv (~> 0.1)
|
|
@@ -198,7 +199,7 @@ GEM
|
|
|
198
199
|
coderay (~> 1.1.0)
|
|
199
200
|
method_source (~> 0.8.1)
|
|
200
201
|
slop (~> 3.4)
|
|
201
|
-
pygments.rb (1.2.
|
|
202
|
+
pygments.rb (1.2.1)
|
|
202
203
|
multi_json (>= 1.0.0)
|
|
203
204
|
rack (2.0.1)
|
|
204
205
|
rack-test (0.6.3)
|
|
@@ -252,26 +253,29 @@ GEM
|
|
|
252
253
|
rspec-expectations (~> 2.14.0)
|
|
253
254
|
rspec-mocks (~> 2.14.0)
|
|
254
255
|
ruby_dep (1.5.0)
|
|
255
|
-
sanitize (4.
|
|
256
|
+
sanitize (4.6.6)
|
|
256
257
|
crass (~> 1.0.2)
|
|
257
258
|
nokogiri (>= 1.4.4)
|
|
258
|
-
nokogumbo (~> 1.4
|
|
259
|
-
sass (3.
|
|
259
|
+
nokogumbo (~> 1.4)
|
|
260
|
+
sass (3.7.2)
|
|
260
261
|
sass-listen (~> 4.0.0)
|
|
261
262
|
sass-listen (4.0.0)
|
|
262
263
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
263
264
|
rb-inotify (~> 0.9, >= 0.9.7)
|
|
264
|
-
sass-rails (5.0.
|
|
265
|
+
sass-rails (5.0.7)
|
|
265
266
|
railties (>= 4.0.0, < 6)
|
|
266
267
|
sass (~> 3.1)
|
|
267
268
|
sprockets (>= 2.8, < 4.0)
|
|
268
269
|
sprockets-rails (>= 2.0, < 4.0)
|
|
269
270
|
tilt (>= 1.1, < 3)
|
|
271
|
+
sassc (2.0.0)
|
|
272
|
+
ffi (~> 1.9.6)
|
|
273
|
+
rake
|
|
270
274
|
shellany (0.0.1)
|
|
271
275
|
sitemap_generator (5.0.5)
|
|
272
276
|
builder
|
|
273
277
|
slop (3.6.0)
|
|
274
|
-
sprockets (3.7.
|
|
278
|
+
sprockets (3.7.2)
|
|
275
279
|
concurrent-ruby (~> 1.0)
|
|
276
280
|
rack (> 1, < 3)
|
|
277
281
|
sprockets-rails (3.2.1)
|
|
@@ -286,11 +290,11 @@ GEM
|
|
|
286
290
|
tilt (2.0.8)
|
|
287
291
|
tzinfo (1.2.2)
|
|
288
292
|
thread_safe (~> 0.1)
|
|
289
|
-
uglifier (
|
|
293
|
+
uglifier (4.1.20)
|
|
290
294
|
execjs (>= 0.3.0, < 3)
|
|
291
295
|
websocket-driver (0.6.5)
|
|
292
296
|
websocket-extensions (>= 0.1.0)
|
|
293
|
-
websocket-extensions (0.1.
|
|
297
|
+
websocket-extensions (0.1.3)
|
|
294
298
|
xpath (2.0.0)
|
|
295
299
|
nokogiri (~> 1.3)
|
|
296
300
|
yard (0.9.5)
|
|
@@ -316,4 +320,4 @@ DEPENDENCIES
|
|
|
316
320
|
yard
|
|
317
321
|
|
|
318
322
|
BUNDLED WITH
|
|
319
|
-
1.
|
|
323
|
+
1.17.1
|
|
@@ -18,7 +18,7 @@ module Lines
|
|
|
18
18
|
# <tt>@articles_published</tt> to distinguish between published and
|
|
19
19
|
# unpublished articles
|
|
20
20
|
def index
|
|
21
|
-
@articles = Article.order('published ASC, published_at DESC, created_at DESC').page(params[:page]).per(25)
|
|
21
|
+
@articles = Lines::Article.order('published ASC, published_at DESC, created_at DESC').page(params[:page]).per(25)
|
|
22
22
|
@articles_unpublished = @articles.select{|a| a.published == false}
|
|
23
23
|
@articles_published = @articles.select{|a| a.published == true}
|
|
24
24
|
respond_to do |format|
|
|
@@ -28,7 +28,7 @@ module Lines
|
|
|
28
28
|
|
|
29
29
|
# GET /admin/articles/1
|
|
30
30
|
def show
|
|
31
|
-
@article = Article.friendly.find(params[:id])
|
|
31
|
+
@article = Lines::Article.friendly.find(params[:id])
|
|
32
32
|
@first_page = true
|
|
33
33
|
|
|
34
34
|
respond_to do |format|
|
|
@@ -47,12 +47,12 @@ module Lines
|
|
|
47
47
|
|
|
48
48
|
# GET /admin/articles/1/edit
|
|
49
49
|
def edit
|
|
50
|
-
@article = Article.friendly.find(params[:id])
|
|
50
|
+
@article = Lines::Article.friendly.find(params[:id])
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
# POST /admin/articles
|
|
54
54
|
def create
|
|
55
|
-
@article = Article.new(article_params)
|
|
55
|
+
@article = Lines::Article.new(article_params)
|
|
56
56
|
|
|
57
57
|
respond_to do |format|
|
|
58
58
|
if @article.save
|
|
@@ -66,7 +66,7 @@ module Lines
|
|
|
66
66
|
# PUT /admin/articles/1
|
|
67
67
|
# TODO: Very much is happening here. Move deletion of hero_image to the article model
|
|
68
68
|
def update
|
|
69
|
-
@article = Article.friendly.find(params[:id])
|
|
69
|
+
@article = Lines::Article.friendly.find(params[:id])
|
|
70
70
|
a_params = article_params
|
|
71
71
|
|
|
72
72
|
# replace picture_path with the new uploaded file
|
|
@@ -173,4 +173,4 @@ module Lines
|
|
|
173
173
|
end
|
|
174
174
|
|
|
175
175
|
end
|
|
176
|
-
end
|
|
176
|
+
end
|
|
@@ -8,12 +8,12 @@ module Lines
|
|
|
8
8
|
|
|
9
9
|
# Listes all authroes
|
|
10
10
|
def index
|
|
11
|
-
@authors = Author.all
|
|
11
|
+
@authors = Lines::Author.all
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# Shows an author
|
|
15
15
|
def show
|
|
16
|
-
@author = Author.find(params[:id])
|
|
16
|
+
@author = Lines::Author.find(params[:id])
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
# New author
|
|
@@ -23,12 +23,12 @@ module Lines
|
|
|
23
23
|
|
|
24
24
|
# Edit an existing author
|
|
25
25
|
def edit
|
|
26
|
-
@author = Author.find(params[:id])
|
|
26
|
+
@author = Lines::Author.find(params[:id])
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# Create a new author from params
|
|
30
30
|
def create
|
|
31
|
-
@author = Author.new(author_params)
|
|
31
|
+
@author = Lines::Author.new(author_params)
|
|
32
32
|
|
|
33
33
|
if @author.save
|
|
34
34
|
redirect_to admin_author_path @author
|
|
@@ -39,7 +39,7 @@ module Lines
|
|
|
39
39
|
|
|
40
40
|
# Update an existing author from params
|
|
41
41
|
def update
|
|
42
|
-
@author = Author.find(params[:id])
|
|
42
|
+
@author = Lines::Author.find(params[:id])
|
|
43
43
|
|
|
44
44
|
if @author.update_attributes(author_params)
|
|
45
45
|
redirect_to admin_author_path(@author)
|
|
@@ -50,11 +50,11 @@ module Lines
|
|
|
50
50
|
|
|
51
51
|
# Delete an author
|
|
52
52
|
def destroy
|
|
53
|
-
@author = Author.find(params[:id])
|
|
53
|
+
@author = Lines::Author.find(params[:id])
|
|
54
54
|
if @author.destroy
|
|
55
55
|
redirect_to admin_authors_url
|
|
56
56
|
else
|
|
57
|
-
@authors = Author.all
|
|
57
|
+
@authors = Lines::Author.all
|
|
58
58
|
render "index"
|
|
59
59
|
end
|
|
60
60
|
end
|
|
@@ -68,4 +68,4 @@ module Lines
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
end
|
|
71
|
-
end
|
|
71
|
+
end
|
|
@@ -6,12 +6,12 @@ module Lines
|
|
|
6
6
|
|
|
7
7
|
class PicturesController < ApplicationController
|
|
8
8
|
def create
|
|
9
|
-
@picture = Picture.create(picture_params)
|
|
9
|
+
@picture = Lines::Picture.create(picture_params)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
# PUT /admin/pictures/1
|
|
13
13
|
def update
|
|
14
|
-
@picture = Picture.find(params[:id])
|
|
14
|
+
@picture = Lines::Picture.find(params[:id])
|
|
15
15
|
|
|
16
16
|
respond_to do |format|
|
|
17
17
|
if @picture.update_attributes(picture_params[:picture])
|
|
@@ -24,7 +24,7 @@ module Lines
|
|
|
24
24
|
|
|
25
25
|
# Deletes a picture. Only responds to JS requests.
|
|
26
26
|
def destroy
|
|
27
|
-
@picture = Picture.find(params[:id])
|
|
27
|
+
@picture = Lines::Picture.find(params[:id])
|
|
28
28
|
@picture.destroy
|
|
29
29
|
|
|
30
30
|
respond_to do |format|
|
|
@@ -41,4 +41,4 @@ module Lines
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
end
|
|
44
|
-
end
|
|
44
|
+
end
|
|
@@ -18,9 +18,9 @@ module Lines
|
|
|
18
18
|
format.html {
|
|
19
19
|
@first_page = (params[:page] and params[:page].to_i > 0) ? false : true
|
|
20
20
|
if params[:tag]
|
|
21
|
-
@articles = Article.published.tagged_with(params[:tag]).page(params[:page].to_i)
|
|
21
|
+
@articles = Lines::Article.published.tagged_with(params[:tag]).page(params[:page].to_i)
|
|
22
22
|
else
|
|
23
|
-
@articles = Article.published.page(params[:page].to_i).padding(1)
|
|
23
|
+
@articles = Lines::Article.published.page(params[:page].to_i).padding(1)
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
if @articles.first_page?
|
|
@@ -41,7 +41,7 @@ module Lines
|
|
|
41
41
|
|
|
42
42
|
}
|
|
43
43
|
format.atom{
|
|
44
|
-
@articles = Article.published
|
|
44
|
+
@articles = Lines::Article.published
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
end
|
|
@@ -49,7 +49,7 @@ module Lines
|
|
|
49
49
|
# Shows specific article
|
|
50
50
|
def show
|
|
51
51
|
@first_page = true
|
|
52
|
-
@article = Article.published.find(params[:id])
|
|
52
|
+
@article = Lines::Article.published.find(params[:id])
|
|
53
53
|
@article.teaser = nil unless @article.teaser.present?
|
|
54
54
|
meta_tags = { title: @article.title,
|
|
55
55
|
type: 'article',
|
|
@@ -64,9 +64,9 @@ module Lines
|
|
|
64
64
|
return redirect_to @article, status: :moved_permanently
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
-
@related_articles = Article.published.where('id != ?', @article.id).order('').limit(2)
|
|
67
|
+
@related_articles = Lines::Article.published.where('id != ?', @article.id).order('').limit(2)
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
end
|
|
72
|
+
end
|
|
@@ -12,7 +12,7 @@ module Lines
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def create
|
|
15
|
-
@user = User.find_by(email: params[:password_reset][:email].downcase)
|
|
15
|
+
@user = Lines::User.find_by(email: params[:password_reset][:email].downcase)
|
|
16
16
|
if @user
|
|
17
17
|
@user.create_reset_digest
|
|
18
18
|
@user.send_password_reset_email
|
|
@@ -67,7 +67,7 @@ module Lines
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def get_user
|
|
70
|
-
@user = User.find_by(email: params[:email])
|
|
70
|
+
@user = Lines::User.find_by(email: params[:email])
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# Confirms a valid user.
|
data/app/models/lines/picture.rb
CHANGED
|
@@ -8,7 +8,7 @@ require 'carrierwave/orm/activerecord'
|
|
|
8
8
|
module Lines
|
|
9
9
|
class Picture < Lines::ApplicationRecord
|
|
10
10
|
# Associations
|
|
11
|
-
belongs_to :article, touch: true
|
|
11
|
+
belongs_to :article, touch: true, optional: true
|
|
12
12
|
|
|
13
13
|
# Mount carrierwave picture uploader
|
|
14
14
|
mount_uploader :image, PictureUploader
|
data/app/models/lines/user.rb
CHANGED
|
@@ -27,8 +27,8 @@ module Lines
|
|
|
27
27
|
|
|
28
28
|
# Sets +rest_digest+ and +reset_sent_at+ for password reset.
|
|
29
29
|
def create_reset_digest
|
|
30
|
-
self.reset_token = User.generate_token
|
|
31
|
-
update_attribute(:reset_digest, User.digest(reset_token))
|
|
30
|
+
self.reset_token = Lines::User.generate_token
|
|
31
|
+
update_attribute(:reset_digest, Lines::User.digest(reset_token))
|
|
32
32
|
update_attribute(:reset_sent_at, Time.zone.now)
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -69,4 +69,4 @@ module Lines
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
end
|
|
72
|
-
end
|
|
72
|
+
end
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Carrierwave uploader for docuemnts.
|
|
3
3
|
class DocumentUploader < CarrierWave::Uploader::Base
|
|
4
4
|
|
|
5
|
-
storage :
|
|
5
|
+
storage CONFIG[:storage].to_sym
|
|
6
6
|
|
|
7
7
|
# Override the directory where uploaded files will be stored.
|
|
8
8
|
# This is a sensible default for uploaders that are meant to be mounted:
|
|
@@ -9,7 +9,7 @@ class HeroImageUploader < CarrierWave::Uploader::Base
|
|
|
9
9
|
# include Sprockets::Helpers::IsolatedHelper
|
|
10
10
|
|
|
11
11
|
# Choose what kind of storage to use for this uploader:
|
|
12
|
-
storage :
|
|
12
|
+
storage CONFIG[:storage].to_sym
|
|
13
13
|
|
|
14
14
|
# Override the directory where uploaded files will be stored.
|
|
15
15
|
# This is a sensible default for uploaders that are meant to be mounted:
|
|
@@ -9,7 +9,8 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|
|
9
9
|
# include Sprockets::Helpers::IsolatedHelper
|
|
10
10
|
|
|
11
11
|
# Choose what kind of storage to use for this uploader:
|
|
12
|
-
storage :
|
|
12
|
+
#storage :ftp
|
|
13
|
+
storage CONFIG[:storage].to_sym
|
|
13
14
|
|
|
14
15
|
# Override the directory where uploaded files will be stored.
|
|
15
16
|
# This is a sensible default for uploaders that are meant to be mounted:
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
<div class="input-field">
|
|
59
59
|
<div class="documents">
|
|
60
|
-
<%= f.label :document, "#{@article.document? ? @article.document.file.filename + ' <span>(' + number_to_human_size(
|
|
60
|
+
<%= f.label :document, "#{@article.document? ? @article.document.file.filename + ' <span>(' + number_to_human_size(@article.document.file.size) + ')</span>' : t('lines.buttons.attach_document').html_safe }".html_safe, class: "attachment-label", title: t('lines.buttons.change_attachment').html_safe -%>
|
|
61
61
|
<% if @article.document? %>
|
|
62
62
|
<span class="icon-delete btn-delete-attachment" title="<%= t('lines.buttons.remove_attachment').html_safe %>"></span>
|
|
63
63
|
<% end %>
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
<% end %>
|
|
97
97
|
|
|
98
98
|
</div>
|
|
99
|
-
<% end %>
|
|
99
|
+
<% end %>
|
data/certs/lines-engine.pem
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
+
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
2
|
+
MIIDYDCCAkigAwIBAgIBATANBgkqhkiG9w0BAQUFADA7MQ0wCwYDVQQDDARpbmZv
|
|
3
|
+
MRYwFAYKCZImiZPyLGQBGRYGb3BvbG9vMRIwEAYKCZImiZPyLGQBGRYCZGUwHhcN
|
|
4
|
+
MTgxMTI3MTEyNjE5WhcNMTkxMTI3MTEyNjE5WjA7MQ0wCwYDVQQDDARpbmZvMRYw
|
|
5
|
+
FAYKCZImiZPyLGQBGRYGb3BvbG9vMRIwEAYKCZImiZPyLGQBGRYCZGUwggEiMA0G
|
|
6
|
+
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLo6cKj7H+u/uHHjVxMuouOGyS6+KY
|
|
7
|
+
Ml2Dh+slLAZP3tXywLHK6kpnQzfX0PxX3tt+01OTw6CXfVQvHTX3pNQ/JCEPbDpz
|
|
8
|
+
GkjJb0H+O6a2B1MURbngs6OTFJexJbrH9jnRYYz9XhclT9Pnql57Tvdx+81LMCYA
|
|
9
|
+
PM/0K+J/5AurU0yZKoE4rtkUT6RawTRmiGztvfFCGnJw3y85dNkCNPpDk2AG4ILz
|
|
10
|
+
ooIftk03e+LMXFQkubHvwQKEuR84P7tC7RCrEICGSTBAnl6hhs1inauRQqmRqZJi
|
|
11
|
+
hlkHWQxP2uZxEhnYWMUseSvthEJUO0bJFGhcGlnSNA+xMVwXJTHdtS9zAgMBAAGj
|
|
12
|
+
bzBtMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQlIRIh0nakHIwo
|
|
13
|
+
effiTSArnoshdTAZBgNVHREEEjAQgQ5pbmZvQG9wb2xvby5kZTAZBgNVHRIEEjAQ
|
|
14
|
+
gQ5pbmZvQG9wb2xvby5kZTANBgkqhkiG9w0BAQUFAAOCAQEApr84I2BIzvlz1jtf
|
|
15
|
+
24mmEoJj5eVLMxj28lvgxHrIUg8G9HtEfQBjeeCUVXX0xA641hJjwuqkYvkDJGdi
|
|
16
|
+
F3iJYlntoyFcU6rTxIPaJFmprSVPpQg62TnFbdLl2EJyd64qSrEzq7vd6woL8x6b
|
|
17
|
+
7XszW47oQrRiTlMiOsyftwEyANvHYgTc1xvIDRzFms+dk65w8wmLMdzbWTTKwPCH
|
|
18
|
+
rS9aC6nx2nJEBLxOc+az83Rf62GulQzWukNgHOvMfFFnm+NsOG1rryoe3U3gq7za
|
|
19
|
+
NTqmZPFbCjGiCRUQuSTUDBIe8IFcoba2zbnO1VjDuCsXfYDUZH779hRVKn7O0iQX
|
|
20
|
+
2vhGFQ==
|
|
21
21
|
-----END CERTIFICATE-----
|
|
@@ -7,6 +7,7 @@ unless File.exists?(config_file)
|
|
|
7
7
|
end
|
|
8
8
|
|
|
9
9
|
# Load the configuration
|
|
10
|
-
CONFIG = YAML.load_file(config_file)
|
|
10
|
+
#CONFIG = YAML.load_file(config_file)
|
|
11
|
+
CONFIG = YAML.load(ERB.new(File.read(config_file)).result)
|
|
11
12
|
CONFIG.merge! CONFIG.fetch(Rails.env, {})
|
|
12
|
-
CONFIG.symbolize_keys!
|
|
13
|
+
CONFIG.symbolize_keys!
|
data/config/lines_config.yml
CHANGED
|
@@ -47,6 +47,9 @@ articles_per_page: 10 # Pagination: How many articles should be desplayed per pa
|
|
|
47
47
|
# Your apps secret token. Generate a new one with 'rake secret' and paste it below
|
|
48
48
|
secret_token: "afa4a436180a2febe9b814c6a57b6f3ad298aa82ce0ab4c9e8238713764b665e978f9fad8146587b6cf4a518de4a8f0eac1156cf43a778548e0082629d099fef"
|
|
49
49
|
|
|
50
|
+
# Carrierwave uploader
|
|
51
|
+
storage: :file # or "aws" if using carrierwave-aws or "ftp" of using carrierwave-ftp
|
|
52
|
+
|
|
50
53
|
# Environment dependent configuration. Place your URLs here
|
|
51
54
|
development:
|
|
52
55
|
host: "localhost:3000"
|
|
@@ -56,4 +59,4 @@ test:
|
|
|
56
59
|
from_email: 'noreply@example.com'
|
|
57
60
|
production:
|
|
58
61
|
host: "blog.opoloo.com"
|
|
59
|
-
from_email:
|
|
62
|
+
from_email: <%= ENV["MAILER_EMAIL"] %>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class BaseMigration < ActiveRecord::Migration
|
|
1
|
+
class BaseMigration < ActiveRecord::Migration[4.2]
|
|
2
2
|
# encoding: UTF-8
|
|
3
3
|
# This file is auto-generated from the current state of the database. Instead
|
|
4
4
|
# of editing this file, please use the migrations feature of Active Record to
|
data/db/migrate/20140702160604_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# This migration comes from acts_as_taggable_on_engine (originally 3)
|
|
2
|
-
class AddTaggingsCounterCacheToTags < ActiveRecord::Migration
|
|
2
|
+
class AddTaggingsCounterCacheToTags < ActiveRecord::Migration[4.2]
|
|
3
3
|
def self.up
|
|
4
4
|
add_column :tags, :taggings_count, :integer, default: 0
|
|
5
5
|
|
data/lib/lines/engine.rb
CHANGED
data/lib/lines/version.rb
CHANGED
data/lines.gemspec
CHANGED
|
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
|
39
39
|
s.add_runtime_dependency 'sass-rails', '>= 4.0.0'
|
|
40
40
|
s.add_runtime_dependency 'coffee-rails', '< 6', '>= 4.0.0'
|
|
41
41
|
s.add_runtime_dependency 'uglifier', '>= 2'
|
|
42
|
-
s.add_runtime_dependency 'friendly_id', '>= 5.
|
|
42
|
+
s.add_runtime_dependency 'friendly_id', '>= 5.2.4'
|
|
43
43
|
s.add_runtime_dependency 'rails3-jquery-autocomplete', '>= 1.0.11'
|
|
44
44
|
s.add_runtime_dependency 'meta-tags', '>= 2.0.0'
|
|
45
45
|
s.add_runtime_dependency 'bcrypt-ruby', '>= 3.0.0'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lines-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Opoloo GbR
|
|
@@ -10,27 +10,27 @@ bindir: bin
|
|
|
10
10
|
cert_chain:
|
|
11
11
|
- |
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
+
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
13
|
+
MIIDYDCCAkigAwIBAgIBATANBgkqhkiG9w0BAQUFADA7MQ0wCwYDVQQDDARpbmZv
|
|
14
|
+
MRYwFAYKCZImiZPyLGQBGRYGb3BvbG9vMRIwEAYKCZImiZPyLGQBGRYCZGUwHhcN
|
|
15
|
+
MTgxMTI3MTEyNjE5WhcNMTkxMTI3MTEyNjE5WjA7MQ0wCwYDVQQDDARpbmZvMRYw
|
|
16
|
+
FAYKCZImiZPyLGQBGRYGb3BvbG9vMRIwEAYKCZImiZPyLGQBGRYCZGUwggEiMA0G
|
|
17
|
+
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLo6cKj7H+u/uHHjVxMuouOGyS6+KY
|
|
18
|
+
Ml2Dh+slLAZP3tXywLHK6kpnQzfX0PxX3tt+01OTw6CXfVQvHTX3pNQ/JCEPbDpz
|
|
19
|
+
GkjJb0H+O6a2B1MURbngs6OTFJexJbrH9jnRYYz9XhclT9Pnql57Tvdx+81LMCYA
|
|
20
|
+
PM/0K+J/5AurU0yZKoE4rtkUT6RawTRmiGztvfFCGnJw3y85dNkCNPpDk2AG4ILz
|
|
21
|
+
ooIftk03e+LMXFQkubHvwQKEuR84P7tC7RCrEICGSTBAnl6hhs1inauRQqmRqZJi
|
|
22
|
+
hlkHWQxP2uZxEhnYWMUseSvthEJUO0bJFGhcGlnSNA+xMVwXJTHdtS9zAgMBAAGj
|
|
23
|
+
bzBtMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQlIRIh0nakHIwo
|
|
24
|
+
effiTSArnoshdTAZBgNVHREEEjAQgQ5pbmZvQG9wb2xvby5kZTAZBgNVHRIEEjAQ
|
|
25
|
+
gQ5pbmZvQG9wb2xvby5kZTANBgkqhkiG9w0BAQUFAAOCAQEApr84I2BIzvlz1jtf
|
|
26
|
+
24mmEoJj5eVLMxj28lvgxHrIUg8G9HtEfQBjeeCUVXX0xA641hJjwuqkYvkDJGdi
|
|
27
|
+
F3iJYlntoyFcU6rTxIPaJFmprSVPpQg62TnFbdLl2EJyd64qSrEzq7vd6woL8x6b
|
|
28
|
+
7XszW47oQrRiTlMiOsyftwEyANvHYgTc1xvIDRzFms+dk65w8wmLMdzbWTTKwPCH
|
|
29
|
+
rS9aC6nx2nJEBLxOc+az83Rf62GulQzWukNgHOvMfFFnm+NsOG1rryoe3U3gq7za
|
|
30
|
+
NTqmZPFbCjGiCRUQuSTUDBIe8IFcoba2zbnO1VjDuCsXfYDUZH779hRVKn7O0iQX
|
|
31
|
+
2vhGFQ==
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date:
|
|
33
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: orm_adapter
|
|
@@ -334,14 +334,14 @@ dependencies:
|
|
|
334
334
|
requirements:
|
|
335
335
|
- - ">="
|
|
336
336
|
- !ruby/object:Gem::Version
|
|
337
|
-
version: 5.
|
|
337
|
+
version: 5.2.4
|
|
338
338
|
type: :runtime
|
|
339
339
|
prerelease: false
|
|
340
340
|
version_requirements: !ruby/object:Gem::Requirement
|
|
341
341
|
requirements:
|
|
342
342
|
- - ">="
|
|
343
343
|
- !ruby/object:Gem::Version
|
|
344
|
-
version: 5.
|
|
344
|
+
version: 5.2.4
|
|
345
345
|
- !ruby/object:Gem::Dependency
|
|
346
346
|
name: rails3-jquery-autocomplete
|
|
347
347
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -498,6 +498,7 @@ extra_rdoc_files: []
|
|
|
498
498
|
files:
|
|
499
499
|
- ".gitignore"
|
|
500
500
|
- ".rspec"
|
|
501
|
+
- ".ruby-gemset"
|
|
501
502
|
- CHANGELOG.md
|
|
502
503
|
- Gemfile
|
|
503
504
|
- Gemfile.lock
|
metadata.gz.sig
CHANGED
|
Binary file
|