magick_filter 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7426b9ea4a6a7128ae6a7c2632a7e08b39d48c0dd9839a5ddaaee9e58add92b0
4
- data.tar.gz: da51b270fa25d3a29e5143f129189198ccbef2912e89b9eb5277c51bd6d0aeb3
3
+ metadata.gz: ce547aca1a4054dd08d227c7d6945301d6a9f95ead65e9250d57f7b278acc529
4
+ data.tar.gz: a81d9eb4d20f844fbb4c81fdf2818808d24c9994489748c7954c3a1a1c09c63f
5
5
  SHA512:
6
- metadata.gz: 68f8a69ef6ebf268a4d73e2cdd14716956c9b793d23ae7285f614caa71a5fd752fe871cad238eb640ccd18fde7386fdd8020c58b0ecce69cf7e47362825eae1a
7
- data.tar.gz: 153e374f0dc8478850682a202ccf90cf71b0dec58825e2b026dc4fc08c108ecbc3444108ea46cbb63387cd924ffbc497cc44b89b5e87ba64ea2352144b46f6a0
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)
@@ -1,3 +1,3 @@
1
1
  module MagickFilter
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magick_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - arvind02