Skip to content

Commit 88e4a98

Browse files
committed
Initial public release
0 parents  commit 88e4a98

File tree

158 files changed

+6702
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+6702
-0
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!--
2+
Hi there! If you are reporting a bug or a problem, please use this template so that we can collect the information that we need in order to help. If you are opening an issue for a reason other than reporting a problem, e.g. to make a feature request or start a discussion of new functionality, then you do not need to follow the template.
3+
4+
Please remember that all activity in this project, including issues, needs to comply with the Code of Conduct, found in the CODE_OF_CONDUCT.md document in the root of this repository.
5+
-->
6+
7+
> Description of problem
8+
9+
- What did you do?
10+
- What happened?
11+
- What did you expect to happen?
12+
- How can someone reproduce the problem?
13+
14+
> Command/code used
15+
16+
```
17+
Paste the exact command or code here.
18+
```
19+
20+
> Platform and version information
21+
22+
- Your OS: <!-- Mac OS? Linux? Which version and distribution? -->
23+
- Your Ruby version: <!-- type `ruby --version` at the command prompt -->
24+
- Your version of Puppet: <!-- version number, and whether it's open source or Puppet Enterprise -->
25+
- Your version of octofacts: <!-- Look at the .version file in the root of this repository. -->
26+
27+
> Do the tests pass from a clean checkout?
28+
29+
<!-- Please refer to the README file to check out the code, bootstrap the repository, and run the tests. If you encounter any errors from the tests, please post them here. -->
30+
31+
> Anything else to add that you think will be helpful?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!--
2+
Hi there! We are delighted that you have chosen to contribute to octofacts.
3+
4+
If you have not already done so, please read CONTRIBUTING.md document in the root of this repository.
5+
6+
Please remember that all activity in this project, including pull requests, needs to comply with the Code of Conduct, found in the CODE_OF_CONDUCT.md document in the root of this repository.
7+
8+
Any contributions to this project must be made under the MIT license.
9+
10+
You do NOT need to bump the version number as part of your submission. We will do this for you at or after the time we merge your contribution.
11+
-->
12+
13+
## Overview
14+
15+
This pull request [introduces/changes/removes] [functionality/feature].
16+
17+
(Please write a summary of your pull request here. This paragraph should go into detail about what is changing, the motivation behind this change, and the approach you took.)
18+
19+
## Checklist
20+
21+
- [ ] Make sure that all of the tests pass, and fix any that don't. Just run `bundle exec rake` in your checkout directory, or review the CI job triggered whenever you push to a pull request.
22+
- [ ] Make sure that there is 100% test coverage (the CI job will test for this). You can ignore untestable sections of code with `# :nocov` comments. If you need help getting to 100% coverage please ask; however, don't just submit code with no tests.
23+
- [ ] If you have added any new gem dependencies, make sure those gems are licensed under the MIT or Apache 2.0 license. We cannot add any dependencies on gems licensed under GPL.
24+
- [ ] If you have added any new gem dependencies, make sure you've checked in a copy of the `.gem` file into the [vendor/cache](/vendor/cache) directory.
25+
26+
/cc [related issues] [teams and individuals, making sure to mention why you're CC-ing them]

.gitignore

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
*.rbc
2+
/.config
3+
/coverage/
4+
/InstalledFiles
5+
/pkg/
6+
/lib/octofacts/coverage
7+
/lib/octofacts_updater/coverage
8+
/spec/reports/
9+
/spec/examples.txt
10+
/test/tmp/
11+
/test/version_tmp/
12+
/tmp/
13+
14+
# Used by dotenv library to load environment variables.
15+
# .env
16+
17+
## Specific to RubyMotion:
18+
.dat*
19+
.repl_history
20+
build/
21+
*.bridgesupport
22+
build-iPhoneOS/
23+
build-iPhoneSimulator/
24+
25+
## Specific to RubyMotion (use of CocoaPods):
26+
#
27+
# We recommend against adding the Pods directory to your .gitignore. However
28+
# you should judge for yourself, the pros and cons are mentioned at:
29+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
30+
#
31+
# vendor/Pods/
32+
33+
# Binstubs - if this gem ships any binstubs we'll need to whitelist them.
34+
/bin/*
35+
!/bin/octofacts-updater
36+
37+
## Documentation cache and generated files:
38+
/.yardoc/
39+
/_yardoc/
40+
/rdoc/
41+
42+
## Environment normalization:
43+
/.bundle/
44+
/vendor/bundle
45+
/lib/bundler/man/
46+
47+
# for a library or gem, you might want to ignore these files since the code is
48+
# intended to run in multiple environments; otherwise, check them in:
49+
# Gemfile.lock
50+
# .ruby-version
51+
# .ruby-gemset
52+
53+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
54+
.rvmrc

.rubocop.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
inherit_gem:
2+
rubocop-github:
3+
- config/default.yml
4+
5+
AllCops:
6+
DisplayCopNames: true
7+
8+
AllCops:
9+
TargetRubyVersion: 2.1

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.1.9

.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.2.0

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers 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, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Contributing
2+
3+
[fork]: https://github.com/github/octofacts/fork
4+
[pr]: https://github.com/github/octofacts/compare
5+
[style]: https://github.com/styleguide/ruby
6+
[code-of-conduct]: CODE_OF_CONDUCT.md
7+
8+
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
9+
10+
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
11+
12+
## Submitting a pull request
13+
14+
0. [Fork][fork] and clone the repository
15+
0. Configure and install the dependencies: `script/bootstrap`
16+
0. Make sure the tests pass on your machine: `bundle exec rake`
17+
0. Create a new branch: `git checkout -b my-branch-name`
18+
0. Make your change, add tests, and make sure the tests still pass
19+
0. Push to your fork and [submit a pull request][pr]
20+
0. Pat your self on the back and wait for your pull request to be reviewed and merged.
21+
22+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
23+
24+
- Follow the [style guide][style].
25+
- Write tests. We require 100% rspec test coverage in this project.
26+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
27+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
28+
29+
## Resources
30+
31+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
32+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
33+
- [GitHub Help](https://help.github.com)

Gemfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
source "https://rubygems.org"
2+
3+
gemspec name: "octofacts"
4+
gemspec name: "octofacts-updater"
5+
6+
group :development do
7+
gem "parallel", "= 1.12.0"
8+
gem "pry", "~> 0.10"
9+
gem "rake", "~> 10.0"
10+
gem "rubocop-github", "~> 0.5.0"
11+
gem "simplecov", ">= 0.14.1"
12+
gem "simplecov-json", "~> 0.2"
13+
14+
# Integration test
15+
gem "rspec-puppet", "~> #{ENV['RSPEC_PUPPET_VERSION'] || '2.6.2'}"
16+
gem "puppet", "~> #{ENV['PUPPET_VERSION'] || '4.10.4'}"
17+
end

Gemfile.lock

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
PATH
2+
remote: .
3+
specs:
4+
octofacts (0.2.0)
5+
octofacts-updater (0.2.0)
6+
diffy (>= 3.1.0)
7+
net-ssh (>= 2.9)
8+
octocatalog-diff (>= 1.4.1)
9+
octokit (>= 4.2.0)
10+
11+
GEM
12+
remote: https://rubygems.org/
13+
specs:
14+
addressable (2.5.2)
15+
public_suffix (>= 2.0.2, < 4.0)
16+
ast (2.3.0)
17+
coderay (1.1.1)
18+
diff-lcs (1.3)
19+
diffy (3.2.0)
20+
docile (1.1.5)
21+
facter (2.4.6)
22+
faraday (0.13.1)
23+
multipart-post (>= 1.2, < 3)
24+
fast_gettext (1.1.0)
25+
gettext (3.2.3)
26+
locale (>= 2.0.5)
27+
text (>= 1.3.0)
28+
gettext-setup (0.25)
29+
fast_gettext (~> 1.1.0)
30+
gettext (>= 3.0.2)
31+
locale
32+
hashdiff (0.3.6)
33+
hiera (3.3.1)
34+
httparty (0.15.6)
35+
multi_xml (>= 0.5.2)
36+
json (2.1.0)
37+
json_pure (1.8.6)
38+
locale (2.1.2)
39+
method_source (0.8.2)
40+
multi_xml (0.6.0)
41+
multipart-post (2.0.0)
42+
net-ssh (4.2.0)
43+
octocatalog-diff (1.4.1)
44+
diffy (>= 3.1.0)
45+
hashdiff (>= 0.3.0)
46+
httparty (>= 0.11.0)
47+
rugged (>= 0.25.0b2)
48+
octokit (4.7.0)
49+
sawyer (~> 0.8.0, >= 0.5.3)
50+
parallel (1.12.0)
51+
parser (2.4.0.0)
52+
ast (~> 2.2)
53+
powerpack (0.1.1)
54+
pry (0.10.4)
55+
coderay (~> 1.1.0)
56+
method_source (~> 0.8.1)
57+
slop (~> 3.4)
58+
public_suffix (3.0.0)
59+
puppet (4.10.4)
60+
facter (> 2.0, < 4)
61+
gettext-setup (>= 0.10, < 1)
62+
hiera (>= 2.0, < 4)
63+
json_pure (~> 1.8)
64+
locale (~> 2.1)
65+
rainbow (2.2.2)
66+
rake
67+
rake (10.5.0)
68+
rspec (3.6.0)
69+
rspec-core (~> 3.6.0)
70+
rspec-expectations (~> 3.6.0)
71+
rspec-mocks (~> 3.6.0)
72+
rspec-core (3.6.0)
73+
rspec-support (~> 3.6.0)
74+
rspec-expectations (3.6.0)
75+
diff-lcs (>= 1.2.0, < 2.0)
76+
rspec-support (~> 3.6.0)
77+
rspec-mocks (3.6.0)
78+
diff-lcs (>= 1.2.0, < 2.0)
79+
rspec-support (~> 3.6.0)
80+
rspec-puppet (2.6.2)
81+
rspec
82+
rspec-support (3.6.0)
83+
rubocop (0.49.1)
84+
parallel (~> 1.10)
85+
parser (>= 2.3.3.1, < 3.0)
86+
powerpack (~> 0.1)
87+
rainbow (>= 1.99.1, < 3.0)
88+
ruby-progressbar (~> 1.7)
89+
unicode-display_width (~> 1.0, >= 1.0.1)
90+
rubocop-github (0.5.0)
91+
rubocop (~> 0.49)
92+
ruby-progressbar (1.8.1)
93+
rugged (0.26.0)
94+
sawyer (0.8.1)
95+
addressable (>= 2.3.5, < 2.6)
96+
faraday (~> 0.8, < 1.0)
97+
simplecov (0.14.1)
98+
docile (~> 1.1.0)
99+
json (>= 1.8, < 3)
100+
simplecov-html (~> 0.10.0)
101+
simplecov-html (0.10.1)
102+
simplecov-json (0.2)
103+
json
104+
simplecov
105+
slop (3.6.0)
106+
text (1.3.1)
107+
unicode-display_width (1.3.0)
108+
109+
PLATFORMS
110+
ruby
111+
112+
DEPENDENCIES
113+
octofacts!
114+
octofacts-updater!
115+
parallel (= 1.12.0)
116+
pry (~> 0.10)
117+
puppet (~> 4.10.4)
118+
rake (~> 10.0)
119+
rspec-puppet (~> 2.6.2)
120+
rubocop-github (~> 0.5.0)
121+
simplecov (>= 0.14.1)
122+
simplecov-json (~> 0.2)
123+
124+
BUNDLED WITH
125+
1.15.1

0 commit comments

Comments
 (0)