cf-runtime 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -4,7 +4,7 @@ A library for interacting with Cloud Foundry services. Provides methods for obt
4
4
 
5
5
  _Copyright (c) 2011-2012 VMware, Inc. Please see the LICENSE file._
6
6
 
7
- require 'cfruntime'
7
+ require 'cf-runtime'
8
8
 
9
9
  #Connect to mysql service named 'mysql-test'
10
10
  client = CFRuntime::Mysql2Client.create_from_svc 'mysql-test'
@@ -25,4 +25,4 @@ service_props = CFRuntime::CloudApp.service_props 'mysql'
25
25
  CFRuntime::CloudApp.host
26
26
  CFRuntime::CloudApp.port
27
27
  CFRuntime::CloudApp.service_names
28
- CFRuntime::CloudApp.service_names_of_type 'mysql'
28
+ CFRuntime::CloudApp.service_names_of_type 'mysql'
@@ -0,0 +1,30 @@
1
+ begin
2
+ require 'cf-runtime/amqp'
3
+ rescue LoadError
4
+ end
5
+ begin
6
+ require 'cf-runtime/carrot'
7
+ rescue LoadError
8
+ end
9
+ begin
10
+ require 'cf-runtime/mongodb'
11
+ rescue LoadError
12
+ end
13
+ begin
14
+ require 'cf-runtime/mysql'
15
+ rescue LoadError
16
+ end
17
+ begin
18
+ require 'cf-runtime/postgres'
19
+ rescue LoadError
20
+ end
21
+ begin
22
+ require 'cf-runtime/redis'
23
+ rescue LoadError
24
+ end
25
+ begin
26
+ require 'cf-runtime/aws_s3'
27
+ rescue LoadError
28
+ end
29
+ require 'cf-runtime/properties'
30
+ require 'cf-runtime/version'
@@ -1,5 +1,5 @@
1
1
  require 'amqp'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class AMQPClient
5
5
 
@@ -41,4 +41,4 @@ module CFRuntime
41
41
  cfoptions
42
42
  end
43
43
  end
44
- end
44
+ end
@@ -1,5 +1,5 @@
1
1
  require 'aws/s3'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class AWSS3Client
5
5
 
@@ -40,4 +40,4 @@ module CFRuntime
40
40
  cfoptions
41
41
  end
42
42
  end
43
- end
43
+ end
@@ -1,5 +1,5 @@
1
1
  require 'carrot'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class CarrotClient
5
5
 
@@ -41,4 +41,4 @@ module CFRuntime
41
41
  cfoptions
42
42
  end
43
43
  end
44
- end
44
+ end
@@ -1,5 +1,5 @@
1
1
  require 'mongo'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class MongoClient
5
5
 
@@ -83,4 +83,4 @@ module CFRuntime
83
83
 
84
84
  end
85
85
 
86
- end
86
+ end
@@ -1,5 +1,5 @@
1
1
  require 'mysql2'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class Mysql2Client
5
5
 
@@ -41,4 +41,4 @@ module CFRuntime
41
41
  cfoptions
42
42
  end
43
43
  end
44
- end
44
+ end
File without changes
@@ -0,0 +1,7 @@
1
+ require "cf-runtime/parser/blob_parser"
2
+ require "cf-runtime/parser/default_parser"
3
+ require "cf-runtime/parser/mongodb_parser"
4
+ require "cf-runtime/parser/mysql_parser"
5
+ require "cf-runtime/parser/postgresql_parser"
6
+ require "cf-runtime/parser/rabbitmq_parser"
7
+ require "cf-runtime/parser/redis_parser"
@@ -1,5 +1,5 @@
1
1
  require 'pg'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class PGClient
5
5
 
@@ -47,4 +47,4 @@ module CFRuntime
47
47
  cfoptions
48
48
  end
49
49
  end
50
- end
50
+ end
@@ -1,6 +1,6 @@
1
1
  require "uri"
2
- require "cfruntime/okjson"
3
- require "cfruntime/parser"
2
+ require "cf-runtime/okjson"
3
+ require "cf-runtime/parser"
4
4
 
5
5
  module CFRuntime
6
6
  class CloudApp
@@ -85,4 +85,4 @@ module CFRuntime
85
85
  end
86
86
  end
87
87
  end
88
- end
88
+ end
@@ -1,5 +1,5 @@
1
1
  require 'redis'
2
- require 'cfruntime/properties'
2
+ require 'cf-runtime/properties'
3
3
  module CFRuntime
4
4
  class RedisClient
5
5
 
@@ -41,4 +41,4 @@ module CFRuntime
41
41
  cfoptions
42
42
  end
43
43
  end
44
- end
44
+ end
@@ -1,3 +1,3 @@
1
1
  module CFRuntime
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-05 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
@@ -229,25 +229,25 @@ extra_rdoc_files:
229
229
  files:
230
230
  - LICENSE
231
231
  - README.md
232
- - lib/cfruntime/amqp.rb
233
- - lib/cfruntime/aws_s3.rb
234
- - lib/cfruntime/carrot.rb
235
- - lib/cfruntime/mongodb.rb
236
- - lib/cfruntime/mysql.rb
237
- - lib/cfruntime/okjson.rb
238
- - lib/cfruntime/parser/blob_parser.rb
239
- - lib/cfruntime/parser/default_parser.rb
240
- - lib/cfruntime/parser/mongodb_parser.rb
241
- - lib/cfruntime/parser/mysql_parser.rb
242
- - lib/cfruntime/parser/postgresql_parser.rb
243
- - lib/cfruntime/parser/rabbitmq_parser.rb
244
- - lib/cfruntime/parser/redis_parser.rb
245
- - lib/cfruntime/parser.rb
246
- - lib/cfruntime/postgres.rb
247
- - lib/cfruntime/properties.rb
248
- - lib/cfruntime/redis.rb
249
- - lib/cfruntime/version.rb
250
- - lib/cfruntime.rb
232
+ - lib/cf-runtime/amqp.rb
233
+ - lib/cf-runtime/aws_s3.rb
234
+ - lib/cf-runtime/carrot.rb
235
+ - lib/cf-runtime/mongodb.rb
236
+ - lib/cf-runtime/mysql.rb
237
+ - lib/cf-runtime/okjson.rb
238
+ - lib/cf-runtime/parser/blob_parser.rb
239
+ - lib/cf-runtime/parser/default_parser.rb
240
+ - lib/cf-runtime/parser/mongodb_parser.rb
241
+ - lib/cf-runtime/parser/mysql_parser.rb
242
+ - lib/cf-runtime/parser/postgresql_parser.rb
243
+ - lib/cf-runtime/parser/rabbitmq_parser.rb
244
+ - lib/cf-runtime/parser/redis_parser.rb
245
+ - lib/cf-runtime/parser.rb
246
+ - lib/cf-runtime/postgres.rb
247
+ - lib/cf-runtime/properties.rb
248
+ - lib/cf-runtime/redis.rb
249
+ - lib/cf-runtime/version.rb
250
+ - lib/cf-runtime.rb
251
251
  homepage: http://vmware.com
252
252
  licenses: []
253
253
  post_install_message:
@@ -271,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  version: '0'
272
272
  requirements: []
273
273
  rubyforge_project:
274
- rubygems_version: 1.8.21
274
+ rubygems_version: 1.8.24
275
275
  signing_key:
276
276
  specification_version: 3
277
277
  summary: Cloud Foundry Runtime Library
@@ -1,30 +0,0 @@
1
- begin
2
- require 'cfruntime/amqp'
3
- rescue LoadError
4
- end
5
- begin
6
- require 'cfruntime/carrot'
7
- rescue LoadError
8
- end
9
- begin
10
- require 'cfruntime/mongodb'
11
- rescue LoadError
12
- end
13
- begin
14
- require 'cfruntime/mysql'
15
- rescue LoadError
16
- end
17
- begin
18
- require 'cfruntime/postgres'
19
- rescue LoadError
20
- end
21
- begin
22
- require 'cfruntime/redis'
23
- rescue LoadError
24
- end
25
- begin
26
- require 'cfruntime/aws_s3'
27
- rescue LoadError
28
- end
29
- require 'cfruntime/properties'
30
- require 'cfruntime/version'
@@ -1,7 +0,0 @@
1
- require "cfruntime/parser/blob_parser"
2
- require "cfruntime/parser/default_parser"
3
- require "cfruntime/parser/mongodb_parser"
4
- require "cfruntime/parser/mysql_parser"
5
- require "cfruntime/parser/postgresql_parser"
6
- require "cfruntime/parser/rabbitmq_parser"
7
- require "cfruntime/parser/redis_parser"