Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 02583b4

Browse files
committed
Merge pull request #335 from SumOfUs/development
release
2 parents e5befbd + 0a9d995 commit 02583b4

File tree

210 files changed

+4682
-1492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+4682
-1492
lines changed

.ebextensions/02_container_commands.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ files:
77
#!/bin/bash
88
docker run -e RDS_DB_NAME=$RDS_DB_NAME -e RDS_USERNAME=$RDS_USERNAME -e RDS_PASSWORD=$RDS_PASSWORD \
99
-e RDS_HOSTNAME=$RDS_HOSTNAME -e RDS_PORT=5432 -e RAILS_ENV=production -e DEVISE_SECRET_KEY=$DEVISE_SECRET_KEY \
10+
-e REDIS_PORT_6379_TCP_ADDR=$REDIS_PORT_6379_TCP_ADDR \
11+
-e REDIS_PORT_6379_TCP_PORT=$REDIS_PORT_6379_TCP_PORT \
1012
aws_beanstalk/staging-app:latest rake db:migrate champaign:seed_liquid
1113
"/home/ec2-user/docker-housekeeping.sh":
1214
mode: "000755"

.ebextensions/03_papertrail.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ files:
2020
- /var/log/eb-docker/containers/eb-current-app/production.log
2121
- /var/log/eb-version-deployment.log
2222
- /var/log/eb-commandprocessor.log
23-
hostname: champaign
23+
hostname: $PAPERTRAIL_SYSTEM
2424
destination:
25-
host: logs3.papertrailapp.com
26-
port: 34848
25+
host: $PAPERTRAIL_HOST
26+
port: $PAPERTRAIL_PORT
2727
protocol: tls
2828

2929
"/etc/init.d/remote_syslog":

Gemfile

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ source 'https://rubygems.org'
22
ruby '2.3.0'
33

44
gem 'rails', '4.2.5'
5+
gem 'rails-observers'
6+
gem 'readthis'
7+
gem 'hiredis'
8+
gem "redis", ">= 3.2.0", :require => ["redis", "redis/connection/hiredis"]
59
gem 'pg'
610
gem 'sass-rails', '~> 5.0'
711
gem 'uglifier', '>= 1.3.0'
@@ -54,10 +58,6 @@ gem 'rmagick' # rmagick for image processing
5458
gem 'paperclip'
5559
gem 'action_parameter'
5660

57-
# We need to use render inside a model in order to compile HTML for display
58-
# in champaign-flute.
59-
gem 'render_anywhere', require: false
60-
6161
# AWS SDK for Ruby
6262
gem 'aws-sdk', '~> 2'
6363
gem 'aws-sdk-v1'
@@ -78,10 +78,17 @@ gem 'newrelic_rpm'
7878
gem 'puma', '~> 2.15.3'
7979
gem 'typhoeus'
8080

81+
# Gem for vanity urls
82+
gem 'friendly_id'
83+
8184
# The Config gem is used as a way to easily access configuration variables without calling directly
8285
# to the ENV.
8386
gem 'config'
8487

88+
# Metamagic is used to insert meta tags onto pages in a developer-friendly way. These tags can be used for
89+
# SEO and to improve page targeting for A/B testing using Optimizely.
90+
gem 'metamagic'
91+
8592
group :development, :test do
8693
gem 'byebug'
8794
gem 'web-console', '~> 2.0'
@@ -140,5 +147,14 @@ source 'https://rails-assets.org' do
140147

141148
# for js testing
142149
gem 'rails-assets-chai-jquery'
150+
151+
# A JavaScript visualization library for HTML and SVG.
152+
gem 'rails-assets-d3'
153+
154+
# Transition numbers with ease
155+
gem 'rails-assets-odometer'
156+
157+
# Parse, validate, manipulate, and display dates in javascript.
158+
gem 'rails-assets-moment'
143159
end
144160

