cfoundry 0.7.0.rc12 → 0.7.0.rc13

Sign up to get free protection for your applications and to get access to all the features.
@@ -98,25 +98,17 @@ module CFoundry
98
98
  end
99
99
  end
100
100
 
101
- # TODO: handle negation
102
101
  def files_to_consider(path, exclusions)
103
102
  entries = all_files(path)
104
103
 
105
- to_exclude = exclusions.dup
106
- until to_exclude.empty?
107
- exclude = to_exclude.shift
104
+ exclusions.each do |exclusion|
105
+ ignore_pattern = File.join(path, "**", exclusion)
106
+ dir_glob = Dir.glob(ignore_pattern, File::FNM_DOTMATCH)
107
+ entries -= dir_glob
108
108
 
109
- entries.reject! do |entry|
110
- is_dir = File.directory?(entry)
111
- excluded = glob_matches?(entry, path, exclude)
112
-
113
- if is_dir && excluded
114
- # if a directory was excluded, exclude its contents
115
- to_exclude.unshift(entry.sub(path + "/", "/") + "/**")
116
- end
117
-
118
- excluded
119
- end
109
+ ignore_pattern = File.join(path, "**", exclusion, "**", "*")
110
+ dir_glob = Dir.glob(ignore_pattern, File::FNM_DOTMATCH)
111
+ entries -= dir_glob
120
112
  end
121
113
 
122
114
  entries
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.7.0.rc12".freeze
3
+ VERSION = "0.7.0.rc13".freeze
4
4
  end
data/vendor/errors/v2.yml CHANGED
@@ -43,6 +43,11 @@
43
43
  http_code: 400
44
44
  message: "The query parameter is invalid: %s"
45
45
 
46
+ 10006:
47
+ name: AssociationNotEmpty
48
+ http_code: 400
49
+ message: "Please delete the %s associations for your %s."
50
+
46
51
  20001:
47
52
  name: UserInvalid
48
53
  http_code: 400
@@ -216,7 +221,7 @@
216
221
  100005:
217
222
  name: AppMemoryQuotaExceeded
218
223
  http_code: 400
219
- message: "You have exceeded your organization's memory limit. Please login to your account and upgrade."
224
+ message: "You have exceeded your organization's memory limit. Please login to your account and upgrade. If you are trying to scale down and you are receiving this error, you can either delete an app or contact support."
220
225
 
221
226
  110001:
222
227
  name: ServicePlanInvalid
@@ -288,6 +293,11 @@
288
293
  http_code: 400
289
294
  message: "Staging error: %s"
290
295
 
296
+ 170002:
297
+ name: NotStaged
298
+ http_code: 400
299
+ message: "App has not finished staging"
300
+
291
301
  180001:
292
302
  name: SnapshotNotFound
293
303
  http_code: 404
@@ -358,3 +368,17 @@
358
368
  http_code: 400
359
369
  message: "Quota Definition is invalid: %s"
360
370
 
371
+ 250001:
372
+ name: StackInvalid
373
+ http_code: 400
374
+ message: "The stack is invalid: %s"
375
+
376
+ 250002:
377
+ name: StackNameTaken
378
+ http_code: 400
379
+ message: "The stack name is taken: %s"
380
+
381
+ 250003:
382
+ name: StackNotFound
383
+ http_code: 404
384
+ message: "The stack could not be found: %s"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfoundry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.rc12
4
+ version: 0.7.0.rc13
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-01 00:00:00.000000000 Z
13
+ date: 2013-05-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multipart-post
@@ -369,7 +369,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
369
369
  version: '0'
370
370
  segments:
371
371
  - 0
372
- hash: -1473096702792239171
372
+ hash: 311970380593765351
373
373
  required_rubygems_version: !ruby/object:Gem::Requirement
374
374
  none: false
375
375
  requirements:
@@ -378,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
378
  version: 1.3.1
379
379
  requirements: []
380
380
  rubyforge_project: cfoundry
381
- rubygems_version: 1.8.24
381
+ rubygems_version: 1.8.25
382
382
  signing_key:
383
383
  specification_version: 3
384
384
  summary: High-level library for working with the Cloud Foundry API.