itamae-plugin-recipe-tig 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/test.yml +99 -0
- data/.github_changelog_generator +1 -0
- data/.rspec +3 -0
- data/CHANGELOG.md +45 -0
- data/README.md +10 -1
- data/itamae-plugin-recipe-tig.gemspec +9 -2
- data/lib/itamae/plugin/recipe/tig/default.rb +6 -1
- data/lib/itamae/plugin/recipe/tig/version.rb +1 -1
- metadata +49 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9f5c88d66b78a8ec4a3c89493c20ae42088dac13738b56e5540b0c57ae0089a0
|
4
|
+
data.tar.gz: 8e082952ce0ca93ed95281d420bddd1f443473bae942e4882ab4ff54629ad2f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a262aa12cb7558f02d1c6863797ead9b7ad6564ceec143cf77bba5916ad434f039a58471699bcc2159ea51b479b85e26080c2103bb1d5b67fab1164c2f22026b
|
7
|
+
data.tar.gz: 5fb3de1fdb0843594e31e91ff03070ddbdaa09a23ca0626f5821a7a537fa463b6c9db4f8ddd46417eff05569f13b12f49e531c9c8a5ebe15314a8ccd0cc42fad
|
@@ -0,0 +1,99 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types:
|
9
|
+
- opened
|
10
|
+
- synchronize
|
11
|
+
- reopened
|
12
|
+
schedule:
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
14
|
+
|
15
|
+
env:
|
16
|
+
CI: "true"
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
test:
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
|
22
|
+
strategy:
|
23
|
+
fail-fast: false
|
24
|
+
|
25
|
+
matrix:
|
26
|
+
ruby:
|
27
|
+
- 2.3
|
28
|
+
image:
|
29
|
+
- centos:7
|
30
|
+
- centos:8
|
31
|
+
- debian:jessie
|
32
|
+
- debian:stretch
|
33
|
+
- debian:buster
|
34
|
+
- amazonlinux:2
|
35
|
+
|
36
|
+
steps:
|
37
|
+
- uses: actions/checkout@v2
|
38
|
+
|
39
|
+
- uses: eregon/use-ruby-action@v1
|
40
|
+
with:
|
41
|
+
ruby-version: ${{ matrix.ruby }}
|
42
|
+
|
43
|
+
- name: Cache vendor/bundle
|
44
|
+
uses: actions/cache@v1
|
45
|
+
id: cache_gem
|
46
|
+
with:
|
47
|
+
path: vendor/bundle
|
48
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
49
|
+
restore-keys: |
|
50
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
51
|
+
|
52
|
+
- name: bundle update
|
53
|
+
run: |
|
54
|
+
set -xe
|
55
|
+
bundle config path vendor/bundle
|
56
|
+
bundle update --jobs $(nproc) --retry 3
|
57
|
+
|
58
|
+
- name: Run Itamae
|
59
|
+
run: |
|
60
|
+
set -xe
|
61
|
+
bundle exec itamae docker --node-yaml=spec/recipes/node.yml spec/recipes/install.rb --image=$IMAGE --tag itamae-plugin:latest
|
62
|
+
env:
|
63
|
+
IMAGE: ${{ matrix.image }}
|
64
|
+
|
65
|
+
- name: Run Serverspec
|
66
|
+
run: |
|
67
|
+
set -xe
|
68
|
+
bundle exec rspec
|
69
|
+
env:
|
70
|
+
DOCKER_IMAGE: itamae-plugin:latest
|
71
|
+
|
72
|
+
- name: Slack Notification (not success)
|
73
|
+
uses: lazy-actions/slatify@master
|
74
|
+
if: "! success()"
|
75
|
+
continue-on-error: true
|
76
|
+
with:
|
77
|
+
job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.image) }}
|
78
|
+
type: ${{ job.status }}
|
79
|
+
icon_emoji: ":octocat:"
|
80
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
81
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
82
|
+
|
83
|
+
notify:
|
84
|
+
needs:
|
85
|
+
- test
|
86
|
+
|
87
|
+
runs-on: ubuntu-latest
|
88
|
+
|
89
|
+
steps:
|
90
|
+
- name: Slack Notification (success)
|
91
|
+
uses: lazy-actions/slatify@master
|
92
|
+
if: always()
|
93
|
+
continue-on-error: true
|
94
|
+
with:
|
95
|
+
job_name: '*build*'
|
96
|
+
type: ${{ job.status }}
|
97
|
+
icon_emoji: ":octocat:"
|
98
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
99
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1 @@
|
|
1
|
+
date-format=%Y/%m/%d
|
data/.rspec
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [v0.1.4](https://github.com/sue445/itamae-plugin-recipe-tig/tree/v0.1.4) (2021/11/20)
|
4
|
+
[Full Changelog](https://github.com/sue445/itamae-plugin-recipe-tig/compare/v0.1.3...v0.1.4)
|
5
|
+
|
6
|
+
* Enable MFA requirement for gem releasing
|
7
|
+
* https://github.com/sue445/itamae-plugin-recipe-tig/pull/30
|
8
|
+
|
9
|
+
## [v0.1.3](https://github.com/sue445/itamae-plugin-recipe-tig/tree/v0.1.3) (2018/10/11)
|
10
|
+
[Full Changelog](https://github.com/sue445/itamae-plugin-recipe-tig/compare/v0.1.2...v0.1.3)
|
11
|
+
|
12
|
+
**Merged pull requests:**
|
13
|
+
|
14
|
+
- Refactor spec and CI [\#15](https://github.com/sue445/itamae-plugin-recipe-tig/pull/15) ([sue445](https://github.com/sue445))
|
15
|
+
- Fixed. can not install tig on AmazonLinux [\#14](https://github.com/sue445/itamae-plugin-recipe-tig/pull/14) ([sue445](https://github.com/sue445))
|
16
|
+
- Dockerlize [\#13](https://github.com/sue445/itamae-plugin-recipe-tig/pull/13) ([sue445](https://github.com/sue445))
|
17
|
+
- update Vagrantfile [\#12](https://github.com/sue445/itamae-plugin-recipe-tig/pull/12) ([sue445](https://github.com/sue445))
|
18
|
+
- Update CI image [\#11](https://github.com/sue445/itamae-plugin-recipe-tig/pull/11) ([sue445](https://github.com/sue445))
|
19
|
+
|
20
|
+
## [v0.1.2](https://github.com/sue445/itamae-plugin-recipe-tig/tree/v0.1.2) (2017/09/12)
|
21
|
+
[Full Changelog](https://github.com/sue445/itamae-plugin-recipe-tig/compare/v0.1.1...v0.1.2)
|
22
|
+
|
23
|
+
**Merged pull requests:**
|
24
|
+
|
25
|
+
- Resolved: failure make configure on debian8 [\#10](https://github.com/sue445/itamae-plugin-recipe-tig/pull/10) ([sue445](https://github.com/sue445))
|
26
|
+
- Migrate to workflow [\#9](https://github.com/sue445/itamae-plugin-recipe-tig/pull/9) ([sue445](https://github.com/sue445))
|
27
|
+
- \[CI\] Migrate to Docker [\#8](https://github.com/sue445/itamae-plugin-recipe-tig/pull/8) ([sue445](https://github.com/sue445))
|
28
|
+
- Update box [\#7](https://github.com/sue445/itamae-plugin-recipe-tig/pull/7) ([sue445](https://github.com/sue445))
|
29
|
+
- Remove unused file [\#6](https://github.com/sue445/itamae-plugin-recipe-tig/pull/6) ([sue445](https://github.com/sue445))
|
30
|
+
- Support parallels CI [\#5](https://github.com/sue445/itamae-plugin-recipe-tig/pull/5) ([sue445](https://github.com/sue445))
|
31
|
+
|
32
|
+
## [v0.1.1](https://github.com/sue445/itamae-plugin-recipe-tig/tree/v0.1.1) (2016/03/06)
|
33
|
+
[Full Changelog](https://github.com/sue445/itamae-plugin-recipe-tig/compare/v0.1.0...v0.1.1)
|
34
|
+
|
35
|
+
**Merged pull requests:**
|
36
|
+
|
37
|
+
- Install make [\#4](https://github.com/sue445/itamae-plugin-recipe-tig/pull/4) ([sue445](https://github.com/sue445))
|
38
|
+
- Install automake [\#3](https://github.com/sue445/itamae-plugin-recipe-tig/pull/3) ([sue445](https://github.com/sue445))
|
39
|
+
- Setup CI [\#2](https://github.com/sue445/itamae-plugin-recipe-tig/pull/2) ([sue445](https://github.com/sue445))
|
40
|
+
- Install gcc [\#1](https://github.com/sue445/itamae-plugin-recipe-tig/pull/1) ([sue445](https://github.com/sue445))
|
41
|
+
|
42
|
+
## [v0.1.0](https://github.com/sue445/itamae-plugin-recipe-tig/tree/v0.1.0) (2015/12/15)
|
43
|
+
|
44
|
+
|
45
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
[Itamae](https://github.com/itamae-kitchen/itamae) plugin to install [tig](https://github.com/jonas/tig)
|
4
4
|
|
5
|
-
[![
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/itamae-plugin-recipe-tig.svg)](https://badge.fury.io/rb/itamae-plugin-recipe-tig)
|
6
|
+
[![Build Status](https://github.com/sue445/itamae-plugin-recipe-tig/workflows/test/badge.svg?branch=master)](https://github.com/sue445/itamae-plugin-recipe-tig/actions?query=workflow%3Atest)
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -56,6 +57,14 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
56
57
|
|
57
58
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
58
59
|
|
60
|
+
## Testing
|
61
|
+
requirements [Docker](https://www.docker.com/)
|
62
|
+
|
63
|
+
```sh
|
64
|
+
bundle exec itamae docker --node-yaml=spec/recipes/node.yml spec/recipes/install.rb --image=centos:7 --tag itamae-plugin:latest
|
65
|
+
DOCKER_IMAGE=itamae-plugin:latest bundle exec rspec
|
66
|
+
```
|
67
|
+
|
59
68
|
## Contributing
|
60
69
|
|
61
70
|
Bug reports and pull requests are welcome on GitHub at https://github.com/sue445/itamae-plugin-recipe-tig.
|
@@ -14,6 +14,11 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/sue445/itamae-plugin-recipe-tig"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
19
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
20
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
21
|
+
|
17
22
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
23
|
spec.bindir = "exe"
|
19
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
@@ -21,6 +26,8 @@ Gem::Specification.new do |spec|
|
|
21
26
|
|
22
27
|
spec.add_dependency "itamae"
|
23
28
|
|
24
|
-
spec.add_development_dependency "bundler", "
|
25
|
-
spec.add_development_dependency "
|
29
|
+
spec.add_development_dependency "bundler", ">= 1.10"
|
30
|
+
spec.add_development_dependency "docker-api"
|
31
|
+
spec.add_development_dependency "rake"
|
32
|
+
spec.add_development_dependency "serverspec"
|
26
33
|
end
|
@@ -7,12 +7,17 @@ node.reverse_merge!(
|
|
7
7
|
)
|
8
8
|
|
9
9
|
package "git"
|
10
|
+
package "gcc"
|
11
|
+
package "automake"
|
12
|
+
package "make"
|
10
13
|
|
11
14
|
case node[:platform]
|
12
15
|
when "debian", "ubuntu"
|
13
16
|
package "libncursesw5-dev"
|
14
|
-
|
17
|
+
package "pkg-config"
|
18
|
+
when 'redhat', "amazon"
|
15
19
|
package "ncurses-devel"
|
20
|
+
package "which"
|
16
21
|
end
|
17
22
|
|
18
23
|
tig_dir = "#{node[:tig][:src]}/tig"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itamae-plugin-recipe-tig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: itamae
|
@@ -28,30 +28,58 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.10'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: docker-api
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: serverspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
46
74
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
75
|
+
version: '0'
|
48
76
|
type: :development
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
|
-
- - "
|
80
|
+
- - ">="
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
82
|
+
version: '0'
|
55
83
|
description: Itamae plugin to install tig
|
56
84
|
email:
|
57
85
|
- sue445@sue445.net
|
@@ -59,7 +87,11 @@ executables: []
|
|
59
87
|
extensions: []
|
60
88
|
extra_rdoc_files: []
|
61
89
|
files:
|
90
|
+
- ".github/workflows/test.yml"
|
91
|
+
- ".github_changelog_generator"
|
62
92
|
- ".gitignore"
|
93
|
+
- ".rspec"
|
94
|
+
- CHANGELOG.md
|
63
95
|
- Gemfile
|
64
96
|
- LICENSE.txt
|
65
97
|
- README.md
|
@@ -73,8 +105,12 @@ files:
|
|
73
105
|
homepage: https://github.com/sue445/itamae-plugin-recipe-tig
|
74
106
|
licenses:
|
75
107
|
- MIT
|
76
|
-
metadata:
|
77
|
-
|
108
|
+
metadata:
|
109
|
+
homepage_uri: https://github.com/sue445/itamae-plugin-recipe-tig
|
110
|
+
source_code_uri: https://github.com/sue445/itamae-plugin-recipe-tig
|
111
|
+
changelog_uri: https://github.com/sue445/itamae-plugin-recipe-tig/blob/master/CHANGELOG.md
|
112
|
+
rubygems_mfa_required: 'true'
|
113
|
+
post_install_message:
|
78
114
|
rdoc_options: []
|
79
115
|
require_paths:
|
80
116
|
- lib
|
@@ -89,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
125
|
- !ruby/object:Gem::Version
|
90
126
|
version: '0'
|
91
127
|
requirements: []
|
92
|
-
|
93
|
-
|
94
|
-
signing_key:
|
128
|
+
rubygems_version: 3.2.22
|
129
|
+
signing_key:
|
95
130
|
specification_version: 4
|
96
131
|
summary: Itamae plugin to install tig
|
97
132
|
test_files: []
|