magick_filter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -6
- data/lib/magick_filter.rb +4 -2
- data/lib/magick_filter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce547aca1a4054dd08d227c7d6945301d6a9f95ead65e9250d57f7b278acc529
|
4
|
+
data.tar.gz: a81d9eb4d20f844fbb4c81fdf2818808d24c9994489748c7954c3a1a1c09c63f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9545fcbb6424f065a08179280cbf984b769560358fe6ce2dc0b46ea81805138ccc9e0ec23bba8e2f9669f06de3508e8e606ff5941a7d28a5b498020814c074
|
7
|
+
data.tar.gz: 85b69aaefd7f61048616e213c7cdef6426a5d17d2de22a5a298bf621df6eae1fbb9010f7d1ed35d587c33a30c6e6baaa5e8d5cfaa056db9c8891a9b253323ab5
|
data/README.md
CHANGED
@@ -72,12 +72,6 @@ In present there are five filters available in this Gem. Use the given below com
|
|
72
72
|
<img src="/test_image/black&white.jpg" alt="Black & White" width=450 height=298 />
|
73
73
|
|
74
74
|
|
75
|
-
## Development
|
76
|
-
|
77
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
78
|
-
|
79
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
80
|
-
|
81
75
|
## Contributing
|
82
76
|
|
83
77
|
Bug reports and pull requests are welcome on GitHub at https://github.com/arvind02/magick_filter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/lib/magick_filter.rb
CHANGED
@@ -7,7 +7,7 @@ module MagickFilter
|
|
7
7
|
parameter_missing?(path, effect)
|
8
8
|
parse_if_image(path)
|
9
9
|
out_file = build_out_file_name(path)
|
10
|
-
cmd_convert(path, out_file, effect)
|
10
|
+
out_file = cmd_convert(path, out_file, effect)
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.root
|
@@ -40,7 +40,8 @@ module MagickFilter
|
|
40
40
|
def self.cmd(bin, opts)
|
41
41
|
"#{bin} #{opts}".tap do |c|
|
42
42
|
#puts "executing: #{c}"
|
43
|
-
system("sudo " << c)
|
43
|
+
#system("sudo " << c)
|
44
|
+
system(c)
|
44
45
|
end
|
45
46
|
end
|
46
47
|
|
@@ -49,6 +50,7 @@ module MagickFilter
|
|
49
50
|
#out_file ||= current_target_file
|
50
51
|
cmd(:convert, "#{in_file} #{get_effect_options(opts)} #{out_file}")
|
51
52
|
print "***Your file is available here to copy in desired location*** - #{out_file}"
|
53
|
+
return out_file
|
52
54
|
end
|
53
55
|
|
54
56
|
def self.build_out_file_name(path)
|