trybool 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 88e45149494d4ea9e0c25e2e546219ab0ce5bd28
4
- data.tar.gz: 68e800d858ffc9a83bc28df6a323a6ee758e258f
2
+ SHA256:
3
+ metadata.gz: 668180a62d10827163c8ba09b6efbc32cad1ad32aef77acc22008f22a898b2cd
4
+ data.tar.gz: 75dd3e42aaa45f986a71ab4c8a9e1d53b58fcbb8ca2c027a204e0511e09b0908
5
5
  SHA512:
6
- metadata.gz: 1730fab83f2255b43a8e597dc83ebaae86e2370e394a739f5864302c73093f055cd28701048b1829d863c299c45c0cdf1d5fc6b38c1584809c2df03ff4749742
7
- data.tar.gz: 0930150dc2a3a99633613d79da92b3171a34c47d3efbb20a096def9f78612c80cd1d0c22917be9e3c56bdf5d883bacedcd95d92f3f5883e221d7aec488ea52a9
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
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in trybool.gemspec
4
4
  gemspec
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](http://img.shields.io/travis/hashrocket/trybool/master.svg?style=flat)](https://travis-ci.org/hashrocket/trybool)
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
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
@@ -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
- @truthy_values ||= Set[*TRUTHY_VALUES]
29
+ @_truthy_values ||= Set[*TRUTHY_VALUES]
30
30
  end
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module Trybool
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,37 +1,28 @@
1
- # coding: utf-8
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 'trybool/version'
3
+ require "trybool/version"
5
4
 
6
5
  Gem::Specification.new do |spec|
7
- spec.name = "trybool"
8
- spec.version = Trybool::VERSION
9
- spec.authors = ["Matt Polito"]
10
- spec.email = ["matt.polito@gmail.com"]
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 = %q{Confidently return a boolean from a value}
13
- spec.description = %q{The value parser for returning Booleans you never knew you needed.}
14
- spec.homepage = "https://github.com/hashrocket/trybool"
15
- spec.license = "MIT"
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
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
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.files = `git ls-files -z`.split("\x0").reject do |f|
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", "~> 1.14"
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: 0.1.0
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: 2017-03-11 00:00:00.000000000 Z
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: '1.14'
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: '1.14'
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: '10.0'
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: '10.0'
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: pry
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
- allowed_push_host: https://rubygems.org
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
- rubyforge_project:
109
- rubygems_version: 2.6.10
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: []