cfoundry-IronFoundry 0.3.34

Sign up to get free protection for your applications and to get access to all the features.
data/spec/helpers.rb ADDED
@@ -0,0 +1,29 @@
1
+ module CFoundryHelpers
2
+ def random_str
3
+ format("%x", rand(1000000))
4
+ end
5
+
6
+ def random_user
7
+ "#{random_str}@cfoundry-spec.com"
8
+ end
9
+
10
+ def without_auth
11
+ proxy = @client.proxy
12
+ @client.logout
13
+ @client.proxy = nil
14
+ yield
15
+ ensure
16
+ @client.login(USER, PASSWORD)
17
+ @client.proxy = proxy
18
+ end
19
+
20
+ def with_new_user
21
+ @user = @client.register(random_user, "test")
22
+ @client.proxy = @user.email
23
+ yield
24
+ ensure
25
+ @client.proxy = nil
26
+ @user.delete!
27
+ @user = nil
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,169 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cfoundry-IronFoundry
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.34
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Alex Suraci
9
+ - Luke Bakken
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2012-09-20 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rest-client
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 1.6.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: 1.6.1
31
+ - !ruby/object:Gem::Dependency
32
+ name: multi_json
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 1.3.6
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 1.3.6
47
+ - !ruby/object:Gem::Dependency
48
+ name: rubyzip
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.9.9
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 0.9.9
63
+ - !ruby/object:Gem::Dependency
64
+ name: rake
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: 0.9.2.2
71
+ type: :development
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 0.9.2.2
79
+ - !ruby/object:Gem::Dependency
80
+ name: rspec
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ~>
85
+ - !ruby/object:Gem::Version
86
+ version: 2.11.0
87
+ type: :development
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: 2.11.0
95
+ description: ! "\n High-level library for working with the Cloud Foundry API.\n
96
+ \ "
97
+ email:
98
+ - asuraci@vmware.com
99
+ - help@ironfoundry.org
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - LICENSE
105
+ - Rakefile
106
+ - lib/cfoundry/baseclient.rb
107
+ - lib/cfoundry/chatty_hash.rb
108
+ - lib/cfoundry/client.rb
109
+ - lib/cfoundry/errors.rb
110
+ - lib/cfoundry/uaaclient.rb
111
+ - lib/cfoundry/upload_helpers.rb
112
+ - lib/cfoundry/v1/app.rb
113
+ - lib/cfoundry/v1/base.rb
114
+ - lib/cfoundry/v1/client.rb
115
+ - lib/cfoundry/v1/framework.rb
116
+ - lib/cfoundry/v1/runtime.rb
117
+ - lib/cfoundry/v1/service.rb
118
+ - lib/cfoundry/v1/service_instance.rb
119
+ - lib/cfoundry/v1/user.rb
120
+ - lib/cfoundry/v2/app.rb
121
+ - lib/cfoundry/v2/base.rb
122
+ - lib/cfoundry/v2/client.rb
123
+ - lib/cfoundry/v2/domain.rb
124
+ - lib/cfoundry/v2/framework.rb
125
+ - lib/cfoundry/v2/model.rb
126
+ - lib/cfoundry/v2/organization.rb
127
+ - lib/cfoundry/v2/route.rb
128
+ - lib/cfoundry/v2/runtime.rb
129
+ - lib/cfoundry/v2/service.rb
130
+ - lib/cfoundry/v2/service_auth_token.rb
131
+ - lib/cfoundry/v2/service_binding.rb
132
+ - lib/cfoundry/v2/service_instance.rb
133
+ - lib/cfoundry/v2/service_plan.rb
134
+ - lib/cfoundry/v2/space.rb
135
+ - lib/cfoundry/v2/user.rb
136
+ - lib/cfoundry/version.rb
137
+ - lib/cfoundry/zip.rb
138
+ - lib/cfoundry.rb
139
+ - spec/client_spec.rb
140
+ - spec/helpers.rb
141
+ - spec/Rakefile
142
+ homepage: http://www.ironfoundry.org/
143
+ licenses: []
144
+ post_install_message:
145
+ rdoc_options: []
146
+ require_paths:
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ requirements: []
161
+ rubyforge_project: cfoundry-IronFoundry
162
+ rubygems_version: 1.8.23
163
+ signing_key:
164
+ specification_version: 3
165
+ summary: High-level library for working with the Cloud Foundry API.
166
+ test_files:
167
+ - spec/client_spec.rb
168
+ - spec/helpers.rb
169
+ - spec/Rakefile