trybool 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +34 -0
- data/Gemfile +1 -1
- data/README.md +2 -7
- data/Rakefile +1 -1
- data/lib/trybool.rb +2 -2
- data/lib/trybool/version.rb +1 -1
- data/trybool.gemspec +18 -27
- metadata +31 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 668180a62d10827163c8ba09b6efbc32cad1ad32aef77acc22008f22a898b2cd
|
4
|
+
data.tar.gz: 75dd3e42aaa45f986a71ab4c8a9e1d53b58fcbb8ca2c027a204e0511e09b0908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26887fd052391dffc3f870f4442ca150c164bdfdaefb4190aa7fd9824e229fbc56e75fa85c4eddf396deb62ca63e99cdb32e3793ac9e3445132f87c09792377a
|
7
|
+
data.tar.gz: c5c217bef77cc7ac184c521c02663b0422896039f79f63ecb329355831baad461c2d3c5784f06f6916f67d2c23553e345ed3fbc5eee3362dcd5ef826f1bb02f5
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
paths-ignore:
|
8
|
+
- 'README.md'
|
9
|
+
|
10
|
+
pull_request:
|
11
|
+
branches:
|
12
|
+
- master
|
13
|
+
paths-ignore:
|
14
|
+
- 'README.md'
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
strategy:
|
21
|
+
matrix:
|
22
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
23
|
+
|
24
|
+
steps:
|
25
|
+
- uses: actions/checkout@v2
|
26
|
+
name: Set up Ruby
|
27
|
+
|
28
|
+
- uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby-version }}
|
31
|
+
bundler-cache: true
|
32
|
+
|
33
|
+
- name: Run tests
|
34
|
+
run: bundle exec rake
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Trybool
|
2
2
|
|
3
3
|
[![Gem Version](http://img.shields.io/gem/v/trybool.svg?style=flat)](http://badge.fury.io/rb/trybool)
|
4
|
-
[![Build Status](
|
5
|
-
[![Code Climate](http://img.shields.io/codeclimate/github/hashrocket/trybool.svg?style=flat)](https://codeclimate.com/github/hashrocket/trybool)
|
4
|
+
[![Build Status](https://img.shields.io/github/workflow/status/hashrocket/trybool/CI)](https://github.com/hashrocket/trybool/actions?query=workflow%3ACI)
|
6
5
|
|
7
6
|
The value parsing tool to return a boolean that you never knew you needed!
|
8
7
|
|
@@ -72,12 +71,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
72
71
|
|
73
72
|
Bug reports and pull requests are welcome on GitHub at https://github.com/hashrocket/trybool.
|
74
73
|
|
75
|
-
## About
|
76
|
-
|
77
|
-
[![Hashrocket logo](https://hashrocket.com/hashrocket_logo.svg)](https://hashrocket.com)
|
78
|
-
|
79
|
-
Trybool is supported by the team at [Hashrocket](https://hashrocket.com), a multidisciplinary design & development consultancy. If you'd like to [work with us](https://hashrocket.com/contact) or [join our team](https://hashrocket.com/careers), don't hesitate to get in touch.
|
80
74
|
|
81
75
|
## License
|
82
76
|
|
83
77
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
78
|
+
|
data/Rakefile
CHANGED
data/lib/trybool.rb
CHANGED
@@ -10,7 +10,7 @@ module Trybool
|
|
10
10
|
"true",
|
11
11
|
"TRUE",
|
12
12
|
"on",
|
13
|
-
"ON"
|
13
|
+
"ON"
|
14
14
|
]
|
15
15
|
|
16
16
|
def self.configure
|
@@ -26,6 +26,6 @@ module Trybool
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.truthy_values
|
29
|
-
@
|
29
|
+
@_truthy_values ||= Set[*TRUTHY_VALUES]
|
30
30
|
end
|
31
31
|
end
|
data/lib/trybool/version.rb
CHANGED
data/trybool.gemspec
CHANGED
@@ -1,37 +1,28 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
3
|
+
require "trybool/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name
|
8
|
-
spec.version
|
9
|
-
spec.authors
|
10
|
-
spec.email
|
6
|
+
spec.name = "trybool"
|
7
|
+
spec.version = Trybool::VERSION
|
8
|
+
spec.authors = ["Matt Polito"]
|
9
|
+
spec.email = ["matt.polito@gmail.com"]
|
11
10
|
|
12
|
-
spec.summary
|
13
|
-
spec.description
|
14
|
-
spec.homepage
|
15
|
-
spec.license
|
11
|
+
spec.summary = "Confidently return a boolean from a value"
|
12
|
+
spec.description = "The value parser for returning Booleans you never knew you needed."
|
13
|
+
spec.homepage = "https://github.com/hashrocket/trybool"
|
14
|
+
spec.license = "MIT"
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
-
else
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
-
"public gem pushes."
|
16
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
17
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
18
|
end
|
25
|
-
|
26
|
-
spec.
|
27
|
-
f.match(%r{^(test|spec|features)/})
|
28
|
-
end
|
29
|
-
spec.bindir = "exe"
|
30
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.bindir = "exe"
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
21
|
spec.require_paths = ["lib"]
|
32
22
|
|
33
|
-
spec.add_development_dependency "bundler"
|
34
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
23
|
+
spec.add_development_dependency "bundler"
|
36
24
|
spec.add_development_dependency "pry"
|
25
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "standard"
|
37
28
|
end
|
metadata
CHANGED
@@ -1,43 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trybool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Polito
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
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
|
-
version: '
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pry
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
47
|
+
version: 12.3.3
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
54
|
+
version: 12.3.3
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rspec
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +67,7 @@ dependencies:
|
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '3.0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: standard
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - ">="
|
@@ -73,6 +87,7 @@ executables: []
|
|
73
87
|
extensions: []
|
74
88
|
extra_rdoc_files: []
|
75
89
|
files:
|
90
|
+
- ".github/workflows/ci.yml"
|
76
91
|
- ".gitignore"
|
77
92
|
- ".rspec"
|
78
93
|
- ".travis.yml"
|
@@ -88,9 +103,8 @@ files:
|
|
88
103
|
homepage: https://github.com/hashrocket/trybool
|
89
104
|
licenses:
|
90
105
|
- MIT
|
91
|
-
metadata:
|
92
|
-
|
93
|
-
post_install_message:
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
94
108
|
rdoc_options: []
|
95
109
|
require_paths:
|
96
110
|
- lib
|
@@ -105,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
119
|
- !ruby/object:Gem::Version
|
106
120
|
version: '0'
|
107
121
|
requirements: []
|
108
|
-
|
109
|
-
|
110
|
-
signing_key:
|
122
|
+
rubygems_version: 3.2.3
|
123
|
+
signing_key:
|
111
124
|
specification_version: 4
|
112
125
|
summary: Confidently return a boolean from a value
|
113
126
|
test_files: []
|