acts_as_hashable 1.3.0 → 1.3.1

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
  SHA256:
3
- metadata.gz: 512a071f89b95030d2e3669230a444aeb2c84bfa3eba507e922364f92d00d484
4
- data.tar.gz: a6a796fbbcbae31bcd528bf1300e1ef74c61b3db1a104898320569a68c48e378
3
+ metadata.gz: a65b9069ee49d32c52627fd9ef82275b065f11a4b823baf014e8b4dd0da378ab
4
+ data.tar.gz: e94f87a51dd6e013787402ca03f6be9118a07f5e9d5c922eb1707bfb8a812bfb
5
5
  SHA512:
6
- metadata.gz: 3cdcb125699f45bf9165bf92008eb42eede26e983d4ed82335116c72640b8a1356a1202b366c294e75966312d9b02e1bd0703fbf9dfea74318c459b78a73efe6
7
- data.tar.gz: b7b0e7304fec6cf66c4a034a0575244b06ee3c7f5381274df3fbbe5bcc33b12982d67f6ad9271f8ab196acf77bd37e42a90c6f068038e9890eafd6997d5b22bc
6
+ metadata.gz: a898e36e34decb4cbb3cdea1bc0126babda2d3a5be4e67423ba02f600102f9763553a7ed26451cb56d4008a45571f96374716e737130def6192940eb99084000
7
+ data.tar.gz: 6740620f589c266e32ad37b4e7edd1685b1c87357dbdb530a51d25f2cbb8dde65104562ae6198300b0fee10b852bf9fc336fcc4dc99ae98283f89b5e389d4569
@@ -0,0 +1,71 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ status_to_ms_teams: bluemarblepayroll/status_to_ms_teams_pure_bash@1.0.0
5
+
6
+ jobs:
7
+ build:
8
+ parameters:
9
+ use-bundler-cache:
10
+ type: boolean
11
+ default: true
12
+
13
+ docker:
14
+ - image: circleci/ruby:2.6.6-buster
15
+ environment:
16
+ FORBID_FOCUSED_SPECS: 1
17
+ working_directory: ~/acts_as_hashable
18
+ steps:
19
+ - checkout
20
+
21
+ # TODO: wrap bundler caching logic into an Orb:
22
+ - when:
23
+ condition: << parameters.use-bundler-cache >>
24
+ steps:
25
+ - restore_cache:
26
+ key: v1.0.0-build-ruby-dependency-cache-{{ checksum "acts_as_hashable.gemspec" }}-{{ checksum "Gemfile" }}-{{ checksum ".ruby-version" }}
27
+
28
+ - run: bundle install --path vendor/bundle
29
+
30
+ - when:
31
+ condition: << parameters.use-bundler-cache >>
32
+ steps:
33
+ - save_cache:
34
+ key: v1.0.0-build-ruby-dependency-cache-{{ checksum "acts_as_hashable.gemspec" }}-{{ checksum "Gemfile" }}-{{ checksum ".ruby-version" }}
35
+ paths:
36
+ - vendor/bundle
37
+
38
+ - store_artifacts:
39
+ path: Gemfile.lock
40
+
41
+ - run: bundle exec rubocop
42
+
43
+ - run: COVERAGE=true bundle exec rspec -r rspec_junit_formatter --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
44
+
45
+ - store_test_results:
46
+ path: test-results
47
+
48
+ - store_artifacts:
49
+ path: coverage
50
+
51
+ - status_to_ms_teams/report:
52
+ webhook_url: $MS_TEAMS_WEBHOOK_URL
53
+
54
+ workflows:
55
+ version: 2.1
56
+ build:
57
+ jobs:
58
+ - build:
59
+ context: org-global
60
+ monthly-gem-dependency-refresh-check:
61
+ triggers:
62
+ - schedule:
63
+ cron: '0 0 1 * *'
64
+ filters:
65
+ branches:
66
+ only:
67
+ - master
68
+ jobs:
69
+ - build:
70
+ context: org-global
71
+ use-bundler-cache: false
data/.gitignore CHANGED
@@ -4,3 +4,4 @@
4
4
  /coverage
5
5
  /pkg
6
6
  Gemfile.lock
