Commit Graph

1526 Commits

Author SHA1 Message Date
Skud
5d587af8b0 replaced cloudmade maps with mapbox 2014-06-02 18:57:03 -05:00
pozorvlak
879e94fe06 Merge pull request #351 from Skud/root-tuber-csv
Added roots/tubers to the CSV output for crops
2014-05-30 18:27:48 +01:00
Skud
1d71afdb2f Added roots/tubers to the CSV output
Also rearranged their order on the planting form to put it nearer bulbs
2014-05-30 11:05:33 -05:00
Joseph Caudle
73a0ae402c Merge pull request #350 from Skud/ruby-version
switch from .rvmrc to .ruby-version
2014-05-13 09:12:30 -04:00
Alex Bayley
932cbbea26 switch from .rvmrc to .ruby-version 2014-05-13 13:51:16 +10:00
Joseph Caudle
34f3c74013 Merge pull request #348 from pozorvlak/delete_rails_secret
Delete commented-out code.
2014-05-06 11:24:08 -04:00
pozorvlak
dcbfda02b9 Merge pull request #349 from maco/dev
Add 'root/tuber' to 'planted from:' list, for things like potatoes
2014-05-06 11:56:22 +01:00
Mackenzie Morgan
062add32dc Add 'root/tuber' to 'planted from:' list, for things like potatoes 2014-05-04 22:46:45 -04:00
Miles Gould
05a2c9080f Delete commented-out code. 2014-05-03 16:21:08 +01:00
pozorvlak
7da0d54487 Merge pull request #347 from Skud/devise-bug2
revert to devise 3.0.x due to confirmable misbehaviour
2014-05-02 10:28:21 +01:00
Skud
b489fda18e revert to devise 3.0.x due to confirmable misbehaviour
as documented here: https://github.com/plataformatec/devise/issues/3009

also update mailer to use letter_opener and also localhost:8080 since
we're mostly using unicorn at this point.
2014-05-01 22:48:52 +10:00
pozorvlak
f7411da5cf Merge pull request #345 from Skud/figaro
Figaro
2014-04-30 14:12:09 +01:00
Skud
53a4812571 oops, fixed incorrect syntax for env vars 2014-04-29 14:02:39 +10:00
Skud
9e5c5239a8 Need to put the site name in .travis.yml for tests to pass 2014-04-29 13:46:54 +10:00
Skud
ee27b3bd6a updated docs in application.yml.example 2014-04-29 13:28:44 +10:00
Skud
8384233f4d Moved RAILS_SECRET_TOKEN to figaro
This is the last of the stuff that was in credentials.sh so I'm removing
the deprecated credentials.example at this point.
2014-04-29 13:18:02 +10:00
Skud
72ce69ea8f moved flickr and twitter api config to figaro 2014-04-29 13:14:47 +10:00
Skud
b61bbc2170 moved mailchimp settings to figaro 2014-04-29 13:11:57 +10:00
Skud
bf6bb7f620 Moved mandrill config to figaro 2014-04-29 13:07:23 +10:00
Skud
bc36713449 Switched paypal settings to figaro 2014-04-29 13:01:04 +10:00
Skud
2cd5b1d2ed Changed one config setting (site name) over to figaro
Also massively simplified the original application.yml.example I
originally committed. Let's do this one step at a time.
2014-04-29 12:57:16 +10:00
Skud
923f943717 added application.yml to gitignore 2014-04-29 12:46:41 +10:00
Skud
13fcf9db4b added deprecation notice to credentials.example 2014-04-29 12:30:56 +10:00
Skud
bacbaf756e added application.yml.example 2014-04-29 12:29:28 +10:00
Skud
3f92f1fb79 Added figaro gem 2014-04-29 12:25:07 +10:00
Skud
1c34d428f2 Merge branch 'crop-search' of https://github.com/Skud/growstuff into Skud-crop-search
Conflicts:
	spec/models/crop_spec.rb
