Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 64e455b

Browse files
authored
Merge pull request #989 from RickCarlino/cleanup_crops
May 2019 Release
2 parents 5e5dd5e + e723bab commit 64e455b

File tree

9 files changed

+26
-24
lines changed

9 files changed

+26
-24
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.1
1+
2.6.3

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: ruby
22
# If you don't specify a version, Travis CI will use MRI 1.9.3 as the default.
33
# http://docs.travis-ci.com/user/languages/ruby/
44
rvm:
5-
- 2.6.1
5+
- 2.6.3
66
services:
77
- mongodb
88
- elasticsearch

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Image name: openfarm-webapp
33
#
44

5-
FROM ruby:2.6.1
5+
FROM ruby:2.6.3
66
MAINTAINER https://github.com/FarmBot/OpenFarm
77

88
ENV PHANTOM_JS_VERSION 1.9.8

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
22

3-
ruby "2.6.1"
3+
ruby "2.6.3"
44

55
gem "rails"
66
gem "bundler"

Gemfile.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ GEM
208208
moneta
209209
multi_json (>= 1.9.2)
210210
high_voltage (3.1.0)
211-
http-2 (0.10.1)
212211
httparty (0.16.4)
213212
mime-types (~> 3.0)
214213
multi_xml (>= 0.5.2)
@@ -588,7 +587,7 @@ DEPENDENCIES
588587
webmock
589588

590589
RUBY VERSION
591-
ruby 2.6.1p33
590+
ruby 2.6.3p62
592591

593592
BUNDLED WITH
594593
1.17.2

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010

1111
Contact rory@openfarm.cc to find out more, or open an issue to discuss your interest.
1212

13-
# Open Source community of contributors: how it works
13+
# Security Concerns
14+
15+
We take security seriously and value the input of independent researchers. Please email `security@farmbot.io` for issues that require immediate attention. Please follow [responsible disclosure](). **Do not use Slack or Github issues to discuss security vulnerabilities.**
16+
17+
# The Community of Contributors: How it Works
1418

1519
### Shortcuts
20+
1621
Already contributing to OpenFarm? You're welcome to [introduce yourself](https://docs.google.com/forms/d/e/1FAIpQLSfsKUABGJSO3gSfDUrdXymxP-GipdTLxbxsmR2FyxGdblN1-w/viewform)!
1722

1823
Want to dig head first into our todo list of Github tasks? [Make yourself at home](https://github.com/openfarmcc/OpenFarm/projects)!
@@ -24,23 +29,23 @@ Want to dig head first into our todo list of Github tasks? [Make yourself at hom
2429

2530
The main content are Growing Guides: creative, crowd-sourced, single-author, structured documents that include all of the necessary information for a person or machine to grow a plant, i.e.: seed spacing and depth, watering regimen, recommended soil composition and companion plants, sun/shade requirements, etc. In this Freebase platform, gardeners can find answers to questions like “How do I grow tomatoes?”
2631

27-
### Start by joining the discussion of existing Contributors
32+
### Start by Joining Existing Contributors
2833

2934
To start the discussion, get involved, and meet OpenFarm core community of contributors, we strongly recommend joining [our Slack room](http://slack.openfarm.cc/)! This is where you'll find the latest conversation about Openfarm and the most active contributors.
3035

3136
Check also the [FAQ](http://openfarm.cc/pages/faq) for some frequently asked questions about contributing (Angular, Issue Trackers, IRC Channels).
3237

3338
Check the [ongoing issues](https://github.com/openfarmcc/OpenFarm/projects) that need work on in the priority list.
3439

35-
### Look for something you want to work on
40+
### Look for Something You Want to Work On
3641

3742
For [front-end](https://github.com/openfarmcc/OpenFarm/projects/1) and [back-end](https://github.com/openfarmcc/OpenFarm/projects/3) code contributions, we aim at maintaining and prioritizing the Github issues through Github Projects, the Trello-like web-based project management board of Github: [OpenFarm Projects](https://github.com/openfarmcc/OpenFarm/projects).
3843

3944
Need to use OpenFarm Assets? [Here they are](https://drive.google.com/open?id=0B-wExYzQcnp3cGphOGZQS1lBRFk)!
4045

4146
We have few more languages missing for the website content to be translated: help us [translate the website](https://www.transifex.com/projects/p/openfarm/)!
4247

43-
### Who can contribute
48+
### Who Can Contribute
4449

4550
Everyone is welcome to bring value to the Open Source community of OpenFarm. Time is our most valuable assets here, so any minute of your time counts to make things happen! "Better done, than perfect!"
4651
We strive for diversity in our community and want to ensure we provide a safe and inclusive space for everyone by adopting a [Code of Conduct](https://openfarm.cc/pages/code_of_conduct?locale=en).
@@ -54,14 +59,6 @@ On the way we work together, we aim at:
5459
- prefering done, than perfect: breaking down tasks so that anyone can contribute few min of their time on a regular basis
5560
- taking shortcuts: what's the most obvious for a better usability? what's the shortest way to build a feature? What's the most valuable inputs for a feedback?
5661

57-
### User Flow
58-
59-
Update in progress
60-
61-
### Mockups
62-
63-
Update in progress
64-
6562
## Development
6663

6764
### Getting Started (The Easy Way)
@@ -221,7 +218,7 @@ Become a sponsor and get your logo on our README on Github with a link to your s
221218

222219
The MIT License (MIT)
223220

224-
Copyright (c) 2017 OpenFarm [(http://openfarm.cc/)](http://openfarm.cc/).
221+
Copyright (c) 2019 OpenFarm [(http://openfarm.cc/)](http://openfarm.cc/).
225222

226223
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
227224

app/mutations/crops/update_crop.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ class UpdateCrop < Mutations::Command
1313
array :common_names
1414
string :binomial_name
1515
string :taxon
16-
string :svg_icon
16+
# Temporarily disabled for security reasons (XSS attack vector)
17+
#
18+
# Fix this by:
19+
# * adding a CSP that disallows the use of arbitrary <script/> tags
20+
# * Removing all use of inline <script/> tags
21+
#
22+
# string :svg_icon
1723
string :description
1824
string :sun_requirements
1925
string :sowing_method

scripts/bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ echo "--- INSTALLING RVM ---"
1818

1919
gpg --keyserver hkp://pool.sks-keyservers.net:80 --recv-keys D39DC0E3
2020

21-
curl -sSL https://get.rvm.io | bash -s stable --quiet-curl --ruby=2.6.1
21+
curl -sSL https://get.rvm.io | bash -s stable --quiet-curl --ruby=2.6.3
2222

2323
echo "--- INSTALLING RUBY 2.6.1 ---"
2424

2525
source /home/vagrant/.rvm/scripts/rvm
2626

2727
rvm reload
28-
rvm --default use 2.6.1
28+
rvm --default use 2.6.3
2929

3030
echo "--- INSTALLING ELASTICSEARCH ---"
3131

spec/models/guide_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070

7171
it "sets the popularity score" do
7272
Guide.destroy_all
73-
FactoryBot.create(:guide)
74-
FactoryBot.create(:guide)
73+
FactoryBot.create(:guide, impressions_field: 10)
74+
FactoryBot.create(:guide, impressions_field: 12)
7575
guide = FactoryBot.create(:guide)
7676
expect(guide.popularity_score).not_to eq(0)
7777
end

0 commit comments

Comments
 (0)