Commit Graph

13 Commits

Author SHA1 Message Date
Cess
a671852964 Upgrade from Rails 3.2 to Rails4.2 (#578)
* Configurations update for rails 4.0

* ActiveSupport::Testing::Performance extracted to a gem

* ruby prof required as a dependency

* disable rubocop on bin folder

* http patch

* Comment out to allow testing

* no longer supports plugin loading

* lock to sprockets 2.12

* Active record patches

* remove deprecated test syntax

* fix failing tests

* change new super class

* replace right_aws with right_aws_api

right_aws is no longer maintained, was throwing an error

* Change test lib to minitest, add  minitest reporters

* lock to rails 4.2.11.1

* change rails version in install script

* remove deprecation warnings

* make app work

* active record find patches

* root_in_json include defaulted to false

* confirm option removed in link helper

* cookies serializer changed to hybrid

* Change render :text to :plain

render :text will be deprecated and poses a security risk

* console for dev web

* Check and fix interface functionality

* fix export functionality

* add protected attributes for the warpable model

* fix image upload

* Fix comments and images failing tests

* include mass assignment security in annotations

* render html for update images

* clear mail array before every test

* Fix codeclimate issues

* skip failing test

The test is failing because of different names in model(warpable) and
controller(images) skipping this for now until we decide if we want to
standardize the names

* replace unprotected redirects

* fix fa icons

* fix login functionality

* precompile images

* fix codeclimate issues

* Fix oauth icons
2019-06-13 16:58:59 -04:00
Álax de Carvalho Alves
713e387bdb Adding rubocop sample config (#547)
* Adding rubocop sample config

* Removing double_quotes enforcement

* Using same rubocop yaml as in Plots2

* Autofixing rubocop offenses

* Fixing conditions for CC

Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com>

* Adding Performance cop and fixing some offenses

* Fixing rubocop offenses and warnings

* Downgrading rubocop version since https://github.com/publiclab/mapknitter/pull/547#issuecomment-497359929
2019-06-01 11:30:56 -04:00
Cess
0a8813cc87 (WIP)Move some controller code to models (#519)
* Remove trailing white spaces and unnecessary blank lines

* Remove basic rubocop offenses

* add few maps  tests

* refactor maps controller

* fix 'line too long' rubocop offense
2019-04-15 20:42:28 -05:00
jywarren
d1f8103b10 basic read/write/edit for annotations 2.0 #163 2015-04-17 12:41:03 -04:00
Justin Manley
ef0cdbf7d5 Add support for polyline creation in mapknitter.js (MapKnitter.Annotations). 2014-09-15 19:04:14 -05:00
Justin Manley
990880f380 Ensure that textbox annotations in the database are updated on (1) textedit, (2) resize, (3) rotate, or (4) move. Updates to Leaflet.Illustrate and mapknitter-js. 2014-09-11 22:08:02 -05:00
Justin Manley
5607158b62 Flesh out AJAX delete request in mapknitter.js (MapKnitter.Resources#deleteResource) and add header-only response to the destroy action in AnnotationsController. 2014-09-09 23:21:18 -05:00
Justin Manley
2a3d7df34e Successfully update textbox annotation via AJAX in mapknitter.js. 2014-09-08 18:40:55 -05:00
Justin Manley
ebe8c0c785 Add listeners for annotation edit and delete in mapknitter.js (MapKnitter.Annotations). Fill out MapKnitter#update with jQuery PUT request. 2014-09-07 18:53:04 -05:00
Justin Manley
d906502cce Add call to serialize in Annotation model to automatically store coordinates and style objects in the db as strings. 2014-09-06 08:19:55 -05:00
Justin Manley
f15e6f9afd Refactor MapKnitter.Resources#_createResource in mapknitter.js and AnnotationsController#create to successfully create new annotations on well-formed AJAX request with content-type: application/json. 2014-09-04 11:32:44 -04:00
Justin Manley
32b06c3a5a Refactor mapknitter.js to provide a uniform interface for all resource-oriented AJAX requests. Write code to get and update annotations using new AJAX interface. 2014-09-03 23:02:39 -04:00
Justin Manley
28a21e9b5f Scaffold model and controllers and add db migrations for annotations. 2014-09-02 22:01:25 -04:00