Gemfile.lock

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ GEM
145145
config (1.0.0)
146146
activesupport (>= 3.0)
147147
deep_merge (~> 1.0.0)
148+
connection_pool (2.2.0)
148149
countries (1.0.0)
149150
currencies (~> 0.4.2)
150151
i18n_data (~> 0.7.0)
@@ -186,6 +187,8 @@ GEM
186187
formtastic (3.1.3)
187188
actionpack (>= 3.2.13)
188189
formtastic_i18n (0.4.1)
190+
friendly_id (5.1.0)
191+
activerecord (>= 4.0.0)
189192
geocoder (1.2.11)
190193
globalid (0.3.6)
191194
activesupport (>= 4.1.0)
@@ -209,6 +212,7 @@ GEM
209212
actionpack (>= 3.2, < 5)
210213
activesupport (>= 3.2, < 5)
211214
hashie (3.4.2)
215+
hiredis (0.6.1)
212216
httparty (0.13.7)
213217
json (~> 1.8)
214218
multi_xml (>= 0.5.2)
@@ -251,6 +255,8 @@ GEM
251255
rake
252256
mail (2.6.3)
253257
mime-types (>= 1.16, < 3)
258+
metamagic (3.1.7)
259+
rails (>= 3.0.0)
254260
method_source (0.8.2)
255261
mime-types (2.99)
256262
mimemagic (0.3.0)
@@ -321,8 +327,11 @@ GEM
321327
rails-assets-underscore (>= 1.5.0)
322328
rails-assets-braintree-web (2.15.4)
323329
rails-assets-chai-jquery (2.0.1)
330+
rails-assets-d3 (3.5.12)
324331
rails-assets-dropzone (4.0.1)
325332
rails-assets-mailcheck (1.1.1)
333+
rails-assets-moment (2.11.1)
334+
rails-assets-odometer (0.4.7)
326335
rails-assets-quill (0.20.0)
327336
rails-assets-speakingurl (6.0.0)
328337
rails-assets-underscore (1.8.3)
@@ -334,6 +343,8 @@ GEM
334343
rails-deprecated_sanitizer (>= 1.0.1)
335344
rails-html-sanitizer (1.0.2)
336345
loofah (~> 2.0)
346+
rails-observers (0.1.2)
347+
activemodel (~> 4.0)
337348
railties (4.2.5)
338349
actionpack (= 4.2.5)
339350
activesupport (= 4.2.5)
@@ -350,9 +361,11 @@ GEM
350361
rb-inotify (0.9.5)
351362
ffi (>= 0.5.0)
352363
rdoc (4.2.0)
364+
readthis (1.2.0)
365+
connection_pool (~> 2.1)
366+
redis (~> 3.0)
367+
redis (3.2.2)
353368
remotipart (1.2.1)
354-
render_anywhere (0.0.11)
355-
rails (>= 3.0.7)
356369
request_store (1.2.0)
357370
responders (2.1.0)
358371
railties (>= 4.2.0, < 5)
@@ -471,15 +484,18 @@ DEPENDENCIES
471484
factory_girl_rails
472485
faker
473486
font-awesome-sass
487+
friendly_id
474488
geocoder
475489
google_currency
476490
guard-rspec
491+
hiredis
477492
i18n-js (>= 3.0.0.rc12)
478493
jbuilder (~> 2.0)
479494
jquery-rails
480495
liquid
481496
logger
482497
magic_lamp
498+
metamagic
483499
money
484500
newrelic_rpm
485501
omniauth-google-oauth2
@@ -492,13 +508,18 @@ DEPENDENCIES
492508
rails-assets-backbone!
493509
rails-assets-braintree-web!
494510
rails-assets-chai-jquery!
511+
rails-assets-d3!
495512
rails-assets-dropzone!
496513
rails-assets-mailcheck!
514+
rails-assets-moment!
515+
rails-assets-odometer!
497516
rails-assets-quill!
498517
rails-assets-speakingurl!
499518
rails-assets-underscore!
519+
rails-observers
520+
readthis
521+
redis (>= 3.2.0)
500522
remotipart (~> 1.2)
501-
render_anywhere
502523
rmagick
503524
rspec-rails
504525
sass-rails (~> 5.0)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ Champaign is a digital campaigning platform built by SumOfUs. It is under develo
3939
8. Run the tests
4040
* `docker-compose run web rspec spec`
4141

42+
## QA
4243

44+
Cross browser QA of member-facing pages has been done with the whiz-bang tech from [Browserstack](https://www.browserstack.com).
854 KB
Loading
317 KB
Loading
817 KB
Loading
775 KB
Loading
92 KB
Loading

0 commit comments

Comments
 (0)