smart_proxy_dynflow_core 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/lib/smart_proxy_dynflow_core/bundler_helper.rb +2 -2
- data/lib/smart_proxy_dynflow_core/settings.rb +17 -15
- data/lib/smart_proxy_dynflow_core/version.rb +1 -1
- data/smart_proxy_dynflow_core.gemspec +38 -0
- metadata +4 -5
- data/bundler.d/Gemfile.local.rb +0 -2
- data/bundler.d/dynflow.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed38f0598a368e672814375ce627fc7f038d12c8
|
4
|
+
data.tar.gz: 8f2f79c6e7c6d0f45d2a71d489bf813404442003
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1bade716c86e89c8b6fb384237c53d9ceab23f10432d0462f4319af41803d315022cab0b94ba0183eee3b7865e5bb7b620658784b7d4aa087da0ef4b08e42a2
|
7
|
+
data.tar.gz: 4dc9244feb3ee58a7886727b45f8502db30643b025b139ed3f8f871f718989665b515a9494abf5ec741457db547cfe3ae267182f87e3daeac625440470a78698
|
data/Gemfile
CHANGED
@@ -11,6 +11,11 @@ group :test do
|
|
11
11
|
gem 'smart_proxy', :git => "https://github.com/theforeman/smart-proxy", :branch => "develop"
|
12
12
|
end
|
13
13
|
|
14
|
+
# load bundler.d
|
15
|
+
Dir["#{File.dirname(__FILE__)}/bundler.d/*.rb"].each do |bundle|
|
16
|
+
self.instance_eval(Bundler.read_file(bundle))
|
17
|
+
end
|
18
|
+
|
14
19
|
# load local gemfile
|
15
20
|
local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local.rb')
|
16
21
|
self.instance_eval(Bundler.read_file(local_gemfile)) if File.exist?(local_gemfile)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module SmartProxyDynflowCore
|
2
2
|
class BundlerHelper
|
3
3
|
def self.require_groups(*groups)
|
4
|
-
if File.exist?(File.expand_path('
|
4
|
+
if File.exist?(File.expand_path('../../../Gemfile.in', __FILE__))
|
5
5
|
# If there is a Gemfile.in file, we will not use Bundler but BundlerExt
|
6
6
|
# gem which parses this file and loads all dependencies from the system
|
7
7
|
# rathern then trying to download them from rubygems.org. It always
|
@@ -19,7 +19,7 @@ module SmartProxyDynflowCore
|
|
19
19
|
exit 1
|
20
20
|
end
|
21
21
|
end
|
22
|
-
BundlerExt.system_require(File.expand_path('
|
22
|
+
BundlerExt.system_require(File.expand_path('../../../Gemfile.in', __FILE__), *groups)
|
23
23
|
else
|
24
24
|
require 'bundler' unless defined?(Bundler)
|
25
25
|
Bundler.require(*groups)
|
@@ -1,5 +1,22 @@
|
|
1
1
|
require 'ostruct'
|
2
2
|
|
3
|
+
# Implement hash-like access for 1.9.3 and older
|
4
|
+
if RUBY_VERSION.split('.').first.to_i < 2
|
5
|
+
class OpenStruct
|
6
|
+
def [](key)
|
7
|
+
self.send key
|
8
|
+
end
|
9
|
+
|
10
|
+
def []=(key, value)
|
11
|
+
self.send "#{key}=", value
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_h
|
15
|
+
marshal_dump
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
3
20
|
module SmartProxyDynflowCore
|
4
21
|
class Settings < OpenStruct
|
5
22
|
|
@@ -67,21 +84,6 @@ module SmartProxyDynflowCore
|
|
67
84
|
end
|
68
85
|
SETTINGS.plugins[name] = OpenStruct.new settings
|
69
86
|
end
|
70
|
-
|
71
|
-
# Implement hash-like access for 1.9.3 and older
|
72
|
-
if RUBY_VERSION.split('.').first.to_i < 2
|
73
|
-
def [](key)
|
74
|
-
self.send key
|
75
|
-
end
|
76
|
-
|
77
|
-
def []=(key, value)
|
78
|
-
self.send "#{key}=", value
|
79
|
-
end
|
80
|
-
|
81
|
-
def to_h
|
82
|
-
marshal_dump
|
83
|
-
end
|
84
|
-
end
|
85
87
|
end
|
86
88
|
end
|
87
89
|
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'smart_proxy_dynflow_core/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "smart_proxy_dynflow_core"
|
8
|
+
gem.version = SmartProxyDynflowCore::VERSION
|
9
|
+
gem.authors = ['Ivan Nečas']
|
10
|
+
gem.email = ['inecas@redhat.com']
|
11
|
+
gem.homepage = "https://github.com/theforeman/smart_proxy_dynflow"
|
12
|
+
gem.summary = "Dynflow runtime for Foreman smart proxy"
|
13
|
+
gem.description = <<-EOS
|
14
|
+
Use the Dynflow inside Foreman smart proxy
|
15
|
+
EOS
|
16
|
+
|
17
|
+
gem.files = Dir['lib/smart_proxy_dynflow_core.rb', 'config/settings.yml.example',
|
18
|
+
'lib/smart_proxy_dynflow_core/*', 'LICENSE', 'Gemfile',
|
19
|
+
'bin/smart_proxy_dynflow_core', 'deploy/*', 'smart_proxy_dynflow_core.gemspec']
|
20
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
21
|
+
gem.require_paths = ["lib"]
|
22
|
+
gem.license = 'GPLv3'
|
23
|
+
|
24
|
+
gem.add_development_dependency "bundler", "~> 1.7"
|
25
|
+
gem.add_development_dependency "rake", "~> 10.0"
|
26
|
+
gem.add_development_dependency('minitest')
|
27
|
+
gem.add_development_dependency('mocha', '~> 1')
|
28
|
+
gem.add_development_dependency('webmock', '~> 1')
|
29
|
+
gem.add_development_dependency('rack-test', '~> 0')
|
30
|
+
gem.add_development_dependency('rubocop', '0.32.1')
|
31
|
+
|
32
|
+
gem.add_runtime_dependency('dynflow', "~> 0.8.4")
|
33
|
+
gem.add_runtime_dependency('sequel')
|
34
|
+
gem.add_runtime_dependency('sqlite3')
|
35
|
+
gem.add_runtime_dependency('sinatra', '~> 1.4')
|
36
|
+
gem.add_runtime_dependency('rack')
|
37
|
+
gem.add_runtime_dependency('rest-client')
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_dynflow_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -203,8 +203,6 @@ files:
|
|
203
203
|
- Gemfile
|
204
204
|
- LICENSE
|
205
205
|
- bin/smart_proxy_dynflow_core
|
206
|
-
- bundler.d/Gemfile.local.rb
|
207
|
-
- bundler.d/dynflow.rb
|
208
206
|
- config/settings.yml.example
|
209
207
|
- deploy/smart_proxy_dynflow_core.init
|
210
208
|
- deploy/smart_proxy_dynflow_core.service
|
@@ -219,6 +217,7 @@ files:
|
|
219
217
|
- lib/smart_proxy_dynflow_core/settings.rb
|
220
218
|
- lib/smart_proxy_dynflow_core/testing.rb
|
221
219
|
- lib/smart_proxy_dynflow_core/version.rb
|
220
|
+
- smart_proxy_dynflow_core.gemspec
|
222
221
|
homepage: https://github.com/theforeman/smart_proxy_dynflow
|
223
222
|
licenses:
|
224
223
|
- GPLv3
|
@@ -239,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
239
238
|
version: '0'
|
240
239
|
requirements: []
|
241
240
|
rubyforge_project:
|
242
|
-
rubygems_version: 2.4.
|
241
|
+
rubygems_version: 2.4.8
|
243
242
|
signing_key:
|
244
243
|
specification_version: 4
|
245
244
|
summary: Dynflow runtime for Foreman smart proxy
|
data/bundler.d/Gemfile.local.rb
DELETED
data/bundler.d/dynflow.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gem 'smart_proxy_dynflow'
|