smart_proxy_pulp 1.0.0 → 1.0.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: baaaab45e09a16a60178374ecd11b0402100c025
4
- data.tar.gz: f7de98e1da9b9f2fa9adb2c298a0b2b24fdb3f84
3
+ metadata.gz: 122c90c7a6e896cc2e3ebc15ac974f289047c1e3
4
+ data.tar.gz: 62d073204449a0dfa2846c67832a0d4eeb72aeb7
5
5
  SHA512:
6
- metadata.gz: 424db37d3736dec80780c98e92870bfad434858ca41f1fddb61683971231e02ab7502985c58d285569be913dc7940ff52e661ef12e8b1e5139d7016d06fdd740
7
- data.tar.gz: e04678363be38fb131ba8e737c82564d860e87524c95da394658d3a2a15e113de0633667e2a26c92a705bd6e6ae5789ca192f33d5ad3730f59f7de97fb5c262e
6
+ metadata.gz: 9c51b3ffc313b5e083664ae9d0f3852ccbbf26ab72db0daea8dd5161f0a095c7fd0e8c6d736059ab4f758dd6c310d37242f46e1b538938a6595ba0a3f39ec111
7
+ data.tar.gz: c739d6ee6f3acae5554f9005537215202ecf3c1678e40014cc0e87d7795370b1468f608a625bf24faf56807413b083515cedd12bf40d20ff3481d5d012d1efa6
data/Gemfile CHANGED
@@ -1,2 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
+
4
+ group :development do
5
+ gem 'smart_proxy', :git => "https://github.com/theforeman/smart-proxy"
6
+ end
@@ -1,2 +1,3 @@
1
1
  require 'smart_proxy_pulp_plugin/version'
2
- require 'smart_proxy_pulp_plugin/pulp_plugin'
2
+ require 'smart_proxy_pulp_plugin/pulp_plugin'
3
+ require 'smart_proxy_pulp_plugin/pulp_node_plugin'
@@ -1,3 +1,4 @@
1
+ require 'sinatra'
1
2
  require 'smart_proxy_pulp_plugin/pulp_client'
2
3
 
3
4
  module PulpProxy
@@ -2,4 +2,4 @@ require 'smart_proxy_pulp_plugin/pulp_api'
2
2
 
3
3
  map "/pulp" do
4
4
  run PulpProxy::Api
5
- end
5
+ end
@@ -0,0 +1,5 @@
1
+ require 'smart_proxy_pulp_plugin/pulp_api'
2
+
3
+ map "/pulpnode" do
4
+ run PulpProxy::Api
5
+ end
@@ -0,0 +1,9 @@
1
+ module PulpMasterProxy
2
+ class Plugin < ::Proxy::Plugin
3
+ plugin "pulpnode", ::PulpProxy::VERSION
4
+ default_settings :pulp_url => 'https://localhost/pulp'
5
+
6
+ http_rackup_path File.expand_path("pulp_node_http_config.ru", File.expand_path("../", __FILE__))
7
+ https_rackup_path File.expand_path("pulp_node_http_config.ru", File.expand_path("../", __FILE__))
8
+ end
9
+ end
@@ -1,9 +1,9 @@
1
1
  module PulpProxy
2
2
  class Plugin < ::Proxy::Plugin
3
- plugin :pulp, ::PulpProxy::VERSION
4
- default_settings :pulp_url => 'http://localhost/pulp'
3
+ plugin "pulp", ::PulpProxy::VERSION
4
+ default_settings :pulp_url => 'https://localhost/pulp'
5
5
 
6
- http_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))
7
- https_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))
6
+ http_rackup_path File.expand_path("pulp_http_config.ru", File.expand_path("../", __FILE__))
7
+ https_rackup_path File.expand_path("pulp_http_config.ru", File.expand_path("../", __FILE__))
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module PulpProxy
2
- VERSION = "1.0.0"
3
- end
2
+ VERSION = "1.0.1"
3
+ end
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  :enabled: true
3
- #:pulp_url: http://localhost/pulp
3
+ #:pulp_url: https://localhost/pulp
@@ -0,0 +1,3 @@
1
+ ---
2
+ :enabled: true
3
+ #:pulp_url: https://localhost/pulp
metadata CHANGED
@@ -1,17 +1,59 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_pulp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Dolguikh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-22 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: mocha
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: webmock
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rack-test
15
57
  requirement: !ruby/object:Gem::Requirement
16
58
  requirements:
17
59
  - - ~>
@@ -30,14 +72,14 @@ dependencies:
30
72
  requirements:
31
73
  - - ~>
32
74
  - !ruby/object:Gem::Version
33
- version: '0'
75
+ version: '10'
34
76
  type: :development
35
77
  prerelease: false
36
78
  version_requirements: !ruby/object:Gem::Requirement
37
79
  requirements:
38
80
  - - ~>
39
81
  - !ruby/object:Gem::Version
40
- version: '0'
82
+ version: '10'
41
83
  description: |2
42
84
  Basic Pulp support for Foreman Smart-Proxy
43
85
  email:
@@ -50,12 +92,15 @@ files:
50
92
  - LICENSE
51
93
  - bundler.d/pulp.rb
52
94
  - lib/smart_proxy_pulp.rb
53
- - lib/smart_proxy_pulp_plugin/http_config.ru
54
95
  - lib/smart_proxy_pulp_plugin/pulp_api.rb
55
96
  - lib/smart_proxy_pulp_plugin/pulp_client.rb
97
+ - lib/smart_proxy_pulp_plugin/pulp_http_config.ru
98
+ - lib/smart_proxy_pulp_plugin/pulp_node_http_config.ru
99
+ - lib/smart_proxy_pulp_plugin/pulp_node_plugin.rb
56
100
  - lib/smart_proxy_pulp_plugin/pulp_plugin.rb
57
101
  - lib/smart_proxy_pulp_plugin/version.rb
58
102
  - settings.d/pulp.yml.example
103
+ - settings.d/pulpnode.yml.example
59
104
  homepage: https://github.com/theforeman/smart-proxy-pulp-plugin
60
105
  licenses:
61
106
  - GPLv3