selfiegram 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd126af60a44fd63d8d17043d04478cdb29e02f9
4
- data.tar.gz: a338f2567ce95046ec5a9f9251b30a89b017b2e1
3
+ metadata.gz: 8ab0d8b57412565d60ac8abd0d6f4e62d9f38009
4
+ data.tar.gz: 5187d932a9f8bac63a7db24d52f826e1b95cd6f7
5
5
  SHA512:
6
- metadata.gz: 4841b06e5b538a2d7b7396562289f9838083c460468e629d0850ba732c0abe6e8e0ca75c684e6bbc8947d614cf60c6d3e44252c1cee0143eea0136494e9a033d
7
- data.tar.gz: 6258df3e73372bfbd752495b348bc04aaf8c420d23f40f4c7efb1481a8f79ebb6e6aaf05b78ad5ee3070a682d6a232716885c41286e1fffacbc42a05df7fde98
6
+ metadata.gz: ad34cfa5c48cc1746434c256f1e9a8dd26d572f20d10be8e8ce7327c4cac4f0dcf6720a15fcfb204bb6dcd08c8b4ad2a5875b4b11126d1bdc5b9b4a1bf2a6b0c
7
+ data.tar.gz: 0fb31e94a78987a348e45e2ed44e9506e294451bf971ae195f0c1ffd497ac996a11cad250342152b49534b7436c84928f6ec326b45f03d7daa3e217800e56be0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
@@ -15,7 +15,7 @@ module BackgroundImages
15
15
  def standardize(selfie_image)
16
16
  dimensions = "#{selfie_image.page.width}x#{selfie_image.page.height}"
17
17
 
18
- `convert #{local_file}.#{file_extension} -resize '#{dimensions}^' -gravity 'center' -crop '#{dimensions}+0+0' #{local_file}.#{destination_extension}`
18
+ `convert #{Shellwords.escape(local_file)}.#{file_extension} -resize '#{dimensions}^' -gravity 'center' -crop '#{dimensions}+0+0' #{Shellwords.escape(local_file)}.#{destination_extension}`
19
19
 
20
20
  begin
21
21
  image = Magick::Image.read("#{local_file}.#{destination_extension}")
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: selfiegram 0.0.11 ruby lib
5
+ # stub: selfiegram 0.0.12 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "selfiegram"
9
- s.version = "0.0.11"
9
+ s.version = "0.0.12"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selfiegram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger