talos 0.1.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 37518a52c1a810d98ff2e1a66e362b13ec057bc5
4
- data.tar.gz: 176679ef4e2cc207f099452eb5f10f5cec0fdb35
2
+ SHA256:
3
+ metadata.gz: 45699c16e1dedeafa14dcbd62584e323067f4dffab7e93d14a1840c1e1ad9dcb
4
+ data.tar.gz: f6e7c8901ab32796df38fab06b8011aa54ed0ab8d134af682090b19b5d7302e5
5
5
  SHA512:
6
- metadata.gz: 97fb24dd46855711a92869784ce965ef0f139d7de5dba08068cb58824b54fe0fe104ddc0b3c3aac596a4dabb7622cfbf22af684bc1b242d7baa87df0c383ab9a
7
- data.tar.gz: 57b72db876fd7ce56052f5c56a1d2553fd211dcb2e8788a8e34933df7ebf2a0f7ec37936fc9d54839468b2f85415cf0ef0522b6d0b3429ffbfc08f2b175d5703
6
+ metadata.gz: 4a811fd20a6e983d8da23afc1a4de354488aba4f519e8ceea36269ce93f2778c5e212df94acec5a16a8ef88e898f0b4f70a14b648e05a65ab06564ac6a825267
7
+ data.tar.gz: 1751062ec1697243419b704d9936734fc81690db5485b4789c2a812948a003c6118f789c2bd326cfdf169017ba785da2e24ff38a04be3fcf299e62f2c3158064
@@ -0,0 +1,44 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+
7
+
8
+ jobs:
9
+ build:
10
+ name: Build + Publish
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ packages: write
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby 2.6
19
+ uses: actions/setup-ruby@v1
20
+ with:
21
+ ruby-version: 2.6.x
22
+
23
+ - name: Publish to GPR
24
+ run: |
25
+ mkdir -p $HOME/.gem
26
+ touch $HOME/.gem/credentials
27
+ chmod 0600 $HOME/.gem/credentials
28
+ printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
29
+ gem build *.gemspec
30
+ gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
31
+ env:
32
+ GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
33
+ OWNER: ${{ github.repository_owner }}
34
+
35
+ - name: Publish to RubyGems
36
+ run: |
37
+ mkdir -p $HOME/.gem
38
+ touch $HOME/.gem/credentials
39
+ chmod 0600 $HOME/.gem/credentials
40
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
41
+ gem build *.gemspec
42
+ gem push *.gem
43
+ env:
44
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_KEY}}"
@@ -0,0 +1,35 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Ruby
9
+
10
+ on:
11
+ push:
12
+ branches: [ master ]
13
+ pull_request:
14
+ branches: [ master ]
15
+
16
+ jobs:
17
+ test:
18
+
19
+ runs-on: ubuntu-latest
20
+ strategy:
21
+ matrix:
22
+ ruby-version: ['2.5', '2.6', '2.7']
23
+
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+ - name: Set up Ruby
27
+ # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
28
+ # change this to (see https://github.com/ruby/setup-ruby#versioning):
29
+ # uses: ruby/setup-ruby@v1
30
+ uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
31
+ with:
32
+ ruby-version: ${{ matrix.ruby-version }}
33
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
34
+ - name: Run tests
35
+ run: bundle exec rake
data/README.md CHANGED
@@ -6,7 +6,7 @@ Talos
6
6
 
7
7
  Talos is a rack application which serves Hiera yaml files over HTTP.
8
8
  It authorizes clients based on the SSL certificates issued by the Puppet CA and returns only the files in the
9
- [Hiera scope](https://docs.puppetlabs.com/hiera/3.0/command_line.html#json-and-yaml-scopes).
9
+ [Hiera scope](https://github.com/puppetlabs/docs-archive/blob/master/hiera/3.3/command_line.markdown#json-and-yaml-scopes).
10
10
 
11
11
  Talos is used to store and distribute secrets via Hiera to the masterless puppet clients.
12
12
 
data/Rakefile CHANGED
@@ -4,8 +4,8 @@ require "bundler/gem_tasks"
4
4
  require 'rake'
5
5
  require 'rspec/core/rake_task'
6
6
 
7
- task :default => :travis
8
- task :travis => [:spec]
7
+ task :default => :test
8
+ task :test => [:spec]
9
9
 
10
10
  RSpec::Core::RakeTask.new(:spec) do |t|
11
11
  t.pattern = 'spec/*_spec.rb'
data/spec/fixtures/master CHANGED
@@ -1 +1 @@
1
- master.3fa3fd97848a72ae539b75bccd6028cd1d4e92e3
1
+ spec/fixtures/master.3fa3fd97848a72ae539b75bccd6028cd1d4e92e3
data/talos.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  Gem::Specification.new do |s|
2
- s.version = '0.1.7'
2
+ s.version = '1.0.0'
3
3
  s.name = 'talos'
4
4
  s.authors = ['Alexey Lapitsky', 'Johan Haals']
5
5
  s.email = 'alexey@spotify.com'
@@ -13,11 +13,12 @@ Gem::Specification.new do |s|
13
13
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
14
14
  s.require_paths = ['lib']
15
15
 
16
- s.add_dependency 'rack', '1.6.4'
17
- s.add_dependency 'sinatra', '~> 1.4.7'
18
- s.add_dependency 'hiera', '~> 3.2.0'
19
- s.add_dependency 'archive-tar-minitar', '~> 0.5.2'
16
+ s.add_dependency 'rack', '2.2.3'
17
+ s.add_dependency 'sinatra', '~> 2.1.0'
18
+ s.add_dependency 'hiera', '~> 3.6.0'
19
+ s.add_dependency 'minitar', '~> 0.9'
20
20
  s.add_development_dependency 'rake'
21
- s.add_development_dependency 'sinatra-contrib'
21
+ s.add_development_dependency 'rack-test', '~> 1.1.0'
22
22
  s.add_development_dependency 'rspec', '>= 2.9'
23
+ s.add_development_dependency 'sinatra-contrib', '~> 2.1.0'
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: talos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Lapitsky
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-03-13 00:00:00.000000000 Z
12
+ date: 2021-11-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -17,56 +17,56 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.6.4
20
+ version: 2.2.3
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.6.4
27
+ version: 2.2.3
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sinatra
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.4.7
34
+ version: 2.1.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.4.7
41
+ version: 2.1.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: hiera
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 3.2.0
48
+ version: 3.6.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 3.2.0
55
+ version: 3.6.0
56
56
  - !ruby/object:Gem::Dependency
57
- name: archive-tar-minitar
57
+ name: minitar
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 0.5.2
62
+ version: '0.9'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.5.2
69
+ version: '0.9'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rake
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -82,19 +82,19 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
- name: sinatra-contrib
85
+ name: rack-test
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ">="
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0'
90
+ version: 1.1.0
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">="
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0'
97
+ version: 1.1.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rspec
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +109,20 @@ dependencies:
109
109
  - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '2.9'
112
+ - !ruby/object:Gem::Dependency
113
+ name: sinatra-contrib
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - "~>"
117
+ - !ruby/object:Gem::Version
118
+ version: 2.1.0
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: 2.1.0
112
126
  description: Distribute compressed hiera yaml files to authenticated puppet clients
113
127
  over HTTP
114
128
  email: alexey@spotify.com
@@ -116,9 +130,10 @@ executables: []
116
130
  extensions: []
117
131
  extra_rdoc_files: []
118
132
  files:
133
+ - ".github/workflows/gem-push.yml"
134
+ - ".github/workflows/ruby.yml"
119
135
  - ".gitignore"
120
136
  - ".rspec"
121
- - ".travis.yml"
122
137
  - Gemfile
123
138
  - LICENSE
124
139
  - README.md
@@ -156,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
171
  - !ruby/object:Gem::Version
157
172
  version: '0'
158
173
  requirements: []
159
- rubyforge_project:
160
- rubygems_version: 2.5.2.3
174
+ rubygems_version: 3.0.3.1
161
175
  signing_key:
162
176
  specification_version: 4
163
177
  summary: Hiera secrets distribution over HTTP
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.3.0
5
- - jruby-19mode
6
-
7
- deploy:
8
- provider: rubygems
9
- on:
10
- tags: true
11
- api_key:
12
- secure: XFUKxH18R6lT5In7phyVsL3a5mcESrssD2dlNrQvC2TXeBGif+0sSSt7ZfRuFve5XB0Wa8ruClFxRr0uMXRqUZUKc1/VbLM2DnLLkruK8pwdu2oQI3JMdcDtMmVsVxvJViAAy3ibuKuCTF2NbU+Yg/VrwMNU+aN63zsDR44t1IU=
13
- dist: trusty