oscal 0.2.3 → 0.4.1

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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/oscal/v1_2_1/all_models.rb +16379 -0
  3. data/lib/oscal/v1_2_1.rb +109 -0
  4. data/lib/oscal/version.rb +1 -1
  5. data/lib/oscal/version_registry.rb +183 -0
  6. data/lib/oscal/versioned.rb +88 -0
  7. data/lib/oscal.rb +93 -3
  8. metadata +38 -111
  9. data/.docker/Dockerfile +0 -19
  10. data/.docker/Makefile +0 -43
  11. data/.docker/docker-compose.yml +0 -14
  12. data/.docker/readme.md +0 -61
  13. data/.github/workflows/rake.yml +0 -15
  14. data/.github/workflows/release.yml +0 -24
  15. data/.gitignore +0 -13
  16. data/.gitmodules +0 -3
  17. data/.hound.yml +0 -5
  18. data/.rspec +0 -2
  19. data/.rubocop.yml +0 -10
  20. data/.ruby-version +0 -1
  21. data/CODE_OF_CONDUCT.md +0 -84
  22. data/Gemfile +0 -16
  23. data/LICENSE +0 -25
  24. data/Makefile +0 -1
  25. data/README.adoc +0 -115
  26. data/Rakefile +0 -19
  27. data/bin/console +0 -30
  28. data/bin/rspec +0 -27
  29. data/bin/setup +0 -8
  30. data/docker-compose.yml +0 -1
  31. data/exe/convert2oscalyaml.rb +0 -560
  32. data/lib/oscal/add.rb +0 -26
  33. data/lib/oscal/address.rb +0 -22
  34. data/lib/oscal/address_line.rb +0 -11
  35. data/lib/oscal/alter.rb +0 -22
  36. data/lib/oscal/assembly.rb +0 -120
  37. data/lib/oscal/assessment_plan.rb +0 -28
  38. data/lib/oscal/assessment_result.rb +0 -230
  39. data/lib/oscal/attribute_type_hash.rb +0 -81
  40. data/lib/oscal/back_matter.rb +0 -20
  41. data/lib/oscal/base64_object.rb +0 -11
  42. data/lib/oscal/base_class.rb +0 -50
  43. data/lib/oscal/catalog.rb +0 -63
  44. data/lib/oscal/choice.rb +0 -11
  45. data/lib/oscal/citation.rb +0 -22
  46. data/lib/oscal/combine.rb +0 -11
  47. data/lib/oscal/common_utils.rb +0 -35
  48. data/lib/oscal/constraint.rb +0 -20
  49. data/lib/oscal/control.rb +0 -28
  50. data/lib/oscal/custom.rb +0 -22
  51. data/lib/oscal/datatypes.rb +0 -50
  52. data/lib/oscal/document_id.rb +0 -11
  53. data/lib/oscal/email_address.rb +0 -11
  54. data/lib/oscal/exclude_control.rb +0 -22
  55. data/lib/oscal/external_id.rb +0 -11
  56. data/lib/oscal/group.rb +0 -33
  57. data/lib/oscal/guideline.rb +0 -11
  58. data/lib/oscal/hash_object.rb +0 -11
  59. data/lib/oscal/import_object.rb +0 -22
  60. data/lib/oscal/include_control.rb +0 -22
  61. data/lib/oscal/insert_control.rb +0 -22
  62. data/lib/oscal/link.rb +0 -11
  63. data/lib/oscal/list.rb +0 -160
  64. data/lib/oscal/location.rb +0 -31
  65. data/lib/oscal/location_uuid.rb +0 -11
  66. data/lib/oscal/logger.rb +0 -12
  67. data/lib/oscal/matching.rb +0 -11
  68. data/lib/oscal/member_of_organization.rb +0 -11
  69. data/lib/oscal/merge.rb +0 -20
  70. data/lib/oscal/metadata_block.rb +0 -36
  71. data/lib/oscal/modify.rb +0 -22
  72. data/lib/oscal/parameter.rb +0 -31
  73. data/lib/oscal/parsing_functions.rb +0 -19
  74. data/lib/oscal/part.rb +0 -24
  75. data/lib/oscal/party.rb +0 -36
  76. data/lib/oscal/party_uuid.rb +0 -11
  77. data/lib/oscal/profile.rb +0 -37
  78. data/lib/oscal/property.rb +0 -11
  79. data/lib/oscal/remove.rb +0 -11
  80. data/lib/oscal/resource.rb +0 -29
  81. data/lib/oscal/responsible_party.rb +0 -24
  82. data/lib/oscal/revision.rb +0 -23
  83. data/lib/oscal/rlink.rb +0 -20
  84. data/lib/oscal/role.rb +0 -22
  85. data/lib/oscal/select.rb +0 -20
  86. data/lib/oscal/serializer.rb +0 -76
  87. data/lib/oscal/set_parameter.rb +0 -31
  88. data/lib/oscal/telephone_number.rb +0 -11
  89. data/lib/oscal/test.rb +0 -11
  90. data/lib/oscal/url.rb +0 -11
  91. data/lib/oscal/value.rb +0 -37
  92. data/lib/oscal/with_id.rb +0 -40
  93. data/oscal.gemspec +0 -30
  94. data/sig/oscal.rbs +0 -4
  95. data/spec/oscal/assessment_plan_spec.rb +0 -21
  96. data/spec/oscal/catalog_spec.rb +0 -42
  97. data/spec/oscal_spec.rb +0 -18
  98. data/spec/sample_inputs/import-ap.json +0 -4
  99. data/spec/spec_helper.rb +0 -15
data/.docker/Makefile DELETED
@@ -1,43 +0,0 @@
1
- export SPEC ?= spec
2
- SPEC_FILE = $(subst ../,, $(SPEC))
3
- export RUBY_IMAGE ?= ruby:3.1.2-slim
4
-
5
- .PHONY: up
6
- up:
7
- docker-compose up
8
-
9
- .PHONY: down
10
- down:
11
- docker-compose down
12
-
13
- .PHONY: test
14
- test: rspec
15
-
16
- .PHONY: ssh
17
- ssh:
18
- docker-compose run lib bash
19
-
20
- .PHONY: install
21
- install:
22
- docker-compose run lib bin/setup
23
-
24
- .PHONY: console
25
- console:
26
- docker-compose run lib bin/console
27
-
28
- .PHONY: rspec
29
- rspec:
30
- docker-compose run lib bin/rspec ${SPEC_FILE}
31
-
32
- .PHONY: rake
33
- rake:
34
- docker-compose run lib bundle exec rake
35
-
36
- .PHONY: lint
37
- lint:
38
- docker-compose run lib bundle exec rubocop
39
-
40
- .PHONY: setup
41
- setup:
42
- docker-compose build --build-arg RUBY_IMAGE=${RUBY_IMAGE}
43
- docker-compose run lib bin/setup
@@ -1,14 +0,0 @@
1
- version: "3"
2
-
3
- services:
4
- lib:
5
- build:
6
- context: .
7
- dockerfile: ./.docker/Dockerfile
8
-
9
- volumes:
10
- - .:/workspace
11
- - bundle:/bundle
12
-
13
- volumes:
14
- bundle:
data/.docker/readme.md DELETED
@@ -1,61 +0,0 @@
1
- ## Docker
2
-
3
- This directory is only meant to be used for development, and contains some
4
- necessary setup to spin up docker containers with multiple ruby environment.
5
-
6
- ### Setup
7
-
8
- Before doing anything, you might want to create a symlink to the docker file and
9
- Makefile. This would allow you to avoid some of the unnecessary work related to
10
- the file paths To do that run the following from the root of the project.
11
-
12
- ```
13
- ln -sf .docker/Makefile .
14
- ln -sf .docker/docker-compose.yml .
15
- ```
16
-
17
- By default it usages the most recent ruby version for docker environment, but if
18
- you want to run it in any specific version then you can set it up by exporting
19
- `RUBY_IMAGE` environment variable in your shell:
20
-
21
- ```sh
22
- export RUBY_IMAGE=ruby:3.0-buster
23
- ```
24
-
25
- Once everything is set then you would need to build the development images for
26
- the first time and you can do that using:
27
-
28
- ```sh
29
- make setup
30
- ```
31
-
32
- The setup process will install all dependencies and it will also setup a volume
33
- to speed up the repeated gem installation.
34
-
35
- ### Playground
36
-
37
- The `Makefile` contains two target for tests, and you can run the tests using
38
- any of the following commands:
39
-
40
- ```sh
41
- make test
42
-
43
- # or
44
- make rspec
45
- ```
46
-
47
- If you need more control, and you want to do some development on the go then you
48
- can get into the container using:
49
-
50
- ```sh
51
- make ssh
52
- ```
53
-
54
- ### Cleanup
55
-
56
- Once you are done with your experiment then you can cleanup the docker
57
- environment using the following command.
58
-
59
- ```sh
60
- make down
61
- ```
@@ -1,15 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: rake
4
-
5
- on:
6
- push:
7
- branches: [ master, main ]
8
- tags: [ v* ]
9
- pull_request:
10
-
11
- jobs:
12
- rake:
13
- uses: metanorma/ci/.github/workflows/generic-rake.yml@main
14
- secrets:
15
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -1,24 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: release
4
-
5
- on:
6
- workflow_dispatch:
7
- inputs:
8
- next_version:
9
- description: |
10
- Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
- required: true
12
- default: 'skip'
13
- repository_dispatch:
14
- types: [ do-release ]
15
-
16
- jobs:
17
- release:
18
- uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
- with:
20
- next_version: ${{ github.event.inputs.next_version }}
21
- secrets:
22
- rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
-
data/.gitignore DELETED
@@ -1,13 +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
12
- .rubocop-https---**
13
- Gemfile.lock
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "spec/oscal-content"]
2
- path = spec/oscal-content
3
- url = https://github.com/usnistgov/oscal-content
data/.hound.yml DELETED
@@ -1,5 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- ruby:
4
- enabled: true
5
- config_file: .rubocop.yml
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,10 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- inherit_from:
4
- - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
5
-
6
- # local repo-specific modifications
7
- # ...
8
-
9
- AllCops:
10
- TargetRubyVersion: 2.7
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.3.1
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ronald.tse@ribose.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in oscal.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.0"
11
-
12
- gem "rubocop", "~> 1.21"
13
-
14
- gem "rubocop-performance", "~> 1.16"
15
-
16
- gem "debug"
data/LICENSE DELETED
@@ -1,25 +0,0 @@
1
- BSD 2-Clause License
2
-
3
- Copyright (c) 2023, Ribose
4
- All rights reserved.
5
-
6
- Redistribution and use in source and binary forms, with or without
7
- modification, are permitted provided that the following conditions are met:
8
-
9
- * Redistributions of source code must retain the above copyright notice, this
10
- list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright notice,
13
- this list of conditions and the following disclaimer in the documentation
14
- and/or other materials provided with the distribution.
15
-
16
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/Makefile DELETED
@@ -1 +0,0 @@
1
- .docker/Makefile
data/README.adoc DELETED
@@ -1,115 +0,0 @@
1
- = OSCAL in Ruby
2
-
3
- == Purpose
4
-
5
- This is an implementation of the OSCAL models, allowing the manipulation of
6
- these models, as well as reading and writing of OSCAL serialization formats
7
- (YAML, JSON, XML).
8
-
9
- NOTE: This gem is used by the
10
- https://github.com/metanorma/metanorma-plugin-oscal[Metanorma plugin for OSCAL].
11
-
12
-
13
- == Installation
14
-
15
- Install the gem:
16
-
17
- [source,console]
18
- ----
19
- [sudo] gem install oscal
20
- ----
21
-
22
- or add it to your `Gemfile`:
23
-
24
- [source,ruby]
25
- ----
26
- gem 'oscal'
27
- ----
28
-
29
- == Command-line usage
30
-
31
- TODO: Write usage instructions here
32
-
33
- [source,ruby]
34
- ----
35
- > require 'oscal'
36
- > x = Oscal::Catalog.load_from_yaml('spec/oscal-content/examples/catalog/yaml/basic-catalog.yaml')
37
- =>
38
- #<Oscal::Catalog:0x000000010b817e08
39
- ...
40
- > x.groups.first.groups.first.parts.first.prose
41
- => "To establish a management framework to initiate and control the implementation and operation of information security within the organization."
42
- ----
43
-
44
- Get all controls
45
-
46
- [source,ruby]
47
- ----
48
- > require 'oscal'
49
- > x = Oscal::Catalog.load_from_yaml('spec/oscal-content/examples/catalog/yaml/basic-catalog.yaml')
50
- =>
51
- #<Oscal::Catalog:0x000000010b817e08
52
- ...
53
- > o = x.get_all_controls
54
- > o.count
55
- => 4
56
- ----
57
-
58
- Find object by id
59
-
60
- [source,ruby]
61
- ----
62
- > require 'oscal'
63
- > x = Oscal::Catalog.load_from_yaml('spec/oscal-content/examples/catalog/yaml/basic-catalog.yaml')
64
- =>
65
- #<Oscal::Catalog:0x000000010b817e08
66
- ...
67
- > p = x.find_object_by_id('s1.1_smt')
68
- =>
69
- #<Oscal::Part:0x000000014c0c4070 @id="s1.1_smt", ...>
70
- ----
71
-
72
- Find object by uuid
73
-
74
- [source,ruby]
75
- ----
76
- > require 'oscal'
77
- > x = Oscal::Catalog.load_from_yaml('spec/oscal-content/examples/catalog/yaml/basic-catalog.yaml')
78
- =>
79
- #<Oscal::Catalog:0x000000010b817e08
80
- ...
81
- > p = x.find_object_by_id('74c8ba1e-5cd4-4ad1-bbfd-d888e2f6c724', x, :uuid)
82
- =>
83
- #<Oscal::Catalog:0x000000014c0c5f38 @uuid="74c8ba1e-5cd4-4ad1-bbfd-d888e2f6c724", ...>
84
- ----
85
-
86
- == Ruby library usage
87
-
88
- TODO: Write usage instructions here
89
-
90
- == Development
91
-
92
- After checking out the repo, run `bin/setup` to install dependencies. Then, run
93
- `rake spec` to run the tests. You can also run `bin/console` for an interactive
94
- prompt that will allow you to experiment.
95
-
96
- To install this gem onto your local machine, run `bundle exec rake install`. To
97
- release a new version, update the version number in `version.rb`, and then run
98
- `bundle exec rake release`, which will create a git tag for the version, push
99
- git commits and the created tag, and push the `.gem` file to
100
- https://rubygems.org.
101
-
102
- == Contributing
103
-
104
- Bug reports and pull requests are welcome on GitHub at https://github.com/metanorma/oscal. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the https://github.com/metanorma/oscal/blob/main/CODE_OF_CONDUCT.md[code of conduct].
105
-
106
- == Code of Conduct
107
-
108
- Everyone interacting in the Oscal project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the https://github.com/metanorma/oscal/blob/main/CODE_OF_CONDUCT.md[code of conduct].
109
-
110
- == LICENSE
111
-
112
- Copyright Ribose. The OSCAL schema is published by NIST.
113
-
114
- Published under the 2-clause BSD license.
115
-
data/Rakefile DELETED
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- # Note:
7
- #
8
- # There seems to be lots of issue with the current rubocop rules
9
- # We are commenting this out for the moment, so instead of fixing
10
- # those right away, we can focus on the new codes and then later
11
- # come back to this and fix the issues.
12
- #
13
- # require "rubocop/rake_task"
14
- # RuboCop::RakeTask.new
15
- #
16
- # task default: %i[spec rubocop]
17
-
18
- RSpec::Core::RakeTask.new(:spec)
19
- task default: :spec
data/bin/console DELETED
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "oscal"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
-
16
- def reload!(print = true)
17
- puts "Reloading ..." if print
18
- # Main project directory.
19
- root_dir = File.expand_path("..", __dir__)
20
- # Directories within the project that should be reloaded.
21
- reload_dirs = %w{lib}
22
- # Loop through and reload every file in all relevant project directories.
23
- reload_dirs.each do |dir|
24
- Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
25
- end
26
- # Return true when complete.
27
- true
28
- end
29
-
30
- IRB.start(__FILE__)
data/bin/rspec DELETED
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'rspec' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
-
13
- bundle_binstub = File.expand_path("bundle", __dir__)
14
-
15
- if File.file?(bundle_binstub)
16
- if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
17
- load(bundle_binstub)
18
- else
19
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
- end
22
- end
23
-
24
- require "rubygems"
25
- require "bundler/setup"
26
-
27
- load Gem.bin_path("rspec-core", "rspec")
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/docker-compose.yml DELETED
@@ -1 +0,0 @@
1
- .docker/docker-compose.yml