Tom Hughes
282ff4936c
Fix rubocop warnings
2016-10-31 21:24:10 +00:00
Tom Hughes
96b1bff9fb
Update bundle
2016-10-31 21:18:28 +00:00
Tom Hughes
fc0aebc1a8
Merge remote-tracking branch 'openstreetmap/pull/1352'
2016-10-30 16:59:20 +00:00
Tom Hughes
ce6368119f
Merge remote-tracking branch 'openstreetmap/pull/1351'
2016-10-30 16:57:35 +00:00
Andy Allan
596494a590
Replace changeset_tags fixtures with a factory.
2016-10-30 12:45:02 +01:00
Andy Allan
4eeea7e705
Remove the changesets_subscribers fixture.
...
Since there is no ChangesetsSubscribers model, we can't use a factory.
Instead we create the associations explicitly when needed.
2016-10-30 12:23:23 +01:00
Tom Hughes
48eb8eb369
Merge remote-tracking branch 'openstreetmap/pull/1349'
2016-10-29 18:08:31 +01:00
Tom Hughes
d478f94239
Merge remote-tracking branch 'openstreetmap/pull/1348'
2016-10-29 16:26:16 +01:00
Andy Allan
4a9aa0a12e
Avoid double-escaping diary entry titles
...
The XML builder takes care of the escaping, and adding h() lead to
double-escaped titles in the RSS feed.
2016-10-29 17:17:56 +02:00
Andy Allan
968447595b
Use dc:creator for note RSS feeds
...
The author tag is reserved for email addresses
2016-10-29 17:14:56 +02:00
Andy Allan
5164c71646
Use dc:creator for diary entry RSS
...
The author tag is reserved for email addresses, and we already use
dc:creator in other feeds.
2016-10-29 17:10:24 +02:00
Andy Allan
ee2a941d3e
Use a full url for the image in the diary rss feed.
...
Picked up by a validator, see
https://validator.w3.org/feed/docs/error/InvalidFullLink.html
2016-10-29 17:08:21 +02:00
Andy Allan
27ee98cf4c
Make the image title match the feed title in diary rss
...
This is recommended at https://validator.w3.org/feed/docs/warning/ImageTitleDoesntMatch.html
2016-10-29 17:05:30 +02:00
Tom Hughes
f7b4793c50
Require user_roles fixtures
2016-10-27 12:15:28 +01:00
Tom Hughes
28864d8fec
Update mailmap
2016-10-27 11:57:32 +01:00
Tom Hughes
f6695c9079
Merge remote-tracking branch 'openstreetmap/pull/1344'
2016-10-27 11:51:36 +01:00
Mormegil
caac9a9403
Ensure IE/Edge compatibility for routing drag&drop
...
Use the DataTransfer interface properly, using the `text` format, as
IE/Edge does not support much more. We can JSON-serialize anything
there, even though right now, only a single string would be enough.
Also, IE does not support .setDragImage, so check for support prior
to calling.
Fixes #1343
2016-10-27 12:34:07 +02:00
Tom Hughes
15395bb944
Reset database before running tests
2016-10-26 21:34:38 +01:00
Tom Hughes
2df3605142
Merge remote-tracking branch 'openstreetmap/pull/1339'
2016-10-26 15:54:42 +01:00
Tom Hughes
8920a56133
Merge remote-tracking branch 'openstreetmap/pull/1338'
2016-10-26 15:48:56 +01:00
Tom Hughes
3371ca37f1
Merge remote-tracking branch 'openstreetmap/pull/1337'
2016-10-26 15:41:30 +01:00
Tom Hughes
20aa4ba31b
Merge remote-tracking branch 'openstreetmap/pull/1336'
2016-10-26 15:35:18 +01:00
Tom Hughes
69fa4e9940
Merge remote-tracking branch 'openstreetmap/pull/1335'
2016-10-26 15:34:49 +01:00
Andy Allan
c365e2b28a
Convert the languages fixtures to a factory
...
For some tests, the existance of an 'en' language is assumed by
the database structure (not null default 'en'::character varying) so
this can be created in a setup block.
2016-10-26 13:14:52 +01:00
Andy Allan
a280f72bee
Replace messages fixtures with a factory.
2016-10-26 11:41:18 +01:00
Andy Allan
f464e2a6e9
Suppress XML parsing errors.
...
This technique was already used in app/models/changeset.rb
This suppresses the error messages when parsing invalid XML, but
the exceptions are still raised, as tested in test_from_xml_double_lat
in test/models/node_test.rb
2016-10-26 10:35:03 +01:00
Andy Allan
72ae20ea3c
Replace user_preferences fixture with a factory.
2016-10-26 10:07:49 +01:00
Andy Allan
2e9baaa50a
Replace hardcoded user id with a reference to the relevant user fixture
...
This makes it easier to figure out what the 1 refers to.
2016-10-26 09:57:31 +01:00
Andy Allan
162f04d789
Convert ACL fixture to a factory, and add some tests
...
The fixture was unused, so I took the opportunity to put in a couple
of basic model tests.
2016-10-26 09:15:56 +01:00
Tom Hughes
7725cd59b4
Keep layer labels on top of the tiles in the layer switcher
...
Fixes #1334
2016-10-21 15:23:37 +01:00
Tom Hughes
3548894696
Update bundle
2016-10-21 09:19:12 +01:00
Tom Hughes
e17b89e89f
Fix rubocop warnings
2016-10-20 22:35:51 +01:00
Tom Hughes
9d106676b8
Replace quova with support for local Maxmind GeoIP lookups
2016-10-20 21:40:03 +01:00
Tom Hughes
99ccffe4a9
Merge remote-tracking branch 'openstreetmap/pull/1332'
2016-10-19 12:22:42 +01:00
Tom Hughes
6a9b0f05b2
Load user and language fixtures for diary model tests
2016-10-19 12:17:20 +01:00
Tom Hughes
c83f15821d
Update schema
2016-10-19 11:58:08 +01:00
Tom Hughes
4627b79885
Merge remote-tracking branch 'openstreetmap/pull/1331'
2016-10-19 11:52:17 +01:00
Tom Hughes
d058f3ef28
Merge remote-tracking branch 'openstreetmap/pull/1330'
2016-10-19 11:52:14 +01:00
Andy Allan
43066124bf
Remove unused countries fixture.
2016-10-19 11:47:22 +01:00
Andy Allan
feb3b03227
Use model relations when creating objects from factories
...
Rather than passing around record ids explicitly, we can use the
model relations and pass around the models. This makes reading the
tests slightly simpler to read.
2016-10-19 11:32:08 +01:00
Andy Allan
23c3168c55
Replace user_blocks fixture with a factory.
...
Traits are used here to make the tests easier to read, and the
different traits can be combined where necessary.
2016-10-19 10:57:40 +01:00
Karim Osman
23c79ba2a3
Replace WordPress logo with correct version
...
See https://wordpress.org/about/logos/ for official source.
Closes #1329
2016-10-18 19:02:51 +01:00
Niklas Laxström
5ae1951747
Localisation updates from https://translatewiki.net .
2016-10-17 20:54:17 +02:00
Marco Antonio Frias Butrón
1f9857e76c
Patch classes on the locate control
...
This patches the map on the user page in the same way as the main map.
Closes #1328
2016-10-17 11:00:01 +01:00
Marco Antonio Frias Butrón
1ba7eccae6
Add cursor style on close icon
...
Without this the close icon for the routing panel doesn't change the
pointer as it isn't a link and isn't in a close-wrap container.
Closes #1327
2016-10-17 10:55:47 +01:00
Niklas Laxström
a9520500f6
Localisation updates from https://translatewiki.net .
2016-10-13 08:34:09 +02:00
Tom Hughes
291f43c7e2
Fix rubocop warning
2016-10-12 19:28:10 +01:00
Tom Hughes
e96f1e736a
Merge remote-tracking branch 'openstreetmap/pull/1309'
2016-10-12 19:11:07 +01:00
Tom Hughes
02eeefbe0f
Merge remote-tracking branch 'openstreetmap/pull/1322'
2016-10-12 19:07:55 +01:00
Mikel Maron
be40536440
merge upstream/master and resolve conflicts from https://github.com/openstreetmap/openstreetmap-website/pull/1318
2016-10-12 10:52:05 -04:00