Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Lockfile] Remove `---' from YAML.

  • Loading branch information...
commit 50b8c0887d4d9cec8999664b009095c5be35d0f0 1 parent 34a6853
@fabiopelosin fabiopelosin authored
Showing with 2 additions and 3 deletions.
  1. +1 −1  lib/cocoapods/lockfile.rb
  2. +1 −2  spec/unit/lockfile_spec.rb
View
2  lib/cocoapods/lockfile.rb
@@ -74,7 +74,7 @@ def to_s
# serialization.
#
def to_yaml
- to_dict.to_yaml
+ to_dict.to_yaml.gsub(/^--- ?\n/,"")
end
# @return [Dictionary] The Dictionary representation of the Lockfile.
View
3  spec/unit/lockfile_spec.rb
@@ -5,7 +5,6 @@
def sample
text = <<-LOCKFILE.strip_heredoc
- ---
PODS:
- BananaLib (1.0):
- monkey (< 1.0.9, ~> 1.0.1)
@@ -13,7 +12,7 @@ def sample
DEPENDENCIES:
- BananaLib (~> 1.0)
COCOAPODS: #{Pod::VERSION}
- LOCKFILE
+ LOCKFILE
end
def podfile
Please sign in to comment.
Something went wrong with that request. Please try again.