httpd_configmap_generator 0.1.0 → 0.1.1

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
2
  SHA1:
3
- metadata.gz: f02888b03610f25e11d9d82ef0b3d4e7f32d23dc
4
- data.tar.gz: 715398b32432b9e0880df06bd5212f59614769bd
3
+ metadata.gz: 269f3519101488e9580699f67f1fa479f1db78f6
4
+ data.tar.gz: 3224b233aedc0c5ae68cb0299d2438e165b2b7f5
5
5
  SHA512:
6
- metadata.gz: ecfd0afeede3a311f59c536cf5f72ff70b65e3f29f204034f03d733279bbfe0824abadf676d46d5a794b8a04e8bd24373037dfb46e8714a7f5c6ee30de2b940c
7
- data.tar.gz: 73704e1d3a209c3b7d325b4cf683913d8c0b4db293d5c2e73f1fe78124306cafb31ff5ab31a954f342f95a97356731277ed560a3dd7fbfa68426ed68ae734f76
6
+ metadata.gz: a0d1935e46028b58c93d019e38b1133d2653414ae77d4bc0e33182a7d1d1230c43bdf12dd5cccd233c381bf6aa8c9fe3a632c37bd220dd3a2ec8cc820b3d1301
7
+ data.tar.gz: 7d85650f7f2b59dc7db1345e48e0486687fea752482232d3d1cccbde9b20e273b455003cbc45eaadff9bbd62a58b11d243abed5f23debcd57374b35da60f987e
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "httpd_configmap_generator"
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
@@ -0,0 +1,8 @@
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
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  f.match(%r{^(test|spec|features)/})
19
19
  end
20
20
  s.bindir = "bin"
21
- s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) } - %w(console setup)
22
22
  s.require_paths = ["lib"]
23
23
 
24
24
  s.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
@@ -3,9 +3,8 @@ require "pathname"
3
3
  module HttpdConfigmapGenerator
4
4
  class Base
5
5
  def template_directory
6
- @template_directory ||= begin
7
- Pathname.new(Bundler.locked_gems.specs.select { |g| g.name == "httpd_configmap_generator" }.first.gem_dir).join("templates")
8
- end
6
+ @template_directory ||=
7
+ Pathname.new(Gem::Specification.find_by_name("httpd_configmap_generator").full_gem_path).join("templates")
9
8
  end
10
9
 
11
10
  def cp_template(file, src_dir, dest_dir = "/")
@@ -1,3 +1,3 @@
1
1
  module HttpdConfigmapGenerator
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httpd_configmap_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Httpd Auth Config Developers
@@ -154,7 +154,9 @@ files:
154
154
  - README-saml.md
155
155
  - README.md
156
156
  - Rakefile
157
+ - bin/console
157
158
  - bin/httpd_configmap_generator
159
+ - bin/setup
158
160
  - httpd_configmap_generator.gemspec
159
161
  - lib/httpd_configmap_generator.rb
160
162
  - lib/httpd_configmap_generator/active_directory.rb