skeptick 0.2.0 → 0.2.1

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: 92b23f5d9d5e194a4eed73a1a1422bd1a18de3c3
4
- data.tar.gz: 1c7f34a26786c074d628d0cafe0aa14291b9a703
3
+ metadata.gz: 5f1a67760f854da8b0d00d6a2b4f9722d4bb8ea8
4
+ data.tar.gz: d8832938f0d8d30405ece5eedf0e6fdaf7241231
5
5
  SHA512:
6
- metadata.gz: 31488ca6f7cc0988cabbb12f5e7ce049659bcf53d94aa333816e97bc6250db4fd29cfc15c38557bf3c3a5fbb20910bc2e7503b7b317addc79a46997f31a14a29
7
- data.tar.gz: f67aa8409bbb944421876c4e6aa4b86d8515b8ea8b5fac36be9541657466b0974f0edd16062cc1d7fd4789af723dd93beb83a85fc56b73c78912c96f968a5e8c
6
+ metadata.gz: 323fbb952c501cfe5379f740dfd185f45eda7d74bcae9691428164556edcf70e0099455c353f0e274cc3b19e3e111453e146eec8cf016924f11bd44293487662
7
+ data.tar.gz: 2586cf955ba399f7d5637078a64d73f4962ef42d14d534d5bf77fdb9850a08244766403157ff2de43cf61f132684f356b61c28997c041fa1e100ac22c95339f9
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v0.2.1
2
+
3
+ * Fix a nasty bug where option 'to' in convert(to: 'foo') could get clobbered
4
+
1
5
  v0.2.0
2
6
 
3
7
  * No more aliased keywords (with, apply) only set, append, prepend
@@ -17,7 +17,7 @@ module Skeptick
17
17
  @prepends = setup_prepends,
18
18
  @subjects = setup_subjects,
19
19
  @appends = setup_appends,
20
- @ending = opts.fetch(:to) { DEFAULT_OUTPUT.dup }
20
+ @ending = opts.fetch(:to){ DEFAULT_OUTPUT }.dup
21
21
  ]
22
22
 
23
23
  args.each do |arg|
@@ -1,3 +1,3 @@
1
1
  module Skeptick
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -269,4 +269,19 @@ class ConvertTest < Skeptick::TestCase
269
269
  assert_equal 'convert -setting ( foo -baz ) -operation miff:-',
270
270
  cmd.to_s
271
271
  end
272
+
273
+ def test_convert_doesnt_clobber_passed_in_destination_arg
274
+ filename = 'foo.png'
275
+
276
+ convert do
277
+ convert(to: filename) do
278
+ image 'a'
279
+ set :foo
280
+ end
281
+
282
+ image 'b'
283
+ end.to_s
284
+
285
+ assert_equal 'foo.png', filename
286
+ end
272
287
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skeptick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Chernyak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-20 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.4.5
130
+ rubygems_version: 2.2.2
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Skeptick doesn't believe in Magick