322 Commits
Author SHA1 Message Date
Brad Warren 0b0eca323c Remove extra newline 2016-08-16 15:36:41 -07:00
Seth Schoen cfc8ce9db4 Add function docstring 2016-08-10 17:01:34 -07:00
Peter Eckersley 9c168017ae That was not the correct magic 2016-08-08 18:17:02 -07:00
Peter Eckersley b5fa0fbad7 This is reportedly the correct magic 2016-08-08 18:08:11 -07:00
Peter Eckersley 712bd9ee6b Copy nginx options file into integration testing environment 2016-08-08 17:58:22 -07:00
Peter Eckersley 0504882e08 Always newline config edits
Even if they're transient
2016-08-08 17:50:20 -07:00
Seth Schoen e77a3ed7b9 Return individual key, not entire config dictionary! 2016-08-08 17:22:53 -07:00
Peter Eckersley f0c2ed3059 Lint, improve coverage, rm unused code 2016-08-08 15:45:49 -07:00
Peter Eckersley da7e429125 Work around horrible spaciness API usage bug 2016-08-08 15:14:06 -07:00
Peter Eckersley 7deb1f0ad6 Fix bug with UnpsacedList.insert to final position
- which only applied when the list actually contained spaces
2016-08-08 12:15:18 -07:00
Peter Eckersley 0ade03b7bf Merge remote-tracking branch 'origin/master' into no-conflicting-declarations3 2016-08-05 15:41:54 -07:00
Peter Eckersley 460f49778f Fix tests for our new spacey, commented world 2016-08-05 15:37:01 -07:00
Peter Eckersley cdc894601c Tolerate our own added newlines 2016-08-05 15:36:40 -07:00
Peter Eckersley 3a2df72bce Add newlines to the ends of blocks more correctly 2016-08-05 15:36:24 -07:00
Seth Schoen ae6ca4d4ca Minimal fake os_constant() for nginx constants.py 2016-08-05 15:13:04 -07:00
Peter Eckersley a8abde7d8d Merge remote-tracking branch 'origin/no-conflicting-declarations3' into no-conflicting-declarations3 2016-08-05 14:47:41 -07:00
Peter Eckersley 61b81b877d Merge remote-tracking branch 'origin/master' into no-conflicting-declarations3 2016-07-29 17:28:29 -07:00
Peter Eckersley 89758decbb Fix a test 2016-07-29 17:28:22 -07:00
Peter Eckersley 9e9c4dfcf5 fix test 2016-07-27 16:55:23 -07:00
Peter Eckersley d55580025f Extra newlines & spacing 2016-07-27 16:29:30 -07:00
Peter Eckersley 2feeb50109 Fix spacing of nginx redirect blocks 2016-07-27 16:00:43 -07:00
schoenandGitHub 94ea424638 Merge pull request #3287 from certbot/nginx-charset-map
Nginx charset_map and ${VARIABLE_SUBSTITUTION} parsing
2016-07-27 15:14:15 -07:00
Brad Warren 1060ea7c3d delint 2016-07-26 17:36:58 -07:00
Peter Eckersley e1f560dca3 Neaten 2016-07-26 17:23:24 -07:00
Brad Warren 4eb38fe167 Make spaced list handle an insert past the end of the list 2016-07-26 17:09:01 -07:00
Brad Warren f98470d4a0 Revert "UnspacedList._spaced_position: support the slice at the end fo the list"
This reverts commit 85d9ab4d5c.
2016-07-26 17:01:24 -07:00
Brad Warren 599ba1194f Merge branch 'master' into no-conflicting-declarations3 2016-07-26 16:47:25 -07:00
Ville Skyttä c7b89c334b Use logger.warning instead of deprecated warn 2016-07-22 09:54:28 +03:00
Ville Skyttä 86b287b338 Use assertEqual instead of deprecated assertEquals 2016-07-22 09:54:28 +03:00
Peter Eckersley 85d9ab4d5c UnspacedList._spaced_position: support the slice at the end fo the list
- Which is needed for .insert()ing at the end, for instance.
2016-07-21 13:39:13 -07:00
Peter Eckersley e5cb04ee7d A couple of fixes 2016-07-21 13:26:57 -07:00
Brad Warren 2ce5b195e5 check certbot 2016-07-18 18:23:54 -07:00
Brad Warren ed4fc9d2f7 call _comment_directive 2016-07-18 18:20:21 -07:00
Brad Warren 5dd8f70e56 better newline logic 2016-07-18 18:19:14 -07:00
Brad Warren bd21325fcd newline logic 2016-07-18 18:12:44 -07:00
Brad Warren aa33c0fa83 does it work? 2016-07-18 15:33:28 -07:00
Brad Warren 5d7ef49fac _add_directive cleanup 2016-07-18 15:25:09 -07:00
Peter Eckersley e3ab49a93b Rework "value" parser:
- Now handles any${VAR_SUBSTITUTION}inthemiddle/of/values
  - Don't use a single giant janky Regex; use small ones and have PyParsing
    combine them
2016-07-15 17:11:04 -07:00
Peter Eckersley b6966fc05e lint 2016-07-15 17:11:04 -07:00
Peter Eckersley 7183896ed7 Preserve spaces before comments at the beginning of a file 2016-07-15 17:11:04 -07:00
Brad Warren dbb2398270 Add _comment_spaced_block 2016-07-15 09:25:12 -07:00
Brad Warren 9c915b0ae4 Fix tests 2016-07-14 18:15:01 -07:00
Brad Warren 6b639679e8 Merge branch 'master' into no-conflicting-declarations 2016-07-14 17:26:39 -07:00
Peter Eckersley b7cf928852 Parse charset_map correctly
(though we still don't emit it correctly...)
2016-07-13 17:17:45 -07:00
Peter Eckersley 68500cd436 Don't allow dollar_var to swalllow characters like "{" 2016-07-09 15:13:09 -07:00
Peter Eckersley be8f0bc53b Do a better job of parsing map patterns 2016-06-30 15:29:38 -07:00
Peter Eckersley db8ddac4e2 lint & tweak 2016-06-30 15:13:35 -07:00
Peter Eckersley 8c3e443de9 First attempt at mitigating #3206 2016-06-30 15:07:28 -07:00
schoenandGitHub adeb39a7f2 Merge pull request #3218 from certbot/nginx-dirty-write-only
Only write nginx config files if they've been modified
2016-06-27 14:07:51 -07:00
schoenandGitHub eaf339632a Merge pull request #3184 from certbot/nginx-space-preservation
Nginx space preservation
2016-06-27 12:50:34 -07:00