okay 12.0.0 → 12.0.2

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
2
  SHA256:
3
- metadata.gz: d440392d2c9d86cd93c694b618d46f18935339c70897e5b6869a8b556ed17953
4
- data.tar.gz: 63cb6c74cacfa7985707ae8bae9213b680ec5b097c184d588199ed7b7f5d6a21
3
+ metadata.gz: 9c78533be4627e09653d047a0b1e9324c4a7536017323cf9cf3ac568fa466b7e
4
+ data.tar.gz: e6998cfd4eec770e2af999e76d432fa5500b8af8e580aa534716eb832d058bf4
5
5
  SHA512:
6
- metadata.gz: f45cc9fe3188a53c2492459b1e4c614ab0d7400a0b891a5b1324304b0d34c5650e9a6f048c71427c770bc7205fd283f167e537244efd31df299454445ddfb477
7
- data.tar.gz: e6d44d3186e410d8e9f95050534c4e1f13f7c86a53d6b0e4eb6197d0e3e053ba7184251166d21495b537b86bde07ea757fc37d0f246950f4027a734a103467c8
6
+ metadata.gz: a11db0ced14f57a8e037db3bdd2ffcc218ee79f2fdce37003e4df38c0ff93c073b92aaad6aa41ca77dd7eb0d64a00a5b98c8c03ce0f0f43bc709b8a2f939c20f
7
+ data.tar.gz: 4f160ba25d683ce69a4fc04d722edb590ae2024ff125b061fae9f17e53b8730eaa22551631d05564ccc8fec45b4b1ca757641ebb2088bb067953c4d974cd079a
data/lib/okay/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Okay
4
- VERSION = "12.0.0"
4
+ VERSION = "12.0.2"
5
5
  end
data/okay.gemspec CHANGED
@@ -16,9 +16,7 @@ Gem::Specification.new do |spec|
16
16
  spec.homepage = "https://github.com/duckinator/okay"
17
17
  spec.license = "MIT"
18
18
 
19
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
- f.match(%r{^(test|spec|features)/})
21
- end
19
+ spec.files = ['README.md', 'LICENSE.txt', 'okay.gemspec'] + Dir['lib/**/*.rb']
22
20
  spec.bindir = "exe"
23
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
22
  spec.require_paths = ["lib"]
@@ -30,7 +28,7 @@ Gem::Specification.new do |spec|
30
28
  # Ruby maintenance info: https://www.ruby-lang.org/en/downloads/branches/
31
29
  #
32
30
  # NOTE: Update Gemfile when this is updated!
33
- spec.required_ruby_version = ">= 2.6"
31
+ spec.required_ruby_version = ">= 3.0"
34
32
 
35
33
  spec.add_runtime_dependency "cacert"
36
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okay
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.0
4
+ version: 12.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ellen Marie Dash
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-13 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cacert
@@ -74,21 +74,8 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - ".cirrus.yml"
78
- - ".gitignore"
79
- - ".rspec"
80
- - CODE_OF_CONDUCT.md
81
- - Gemfile
82
- - Gemfile.lock
83
77
  - LICENSE.txt
84
78
  - README.md
85
- - Rakefile
86
- - bin/console
87
- - bin/httpbin
88
- - bin/setup
89
- - bors.toml
90
- - examples/github-graphql-example.rb
91
- - examples/github-graphql-intentional-failure-example.rb
92
79
  - lib/okay.rb
93
80
  - lib/okay/default.rb
94
81
  - lib/okay/graphql.rb
@@ -110,14 +97,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
97
  requirements:
111
98
  - - ">="
112
99
  - !ruby/object:Gem::Version
113
- version: '2.6'
100
+ version: '3.0'
114
101
  required_rubygems_version: !ruby/object:Gem::Requirement
115
102
  requirements:
116
103
  - - ">="
117
104
  - !ruby/object:Gem::Version
118
105
  version: '0'
119
106
  requirements: []
120
- rubygems_version: 3.2.15
107
+ rubygems_version: 3.5.0.dev
121
108
  signing_key:
122
109
  specification_version: 4
123
110
  summary: Okay, minimalist implementations of common utilities.
data/.cirrus.yml DELETED
@@ -1,23 +0,0 @@
1
- # Allow compute credits usage by collaborators and bors.
2
- use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true' || $CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH == 'staging' || $CIRRUS_BRANCH == 'trying'
3
-
4
- Linux_task:
5
- container:
6
- matrix:
7
- - image: ruby:2.6-slim
8
- - image: ruby:2.7-slim
9
- - image: ruby:3.0-slim
10
- install_script:
11
- # git is installed since the gemspec uses it.
12
- - apt-get update && apt-get install -y git
13
- - gem install bundler
14
- - bundle install
15
- script:
16
- - ruby --version
17
- - bundle exec rake spec
18
-
19
- task:
20
- name: CI Success
21
- container: {image: "busybox"}
22
- depends_on:
23
- - Linux
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at me@duckie.co. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Okay only supports Ruby versions under "normal maintenance".
6
- # This number should be updated when a Ruby version goes into security
7
- # maintenance.
8
- #
9
- # Ruby maintenance info: https://www.ruby-lang.org/en/downloads/branches/
10
- #
11
- # NOTE: Update how_is.gemspec when this is updated!
12
- ruby ">= 2.6"
13
-
14
- # Specify your gem's dependencies in okay.gemspec
15
- gemspec
data/Gemfile.lock DELETED
@@ -1,40 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- okay (11.0.0)
5
- cacert
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- cacert (0.6.0)
11
- diff-lcs (1.4.4)
12
- rake (12.3.3)
13
- rspec (3.10.0)
14
- rspec-core (~> 3.10.0)
15
- rspec-expectations (~> 3.10.0)
16
- rspec-mocks (~> 3.10.0)
17
- rspec-core (3.10.1)
18
- rspec-support (~> 3.10.0)
19
- rspec-expectations (3.10.1)
20
- diff-lcs (>= 1.2.0, < 2.0)
21
- rspec-support (~> 3.10.0)
22
- rspec-mocks (3.10.2)
23
- diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.10.0)
25
- rspec-support (3.10.2)
26
-
27
- PLATFORMS
28
- x86_64-freebsd-13
29
-
30
- DEPENDENCIES
31
- bundler (~> 2.0)
32
- okay!
33
- rake (~> 12.3)
34
- rspec (~> 3.8)
35
-
36
- RUBY VERSION
37
- ruby 3.0.1p64
38
-
39
- BUNDLED WITH
40
- 2.2.15
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task :default => :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "okay"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/httpbin DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- docker run -p 80:80 kennethreitz/httpbin
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
data/bors.toml DELETED
@@ -1,5 +0,0 @@
1
- status = ["CI Success"]
2
-
3
- # Uncomment this to use a two hour timeout.
4
- # The default is one hour.
5
- #timeout_sec = 7200
@@ -1,11 +0,0 @@
1
- require "okay/graphql"
2
-
3
- query = Okay::GraphQL.query {
4
- viewer {
5
- login
6
- }
7
- }
8
-
9
- headers = { bearer_token: ENV['DEMO_GITHUB_TOKEN'] }
10
- results = query.submit!(:github, headers).or_raise!
11
- puts results.from_json
@@ -1,11 +0,0 @@
1
- require "okay/graphql"
2
-
3
- query = Okay::GraphQL.query {
4
- viewer {
5
- login
6
- }
7
- }
8
-
9
- headers = { bearer_token: "oh no, invalid bearer token!" }
10
- results = query.submit!(:github, headers).or_raise!
11
- puts results.from_json