buff-extensions 1.0.0 → 2.0.0

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: e03187756b58633fd5b447575e09ef9d1e78b893
4
- data.tar.gz: e9e63e118e3f9fd58b750855081d505840a32207
3
+ metadata.gz: 19229c0c4dc4f0adcfcd44cc2e99712545f6bfa8
4
+ data.tar.gz: 51ce52c3a5ac36de2ae93947b6998e090bf20f8a
5
5
  SHA512:
6
- metadata.gz: 1abe40f7531a72f475edd4e75a176d0ad8a37d998a866f1dbba4c13626c22c500b346e486002f7d546ab936a8c50031155bc2cca07fabbeefc1a2f60e6fc8921
7
- data.tar.gz: 99de07cbcae35b06e6b37e55bc9091eef168fbd91b1c0c53ae9d22d3931fc8dabe77d4154fdc1d55f41dbdc86a377b0a4e56934fe2ccdc78c7b634beb5a52e11
6
+ metadata.gz: b57c25d00e4c8d8594c72d2db6d9e2b8fa8967c9c45a7acbabab13f0b7a4689fbb3d1913c25fd53a625030655a30df1130bdf1da95748214f4b7978a38b9bec3
7
+ data.tar.gz: a36736565ba0e280b6aea81cf498c9d7a5272d10e437a5e23dbc6729ff2b4d7bea45995203205e16b4671dedaca9ee7a2a7e9df5ac502629628e2f21f9114527
@@ -1,2 +1 @@
1
- 2.0.0-p353
2
-
1
+ 2.3.1
@@ -1,6 +1,16 @@
1
- script: "bundle exec thor spec"
2
1
  language: ruby
3
- rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - jruby-19mode
2
+ cache:
3
+ - bundler
4
+ dist: trusty
5
+ branches:
6
+ only:
7
+ - master
8
+ before_install:
9
+ - gem update --system
10
+ - gem install bundler
11
+ script: "bundle exec thor spec"
12
+ matrix:
13
+ include:
14
+ - rvm: 2.2.5
15
+ - rvm: 2.3.1
16
+ - rvm: ruby-head
data/Thorfile CHANGED
@@ -17,17 +17,17 @@ class Default < Thor
17
17
 
18
18
  desc "build", "Build buff-extensions-#{Buff::Extensions::VERSION}.gem into the pkg directory"
19
19
  def build
20
- Rake::Task["build"].execute
20
+ Rake::Task["build"].invoke
21
21
  end
22
22
 
23
23
  desc "install", "Build and install buff-extensions-#{Buff::Extensions::VERSION}.gem into system gems"
24
24
  def install
25
- Rake::Task["install"].execute
25
+ Rake::Task["install"].invoke
26
26
  end
27
27
 
28
28
  desc "release", "Create tag v#{Buff::Extensions::VERSION} and build and push buff-extensions-#{Buff::Extensions::VERSION}.gem to Rubygems"
29
29
  def release
30
- Rake::Task["release"].execute
30
+ Rake::Task["release"].invoke
31
31
  end
32
32
  end
33
33
 
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^spec/})
19
19
  spec.require_paths = ["lib"]
20
- spec.required_ruby_version = ">= 1.9.2"
20
+ spec.required_ruby_version = ">= 2.2.0"
21
21
 
22
22
  spec.add_development_dependency "buff-ruby_engine", "~> 0.1"
23
23
  spec.add_development_dependency "thor", "~> 0.18.0"
@@ -79,12 +79,12 @@ module Buff
79
79
  # }
80
80
  # }
81
81
  #
82
- # nested_hash.dig('deep.nested.hash') => :seed_value
82
+ # nested_hash.berks_dig('deep.nested.hash') => :seed_value
83
83
  #
84
84
  # @param [String] path
85
85
  #
86
86
  # @return [Object, nil]
87
- def dig(path)
87
+ def berks_dig(path)
88
88
  return nil unless path.present?
89
89
 
90
90
  parts = path.split('.', 2)
@@ -92,7 +92,7 @@ module Buff
92
92
  if !parts[1] or match.nil?
93
93
  match
94
94
  else
95
- match.dig(parts[1])
95
+ match.berks_dig(parts[1])
96
96
  end
97
97
  end
98
98
 
@@ -1,5 +1,5 @@
1
1
  module Buff
2
2
  module Extensions
3
- VERSION = "1.0.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -41,7 +41,7 @@ describe Buff::Extensions::Hash::DottedPaths do
41
41
 
42
42
  subject { Hash.new }
43
43
 
44
- describe "#dig" do
44
+ describe "#berks_dig" do
45
45
  context "when the Hash contains the nested path" do
46
46
  subject do
47
47
  {
@@ -54,13 +54,13 @@ describe Buff::Extensions::Hash::DottedPaths do
54
54
  end
55
55
 
56
56
  it "returns the value at the dotted path" do
57
- expect(subject.dig("we.found.something")).to eql(true)
57
+ expect(subject.berks_dig("we.found.something")).to eql(true)
58
58
  end
59
59
  end
60
60
 
61
61
  context "when the Hash does not contain the nested path" do
62
62
  it "returns a nil value" do
63
- expect(subject.dig("nothing.is.here")).to be_nil
63
+ expect(subject.berks_dig("nothing.is.here")).to be_nil
64
64
  end
65
65
  end
66
66
 
@@ -76,12 +76,12 @@ describe Buff::Extensions::Hash::DottedPaths do
76
76
  end
77
77
 
78
78
  it "returns the value at the dotted path" do
79
- expect(subject.dig("we.found.something")).to eql(:symbol_value)
79
+ expect(subject.berks_dig("we.found.something")).to eql(:symbol_value)
80
80
  end
81
81
  end
82
82
 
83
83
  it "returns nil if given a blank string" do
84
- expect(subject.dig("")).to be_nil
84
+ expect(subject.berks_dig("")).to be_nil
85
85
  end
86
86
 
87
87
  it "returns 'false' nested values as 'false' and not 'nil'" do
@@ -91,7 +91,7 @@ describe Buff::Extensions::Hash::DottedPaths do
91
91
  }
92
92
  }
93
93
 
94
- expect(hash.dig('ssl.verify')).to eql(false)
94
+ expect(hash.berks_dig('ssl.verify')).to eql(false)
95
95
  end
96
96
  end
97
97
 
@@ -10,7 +10,6 @@ def setup_rspec
10
10
  end
11
11
 
12
12
  config.mock_with :rspec
13
- config.treat_symbols_as_metadata_keys_with_true_values = true
14
13
  config.filter_run focus: true
15
14
  config.run_all_when_everything_filtered = true
16
15
  end
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buff-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-06 00:00:00.000000000 Z
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: buff-ruby_engine
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.18.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.18.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: fuubar
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: guard-spork
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: spork
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: Extensions to Core Ruby classes
@@ -157,9 +157,9 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - .gitignore
161
- - .ruby-version
162
- - .travis.yml
160
+ - ".gitignore"
161
+ - ".ruby-version"
162
+ - ".travis.yml"
163
163
  - CONTRIBUTING.md
164
164
  - Gemfile
165
165
  - Guardfile
@@ -196,17 +196,17 @@ require_paths:
196
196
  - lib
197
197
  required_ruby_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: 1.9.2
201
+ version: 2.2.0
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
- - - '>='
204
+ - - ">="
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
208
  rubyforge_project:
209
- rubygems_version: 2.0.14
209
+ rubygems_version: 2.5.1
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Extensions to Core Ruby classes