Skip to content

Commit

Permalink
Process and store images using Cloudinary
Browse files Browse the repository at this point in the history
  • Loading branch information
lujanfernaud committed May 9, 2018
1 parent a6d6438 commit eab5a7f
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 191 deletions.
7 changes: 3 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ gem 'bootstrap-will_paginate', '1.0.0'
gem 'will_paginate', '~> 3.1', '>= 3.1.6'
gem 'breadcrumbs_on_rails', '~> 3.0', '>= 3.0.1'

# Upload and resize images.
gem 'carrierwave', '1.1.0'
gem 'mini_magick', '4.7.0'
gem 'fog', '1.40.0'
# Upload, process and store images.
gem 'carrierwave', '~> 1.2', '>= 1.2.2'
gem 'cloudinary', '~> 1.9', '>= 1.9.1'

# Forms country select.
gem 'country_select', '~> 3.1', '>= 3.1.1'
Expand Down
173 changes: 19 additions & 154 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.6)
actioncable (5.1.6)
actionpack (= 5.1.6)
nio4r (~> 2.0)
Expand Down Expand Up @@ -46,6 +45,7 @@ GEM
ast (2.4.0)
autoprefixer-rails (8.4.1)
execjs
aws_cf_signer (0.1.3)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
Expand Down Expand Up @@ -77,11 +77,14 @@ GEM
capybara-webkit (1.15.0)
capybara (>= 2.3, < 4.0)
json
carrierwave (1.1.0)
carrierwave (1.2.2)
activemodel (>= 4.0.0)
activesupport (>= 4.0.0)
mime-types (>= 1.16)
choice (0.2.0)
cloudinary (1.9.1)
aws_cf_signer
rest-client
coderay (1.1.2)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
Expand Down Expand Up @@ -113,157 +116,20 @@ GEM
responders
warden (~> 1.2.3)
docile (1.3.0)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
equalizer (0.0.11)
erubi (1.7.1)
eventmachine (1.2.5)
excon (0.62.0)
execjs (2.7.0)
faker (1.8.7)
i18n (>= 0.7)
ffi (1.9.23)
figaro (1.1.1)
thor (~> 0.14)
fission (0.5.0)
CFPropertyList (~> 2.2)
fog (1.40.0)
fog-aliyun (>= 0.1.0)
fog-atmos
fog-aws (>= 0.6.0)
fog-brightbox (~> 0.4)
fog-cloudatcost (~> 0.1.0)
fog-core (~> 1.43)
fog-digitalocean (>= 0.3.0)
fog-dnsimple (~> 1.0)
fog-dynect (~> 0.0.2)
fog-ecloud (~> 0.1)
fog-google (<= 0.1.0)
fog-json
fog-local
fog-openstack
fog-powerdns (>= 0.1.1)
fog-profitbricks
fog-rackspace
fog-radosgw (>= 0.0.2)
fog-riakcs
fog-sakuracloud (>= 0.0.4)
fog-serverlove
fog-softlayer
fog-storm_on_demand
fog-terremark
fog-vmfusion
fog-voxel
fog-vsphere (>= 0.4.0)
fog-xenserver
fog-xml (~> 0.1.1)
ipaddress (~> 0.5)
json (>= 1.8, < 2.0)
fog-aliyun (0.2.1)
fog-core (~> 1.27)
fog-json (~> 1.0)
ipaddress (~> 0.8)
xml-simple (~> 1.1)
fog-atmos (0.1.0)
fog-core
fog-xml
fog-aws (2.0.1)
fog-core (~> 1.38)
fog-json (~> 1.0)
fog-xml (~> 0.1)
ipaddress (~> 0.8)
fog-brightbox (0.14.0)
fog-core (~> 1.22)
fog-json
inflecto (~> 0.0.2)
fog-cloudatcost (0.1.2)
fog-core (~> 1.36)
fog-json (~> 1.0)
fog-xml (~> 0.1)
ipaddress (~> 0.8)
fog-core (1.45.0)
builder
excon (~> 0.58)
formatador (~> 0.2)
fog-digitalocean (0.3.0)
fog-core (~> 1.42)
fog-json (>= 1.0)
fog-xml (>= 0.1)
ipaddress (>= 0.5)
fog-dnsimple (1.0.0)
fog-core (~> 1.38)
fog-json (~> 1.0)
fog-dynect (0.0.3)
fog-core
fog-json
fog-xml
fog-ecloud (0.3.0)
fog-core
fog-xml
fog-google (0.1.0)
fog-core
fog-json
fog-xml
fog-json (1.0.2)
fog-core (~> 1.0)
multi_json (~> 1.10)
fog-local (0.5.0)
fog-core (>= 1.27, < 3.0)
fog-openstack (0.1.25)
fog-core (~> 1.40)
fog-json (>= 1.0)
ipaddress (>= 0.8)
fog-powerdns (0.1.1)
fog-core (~> 1.27)
fog-json (~> 1.0)
fog-xml (~> 0.1)
fog-profitbricks (4.1.1)
fog-core (~> 1.42)
fog-json (~> 1.0)
fog-rackspace (0.1.5)
fog-core (>= 1.35)
fog-json (>= 1.0)
fog-xml (>= 0.1)
ipaddress (>= 0.8)
fog-radosgw (0.0.5)
fog-core (>= 1.21.0)
fog-json
fog-xml (>= 0.0.1)
fog-riakcs (0.1.0)
fog-core
fog-json
fog-xml
fog-sakuracloud (1.7.5)
fog-core
fog-json
fog-serverlove (0.1.2)
fog-core
fog-json
fog-softlayer (1.1.4)
fog-core
fog-json
fog-storm_on_demand (0.1.1)
fog-core
fog-json
fog-terremark (0.1.0)
fog-core
fog-xml
fog-vmfusion (0.1.0)
fission
fog-core
fog-voxel (0.1.0)
fog-core
fog-xml
fog-vsphere (2.1.1)
fog-core
rbvmomi (~> 1.9)
fog-xenserver (0.3.0)
fog-core
fog-xml
fog-xml (0.1.3)
fog-core
nokogiri (>= 1.5.11, < 2.0.0)
formatador (0.2.5)
geocoder (1.4.7)
globalid (0.4.1)
Expand All @@ -288,16 +154,16 @@ GEM
guard-compat (~> 1.2)
minitest (>= 3.0)
hashdiff (0.3.7)
http-cookie (1.0.3)
domain_name (~> 0.5)
http_parser.rb (0.6.0)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
i18n_data (0.8.0)
ice_nine (0.11.2)
inflecto (0.0.2)
inline_svg (1.3.1)
activesupport (>= 3.0)
nokogiri (>= 1.6)
ipaddress (0.8.3)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
Expand All @@ -322,7 +188,6 @@ GEM
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_magick (4.7.0)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.11.3)
Expand All @@ -335,6 +200,7 @@ GEM
i18n (>= 0.6.4, < 1.1)
multi_json (1.13.1)
nenv (0.3.0)
netrc (0.11.0)
nio4r (2.3.0)
nokogiri (1.8.2)
mini_portile2 (~> 2.3.0)
Expand Down Expand Up @@ -404,14 +270,13 @@ GEM
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rbvmomi (1.12.0)
builder (~> 3.0)
json (>= 1.8)
nokogiri (~> 1.5)
trollop (~> 2.1)
responders (2.4.0)
actionpack (>= 4.2.0, < 5.3)
railties (>= 4.2.0, < 5.3)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rolify (5.2.0)
rubocop (0.55.0)
parallel (~> 1.10)
Expand Down Expand Up @@ -467,14 +332,16 @@ GEM
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
trollop (2.1.2)
turbolinks (5.1.1)
turbolinks-source (~> 5.1)
turbolinks-source (5.1.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uglifier (4.1.10)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.5)
unicode-display_width (1.3.2)
unicode_utils (1.4.0)
uniform_notifier (1.11.0)
Expand All @@ -498,7 +365,6 @@ GEM
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
will_paginate (3.1.6)
xml-simple (1.1.5)
xpath (3.0.0)
nokogiri (~> 1.8)

Expand All @@ -514,13 +380,13 @@ DEPENDENCIES
capybara (~> 2.14)
capybara-screenshot (~> 1.0, >= 1.0.18)
capybara-webkit (~> 1.15)
carrierwave (= 1.1.0)
carrierwave (~> 1.2, >= 1.2.2)
cloudinary (~> 1.9, >= 1.9.1)
coffee-rails (~> 4.2)
country_select (~> 3.1, >= 3.1.1)
devise (~> 4.4, >= 4.4.3)
faker (~> 1.8, >= 1.8.7)
figaro (~> 1.1, >= 1.1.1)
fog (= 1.40.0)
geocoder (~> 1.4, >= 1.4.5)
gravatar_image_tag (~> 1.2)
guard (= 2.14.0)
Expand All @@ -530,7 +396,6 @@ DEPENDENCIES
jbuilder (~> 2.5)
jquery-rails (= 4.3.1)
listen (>= 3.0.5, < 3.2)
mini_magick (= 4.7.0)
minitest-reporters (= 1.1.14)
pg (~> 0.18)
pg_search (~> 2.1, >= 2.1.2)
Expand Down
Loading

0 comments on commit eab5a7f

Please sign in to comment.