tumugi 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cacccf9bd212e250546c6f13442e5fb75204984
4
- data.tar.gz: fe87e410cfc12dd03fb38f0bd0074d6d62a6fbd7
3
+ metadata.gz: 5374f0376d435b992b6dcfa558c5741f80d14d2c
4
+ data.tar.gz: 512e7f6bb9311a8695eca8c801eabdb685f69ee2
5
5
  SHA512:
6
- metadata.gz: 8aa7fbd4256fb08e12d49d9ecbd9b3f7743eeacc660d82b7041a35703e7d5abef4fc07f0aeb87c8d11bc2041e6bc1c78d6cc04ebf63fdbe38ed611e2e04cbd9d
7
- data.tar.gz: d60e4ac7af6033dedac2f3772508176a7591aa9c2e287df50156bbc601b264c13f295602fdda8011b715de745a7672562622f73003343b98ea55b624782457a2
6
+ metadata.gz: 844c9699397ccfc4936678f7412ac4d13cf42ea929ab353a17901a0fd7accb059c79b7a2f2bea3e05eb4968f3daa61728e95dc5ac63bd652b8e3696ffcd54a4d
7
+ data.tar.gz: 56f50cd77e9fc4f7a068b7a6ee0a622a7840a39656af585a34fe58209290c901f473e1f46b25874258d049fab006a2f2c7dbfd9cedfd923702834c1bc3f0b1d4
data/CHANGELOG.md CHANGED
@@ -1,7 +1,23 @@
1
1
  # Change Log
2
2
 
3
- ## [0.5.1](https://github.com/tumugi/tumugi/tree/0.5.1) (2016-05-30)
4
- [Full Changelog](https://github.com/tumugi/tumugi/compare/v0.5.0...0.5.1)
3
+ ## [0.5.2](https://github.com/tumugi/tumugi/tree/0.5.2) (2016-06-13)
4
+ [Full Changelog](https://github.com/tumugi/tumugi/compare/v0.5.1...0.5.2)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - Add `to\_s` method to FileSystemTarget [\#73](https://github.com/tumugi/tumugi/issues/73)
9
+
10
+ **Fixed bugs:**
11
+
12
+ - Parameter should return `false` if default value is `false` [\#76](https://github.com/tumugi/tumugi/issues/76)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - when type is boolean and default value is false, it should return false [\#77](https://github.com/tumugi/tumugi/pull/77) ([hakobera](https://github.com/hakobera))
17
+ - Add to\_s method to FileSystemTarget [\#74](https://github.com/tumugi/tumugi/pull/74) ([hakobera](https://github.com/hakobera))
18
+
19
+ ## [v0.5.1](https://github.com/tumugi/tumugi/tree/v0.5.1) (2016-05-29)
20
+ [Full Changelog](https://github.com/tumugi/tumugi/compare/v0.5.0...v0.5.1)
5
21
 
6
22
  **Implemented enhancements:**
7
23
 
@@ -10,6 +26,7 @@
10
26
 
11
27
  **Merged pull requests:**
12
28
 
29
+ - Prepare release for v0.5.1 [\#72](https://github.com/tumugi/tumugi/pull/72) ([hakobera](https://github.com/hakobera))
13
30
  - Disable param auto binding feature as default [\#71](https://github.com/tumugi/tumugi/pull/71) ([hakobera](https://github.com/hakobera))
14
31
 
15
32
  ## [v0.5.0](https://github.com/tumugi/tumugi/tree/v0.5.0) (2016-05-26)
@@ -36,7 +36,7 @@ module Tumugi
36
36
  end
37
37
 
38
38
  def default_value
39
- @opts[:default] || nil
39
+ @opts[:default].nil? ? nil : @opts[:default]
40
40
  end
41
41
 
42
42
  def merge_default_value(value)
@@ -54,7 +54,7 @@ module Tumugi
54
54
  private
55
55
 
56
56
  def validate
57
- if required? && default_value != nil
57
+ if required? && !default_value.nil?
58
58
  raise Tumugi::ParameterError.new("When you set required: true, you cannot set default value")
59
59
  end
60
60
  end
@@ -25,6 +25,10 @@ module Tumugi
25
25
  def remove
26
26
  fs.remove(@path)
27
27
  end
28
+
29
+ def to_s
30
+ path
31
+ end
28
32
  end
29
33
  end
30
34
  end
@@ -1,3 +1,3 @@
1
1
  module Tumugi
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tumugi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuyuki Honda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-29 00:00:00.000000000 Z
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel