Link the version to CocoaPods-core in a more robust way.
Showing
# -*- encoding: utf-8 -*- | # -*- encoding: utf-8 -*- | ||
$:.unshift File.expand_path('../lib', __FILE__) | require File.expand_path('../lib/cocoapods/gem_version', __FILE__) | ||
Gem::Specification.new do |s| | |||
# Use the version of CocoaPods-Core | |||
if !defined?(Pod::VERSION) && defined?(::BUNDLER_GEMSPEC) | |||
s.version = '0.0.0' | |||
else | |||
require 'cocoapods-core' | |||
s.version = Pod::VERSION | |||
end | |||
Gem::Specification.new do |s| | |||
s.name = "cocoapods" | s.name = "cocoapods" | ||
s.version = Pod::VERSION | |||
s.date = Date.today | s.date = Date.today | ||
s.license = "MIT" | s.license = "MIT" | ||
s.email = ["eloy.de.enige@gmail.com", "fabiopelosin@gmail.com"] | s.email = ["eloy.de.enige@gmail.com", "fabiopelosin@gmail.com"] | ||
... | @@ -33,9 +26,11 @@ Gem::Specification.new do |s| | ... | @@ -33,9 +26,11 @@ Gem::Specification.new do |s| |
s.executables = %w{ pod } | s.executables = %w{ pod } | ||
s.require_paths = %w{ lib } | s.require_paths = %w{ lib } | ||
s.add_runtime_dependency 'cocoapods-core' | # Link with the version of CocoaPods-Core | ||
s.add_runtime_dependency 'claide', '~> 0.1' | s.add_runtime_dependency 'cocoapods-core', "= #{Pod::VERSION}" | ||
s.add_runtime_dependency 'xcodeproj', '~> 0.4.1' | |||
s.add_runtime_dependency 'claide', '~> 0.1' | |||
s.add_runtime_dependency 'xcodeproj', '~> 0.4.1' | |||
s.add_runtime_dependency 'faraday', '~> 0.8.1' | s.add_runtime_dependency 'faraday', '~> 0.8.1' | ||
s.add_runtime_dependency 'octokit', '~> 1.7' | s.add_runtime_dependency 'octokit', '~> 1.7' | ||
... | ... |
lib/cocoapods/gem_version.rb
0 → 100644
Please
register
or
sign in
to comment