[deploy] Remove miro gem (#8307)
This commit is contained in:
parent
143fd1fa71
commit
788c3d5a3b
10 changed files with 4 additions and 18 deletions
2
Gemfile
2
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
|
||||
|
|
|
|||
15
Gemfile.lock
15
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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
BIN
vendor/cache/chunky_png-1.3.11.gem
vendored
BIN
vendor/cache/chunky_png-1.3.11.gem
vendored
Binary file not shown.
BIN
vendor/cache/climate_control-0.2.0.gem
vendored
BIN
vendor/cache/climate_control-0.2.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/cocaine-0.6.0.gem
vendored
BIN
vendor/cache/cocaine-0.6.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/color-1.8.gem
vendored
BIN
vendor/cache/color-1.8.gem
vendored
Binary file not shown.
BIN
vendor/cache/miro-0.4.0.gem
vendored
BIN
vendor/cache/miro-0.4.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/oily_png-1.2.1.gem
vendored
BIN
vendor/cache/oily_png-1.2.1.gem
vendored
Binary file not shown.
BIN
vendor/cache/terrapin-0.6.0.gem
vendored
BIN
vendor/cache/terrapin-0.6.0.gem
vendored
Binary file not shown.
Loading…
Add table
Reference in a new issue