Michael Kohl
6dfabd578f
Rename SiteConfig to Settings::General ( #13573 )
...
* Rename SiteConfig
* More renaming
* Update spec
* Update mandatory settings mapping
* More renaming
* e2e test fixes
* You have a rename, and you have a rename
* Spec fix
* More changes
* Temporarily disable specs
* After-merge update
* Undo rename for migration
* undo rename of DUS
* Fix DUS
* Fix merge problem
* Remove redundant DUS
* Fix specs
* Remove unused code
* Change wrong class name
* More cleanup
* Re-add missing values to constant
* Fix constant
* Fix spec
* Remove obsolete fields
* Add accidentally removed field
* Update spec
* Move methods from Settings::General to ForemInstance
* Remove unneeded model
* Change mentions of 'site config'
2021-05-21 14:45:37 +02:00
dependabot-preview[bot]
2a31681e87
Bump emoji_regex from 3.0.0 to 3.2.0 ( #11210 )
...
* Bump emoji_regex from 3.0.0 to 3.2.0
Bumps [emoji_regex](https://github.com/ticky/ruby-emoji-regex ) from 3.0.0 to 3.2.0.
- [Release notes](https://github.com/ticky/ruby-emoji-regex/releases )
- [Commits](https://github.com/ticky/ruby-emoji-regex/compare/v3.0.0...v3.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Bump emoji_regex from 3.0.0 to 3.2.0 (Update vendor/cache)
* Use new ::RGIEmoji instead of deprecated ::Regex
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: rhymes <rhymes@hey.com>
2020-11-02 11:44:29 +01:00
Ben Halpern
3a469a99e2
[deploy] Enable admin-configured app_domain ( #10206 )
...
* Move app_domain from env var to siteconfig *within app area*
* Fix SiteConfig
* Don't change URL.domain yet
* Not use in fastly cache purge yet
* Session store magoo
* Revert domain issue
* Add SetCookie middleware
* Temporarily remove cookie middleware and release tasks
* Re-enable SetCookieDomain
* Add some more comments, get it ready for testing
* Remove host from url options and temporarily show errors
* Allow forwarded host to be cookie
* Fix typo
* Change invalidAuthenticityToken
* Properly set app domain
* Proper Fastly cache
* Remove config.app_domain
* Remove config.app_domain
* Explicitely set remember_user_token
* More play with cookies
* Fiddle with remember_user_token
* Add remember_user_token changes
* Monkeypatch devise
* Sessions controller
* Include rememberable
* Include rememberable
* Proper cookie monkeypatch
* Proper cookie monkeypatch
* Proper cookie monkeypatch
* Remove extra cookie code
* User sign in tweak
* Close the loop
* Experiment with carrierwave public_url
* Finalize carrierwave monkeypatch
* Remove async controller specs
* Change some tests
* Update domain test
* Remove temporary production.rb change
* modify cookie logic
* Remove unneeded changes
* Remove unneeded changes
* Explicitely pass host
* Fix linting
* Fix social image test
* Add some cookie tests
* Modify article url
* Fix canonical urls
* Fix typo
* Remove sessions controller
* Remove devise monkeypatch
* Add monkeypatch
* Remove elsif
* Update spec/helpers/application_helper_spec.rb
Co-authored-by: Michael Kohl <citizen428@dev.to>
* Adjust remember_cookie_sync
* Remember user token experimentation
* Fiddle with devise
* Properly configure devise
* Fix typo
* Fix formatting issue
* Add comment about middleware
* Fix typo
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
* Remove commented-out code
Co-authored-by: Michael Kohl <citizen428@dev.to>
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-09-11 09:38:34 -04:00
rhymes
88f0a0e58a
Rubocop: re-activate Style/RegexpLiteral and fix violations ( #9418 )
...
* Rubocop: re-activate Style/RegexpLiteral and fix violations
* Add 10 seconds default timeout to DB statements
2020-07-22 16:28:27 +02:00
rhymes
4ab6d02d2f
Routine rubocop fixes ( #8346 )
...
* rubocop -a
* rubocop --auto-gen-config
2020-06-08 17:37:25 +02:00
rhymes
34848a4209
Upgrade Rubocop to 0.81 ( #7219 )
...
* Upgrade rubocop to 0.81.0
* Reordered rubocop file and updated it
* Regenerate todo
* Correct some things
* Fix specs
2020-04-11 10:10:04 +02:00
rhymes
2b31a9b9ee
Allow different casings to be specified for syntax highlighting ( #6354 )
2020-02-28 12:36:27 -05:00
Alessandro Diogo Brückheimer
c8b6c9c095
Prepend non-url paths with https://dev.to ( #4306 )
2019-10-11 12:34:42 -04:00
Michel
7d530cf002
Fix invalid anchored links due to "//" prefix. ( #4340 )
2019-10-09 13:57:58 -04:00
Yash Dave
328d27ff41
Fix links without http(s) ( #4155 ) [ci skip]
2019-10-07 09:52:07 -04:00
rhymes
6553f08d94
Rubocop cleanups ( #1415 )
...
* Update rubocop-todo.yml with new violations
* Fix Layout/EmptyLine* rules
* Fix Layout/Indentation* rules
* Fix remaining Layout/* rules
* Fix Lint/DuplicateMethods by removing unused accessor
* Fix Lint/IneffectiveAccessModifier
* Fix Lint/MissingCopEnableDirective
* Re-run rubocop auto gen config
* Fix Layout/RescueEnsureAlignment
* Fix Naming/* rules
* Fix some RSpec/* rules
* Fix typos
* Fix RSpec/LetBeforeExamples
* Series should only be an attr_writer, not an attr_accessor
* Fix RSpec/InstanceVariable
* Fix RSpec/InstanceVariable
* Fix RSpec/RepeatedDescription and RSpec/RepeatedExample
* Fix Style/ClassAndModuleChildren
* Fix Style/ConditionalAssignment
* Fix some Style/* rules
* Trigger Travis CI build because failing tests are not failing locally
* Revert "Fix Style/ClassAndModuleChildren"
This reverts commit 1686801d8a1516ba1894f79e24401a20dea65f99.
2019-01-02 11:20:02 -05:00
Jason Yu
3af90f1d0e
remove punctuations in header anchor links ( #1219 )
...
* remove punctuations in header anchor links
* remove punctuations first
* added test case for punctuation headings
2018-11-29 15:16:09 -05:00
Ben Halpern
031a3bd751
Fix parsing error in header tags. ( #1180 )
...
* Strip HTML from anchor link in header names
* Skip one test which is not passing for unknown reasons
2018-11-22 12:48:46 -05:00
Gabriel Lebec
1e2749be24
feat(markdown): add ids to headers ( #713 )
...
* feat(markdown): add anchors for headers
* Fix markdown anchors impl and spec
* Fixes tests for markdown anchors
* Use name for anchors instead of IDs
* Fix approval file
* Remove emojis in links and hyphenate only spaces
2018-11-20 18:17:07 -05:00
Yechiel Kalmenson
37e0059ade
open markdown links in new tab (take 2) ( #512 )
...
* open links in chats in new tabs
* fixed target_blank vulnerability
* add test to make sur links are being generated with target _blank
* add test for target blank vulnerability
* add rel and target to the whitelisted attributes
* add the link attributes to HTMLRouge#link
2018-07-11 15:04:03 -04:00
Mac Siri
8d36c74d3c
Move HTMLRouge into lib ( #403 )
...
* Move HTMLRouge into lib
* Fix lint
2018-06-12 16:53:58 -04:00