7
+ /test-results
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 2.6.6
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Acts as Hashable
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/acts_as_hashable.svg)](https://badge.fury.io/rb/acts_as_hashable) [![Build Status](https://travis-ci.org/bluemarblepayroll/acts_as_hashable.svg?branch=master)](https://travis-ci.org/bluemarblepayroll/acts_as_hashable) [![Maintainability](https://api.codeclimate.com/v1/badges/647dac37b9a8177f3d84/maintainability)](https://codeclimate.com/github/bluemarblepayroll/acts_as_hashable/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/647dac37b9a8177f3d84/test_coverage)](https://codeclimate.com/github/bluemarblepayroll/acts_as_hashable/test_coverage) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
-
5
3
  This is a small library that helps increase the pliability of object constructor signatures.
6
4
  Instead of instantiating via the constructor, this library can install helper factory
7
5
  class-level methods that you can use with hashes:
@@ -211,6 +209,7 @@ class ExampleFactory
211
209
 
212
210
  register 'HeadOfHousehold', ->(_key) { HeadOfHousehold }
213
211
  end
212
+ ```
214
213
 
215
214
  ## Contributing
216
215
 
@@ -20,13 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
21
  s.homepage = 'https://github.com/bluemarblepayroll/acts_as_hashable'
22
22
  s.license = 'MIT'
23
- s.metadata = {
24
- 'bug_tracker_uri' => 'https://github.com/bluemarblepayroll/acts_as_hashable/issues',
25
- 'changelog_uri' => 'https://github.com/bluemarblepayroll/acts_as_hashable/blob/master/CHANGELOG.md',
26
- 'documentation_uri' => 'https://www.rubydoc.info/gems/acts_as_hashable',
27
- 'homepage_uri' => s.homepage,
28
- 'source_code_uri' => s.homepage
29
- }
30
23
 
31
24
  s.required_ruby_version = '>= 2.5'
32
25
 
@@ -37,6 +30,7 @@ Gem::Specification.new do |s|
37
30
  s.add_development_dependency('pry-byebug', '~> 3')
38
31
  s.add_development_dependency('rake', '~> 13.0')
39
32
  s.add_development_dependency('rspec')
33
+ s.add_development_dependency('rspec_junit_formatter')
40
34
  s.add_development_dependency('rubocop', '~> 0.63.1')
41
35
  s.add_development_dependency('simplecov', '~>0.16.1')
42
36
  s.add_development_dependency('simplecov-console', '~>0.4.2')
@@ -8,5 +8,5 @@
8
8
  #
9
9
 
10
10
  module ActsAsHashable
11
- VERSION = '1.3.0'
11
+ VERSION = '1.3.1'
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_hashable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-05 00:00:00.000000000 Z
11
+ date: 2021-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caution
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec_junit_formatter
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rubocop
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -146,16 +160,16 @@ executables: []
146
160
  extensions: []
147
161
  extra_rdoc_files: []
148
162
  files:
163
+ - ".circleci/config.yml"
149
164
  - ".editorconfig"
150
165
  - ".gitignore"
151
166
  - ".rubocop.yml"
152
167
  - ".ruby-version"
153
- - ".travis.yml"
168
+ - ".tool-versions"
154
169
  - CHANGELOG.md
155
170
  - CODE_OF_CONDUCT.md
156
171
  - Gemfile
157
172
  - Guardfile
158
- - LICENSE
159
173
  - README.md
160
174
  - Rakefile
161
175
  - acts_as_hashable.gemspec
@@ -171,13 +185,8 @@ files:
171
185
  homepage: https://github.com/bluemarblepayroll/acts_as_hashable
172
186
  licenses:
173
187
  - MIT
174
- metadata:
175
- bug_tracker_uri: https://github.com/bluemarblepayroll/acts_as_hashable/issues
176
- changelog_uri: https://github.com/bluemarblepayroll/acts_as_hashable/blob/master/CHANGELOG.md
177
- documentation_uri: https://www.rubydoc.info/gems/acts_as_hashable
178
- homepage_uri: https://github.com/bluemarblepayroll/acts_as_hashable
179
- source_code_uri: https://github.com/bluemarblepayroll/acts_as_hashable
180
- post_install_message:
188
+ metadata: {}
189
+ post_install_message:
181
190
  rdoc_options: []
182
191
  require_paths:
183
192
  - lib
@@ -193,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
202
  version: '0'
194
203
  requirements: []
195
204
  rubygems_version: 3.0.3
196
- signing_key:
205
+ signing_key:
197
206
  specification_version: 4
198
207
  summary: Simple hash-based factory methods for objects.
199
208
  test_files: []
data/.travis.yml DELETED
@@ -1,24 +0,0 @@
1
- env:
2
- global:
3
- - CC_TEST_REPORTER_ID=830db02445429888fcdd7d1406dd82e9b32535e863ac54a538a162c0c4acd4d1
4
- language: ruby
5
- rvm:
6
- # Build on the latest stable of all supported Rubies (https://www.ruby-lang.org/en/downloads/):
7
- - 2.5.8
8
- - 2.6.6
9
- - 2.7.1
10
- cache: bundler
11
- before_script:
12
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
13
- - chmod +x ./cc-test-reporter
14
- - ./cc-test-reporter before-build
15
- script:
16
- - bundle exec rubocop
17
- - bundle exec rspec
18
- after_script:
19
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
20
- addons:
21
- # https://docs.travis-ci.com/user/uploading-artifacts/
22
- artifacts:
23
- paths:
24
- - Gemfile.lock
data/LICENSE DELETED
@@ -1,7 +0,0 @@
1
- Copyright 2018 Blue Marble Payroll, LLC
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.