2014-04-29 11:16:20 +10:00
Joseph Caudle
b95647e353 Merge pull request #344 from Skud/ruby2
Ruby2
2014-04-28 13:47:08 -04:00
Skud
c21310c4e2 tweaking less versions as heroku is complaining about later ones 2014-04-28 13:11:43 +10:00
Skud
b86014b04f attempting to fix libv8 problem occurring on heroku 2014-04-28 13:02:23 +10:00
Skud
66a7dca5ab apparently leaflet.ie isn't a thing any more?
https://github.com/Leaflet/Leaflet/issues/2159
2014-04-28 12:54:07 +10:00
Skud
64d96f427f update travis.yml to use 2.1.1 2014-04-28 12:44:22 +10:00
Skud
74e1e07567 tweaking secret key settings to match what heroku already has 2014-04-28 12:42:23 +10:00
Skud
28c789f85c Update to ruby 2.1.1 and various gem tweaks to go with it 2014-04-28 12:33:43 +10:00
Skud
d33d0c507b Upgrade to ruby 2.0.0 2014-04-28 12:08:13 +10:00
Skud
14318ec235 Merge pull request #342 from pozorvlak/harvest_grams
Allow harvesting non-integer quantities.
2014-04-28 11:02:08 +10:00
Skud
813b0da6ef Merge pull request #343 from pozorvlak/seed-transaction
Wrap rake db:seed in a transaction.
2014-04-28 11:01:54 +10:00
Miles Gould
79f96f5ef4 Insist that crops created by db:seed are new.
This shaves 2s off the 22s runtime of `rake db:seed` on my machine.
2014-01-10 18:11:27 +00:00
Miles Gould
c50f345f1c Wrap rake db:seed in a transaction.
This gives about a 30% speedup on my machine (from 30s to 20s). See
http://stackoverflow.com/questions/1711631/how-do-i-improve-the-performance-of-sqlite
2014-01-10 14:10:27 +00:00
Miles Gould
4b88bf80f1 Test for spec=any in harvests/new. 2014-01-05 13:20:07 +00:00
Miles Gould
deb706607e Explain step="any" in harvest _form view. 2014-01-05 12:27:10 +00:00
Miles Gould
96675e2eca Allow harvesting non-integer quantities.
Some browsers (grrr Firefox for Android grrrr) assume "number" means
"integer" unless you specify `step="any"`. Perhaps the developers were
inspired by Kronecker?
http://mathoverflow.net/questions/34445/meaning-of-kroneckers-comment-to-lindemann

This was reported as a bug for non-integer weights; I've allowed
non-integer quantities in the other field, because some allowable units
(eg litres) are obviously divisible.
2014-01-03 21:03:01 +00:00
Skud
aa07928f1f Show crop thumbnails on search results page 2014-01-03 22:56:31 +11:00
Skud
47f182193f Added sexy search button to navbar search box 2014-01-03 22:48:06 +11:00
Skud
4ce071a0df Fixed a bug that was deleting crops from the database!
Best bug of the night. TIL: don't call delete on an activerecord
collection expecting it to act like an array. D'oh!
2014-01-03 22:47:18 +11:00
Skud
0a3ecdc5ad Added crop search controller and views 2014-01-03 22:29:44 +11:00
Skud
addd9cbddf Added search method to crops
For now it just does a naive SQL LIKE query. We can make this fancier in
future, if we want to.
2014-01-03 21:50:41 +11:00
Skud
30c1129cab Added route for crop search 2014-01-03 21:28:08 +11:00
Skud
9b278ed05e Added crop search form to header 2014-01-03 21:26:35 +11:00
Skud
8588d0f901 Added a bit more info about mailchimp lists
(not really part of this story, was just hanging around, sorry)
2014-01-03 21:25:54 +11:00
pozorvlak
06f1d9cb7e Merge pull request #338 from Skud/crop-mentions
Crop mentions
2014-01-02 03:16:40 -08:00