viator 0.1.1.1 → 0.1.1.2.freeze
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +4 -1
- data/README.md +3 -1
- data/lib/viator/version.rb +1 -1
- data/lib/viator.rb +2 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 38850ed21807ff12c2bf2bcf5c829dad1519323da547b288795921a7f2b81461
|
4
|
+
data.tar.gz: bcf6b96c8b16549d5bdb21b40b03e4368f052b4304233d542f79d3aa7a62bc0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2debff71b41a4b11095e66c228a0e7de1a8db2bbeac7dbf508ce9dd518714b43287bbf76afc439bfc4d0a732bb96eb8a49bae586d3555f1097ec050abd64ddf
|
7
|
+
data.tar.gz: 7dd0661a1a8f1710e77f321ebea7dd068b7849184acf47b037c5ee392203a7347bcd99ac816926cbd50acaec910273cdd959447151b8604bc16f16f2cf70bd4d
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -50,11 +50,13 @@ eh.value # returns 'nil' if eh.failure?
|
|
50
50
|
# Less Important
|
51
51
|
|
52
52
|
eh = Viator.new(hide_value: false)
|
53
|
-
eh.value
|
53
|
+
eh.value = 'berries'
|
54
54
|
eh.report 'There has been an error'
|
55
55
|
eh.value # 'berries'
|
56
56
|
eh.hide_value = true
|
57
57
|
eh.value # nil
|
58
|
+
|
59
|
+
Viator.new(value: 'foo', hide_value: true)
|
58
60
|
```
|
59
61
|
|
60
62
|
## Contributing
|
data/lib/viator/version.rb
CHANGED
data/lib/viator.rb
CHANGED
@@ -6,12 +6,11 @@ class Viator
|
|
6
6
|
attr_reader :errors
|
7
7
|
attr_accessor :hide_value
|
8
8
|
|
9
|
-
|
10
|
-
end
|
9
|
+
Errors = Class.new(Array)
|
11
10
|
|
12
11
|
def initialize(options = {})
|
13
12
|
@errors = Errors.new
|
14
|
-
@value =
|
13
|
+
@value = options[:value]
|
15
14
|
@hide_value = (options[:hide_value] != false)
|
16
15
|
end
|
17
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: viator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.2.freeze
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Church
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,12 +87,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
87
|
version: '0'
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- - "
|
90
|
+
- - ">"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
92
|
+
version: 1.3.1
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.6
|
95
|
+
rubygems_version: 2.7.6
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Simple Error Handler
|