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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 96e97543d76859679da91679c131eb354690666f
4
- data.tar.gz: e6f74a5f668cfa5787576c10bec067a93b9f12fe
2
+ SHA256:
3
+ metadata.gz: 38850ed21807ff12c2bf2bcf5c829dad1519323da547b288795921a7f2b81461
4
+ data.tar.gz: bcf6b96c8b16549d5bdb21b40b03e4368f052b4304233d542f79d3aa7a62bc0b
5
5
  SHA512:
6
- metadata.gz: f3517e3b8f1eb143559bc607a52e69a8ce5db0c3cac2202278a04e28b93a2e72267116d0eb7d1b76c571b8ec6f9d9d689026f2b79770bbf01d492e24a6d1693b
7
- data.tar.gz: 90e35cf402e4d30fd8a0d2204e201a9fa36075662f4336cabe837a4cd5c2891513b9bb73df27fc51938bc3e47655e5be9c5ebc68cdd5d1bba2215a434f775e6a
6
+ metadata.gz: a2debff71b41a4b11095e66c228a0e7de1a8db2bbeac7dbf508ce9dd518714b43287bbf76afc439bfc4d0a732bb96eb8a49bae586d3555f1097ec050abd64ddf
7
+ data.tar.gz: 7dd0661a1a8f1710e77f321ebea7dd068b7849184acf47b037c5ee392203a7347bcd99ac816926cbd50acaec910273cdd959447151b8604bc16f16f2cf70bd4d
data/Gemfile CHANGED
@@ -1,5 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ ruby '2.5.1'
4
+
3
5
  git_source(:github) { |repo_name| "https://bitbucket.org/surdegg/#{repo_name}" }
4
6
 
5
- gemspec
7
+ gem 'rake'
8
+ gem 'rspec'
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 = 'berries'
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
@@ -1,3 +1,3 @@
1
1
  class Viator
2
- VERSION = '0.1.1.1'.freeze
2
+ VERSION = '0.1.1.2.freeze'
3
3
  end
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
- class Errors < Array
10
- end
9
+ Errors = Class.new(Array)
11
10
 
12
11
  def initialize(options = {})
13
12
  @errors = Errors.new
14
- @value = nil
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.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: 2018-06-08 00:00:00.000000000 Z
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: '0'
92
+ version: 1.3.1
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.6.13
95
+ rubygems_version: 2.7.6
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Simple Error Handler