diff --git a/Gemfile b/Gemfile index b7a65ad86..69d07b77e 100644 --- a/Gemfile +++ b/Gemfile @@ -62,7 +62,7 @@ gem "kaminari", "~> 1.2" # A Scope & Engine based, clean, powerful, customizable gem "katex", "~> 0.6.0" # This rubygem enables you to render TeX math to HTML using KaTeX. It uses ExecJS under the hood gem "liquid", "~> 4.0" # A secure, non-evaling end user template engine with aesthetic markup gem "mini_racer", "~> 0.2.14" # Minimal embedded v8 -gem "miro", "~> 0.4" # Extract colors from image +# gem "miro", "~> 0.4" # Extract colors from image gem "nokogiri", "~> 1.10" # HTML, XML, SAX, and Reader parser gem "octokit", "~> 4.16" # Simple wrapper for the GitHub API gem "oj", "~> 3.10" # JSON parser and object serializer diff --git a/Gemfile.lock b/Gemfile.lock index ef2d90591..b2845092a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -194,15 +194,11 @@ GEM activesupport (>= 3) chartkick (3.3.1) childprocess (3.0.0) - chunky_png (1.3.11) cld (0.8.0) ffi - climate_control (0.2.0) cloudinary (1.14.0) aws_cf_signer rest-client - cocaine (0.6.0) - terrapin (= 0.6.0) coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) @@ -213,7 +209,6 @@ GEM coffee-script-source execjs coffee-script-source (1.12.2) - color (1.8) concurrent-ruby (1.1.6) connection_pool (2.2.2) counter_culture (2.5.1) @@ -500,11 +495,6 @@ GEM mini_racer (0.2.14) libv8 (> 7.3) minitest (5.14.1) - miro (0.4.0) - chunky_png - cocaine - color - oily_png momentjs-rails (2.20.1) railties (>= 3.1) msgpack (1.3.3) @@ -531,8 +521,6 @@ GEM octokit (4.18.0) faraday (>= 0.9) sawyer (~> 0.8.0, >= 0.5.3) - oily_png (1.2.1) - chunky_png (~> 1.3.7) oj (3.10.6) omniauth (1.9.1) hashie (>= 3.4.6) @@ -799,8 +787,6 @@ GEM stripe (> 5, < 6) strong_migrations (0.6.8) activerecord (>= 5) - terrapin (0.6.0) - climate_control (>= 0.0.3, < 1.0) test-prof (0.11.3) thor (0.20.3) thread_safe (0.3.6) @@ -958,7 +944,6 @@ DEPENDENCIES listen (~> 3.2) memory_profiler (~> 0.9) mini_racer (~> 0.2.14) - miro (~> 0.4) nakayoshi_fork (~> 0.0.4) nokogiri (~> 1.10) octokit (~> 4.16) diff --git a/app/labor/color_from_image.rb b/app/labor/color_from_image.rb index 9dc61c253..f3de868e7 100644 --- a/app/labor/color_from_image.rb +++ b/app/labor/color_from_image.rb @@ -4,13 +4,14 @@ class ColorFromImage end def main - get_hex + "#dddddd" + # get_hex rescue StandardError "#dddddd" end def get_hex - colors = Miro::DominantColors.new @url + # colors = Miro::DominantColors.new @url HexComparer.new(colors.to_hex).biggest # Always take the biggest hex (aka lightest color) end end diff --git a/vendor/cache/chunky_png-1.3.11.gem b/vendor/cache/chunky_png-1.3.11.gem deleted file mode 100644 index cd1c46c45..000000000 Binary files a/vendor/cache/chunky_png-1.3.11.gem and /dev/null differ diff --git a/vendor/cache/climate_control-0.2.0.gem b/vendor/cache/climate_control-0.2.0.gem deleted file mode 100644 index 78e6113f0..000000000 Binary files a/vendor/cache/climate_control-0.2.0.gem and /dev/null differ diff --git a/vendor/cache/cocaine-0.6.0.gem b/vendor/cache/cocaine-0.6.0.gem deleted file mode 100644 index b03c78c6e..000000000 Binary files a/vendor/cache/cocaine-0.6.0.gem and /dev/null differ diff --git a/vendor/cache/color-1.8.gem b/vendor/cache/color-1.8.gem deleted file mode 100644 index 35ed18156..000000000 Binary files a/vendor/cache/color-1.8.gem and /dev/null differ diff --git a/vendor/cache/miro-0.4.0.gem b/vendor/cache/miro-0.4.0.gem deleted file mode 100644 index c0ffe905a..000000000 Binary files a/vendor/cache/miro-0.4.0.gem and /dev/null differ diff --git a/vendor/cache/oily_png-1.2.1.gem b/vendor/cache/oily_png-1.2.1.gem deleted file mode 100644 index 3ddf20612..000000000 Binary files a/vendor/cache/oily_png-1.2.1.gem and /dev/null differ diff --git a/vendor/cache/terrapin-0.6.0.gem b/vendor/cache/terrapin-0.6.0.gem deleted file mode 100644 index e6eb7ff29..000000000 Binary files a/vendor/cache/terrapin-0.6.0.gem and /dev/null differ