cocoapods-core 0.27.1 → 0.28.0

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cocoapods-core.rb +0 -2
  3. data/lib/cocoapods-core/core_ui.rb +0 -1
  4. data/lib/cocoapods-core/dependency.rb +20 -15
  5. data/lib/cocoapods-core/gem_version.rb +1 -1
  6. data/lib/cocoapods-core/github.rb +1 -1
  7. data/lib/cocoapods-core/lockfile.rb +15 -11
  8. data/lib/cocoapods-core/platform.rb +10 -6
  9. data/lib/cocoapods-core/podfile.rb +18 -11
  10. data/lib/cocoapods-core/podfile/dsl.rb +25 -23
  11. data/lib/cocoapods-core/podfile/target_definition.rb +60 -36
  12. data/lib/cocoapods-core/requirement.rb +2 -2
  13. data/lib/cocoapods-core/source.rb +34 -10
  14. data/lib/cocoapods-core/source/acceptor.rb +12 -8
  15. data/lib/cocoapods-core/source/aggregate.rb +22 -9
  16. data/lib/cocoapods-core/source/health_reporter.rb +2 -2
  17. data/lib/cocoapods-core/specification.rb +14 -12
  18. data/lib/cocoapods-core/specification/consumer.rb +8 -6
  19. data/lib/cocoapods-core/specification/dsl.rb +66 -18
  20. data/lib/cocoapods-core/specification/dsl/attribute.rb +5 -4
  21. data/lib/cocoapods-core/specification/dsl/deprecations.rb +35 -23
  22. data/lib/cocoapods-core/specification/dsl/platform_proxy.rb +16 -11
  23. data/lib/cocoapods-core/specification/linter.rb +107 -36
  24. data/lib/cocoapods-core/specification/root_attribute_accessors.rb +16 -4
  25. data/lib/cocoapods-core/specification/set.rb +41 -24
  26. data/lib/cocoapods-core/specification/set/presenter.rb +7 -5
  27. data/lib/cocoapods-core/specification/yaml.rb +6 -2
  28. data/lib/cocoapods-core/standard_error.rb +3 -3
  29. data/lib/cocoapods-core/vendor.rb +0 -1
  30. data/lib/cocoapods-core/vendor/requirement.rb +9 -9
  31. data/lib/cocoapods-core/vendor/version.rb +143 -140
  32. data/lib/cocoapods-core/version.rb +5 -6
  33. data/lib/cocoapods-core/yaml_converter.rb +3 -2
  34. metadata +17 -3
@@ -56,7 +56,7 @@ module Pod
56
56
  version = version.version
57
57
  @head = true
58
58
  elsif version.is_a?(String) && version =~ /HEAD (based on|from) (.*)/
59
- version = $2
59
+ version = Regexp.last_match[2]
60
60
  @head = true
61
61
  end
62
62
  super(version)
@@ -82,7 +82,7 @@ module Pod
82
82
  # @return [String] a string representation suitable for debugging.
83
83
  #
84
84
  def inspect
85
- "<#{self.class} version=#{self.version}>"
85
+ "<#{self.class} version=#{version}>"
86
86
  end
87
87
 
88
88
  # @return [Boolean] indicates whether or not the version is a prerelease.
@@ -98,7 +98,7 @@ module Pod
98
98
 
99
99
  # @return [Bool] Whether a string representation is correct.
100
100
  #
101
- def self.correct? version
101
+ def self.correct?(version)
102
102
  version.to_s =~ ANCHORED_VERSION_PATTERN
103
103
  end
104
104
 
@@ -106,8 +106,8 @@ module Pod
106
106
 
107
107
  # @!group Semantic Versioning
108
108
 
109
- SEMANTIC_VERSION_PATTERN = '[0-9]+(\.[0-9]+(\.[0-9]+(-[0-9A-Za-z\-\.]+)?)?)?'
110
- ANCHORED_SEMANTIC_VERSION_PATTERN = /\A\s*(#{SEMANTIC_VERSION_PATTERN})*\s*\z/
109
+ SEMVER_PATTERN = '[0-9]+(\.[0-9]+(\.[0-9]+(-[0-9A-Za-z\-\.]+)?)?)?'
110
+ ANCHORED_SEMANTIC_VERSION_PATTERN = /\A\s*(#{SEMVER_PATTERN})*\s*\z/
111
111
 
112
112
  # @return [Bool] Whether the version conforms to the Semantic Versioning
113
113
  # specification (2.0.0-rc.1).
@@ -142,4 +142,3 @@ module Pod
142
142
 
143
143
  end
144
144
  end
145
-
@@ -67,7 +67,8 @@ module Pod
67
67
  when Array then process_array(value)
68
68
  when Hash then process_hash(value, hash_keys_hint)
69
69
  else
70
- raise StandardError, "Unsupported class for YAML conversion #{value.class}"
70
+ raise StandardError, "Unsupported class for YAML conversion " \
71
+ "#{value.class}"
71
72
  end
72
73
  end
73
74
 
@@ -83,7 +84,7 @@ module Pod
83
84
  sorted_array(array).each do |array_value|
84
85
  result << process_according_to_class(array_value)
85
86
  end
86
- "- #{result*"\n- "}"
87
+ "- #{result * "\n- "}"
87
88
  end
88
89
 
89
90
  # Converts a hash to YAML after sorting its keys. Optionally accepts a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-24 00:00:00.000000000 Z
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -46,7 +46,7 @@ dependencies:
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.5'
48
48
  - !ruby/object:Gem::Dependency
49
- name: json_pure
49
+ name: json
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
@@ -59,6 +59,20 @@ dependencies:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.8'
62
+ - !ruby/object:Gem::Dependency
63
+ name: fuzzy_match
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.4
69
+ type: :runtime
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 2.0.4
62
76
  - !ruby/object:Gem::Dependency
63
77
  name: bacon
64
78
  requirement: !ruby/object:Gem::Requirement