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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d86fb892f4028385d30405b3f4d06fa709cf4d5e
4
- data.tar.gz: c0bf2f37b72b13a4b9e070487915d4915717eea1
3
+ metadata.gz: 8734e7002c869383a206f45d200f686b6cf8177a
4
+ data.tar.gz: d8e8a6f790efa7312086969786f98020682976d0
5
5
  SHA512:
6
- metadata.gz: c4f2e4e2948a90dfb8ace4ef4763b85cd4309fb03e144fde95199d04dc0746e9fc38a4af80fb7617ff5f1cee1250fc6209cd1470d7a0369a3959b694af467c27
7
- data.tar.gz: 2a4ae577eb0a87c5d8835737ba6974e5c72f057b90d890b3cc6ba75557c546a3652ff94d149ec56be1ff85e95ebf71304066965f6cf4c9944e25f6f80e93fa07
6
+ metadata.gz: 01910cc0b9f9f1a27a1fa205900c89d1cbb52a5a9924977d6b5bd38f68092dce201d7da46367329bc07df25ed4a361eb9ef9949c9d9f3c35e3a5baa06fc7ecf0
7
+ data.tar.gz: 8449f9c1f295f0d1da6b3e931925439235a086cfb0ea4db2a7dda09762cce56813c5f23ae78ad103c6fcceaeb6d386e16e7f5e2ae361dd2ca0135d528f17e275
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 1.2.2
4
+ * Fix missing variables in release
5
+
3
6
  ## Version 1.2.1
4
7
  * Fix missing env (https://github.com/DigitPaint/roger/issues/24)
5
8
 
@@ -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
- {}.update(@options).update(options)
83
- options[:env].update("roger.project" => project, "MOCKUP_PROJECT" => project)
84
- options
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,4 +1,4 @@
1
1
  # Roger main namespace
2
2
  module Roger
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
@@ -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
 
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.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flurin Egger