roger 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/roger/release/processors/mockup.rb +10 -5
- data/lib/roger/version.rb +1 -1
- data/test/unit/release/mockup_test.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8734e7002c869383a206f45d200f686b6cf8177a
|
4
|
+
data.tar.gz: d8e8a6f790efa7312086969786f98020682976d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01910cc0b9f9f1a27a1fa205900c89d1cbb52a5a9924977d6b5bd38f68092dce201d7da46367329bc07df25ed4a361eb9ef9949c9d9f3c35e3a5baa06fc7ecf0
|
7
|
+
data.tar.gz: 8449f9c1f295f0d1da6b3e931925439235a086cfb0ea4db2a7dda09762cce56813c5f23ae78ad103c6fcceaeb6d386e16e7f5e2ae361dd2ca0135d528f17e275
|
data/CHANGELOG.md
CHANGED
@@ -28,7 +28,7 @@ module Roger::Release::Processors
|
|
28
28
|
|
29
29
|
options = update_call_options(options)
|
30
30
|
|
31
|
-
log_call(options)
|
31
|
+
log_call(release, options)
|
32
32
|
|
33
33
|
release.get_files(options[:match], options[:skip]).each do |file_path|
|
34
34
|
release.log(self, " Extract: #{file_path}", true)
|
@@ -79,12 +79,17 @@ module Roger::Release::Processors
|
|
79
79
|
protected
|
80
80
|
|
81
81
|
def update_call_options(options)
|
82
|
-
{}
|
83
|
-
|
84
|
-
|
82
|
+
updated_options = {}
|
83
|
+
updated_options.update(@options)
|
84
|
+
|
85
|
+
updated_options.update(options) unless options
|
86
|
+
|
87
|
+
updated_options[:env].update("roger.project" => project, "MOCKUP_PROJECT" => project)
|
88
|
+
|
89
|
+
updated_options
|
85
90
|
end
|
86
91
|
|
87
|
-
def log_call(options)
|
92
|
+
def log_call(release, options)
|
88
93
|
release.log(self, "Processing mockup files")
|
89
94
|
|
90
95
|
release.log(self, " Matching: #{options[:match].inspect}", true)
|
data/lib/roger/version.rb
CHANGED
@@ -1,10 +1,19 @@
|
|
1
1
|
require "./lib/roger/release.rb"
|
2
|
+
require "./lib/roger/release.rb"
|
2
3
|
require "test/unit"
|
3
4
|
|
4
5
|
# Test Roger Mockup
|
5
6
|
class MockupTest < ::Test::Unit::TestCase
|
6
7
|
def setup
|
7
8
|
@base = File.dirname(__FILE__) + "/../../project"
|
9
|
+
@project = Roger::Project.new(@base)
|
10
|
+
@release = Roger::Release.new(@project)
|
11
|
+
@mockup = Roger::Release::Processors::Mockup.new
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_empty_release_runs
|
15
|
+
files = @mockup.call(@release)
|
16
|
+
assert_equal 0, files.length
|
8
17
|
end
|
9
18
|
end
|
10
19
|
|