lines-engine 0.5 → 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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +21 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +100 -70
- data/Guardfile +33 -0
- data/README.rdoc +12 -8
- data/app/assets/stylesheets/lines/article.scss +55 -31
- data/app/assets/stylesheets/lines/fonts.scss +1 -34
- data/app/assets/stylesheets/lines/general.scss +2 -0
- data/app/assets/stylesheets/lines/media_queries.scss +11 -5
- data/app/assets/stylesheets/lines/variables_and_mixins.scss +6 -0
- data/app/controllers/lines/articles_controller.rb +3 -2
- data/app/controllers/lines/password_resets_controller.rb +84 -0
- data/app/helpers/lines/application_helper.rb +2 -2
- data/app/mailers/lines/user_mailer.rb +11 -0
- data/app/models/lines/user.rb +41 -5
- data/app/views/layouts/lines/application.html.erb +1 -0
- data/app/views/lines/password_resets/edit.html.erb +26 -0
- data/app/views/lines/password_resets/new.html.erb +8 -0
- data/app/views/lines/sessions/new.html.erb +4 -0
- data/app/views/lines/shared/_flash.html.erb +8 -0
- data/app/views/lines/user_mailer/password_reset.html.erb +10 -0
- data/app/views/lines/user_mailer/password_reset.text.erb +8 -0
- data/certs/lines-engine.pem +21 -0
- data/config/lines_config.yml +4 -1
- data/config/routes.rb +5 -0
- data/db/migrate/20150421093311_add_reset_password_fields_to_users.rb +6 -0
- data/lib/generators/lines/copy_styles_generator.rb +13 -0
- data/lib/lines/version.rb +1 -1
- data/lines.gemspec +5 -2
- data/spec/dummy/config/environments/development.rb +5 -0
- data/spec/dummy/config/environments/test.rb +2 -0
- data/spec/dummy/config/lines_config.yml +4 -1
- data/spec/dummy/db/schema.rb +3 -1
- data/spec/dummy/test/mailers/previews/user_mailer_preview.rb +11 -0
- data/spec/features/article_spec.rb +0 -1
- data/spec/features/password_reset_spec.rb +48 -0
- data/spec/mailers/lines/user_mailer_spec.rb +24 -0
- metadata +51 -12
- 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: 3a2d7a3ed1608348ebab01763013e62e3a2f48bd
|
4
|
+
data.tar.gz: 423dde4e108a2fdd0659cb19abfa4ca4ccf2b548
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 310411de1139e7f92ece4aa94c6e6c2d6faf085883cdde6f7c342edddaea34892204c99d11bd9a472cb59ee04e5a7cf3538319ed0c5986ee1005513b8cd30b60
|
7
|
+
data.tar.gz: caa85d2c0182858d9d877a564b831f5e7c1fd3a5765e1655dd2785bf043db32173d140cf0db41ad34f3ffd0dd3f6cf6b4a13e17d20842bead535c8cd779f8160
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## development @master branch
|
4
|
+
|
5
|
+
##0.6
|
6
|
+
|
7
|
+
- Users are now able to reset their passwords.
|
8
|
+
- Default styles updated. If you want to use the new version, you have to overwrite your existing lines css files.
|
9
|
+
- new generator +rails g lines:copy_styles+ added to update stylesheets from newer gem versions
|
10
|
+
- IMPORTANT: please adjust your +config/lines_config.yml+ and add +from_email+ according to the following example:
|
11
|
+
```
|
12
|
+
development:
|
13
|
+
host: "localhost:3000"
|
14
|
+
from_email: 'noreply@example.com'
|
15
|
+
test:
|
16
|
+
host: "test.local"
|
17
|
+
from_email: 'noreply@example.com'
|
18
|
+
production:
|
19
|
+
host: "blog.opoloo.com"
|
20
|
+
from_email: 'noreply@example.com'
|
21
|
+
```
|
22
|
+
- updated required gems (actionpack and redcarpet security alerts)
|
23
|
+
|
3
24
|
## 0.5
|
4
25
|
|
5
26
|
- Completely moved from sprockets to SASS @import statements. Be aware that you have to remove all "*= require" statements from your CSS manifest and use @import instead. For more information, see: http://guides.rubyonrails.org/asset_pipeline.html
|
data/Gemfile
CHANGED
@@ -17,7 +17,7 @@ gemspec
|
|
17
17
|
#gem 'rails3-jquery-autocomplete', github: 'francisd/rails3-jquery-autocomplete'
|
18
18
|
#gem 'meta-tags', require: 'meta_tags'
|
19
19
|
#gem 'rack-ssl-enforcer', require: 'rack/ssl-enforcer'
|
20
|
-
gem 'acts-as-taggable-on', '~> 3.
|
20
|
+
#gem 'acts-as-taggable-on', '~> 3.5.0'
|
21
21
|
|
22
22
|
|
23
23
|
group :development do
|
@@ -39,4 +39,4 @@ group :test do
|
|
39
39
|
gem 'guard-rspec'
|
40
40
|
gem 'rb-inotify', '~> 0.9'
|
41
41
|
gem 'launchy'
|
42
|
-
end
|
42
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lines-engine (0.
|
5
|
-
acts-as-taggable-on (~> 3.
|
4
|
+
lines-engine (0.6)
|
5
|
+
acts-as-taggable-on (~> 3.5, >= 3.5)
|
6
6
|
bcrypt (~> 3.1.0, >= 3.1.0)
|
7
7
|
bcrypt-ruby (>= 3.0.0, <= 4)
|
8
8
|
carrierwave (~> 0.10.0, >= 0.10.0)
|
@@ -18,7 +18,7 @@ PATH
|
|
18
18
|
rails (>= 3, < 5)
|
19
19
|
rails3-jquery-autocomplete (~> 1.0.11, >= 1.0.11)
|
20
20
|
railties (>= 3.2.6, < 5)
|
21
|
-
redcarpet (~> 3.
|
21
|
+
redcarpet (~> 3.2.3, >= 3.2.3)
|
22
22
|
rmagick (~> 2.13.4, >= 2.13.4)
|
23
23
|
sanitize (~> 3.0.0, >= 3.0.0)
|
24
24
|
sass-rails (>= 4.0.0)
|
@@ -31,45 +31,54 @@ PATH
|
|
31
31
|
GEM
|
32
32
|
remote: https://rubygems.org/
|
33
33
|
specs:
|
34
|
-
actionmailer (4.1
|
35
|
-
actionpack (= 4.1
|
36
|
-
actionview (= 4.1
|
34
|
+
actionmailer (4.2.1)
|
35
|
+
actionpack (= 4.2.1)
|
36
|
+
actionview (= 4.2.1)
|
37
|
+
activejob (= 4.2.1)
|
37
38
|
mail (~> 2.5, >= 2.5.4)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
40
|
+
actionpack (4.2.1)
|
41
|
+
actionview (= 4.2.1)
|
42
|
+
activesupport (= 4.2.1)
|
43
|
+
rack (~> 1.6)
|
42
44
|
rack-test (~> 0.6.2)
|
43
|
-
|
44
|
-
|
45
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
46
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
47
|
+
actionview (4.2.1)
|
48
|
+
activesupport (= 4.2.1)
|
45
49
|
builder (~> 3.1)
|
46
50
|
erubis (~> 2.7.0)
|
47
|
-
|
48
|
-
|
51
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
52
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.1)
|
53
|
+
activejob (4.2.1)
|
54
|
+
activesupport (= 4.2.1)
|
55
|
+
globalid (>= 0.3.0)
|
56
|
+
activemodel (4.2.1)
|
57
|
+
activesupport (= 4.2.1)
|
49
58
|
builder (~> 3.1)
|
50
|
-
activerecord (4.1
|
51
|
-
activemodel (= 4.1
|
52
|
-
activesupport (= 4.1
|
53
|
-
arel (~>
|
54
|
-
activesupport (4.1
|
55
|
-
i18n (~> 0.
|
59
|
+
activerecord (4.2.1)
|
60
|
+
activemodel (= 4.2.1)
|
61
|
+
activesupport (= 4.2.1)
|
62
|
+
arel (~> 6.0)
|
63
|
+
activesupport (4.2.1)
|
64
|
+
i18n (~> 0.7)
|
56
65
|
json (~> 1.7, >= 1.7.7)
|
57
66
|
minitest (~> 5.1)
|
58
|
-
thread_safe (~> 0.
|
67
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
59
68
|
tzinfo (~> 1.1)
|
60
|
-
acts-as-taggable-on (3.
|
61
|
-
activerecord (>= 3, < 5)
|
62
|
-
addressable (2.3.
|
63
|
-
arel (
|
69
|
+
acts-as-taggable-on (3.5.0)
|
70
|
+
activerecord (>= 3.2, < 5)
|
71
|
+
addressable (2.3.8)
|
72
|
+
arel (6.0.0)
|
64
73
|
bcrypt (3.1.10)
|
65
74
|
bcrypt-ruby (3.1.5)
|
66
75
|
bcrypt (>= 3.1.3)
|
67
76
|
builder (3.2.2)
|
68
|
-
capistrano (3.
|
77
|
+
capistrano (3.4.0)
|
69
78
|
i18n
|
70
79
|
rake (>= 10.0.0)
|
71
80
|
sshkit (~> 1.3)
|
72
|
-
capybara (2.4.
|
81
|
+
capybara (2.4.4)
|
73
82
|
mime-types (>= 1.16)
|
74
83
|
nokogiri (>= 1.3.3)
|
75
84
|
rack (>= 1.0.0)
|
@@ -90,69 +99,81 @@ GEM
|
|
90
99
|
coffee-script-source
|
91
100
|
execjs
|
92
101
|
coffee-script-source (1.9.1.1)
|
93
|
-
colorize (0.7.
|
102
|
+
colorize (0.7.7)
|
94
103
|
crass (0.2.1)
|
95
104
|
diff-lcs (1.2.5)
|
96
105
|
erubis (2.7.0)
|
97
106
|
execjs (2.5.2)
|
98
|
-
factory_girl (4.
|
107
|
+
factory_girl (4.5.0)
|
99
108
|
activesupport (>= 3.0.0)
|
100
|
-
factory_girl_rails (4.
|
101
|
-
factory_girl (~> 4.
|
109
|
+
factory_girl_rails (4.5.0)
|
110
|
+
factory_girl (~> 4.5.0)
|
102
111
|
railties (>= 3.0.0)
|
103
112
|
faker (1.4.3)
|
104
113
|
i18n (~> 0.5)
|
105
|
-
ffi (1.9.
|
114
|
+
ffi (1.9.8)
|
106
115
|
formatador (0.2.5)
|
107
116
|
friendly_id (5.1.0)
|
108
117
|
activerecord (>= 4.0.0)
|
109
|
-
|
118
|
+
globalid (0.3.5)
|
119
|
+
activesupport (>= 4.1.0)
|
120
|
+
guard (2.12.5)
|
110
121
|
formatador (>= 0.2.4)
|
111
122
|
listen (~> 2.7)
|
112
123
|
lumberjack (~> 1.0)
|
124
|
+
nenv (~> 0.1)
|
125
|
+
notiffany (~> 0.0)
|
113
126
|
pry (>= 0.9.12)
|
127
|
+
shellany (~> 0.0)
|
114
128
|
thor (>= 0.18.1)
|
115
129
|
guard-rspec (4.3.1)
|
116
130
|
guard (~> 2.1)
|
117
131
|
rspec (>= 2.14, < 4.0)
|
118
132
|
hitimes (1.2.2)
|
119
|
-
i18n (0.
|
133
|
+
i18n (0.7.0)
|
120
134
|
jquery-fileupload-rails (0.4.5)
|
121
135
|
actionpack (>= 3.1)
|
122
136
|
railties (>= 3.1)
|
123
137
|
sass (>= 3.2)
|
124
|
-
jquery-rails (
|
125
|
-
|
138
|
+
jquery-rails (4.0.3)
|
139
|
+
rails-dom-testing (~> 1.0)
|
140
|
+
railties (>= 4.2.0)
|
126
141
|
thor (>= 0.14, < 2.0)
|
127
142
|
jquery-ui-rails (4.2.1)
|
128
143
|
railties (>= 3.2.16)
|
129
|
-
json (1.8.
|
144
|
+
json (1.8.2)
|
130
145
|
kaminari (0.16.3)
|
131
146
|
actionpack (>= 3.0.0)
|
132
147
|
activesupport (>= 3.0.0)
|
133
|
-
launchy (2.4.
|
148
|
+
launchy (2.4.3)
|
134
149
|
addressable (~> 2.3)
|
135
|
-
listen (2.
|
136
|
-
celluloid (
|
150
|
+
listen (2.10.0)
|
151
|
+
celluloid (~> 0.16.0)
|
137
152
|
rb-fsevent (>= 0.9.3)
|
138
153
|
rb-inotify (>= 0.9)
|
154
|
+
loofah (2.0.1)
|
155
|
+
nokogiri (>= 1.5.9)
|
139
156
|
lumberjack (1.0.9)
|
140
157
|
mail (2.6.3)
|
141
158
|
mime-types (>= 1.16, < 3)
|
142
159
|
meta-tags (2.0.0)
|
143
160
|
actionpack (>= 3.0.0)
|
144
161
|
method_source (0.8.2)
|
145
|
-
mime-types (2.3)
|
146
|
-
mini_portile (0.6.
|
147
|
-
minitest (5.
|
148
|
-
mysql2 (0.3.
|
162
|
+
mime-types (2.4.3)
|
163
|
+
mini_portile (0.6.2)
|
164
|
+
minitest (5.6.0)
|
165
|
+
mysql2 (0.3.18)
|
166
|
+
nenv (0.2.0)
|
149
167
|
net-scp (1.2.1)
|
150
168
|
net-ssh (>= 2.6.5)
|
151
|
-
net-ssh (2.9.
|
152
|
-
nokogiri (1.6.
|
153
|
-
mini_portile (
|
169
|
+
net-ssh (2.9.2)
|
170
|
+
nokogiri (1.6.6.2)
|
171
|
+
mini_portile (~> 0.6.0)
|
154
172
|
nokogumbo (1.1.12)
|
155
173
|
nokogiri
|
174
|
+
notiffany (0.0.6)
|
175
|
+
nenv (~> 0.1)
|
176
|
+
shellany (~> 0.0)
|
156
177
|
orm_adapter (0.5.0)
|
157
178
|
posix-spawn (0.3.11)
|
158
179
|
pry (0.10.1)
|
@@ -162,32 +183,41 @@ GEM
|
|
162
183
|
pygments.rb (0.6.3)
|
163
184
|
posix-spawn (~> 0.3.6)
|
164
185
|
yajl-ruby (~> 1.2.0)
|
165
|
-
rack (1.
|
166
|
-
rack-test (0.6.
|
186
|
+
rack (1.6.0)
|
187
|
+
rack-test (0.6.3)
|
167
188
|
rack (>= 1.0)
|
168
|
-
railroady (1.
|
169
|
-
rails (4.1
|
170
|
-
actionmailer (= 4.1
|
171
|
-
actionpack (= 4.1
|
172
|
-
actionview (= 4.1
|
173
|
-
|
174
|
-
|
175
|
-
|
189
|
+
railroady (1.3.0)
|
190
|
+
rails (4.2.1)
|
191
|
+
actionmailer (= 4.2.1)
|
192
|
+
actionpack (= 4.2.1)
|
193
|
+
actionview (= 4.2.1)
|
194
|
+
activejob (= 4.2.1)
|
195
|
+
activemodel (= 4.2.1)
|
196
|
+
activerecord (= 4.2.1)
|
197
|
+
activesupport (= 4.2.1)
|
176
198
|
bundler (>= 1.3.0, < 2.0)
|
177
|
-
railties (= 4.1
|
178
|
-
sprockets-rails
|
199
|
+
railties (= 4.2.1)
|
200
|
+
sprockets-rails
|
201
|
+
rails-deprecated_sanitizer (1.0.3)
|
202
|
+
activesupport (>= 4.2.0.alpha)
|
203
|
+
rails-dom-testing (1.0.6)
|
204
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
205
|
+
nokogiri (~> 1.6.0)
|
206
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
207
|
+
rails-html-sanitizer (1.0.2)
|
208
|
+
loofah (~> 2.0)
|
179
209
|
rails3-jquery-autocomplete (1.0.15)
|
180
210
|
rails (>= 3.2)
|
181
|
-
railties (4.1
|
182
|
-
actionpack (= 4.1
|
183
|
-
activesupport (= 4.1
|
211
|
+
railties (4.2.1)
|
212
|
+
actionpack (= 4.2.1)
|
213
|
+
activesupport (= 4.2.1)
|
184
214
|
rake (>= 0.8.7)
|
185
215
|
thor (>= 0.18.1, < 2.0)
|
186
|
-
rake (10.
|
216
|
+
rake (10.4.2)
|
187
217
|
rb-fsevent (0.9.4)
|
188
218
|
rb-inotify (0.9.5)
|
189
219
|
ffi (>= 0.5.0)
|
190
|
-
redcarpet (3.
|
220
|
+
redcarpet (3.2.3)
|
191
221
|
rmagick (2.13.4)
|
192
222
|
rspec (2.14.1)
|
193
223
|
rspec-core (~> 2.14.0)
|
@@ -216,24 +246,25 @@ GEM
|
|
216
246
|
sprockets (>= 2.8, < 4.0)
|
217
247
|
sprockets-rails (>= 2.0, < 4.0)
|
218
248
|
tilt (~> 1.1)
|
249
|
+
shellany (0.0.1)
|
219
250
|
simple_form (3.1.0)
|
220
251
|
actionpack (~> 4.0)
|
221
252
|
activemodel (~> 4.0)
|
222
253
|
sitemap_generator (5.0.5)
|
223
254
|
builder
|
224
255
|
slop (3.6.0)
|
225
|
-
sprockets (3.0.
|
256
|
+
sprockets (3.0.2)
|
226
257
|
rack (~> 1.0)
|
227
258
|
sprockets-rails (2.2.4)
|
228
259
|
actionpack (>= 3.0)
|
229
260
|
activesupport (>= 3.0)
|
230
261
|
sprockets (>= 2.8, < 4.0)
|
231
|
-
sshkit (1.
|
232
|
-
colorize
|
262
|
+
sshkit (1.7.1)
|
263
|
+
colorize (>= 0.7.0)
|
233
264
|
net-scp (>= 1.1.2)
|
234
265
|
net-ssh (>= 2.8.0)
|
235
266
|
thor (0.19.1)
|
236
|
-
thread_safe (0.3.
|
267
|
+
thread_safe (0.3.5)
|
237
268
|
tilt (1.4.1)
|
238
269
|
timers (4.0.1)
|
239
270
|
hitimes
|
@@ -245,13 +276,12 @@ GEM
|
|
245
276
|
xpath (2.0.0)
|
246
277
|
nokogiri (~> 1.3)
|
247
278
|
yajl-ruby (1.2.1)
|
248
|
-
yard (0.8.7.
|
279
|
+
yard (0.8.7.6)
|
249
280
|
|
250
281
|
PLATFORMS
|
251
282
|
ruby
|
252
283
|
|
253
284
|
DEPENDENCIES
|
254
|
-
acts-as-taggable-on (~> 3.2.6)
|
255
285
|
capistrano
|
256
286
|
capybara
|
257
287
|
factory_girl_rails
|
data/Guardfile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
5
|
+
# rspec may be run, below are examples of the most common uses.
|
6
|
+
# * bundler: 'bundle exec rspec'
|
7
|
+
# * bundler binstubs: 'bin/rspec'
|
8
|
+
# * spring: 'bin/rsspec' (This will use spring if running and you have
|
9
|
+
# installed the spring binstubs per the docs)
|
10
|
+
# * zeus: 'zeus rspec' (requires the server to be started separetly)
|
11
|
+
# * 'just' rspec: 'rspec'
|
12
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
13
|
+
watch(%r{^spec/.+_spec\.rb$})
|
14
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
15
|
+
watch('spec/spec_helper.rb') { "spec" }
|
16
|
+
|
17
|
+
# Rails example
|
18
|
+
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
19
|
+
watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
|
20
|
+
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
21
|
+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
22
|
+
watch('config/routes.rb') { "spec/routing" }
|
23
|
+
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
24
|
+
watch('spec/rails_helper.rb') { "spec" }
|
25
|
+
|
26
|
+
# Capybara features specs
|
27
|
+
watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
|
28
|
+
|
29
|
+
# Turnip features and steps
|
30
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
31
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
32
|
+
end
|
33
|
+
|
data/README.rdoc
CHANGED
@@ -21,22 +21,21 @@ To get an idea of the appearance, see the screenshots below, visit the {Lines We
|
|
21
21
|
|
22
22
|
=== Features
|
23
23
|
|
24
|
-
|
24
|
+
|
25
|
+
- authentication system (w/ password reset, remember token, ...)
|
26
|
+
- custom hero graphics for posts
|
25
27
|
- upload default hero images that you want to use more frequently
|
26
28
|
- customizable generic titles & subtitles
|
27
29
|
- automatic teaser & scaled image for the article overview
|
28
30
|
- determine featured article
|
29
|
-
- six headline styles according to priority
|
30
|
-
-
|
31
|
-
-
|
32
|
-
- images, lists, links
|
31
|
+
- markdown implementation (six headline styles according to priority, italics & bold text, block quotes, images, lists, links,...)
|
32
|
+
- code highlighting
|
33
|
+
- formatting help
|
33
34
|
- tags for articles
|
34
35
|
- G+ link to social network discussion
|
35
36
|
- multiple authors and author information (for your small company or guest authors)
|
36
37
|
- add documents for download
|
37
|
-
- formatting help
|
38
38
|
- direct RSS reader access
|
39
|
-
- code highlighting
|
40
39
|
|
41
40
|
|
42
41
|
== Installation
|
@@ -66,12 +65,17 @@ Currently Lines does not offer a GUI for managing users, but you can use a rake
|
|
66
65
|
|
67
66
|
To update an existing user, you'll need the rails console with 'rails c'
|
68
67
|
# UPDATE an existing user
|
69
|
-
u = User.
|
68
|
+
u = User.find_by(email: 'your@email.com')
|
70
69
|
u.email = "new@mail.com"
|
71
70
|
u.password = "newsekret"
|
72
71
|
u.save
|
73
72
|
|
74
73
|
|
74
|
+
=== Copy/update stylesheets
|
75
|
+
|
76
|
+
Run <tt>rails g lines:copy_styles</tt> to install stylesheets from newer gem versions. Keep in mind to backup your overrides and other customizations before doing so!
|
77
|
+
|
78
|
+
|
75
79
|
=== Google Sitemap
|
76
80
|
|
77
81
|
The sitemap_generator gem (https://github.com/kjvarga/sitemap_generator) handles the creation of sitemaps for search engines. To update the sitemap on server, run:
|
@@ -2,11 +2,10 @@
|
|
2
2
|
max-width: $max-width;
|
3
3
|
font-family: $Merriweather;
|
4
4
|
line-height: 1.5em;
|
5
|
-
font-size: 1.125em;
|
6
5
|
color: #555;
|
7
6
|
|
8
7
|
|
9
|
-
h1, h2, h3, h4, h5 {
|
8
|
+
h1, h2, h3, h4, h5, h6 {
|
10
9
|
font-family: $SourceSansPro;
|
11
10
|
}
|
12
11
|
|
@@ -29,18 +28,18 @@
|
|
29
28
|
.article_header {
|
30
29
|
text-align: center;
|
31
30
|
h1 {
|
32
|
-
font-size:
|
33
|
-
font-weight:
|
34
|
-
line-height:
|
35
|
-
color: $
|
36
|
-
a { color: $
|
37
|
-
a:hover { color:$
|
31
|
+
font-size: 3.0em;
|
32
|
+
font-weight: 900;
|
33
|
+
line-height: 120%;
|
34
|
+
color: $black;
|
35
|
+
a { color: $black; }
|
36
|
+
a:hover { color:$red; }
|
38
37
|
}
|
39
38
|
h2 {
|
40
|
-
font-size: 1.
|
39
|
+
font-size: 1.5em;
|
41
40
|
font-weight: 400;
|
42
|
-
color:
|
43
|
-
line-height:
|
41
|
+
color: $grey;
|
42
|
+
line-height: 120%;
|
44
43
|
}
|
45
44
|
.author_name {
|
46
45
|
font-family: $MerriweatherSans;
|
@@ -51,7 +50,7 @@
|
|
51
50
|
|
52
51
|
|
53
52
|
.article_teaser {
|
54
|
-
font-size: 1.
|
53
|
+
font-size: 1.375em;
|
55
54
|
line-height: 1.8em;
|
56
55
|
font-weight: 400;
|
57
56
|
}
|
@@ -59,37 +58,39 @@
|
|
59
58
|
.article_content {
|
60
59
|
line-height: 1.8em;
|
61
60
|
|
62
|
-
h1, h2, h3, h4, h5, h6 { margin-top:
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
h2 { font-size: 1.5em; }
|
61
|
+
h1, h2, h3, h4, h5, h6 { margin-top: 1.8em; line-height: 120%; color: $black }
|
62
|
+
h2, h3, h4, h5 { font-weight: 700; }
|
63
|
+
h6 { font-weight: 600; }
|
67
64
|
|
65
|
+
h1 { font-size: 2.5em; }
|
66
|
+
h2 { font-size: 2.0em;}
|
68
67
|
h3 {
|
69
|
-
font-size: 1.
|
70
|
-
color: $
|
68
|
+
font-size: 1.5em;
|
69
|
+
color: $red;
|
71
70
|
margin-bottom: 1.0em;
|
72
|
-
a { color: $
|
73
|
-
a:hover { color: $
|
71
|
+
a { color: $red; }
|
72
|
+
a:hover { color: $grey; }
|
74
73
|
}
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
h5 { font-size: 1em; }
|
74
|
+
h4 { font-size: 1.25em; text-transform: uppercase; }
|
75
|
+
h5 { font-size: 1.25em; }
|
76
|
+
h6 { font-size: 1.25em; color: $grey; }
|
79
77
|
|
80
78
|
p {
|
79
|
+
font-size: 1.125em;
|
81
80
|
display: block;
|
82
|
-
a { color: $
|
83
|
-
a:hover { color: $
|
81
|
+
a { color: $red; }
|
82
|
+
a:hover { color: $grey; }
|
84
83
|
}
|
85
84
|
|
86
|
-
a {
|
85
|
+
a {
|
86
|
+
border-bottom: 1px solid $grey;
|
87
|
+
}
|
87
88
|
|
88
89
|
img { display: block; margin: 0 auto; }
|
89
90
|
|
90
91
|
br { display: block; margin: 0; padding: 0;}
|
91
92
|
|
92
|
-
ul, ol {
|
93
|
+
ul, ol { font-size: 1.125em; }
|
93
94
|
ul {
|
94
95
|
margin-left: 2em;
|
95
96
|
margin-right: 2em;
|
@@ -107,10 +108,33 @@
|
|
107
108
|
}
|
108
109
|
|
109
110
|
pre {
|
110
|
-
|
111
|
+
border-left: 2px solid $grey;
|
112
|
+
font-family: $Monospace;
|
113
|
+
font-weight: 400;
|
114
|
+
font-size: 1.25em;
|
115
|
+
line-height: 140%;
|
116
|
+
color: $grey;
|
117
|
+
padding: 20px 0;
|
118
|
+
}
|
119
|
+
|
120
|
+
table {
|
121
|
+
border: none;
|
122
|
+
text-align: left;
|
123
|
+
margin: 40px 0;
|
124
|
+
th, td {
|
125
|
+
border: 1px solid $grey;
|
126
|
+
font-family: $SourceSansPro;
|
127
|
+
line-height: 120%;
|
128
|
+
font-size: 1.25em;
|
129
|
+
color: $grey;
|
130
|
+
text-transform: uppercase;
|
131
|
+
padding: 20px;
|
132
|
+
}
|
133
|
+
th { font-weight: 700; }
|
134
|
+
td { font-weight: 400; }
|
111
135
|
}
|
112
136
|
|
113
|
-
.highlight pre { margin: auto 2em; }
|
137
|
+
.highlight pre { margin: auto 2em; font-size: 0.875em; }
|
114
138
|
}
|
115
139
|
|
116
140
|
.article_footer {
|