Module: GoNative::Plugins::IOS::Helpers::SpecReader

Included in:
Release, Version
Defined in:
lib/gonative/plugins/ios/helpers/spec_reader.rb

Instance Method Summary collapse

Instance Method Details

#specObject



14
15
16
# File 'lib/gonative/plugins/ios/helpers/spec_reader.rb', line 14

def spec
  @spec ||= Pod::Specification.from_file(spec_name)
end

#spec_nameObject



10
11
12
# File 'lib/gonative/plugins/ios/helpers/spec_reader.rb', line 10

def spec_name
  @spec_name ||= Dir.entries('.').select { |s| s.end_with? '.podspec' }.first
end