azure-profile 1.0.1 → 1.0.2

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: 2734edb106435a3d226473876caaf9d06a7be4e1
4
- data.tar.gz: ff44e5a8f1a795d66eaed4a0f02914c3913d9630
3
+ metadata.gz: 58195d34f5989b5ba8a9e55e4399dc2b0d8580ad
4
+ data.tar.gz: bd7759bf0144321afb2a0a8bd7ddab7500e70c5d
5
5
  SHA512:
6
- metadata.gz: 6748e742a7eb5fdb54abefb362b537b858828aa7354e1f32d85c8488460afff5d29f476e175c18e4b901125a1685d1933fc84b215e294b8d015a84b525ec1c9c
7
- data.tar.gz: 0b6d5b767880b7138bd05d1fe02fe2486a8b43bcaac14ebdaf55571a375f94daa0781c10fd269c54029edddb093acabd2b8e5b75995b68516b3197251ad6dc30
6
+ metadata.gz: bd49db34d93cc11aa39e5193dd2518e8ced1d25f0ab91662a17ab294a348edfd60fccd687272b05d20eff9e7487211b8da77986480aab22a393582d2c3bc829b
7
+ data.tar.gz: ede415c48819126020f0a33da39c6478566001f7129a134d700a620e976e12928e89ffb51e272a98b77feecd96e9cff5204817a55530eaf72d03ae0a55c5c956
Binary file
@@ -0,0 +1,2 @@
1
+ c��su�u&r� ����i߀�������t�i�c�e�R9Y�2� �N��UJf���.!���ue����W>��0�f�i��� ,R��66P?�����MO�<���m�H�d� -0����-�����C^�r���QT+"��%4Z�ʗ7xx28Ӿ��eL��t]���[\�xcwy�4��T,i�CnՂ\�*��Ɇ\�#j�a�B?�B%�
2
+ �S/|೰�",�"�x�L��|�G�T]����
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ = 1.0.2 - 10-Apr-2016
2
+ * This gem is now signed.
3
+ * Updated the tests to use rspec 3 syntax.
4
+ * Added an azure-profile.rb file for convenience.
5
+
1
6
  = 1.0.1 - 18-May-2015
2
7
  * Changed license to Apache 2.0 and added a license file.
3
8
 
data/MANIFEST CHANGED
@@ -4,6 +4,7 @@ MANIFEST
4
4
  README
5
5
  Rakefile
6
6
  azure-profile.gemspec
7
+ lib/azure-profile.rb
7
8
  lib/azure/profile.rb
8
9
  lib/azure/profile/subscription.rb
9
10
  spec/azure_profile_spec.rb
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
- Gem::Package.build(spec)
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'
@@ -1,21 +1,22 @@
1
1
  require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
- spec.name = 'azure-profile'
5
- spec.version = '1.0.1'
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') }
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
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
17
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
18
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
19
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
20
+ tGSHgAmcLlkdGgan182qsE/4kKM=
21
+ -----END CERTIFICATE-----
@@ -0,0 +1 @@
1
+ require_relative 'azure/profile'
@@ -3,7 +3,7 @@ require_relative 'profile/subscription'
3
3
  module Azure
4
4
  class Profile
5
5
  # The version of the azure-profile library
6
- VERSION = '1.0.1'
6
+ VERSION = '1.0.2'
7
7
 
8
8
  # The raw content of your publishsettings file
9
9
  attr_accessor :content
@@ -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.should eq("1.0.1")
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.should respond_to(:settings_file)
31
- @profile.settings_file.should eq(@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.should respond_to(:default_subscription)
36
- @profile.default_subscription.should be_kind_of(Azure::Profile::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.should respond_to(:json_file)
51
- @profile.json_file.should eq(@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.should respond_to(:default_subscription)
56
- @profile.default_subscription.should be_kind_of(Azure::Profile::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.should respond_to(:subscription_id)
20
- @sub.subscription_id.should be_nil
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.should respond_to(:subscription_name)
25
- @sub.subscription_name.should be_nil
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.should respond_to(:management_certificate)
30
- @sub.management_certificate.should be_nil
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.should respond_to(:default)
35
- @sub.default.should be_false
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.should respond_to(:registered_providers)
40
- @sub.registered_providers.should be_nil
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.should respond_to(:environment_name)
45
- @sub.environment_name.should eq("AzureCloud")
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.should respond_to(:management_endpoint)
50
- @sub.management_endpoint.should eq(@default_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.should respond_to(:source)
55
- @sub.source.should eq("ruby")
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.1
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
- date: 2015-05-18 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
15
+ cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
16
+ MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
17
+ ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
18
+ bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
19
+ Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
20
+ S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
21
+ gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
22
+ FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
23
+ zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
24
+ DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
25
+ nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
26
+ bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
27
+ ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
28
+ tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
29
+ /sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
30
+ wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
31
+ EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
32
+ tGSHgAmcLlkdGgan182qsE/4kKM=
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
- - azure-profile.gemspec
89
- - lib/azure/profile.rb
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.4.6
144
+ rubygems_version: 2.5.1
116
145
  signing_key:
117
146
  specification_version: 4
118
147
  summary: An interface for Azure authentication information
Binary file