roger 1.3.0 → 1.3.2

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: 82428d41225658ef4f4a435a7eabb2e6de235b17
4
- data.tar.gz: ee81c7a3c011d6eef41986e569de45dc5775fe1e
3
+ metadata.gz: 50192701fd5bb385f0a32bbea440e6d3cdabfe04
4
+ data.tar.gz: 01cc88f4484ed65082066cd8d08cf07867173c38
5
5
  SHA512:
6
- metadata.gz: 6c45c703a4040c8dcf26312a95d98d2bd0a6b7ffba74267e3d5fc0540523d09e6afaa231b59ef2a536ac7ba15a6a06872bc0f6d1bade9cfda49b92eedd2c03ae
7
- data.tar.gz: 00ab6343db81d1143885a632f1b805f3a10ae36ff685c2b10f52e529afa01ef35379ff672aaaada880ca4311a95289e68386ab1bfaad466562e2730f4434ac54
6
+ metadata.gz: 60257be39ef76dcc63add66ce63b6ff87d5607defcc6fb9b6de6da6198ec4f1fa5516a7a6603f4d12bb3aa95a5e773aec022a35da70d9d276929c4eac2a7ac51
7
+ data.tar.gz: 4b33e90cc66ecab64f1683465ce5e5b91f0e8920a76c4754ae0514abd7bf131837afe236f816fde78da8ef8ff25fcfbbbd43cfb5591c54abb777cf37c62c7483
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 1.3.2
4
+ * Fix for missing variable in zip finalizer
5
+ * Fix passing options within Mockup
6
+
7
+ ## Version 1.3.1
8
+ This is a dud. It's identical to 1.3.1. Don't use.
9
+
3
10
  ## Version 1.3.0
4
11
  * Add fixed SCM for testing (you can set a fixed version number)
5
12
  * Fix for missing variable in UrlRelativizer
@@ -46,7 +46,7 @@ module Roger
46
46
  return false
47
47
  end
48
48
 
49
- if path =~ /\A#{Regexp.escape(build_path)}/
49
+ if path[build_path]
50
50
  return true
51
51
  else
52
52
  fail "Cleaning pattern is not inside build directory"
@@ -19,7 +19,7 @@ module Roger::Release::Finalizers
19
19
 
20
20
  release.log(self, "Finalizing release to #{zip_path}")
21
21
 
22
- cleanup_existing_zip(zip_path)
22
+ cleanup_existing_zip(release, zip_path)
23
23
 
24
24
  check_zip_command(options[:zip])
25
25
 
@@ -30,7 +30,7 @@ module Roger::Release::Finalizers
30
30
 
31
31
  protected
32
32
 
33
- def cleanup_existing_zip(path)
33
+ def cleanup_existing_zip(release, path)
34
34
  return unless File.exist?(path)
35
35
 
36
36
  release.log(self, "Removing existing target #{path}")
@@ -82,7 +82,7 @@ module Roger::Release::Processors
82
82
  updated_options = {}
83
83
  updated_options.update(@options)
84
84
 
85
- updated_options.update(options) unless options
85
+ updated_options.update(options) if options
86
86
 
87
87
  updated_options[:env].update("roger.project" => project, "MOCKUP_PROJECT" => project)
88
88
 
data/lib/roger/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Roger main namespace
2
2
  module Roger
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.2"
4
4
  end
@@ -27,5 +27,17 @@ module Roger
27
27
 
28
28
  assert File.exist?(@release.target_path + "html-1.0.0.zip"), @release.target_path.inspect
29
29
  end
30
+
31
+ def test_cleanup_existing_zip
32
+ finalizer = Roger::Release::Finalizers::Zip.new
33
+ zip = @release.project.construct.file("releases/html-1.0.0.zip")
34
+
35
+ # Get time of file that will be copied
36
+ original_ctime = File.ctime(zip)
37
+
38
+ finalizer.call(@release)
39
+
40
+ assert_not_same original_ctime, File.ctime(zip)
41
+ end
30
42
  end
31
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flurin Egger
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-21 00:00:00.000000000 Z
13
+ date: 2015-06-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor