php-composer 0.4.4 → 0.4.5
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
- data/.gitignore +1 -0
- data/Gemfile +3 -5
- data/lib/composer/json/json_file.rb +4 -3
- data/lib/composer/package/package.rb +0 -2
- data/lib/composer/repository/composite_repository.rb +1 -1
- data/lib/composer/repository/filesystem_repository.rb +1 -1
- data/lib/composer/version.rb +1 -1
- data/php-composer.gemspec +2 -2
- data/resources/composer-schema.json +36 -6
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47d77171dc28401539a9ae562a9fc12475092144
|
4
|
+
data.tar.gz: 98cae5ea6ff3d3e9c436d005ce6b1332491e42d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bdef22afac0256a0f705d3a7b31d67ec774e88c2c4e13b5d0d11c73aa547d7cbab905d6cd12fa14d804a93f8ee09c4db40af50622a41b63b821b1a1fa2265e6
|
7
|
+
data.tar.gz: cf52479e47bc93498fd0d3a1b6b0f2f81fb80d26e286672ffacae8c8c4d313c97a8d1cba7a8059d03f8a04328f2c8932afacc0c1911310cb7950ac8cb23e55a3
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -3,13 +3,11 @@ source 'https://rubygems.org'
|
|
3
3
|
# Specify your gem's dependencies in composer.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem 'json', '>= 1.
|
6
|
+
gem 'json', '>= 1.8', :platforms => [:mri_18, :mri_19]
|
7
7
|
gem 'json-schema', '>= 2.5.0'
|
8
|
-
# gem 'version_compare', '~> 0.0.2'
|
9
|
-
gem 'digest-crc'
|
10
8
|
|
11
9
|
group :development, :test do
|
12
|
-
gem 'rubocop', '>= 0.
|
10
|
+
gem 'rubocop', '>= 0.35.0', require: false
|
13
11
|
gem 'rspec'
|
14
|
-
gem 'simplecov', '>= 0.
|
12
|
+
gem 'simplecov', '>= 0.10.0'
|
15
13
|
end
|
@@ -204,14 +204,14 @@ module Composer
|
|
204
204
|
if e.message === 'only generation of JSON objects or arrays allowed'
|
205
205
|
#trick into parsing scalar values by wrapping them in an array
|
206
206
|
scalar = data.gsub("\\\\", "\\\\\\")
|
207
|
-
if json = JSON::generate([scalar])
|
207
|
+
if json = JSON::generate([scalar], { quirks_mode: false })
|
208
208
|
json = json[1..(json.length - 2)]
|
209
209
|
end
|
210
210
|
end
|
211
211
|
end
|
212
212
|
end
|
213
213
|
|
214
|
-
return json unless options
|
214
|
+
return json unless options != 0
|
215
215
|
|
216
216
|
result = Composer::Json::JsonFormatter::format(
|
217
217
|
json,
|
@@ -234,10 +234,11 @@ module Composer
|
|
234
234
|
|
235
235
|
begin
|
236
236
|
data = JSON.parse(json)
|
237
|
-
rescue
|
237
|
+
rescue => e
|
238
238
|
last_error = e
|
239
239
|
end
|
240
240
|
|
241
|
+
|
241
242
|
if data.nil? && last_error != JSON_ERROR_NONE
|
242
243
|
JsonFile::validate_syntax(json, file)
|
243
244
|
raise JSON::ParserError,
|
@@ -20,7 +20,7 @@ module Composer
|
|
20
20
|
# Ioannis Kappas <ikappas@devworks.gr>
|
21
21
|
class CompositeRepository < Composer::Repository::BaseRepository
|
22
22
|
# Initializes filesystem repository.
|
23
|
-
# @param [Array] An array of
|
23
|
+
# @param [Array] repositories An array of repositories.
|
24
24
|
def initialize(repositories)
|
25
25
|
unless repositories
|
26
26
|
raise ArgumentError,
|
@@ -65,7 +65,7 @@ module Composer
|
|
65
65
|
raise UnexpectedValueError,
|
66
66
|
'Could not parse package list from the repository'
|
67
67
|
end
|
68
|
-
rescue
|
68
|
+
rescue => e
|
69
69
|
raise InvalidRepositoryError,
|
70
70
|
"Invalid repository data in #{@file.path}, \
|
71
71
|
packages could not be loaded: \
|
data/lib/composer/version.rb
CHANGED
data/php-composer.gemspec
CHANGED
@@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.8'
|
27
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
28
28
|
spec.add_development_dependency 'rspec', '~> 5.0'
|
29
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
30
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
29
|
+
spec.add_development_dependency 'rubocop', '~> 0.35', '>= 0.35.0'
|
30
|
+
spec.add_development_dependency 'simplecov', '~> 0.10'
|
31
31
|
end
|
@@ -35,7 +35,7 @@
|
|
35
35
|
},
|
36
36
|
"version": {
|
37
37
|
"type": "string",
|
38
|
-
"description": "Package version, see
|
38
|
+
"description": "Package version, see https://getcomposer.org/doc/04-schema.md#version for more info on valid schemes."
|
39
39
|
},
|
40
40
|
"time": {
|
41
41
|
"type": "string",
|
@@ -145,6 +145,11 @@
|
|
145
145
|
"type": ["string", "boolean"],
|
146
146
|
"description": "What to do after prompting for authentication, one of: true (store), false (do not store) or \"prompt\" (ask every time), defaults to prompt."
|
147
147
|
},
|
148
|
+
"platform": {
|
149
|
+
"type": "object",
|
150
|
+
"description": "This is a hash of package name (keys) and version (values) that will be used to mock the platform packages on this machine.",
|
151
|
+
"additionalProperties": true
|
152
|
+
},
|
148
153
|
"vendor-dir": {
|
149
154
|
"type": "string",
|
150
155
|
"description": "The location where all packages are installed, defaults to \"vendor\"."
|
@@ -181,6 +186,10 @@
|
|
181
186
|
"type": ["string", "integer"],
|
182
187
|
"description": "The cache max size for the files cache, defaults to \"300MiB\"."
|
183
188
|
},
|
189
|
+
"bin-compat": {
|
190
|
+
"enum": ["auto", "full"],
|
191
|
+
"description": "The compatibility of the binaries, defaults to \"auto\" (automatically guessed) and can be \"full\" (compatible with both Windows and Unix-based systems)."
|
192
|
+
},
|
184
193
|
"discard-changes": {
|
185
194
|
"type": ["string", "boolean"],
|
186
195
|
"description": "The default style of handling dirty updates, defaults to false and can be any of true, false or \"stash\"."
|
@@ -211,6 +220,14 @@
|
|
211
220
|
"github-expose-hostname": {
|
212
221
|
"type": "boolean",
|
213
222
|
"description": "Defaults to true. If set to false, the OAuth tokens created to access the github API will have a date instead of the machine hostname."
|
223
|
+
},
|
224
|
+
"archive-format": {
|
225
|
+
"type": "string",
|
226
|
+
"description": "The default archiving format when not provided on cli, defaults to \"tar\"."
|
227
|
+
},
|
228
|
+
"archive-dir": {
|
229
|
+
"type": "string",
|
230
|
+
"description": "The default archive path when not provided on cli, defaults to \".\"."
|
214
231
|
}
|
215
232
|
}
|
216
233
|
},
|
@@ -240,6 +257,10 @@
|
|
240
257
|
"files": {
|
241
258
|
"type": "array",
|
242
259
|
"description": "This is an array of files that are always required on every request."
|
260
|
+
},
|
261
|
+
"exclude-from-classmap": {
|
262
|
+
"type": "array",
|
263
|
+
"description": "This is an array of patterns to exclude from autoload classmap generation. (e.g. \"exclude-from-classmap\": [\"/test/\", \"/tests/\", \"/Tests/\"]"
|
243
264
|
}
|
244
265
|
}
|
245
266
|
},
|
@@ -289,7 +310,7 @@
|
|
289
310
|
},
|
290
311
|
"prefer-stable": {
|
291
312
|
"type": ["boolean"],
|
292
|
-
"description": "If set to true, stable packages will be
|
313
|
+
"description": "If set to true, stable packages will be preferred to dev packages when possible, even if the minimum-stability allows unstable packages."
|
293
314
|
},
|
294
315
|
"bin": {
|
295
316
|
"type": ["array"],
|
@@ -385,17 +406,17 @@
|
|
385
406
|
},
|
386
407
|
"issues": {
|
387
408
|
"type": "string",
|
388
|
-
"description": "URL to the
|
409
|
+
"description": "URL to the issue tracker.",
|
389
410
|
"format": "uri"
|
390
411
|
},
|
391
412
|
"forum": {
|
392
413
|
"type": "string",
|
393
|
-
"description": "URL to the
|
414
|
+
"description": "URL to the forum.",
|
394
415
|
"format": "uri"
|
395
416
|
},
|
396
417
|
"wiki": {
|
397
418
|
"type": "string",
|
398
|
-
"description": "URL to the
|
419
|
+
"description": "URL to the wiki.",
|
399
420
|
"format": "uri"
|
400
421
|
},
|
401
422
|
"irc": {
|
@@ -407,15 +428,24 @@
|
|
407
428
|
"type": "string",
|
408
429
|
"description": "URL to browse or download the sources.",
|
409
430
|
"format": "uri"
|
431
|
+
},
|
432
|
+
"docs": {
|
433
|
+
"type": "string",
|
434
|
+
"description": "URL to the documentation.",
|
435
|
+
"format": "uri"
|
410
436
|
}
|
411
437
|
}
|
412
438
|
},
|
413
439
|
"non-feature-branches": {
|
414
440
|
"type": ["array"],
|
415
|
-
"description": "A set of string or regex patterns for non-numeric branch names that will not be
|
441
|
+
"description": "A set of string or regex patterns for non-numeric branch names that will not be handled as feature branches.",
|
416
442
|
"items": {
|
417
443
|
"type": "string"
|
418
444
|
}
|
445
|
+
},
|
446
|
+
"abandoned": {
|
447
|
+
"type": ["boolean", "string"],
|
448
|
+
"description": "Indicates whether this package has been abandoned, it can be boolean or a package name/URL pointing to a recommended alternative. Defaults to false."
|
419
449
|
}
|
420
450
|
}
|
421
451
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: php-composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ioannis Kappas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -86,34 +86,34 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
89
|
+
version: '0.35'
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 0.
|
92
|
+
version: 0.35.0
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '0.
|
99
|
+
version: '0.35'
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0.
|
102
|
+
version: 0.35.0
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: simplecov
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
109
|
+
version: '0.10'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
116
|
+
version: '0.10'
|
117
117
|
description: A ruby gem library for consistent interactions with php composer dependency
|
118
118
|
manager.
|
119
119
|
email:
|