azure-profile 1.0.1 → 1.0.2
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -0
- data/CHANGES +5 -0
- data/MANIFEST +1 -0
- data/Rakefile +2 -1
- data/azure-profile.gemspec +10 -9
- data/certs/djberg96_pub.pem +21 -0
- data/lib/azure-profile.rb +1 -0
- data/lib/azure/profile.rb +1 -1
- data/spec/azure_profile_spec.rb +9 -9
- data/spec/azure_subscription_spec.rb +16 -16
- metadata +40 -11
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58195d34f5989b5ba8a9e55e4399dc2b0d8580ad
|
|
4
|
+
data.tar.gz: bd7759bf0144321afb2a0a8bd7ddab7500e70c5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd49db34d93cc11aa39e5193dd2518e8ced1d25f0ab91662a17ab294a348edfd60fccd687272b05d20eff9e7487211b8da77986480aab22a393582d2c3bc829b
|
|
7
|
+
data.tar.gz: ede415c48819126020f0a33da39c6478566001f7129a134d700a620e976e12928e89ffb51e272a98b77feecd96e9cff5204817a55530eaf72d03ae0a55c5c956
|
checksums.yaml.gz.sig
ADDED
|
Binary file
|
data.tar.gz.sig
ADDED
data/CHANGES
CHANGED
data/MANIFEST
CHANGED
data/Rakefile
CHANGED
|
@@ -10,7 +10,8 @@ namespace 'gem' do
|
|
|
10
10
|
task :create => [:clean] do
|
|
11
11
|
require 'rubygems/package'
|
|
12
12
|
spec = eval(IO.read('azure-profile.gemspec'))
|
|
13
|
-
|
|
13
|
+
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
|
14
|
+
Gem::Package.build(spec, true)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
desc 'Install the azure-profile gem'
|
data/azure-profile.gemspec
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
|
-
spec.name
|
|
5
|
-
spec.version
|
|
6
|
-
spec.authors
|
|
7
|
-
spec.license
|
|
8
|
-
spec.homepage
|
|
9
|
-
spec.summary
|
|
10
|
-
spec.test_file
|
|
11
|
-
spec.files
|
|
4
|
+
spec.name = 'azure-profile'
|
|
5
|
+
spec.version = '1.0.2'
|
|
6
|
+
spec.authors = ['Daniel J. Berger', 'Bronagh Sorota']
|
|
7
|
+
spec.license = 'Apache 2.0'
|
|
8
|
+
spec.homepage = 'http://github.com/djberg96/azure-profile'
|
|
9
|
+
spec.summary = 'An interface for Azure authentication information'
|
|
10
|
+
spec.test_file = 'spec/azure_profile_spec.rb'
|
|
11
|
+
spec.files = Dir['**/*'].delete_if{ |item| item.include?('git') }
|
|
12
|
+
spec.cert_chain = ['certs/djberg96_pub.pem']
|
|
12
13
|
|
|
13
14
|
spec.extra_rdoc_files = ['CHANGES', 'README', 'MANIFEST']
|
|
14
15
|
|
|
15
16
|
spec.add_dependency('json')
|
|
16
17
|
spec.add_dependency('nokogiri')
|
|
17
18
|
|
|
18
|
-
spec.add_development_dependency('rspec')
|
|
19
|
+
spec.add_development_dependency('rspec', '>= 3.0')
|
|
19
20
|
spec.add_development_dependency('rake')
|
|
20
21
|
|
|
21
22
|
spec.description = <<-EOF
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
|
2
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
|
3
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
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Jnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
|
19
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
|
20
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
|
21
|
+
-----END CERTIFICATE-----
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require_relative 'azure/profile'
|
data/lib/azure/profile.rb
CHANGED
data/spec/azure_profile_spec.rb
CHANGED
|
@@ -13,7 +13,7 @@ describe "profile" do
|
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
it "has a VERSION constant set to the expected value" do
|
|
16
|
-
Azure::Profile::VERSION.
|
|
16
|
+
expect(Azure::Profile::VERSION).to eq("1.0.2")
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
after(:all) do
|
|
@@ -27,13 +27,13 @@ describe "profile" do
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
it "has a settings_file accessor and it is set to the expected value" do
|
|
30
|
-
@profile.
|
|
31
|
-
@profile.settings_file.
|
|
30
|
+
expect(@profile).to respond_to(:settings_file)
|
|
31
|
+
expect(@profile.settings_file).to eq(@settings_file)
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it "sets the default subscription" do
|
|
35
|
-
@profile.
|
|
36
|
-
@profile.default_subscription.
|
|
35
|
+
expect(@profile).to respond_to(:default_subscription)
|
|
36
|
+
expect(@profile.default_subscription).to be_kind_of(Azure::Profile::Subscription)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
after(:all) do
|
|
@@ -47,13 +47,13 @@ describe "profile" do
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
it "has a json_file accessor and it is set to the expected value" do
|
|
50
|
-
@profile.
|
|
51
|
-
@profile.json_file.
|
|
50
|
+
expect(@profile).to respond_to(:json_file)
|
|
51
|
+
expect(@profile.json_file).to eq(@json_file)
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
it "sets the default subscription" do
|
|
55
|
-
@profile.
|
|
56
|
-
@profile.default_subscription.
|
|
55
|
+
expect(@profile).to respond_to(:default_subscription)
|
|
56
|
+
expect(@profile.default_subscription).to be_kind_of(Azure::Profile::Subscription)
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
after(:all) do
|
|
@@ -16,43 +16,43 @@ describe "subscription" do
|
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
it "has a subscription_id accessor" do
|
|
19
|
-
@sub.
|
|
20
|
-
@sub.subscription_id.
|
|
19
|
+
expect(@sub).to respond_to(:subscription_id)
|
|
20
|
+
expect(@sub.subscription_id).to be_nil
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
it "has a subscription_name accessor" do
|
|
24
|
-
@sub.
|
|
25
|
-
@sub.subscription_name.
|
|
24
|
+
expect(@sub).to respond_to(:subscription_name)
|
|
25
|
+
expect(@sub.subscription_name).to be_nil
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it "has a management_certificate accessor" do
|
|
29
|
-
@sub.
|
|
30
|
-
@sub.management_certificate.
|
|
29
|
+
expect(@sub).to respond_to(:management_certificate)
|
|
30
|
+
expect(@sub.management_certificate).to be_nil
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
it "has a default accessor that defaults to false" do
|
|
34
|
-
@sub.
|
|
35
|
-
@sub.default.
|
|
34
|
+
expect(@sub).to respond_to(:default)
|
|
35
|
+
expect(@sub.default).to be false
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
it "has a registered_providers accessor" do
|
|
39
|
-
@sub.
|
|
40
|
-
@sub.registered_providers.
|
|
39
|
+
expect(@sub).to respond_to(:registered_providers)
|
|
40
|
+
expect(@sub.registered_providers).to be_nil
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
it "has an environment_name accessor with a default value" do
|
|
44
|
-
@sub.
|
|
45
|
-
@sub.environment_name.
|
|
44
|
+
expect(@sub).to respond_to(:environment_name)
|
|
45
|
+
expect(@sub.environment_name).to eq("AzureCloud")
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
it "has a management_endpoint accessor with a default value" do
|
|
49
|
-
@sub.
|
|
50
|
-
@sub.management_endpoint.
|
|
49
|
+
expect(@sub).to respond_to(:management_endpoint)
|
|
50
|
+
expect(@sub.management_endpoint).to eq(@default_endpoint)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
it "has a source accessor with a default value" do
|
|
54
|
-
@sub.
|
|
55
|
-
@sub.source.
|
|
54
|
+
expect(@sub).to respond_to(:source)
|
|
55
|
+
expect(@sub.source).to eq("ruby")
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
after(:each) do
|
metadata
CHANGED
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: azure-profile
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel J. Berger
|
|
8
8
|
- Bronagh Sorota
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
|
-
cert_chain:
|
|
12
|
-
|
|
11
|
+
cert_chain:
|
|
12
|
+
- |
|
|
13
|
+
-----BEGIN CERTIFICATE-----
|
|
14
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
|
15
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
|
16
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
|
17
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
|
18
|
+
bTCCASIwDQYJKoZIhvc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|
|
33
|
+
-----END CERTIFICATE-----
|
|
34
|
+
date: 2016-04-10 00:00:00.000000000 Z
|
|
13
35
|
dependencies:
|
|
14
36
|
- !ruby/object:Gem::Dependency
|
|
15
37
|
name: json
|
|
@@ -45,14 +67,14 @@ dependencies:
|
|
|
45
67
|
requirements:
|
|
46
68
|
- - ">="
|
|
47
69
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: '0'
|
|
70
|
+
version: '3.0'
|
|
49
71
|
type: :development
|
|
50
72
|
prerelease: false
|
|
51
73
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
74
|
requirements:
|
|
53
75
|
- - ">="
|
|
54
76
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: '0'
|
|
77
|
+
version: '3.0'
|
|
56
78
|
- !ruby/object:Gem::Dependency
|
|
57
79
|
name: rake
|
|
58
80
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,18 +102,25 @@ extra_rdoc_files:
|
|
|
80
102
|
- README
|
|
81
103
|
- MANIFEST
|
|
82
104
|
files:
|
|
105
|
+
- azure-profile.gemspec
|
|
106
|
+
- certs
|
|
107
|
+
- certs/djberg96_pub.pem
|
|
83
108
|
- CHANGES
|
|
109
|
+
- lib
|
|
110
|
+
- lib/azure
|
|
111
|
+
- lib/azure/profile
|
|
112
|
+
- lib/azure/profile/subscription.rb
|
|
113
|
+
- lib/azure/profile.rb
|
|
114
|
+
- lib/azure-profile.rb
|
|
84
115
|
- LICENSE
|
|
85
116
|
- MANIFEST
|
|
86
|
-
- README
|
|
87
117
|
- Rakefile
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
- lib/azure/profile/subscription.rb
|
|
118
|
+
- README
|
|
119
|
+
- spec
|
|
91
120
|
- spec/azure.publishsettings
|
|
92
|
-
- spec/azureProfile.json
|
|
93
121
|
- spec/azure_profile_spec.rb
|
|
94
122
|
- spec/azure_subscription_spec.rb
|
|
123
|
+
- spec/azureProfile.json
|
|
95
124
|
homepage: http://github.com/djberg96/azure-profile
|
|
96
125
|
licenses:
|
|
97
126
|
- Apache 2.0
|
|
@@ -112,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
112
141
|
version: '0'
|
|
113
142
|
requirements: []
|
|
114
143
|
rubyforge_project:
|
|
115
|
-
rubygems_version: 2.
|
|
144
|
+
rubygems_version: 2.5.1
|
|
116
145
|
signing_key:
|
|
117
146
|
specification_version: 4
|
|
118
147
|
summary: An interface for Azure authentication information
|
metadata.gz.sig
ADDED
|
Binary file
|