cal-screenshot-resize 0.0.3 → 0.0.4

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: bca2e050e3b2f991a722a2bfcc146b9f3579562a
4
- data.tar.gz: 1a4d9c97344c200bc759e674904e7893626945a6
3
+ metadata.gz: 3031cad51e710a991681f3bdb65999b9ee69146f
4
+ data.tar.gz: f2533a90d36f9b90db5835be2889a0942e260759
5
5
  SHA512:
6
- metadata.gz: 9dec6675924a02e2c0c6b302d749055fbfd18d8fd27ff60e54b73ef7855942d538d74e6ca9503cb5cad98eef622cf8d97a3455118a0b25ea1ee0c66f876c6e16
7
- data.tar.gz: 7ec10a7448e14d787c0be7b41774bf5a9023626cc780e8436ec7f835ab7daa1b891163fb66602d3dc3ef87d9571bbc1288e4d5ee64b728460d61bc0d237d89df
6
+ metadata.gz: c9fa920d441da48e602a5dc4a0839c18d67777f8ad04c38bd7a03840d8dcbb04b72e8cce33ebcf1c80b1ebdc4f84da2532d4248026e457c93a5ca431da04214e
7
+ data.tar.gz: b221672775250ca69d61732ef816a5c7ac21291de0635efdab814fd33bb502b5fa7d963bc2fafd2aee1a04cb3155738b3b722ba7915bca6df44ee28118c3db36
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 Arkadiusz Konopacki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -31,7 +31,7 @@ module Screenshot
31
31
  f.write res
32
32
  end
33
33
 
34
- unless !scale
34
+ unless scale.nil?
35
35
  if scale != 1 and scale < 1 and scale > 0
36
36
  weight = FastImage.size(path)[0]
37
37
  FastImage.resize(path, weight*scale, 0, :outfile=>path)
@@ -1,5 +1,5 @@
1
1
  module Screenshot
2
2
  module Resize
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cal-screenshot-resize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkadiusz Konopacki
@@ -91,6 +91,7 @@ files:
91
91
  - ".rspec"
92
92
  - ".travis.yml"
93
93
  - Gemfile
94
+ - LICENSE
94
95
  - README.md
95
96
  - Rakefile
96
97
  - bin/console