Class: PM::UpdateResut
- Inherits:
-
Object
- Object
- PM::UpdateResut
- Defined in:
- lib/cocoapods-byte-panglem-beta/recorder.rb
Instance Attribute Summary collapse
-
#is_rely_update ⇒ Object
Returns the value of attribute is_rely_update.
-
#is_sdk_update ⇒ Object
Returns the value of attribute is_sdk_update.
-
#rely_list ⇒ Object
Returns the value of attribute rely_list.
-
#rely_name ⇒ Object
Returns the value of attribute rely_name.
-
#rely_original_version ⇒ Object
Returns the value of attribute rely_original_version.
-
#rely_target_version ⇒ Object
Returns the value of attribute rely_target_version.
-
#sdk_list ⇒ Object
Returns the value of attribute sdk_list.
-
#sdk_name ⇒ Object
Returns the value of attribute sdk_name.
-
#sdk_original_version ⇒ Object
Returns the value of attribute sdk_original_version.
-
#sdk_target_version ⇒ Object
Returns the value of attribute sdk_target_version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ UpdateResut
constructor
A new instance of UpdateResut.
Constructor Details
#initialize ⇒ UpdateResut
Returns a new instance of UpdateResut.
207 208 209 210 211 212 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 207 def initialize() @is_sdk_update = false @is_rely_update = false @sdk_list = [] @rely_list = [] end |
Instance Attribute Details
#is_rely_update ⇒ Object
Returns the value of attribute is_rely_update.
197 198 199 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 197 def is_rely_update @is_rely_update end |
#is_sdk_update ⇒ Object
Returns the value of attribute is_sdk_update.
196 197 198 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 196 def is_sdk_update @is_sdk_update end |
#rely_list ⇒ Object
Returns the value of attribute rely_list.
199 200 201 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 199 def rely_list @rely_list end |
#rely_name ⇒ Object
Returns the value of attribute rely_name.
201 202 203 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 201 def rely_name @rely_name end |
#rely_original_version ⇒ Object
Returns the value of attribute rely_original_version.
203 204 205 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 203 def rely_original_version @rely_original_version end |
#rely_target_version ⇒ Object
Returns the value of attribute rely_target_version.
205 206 207 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 205 def rely_target_version @rely_target_version end |
#sdk_list ⇒ Object
Returns the value of attribute sdk_list.
198 199 200 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 198 def sdk_list @sdk_list end |
#sdk_name ⇒ Object
Returns the value of attribute sdk_name.
200 201 202 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 200 def sdk_name @sdk_name end |
#sdk_original_version ⇒ Object
Returns the value of attribute sdk_original_version.
202 203 204 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 202 def sdk_original_version @sdk_original_version end |
#sdk_target_version ⇒ Object
Returns the value of attribute sdk_target_version.
204 205 206 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 204 def sdk_target_version @sdk_target_version end |
Class Method Details
.from_hash(hash) ⇒ Object
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/cocoapods-byte-panglem-beta/recorder.rb', line 214 def self.from_hash(hash) re = UpdateResut.new() re.sdk_name = "Ads-Global" re.rely_name = "BURelyFoundation_Global" re.sdk_original_version = hash["SDK_ORIGINAL_VERSION"] re.sdk_target_version = hash["SDK_TARGET_VERSION"] re.rely_original_version = hash['RELY_ORIGINAL_VERSION'] re.rely_target_version = hash['RELY_TARGET_VERSION'] re.is_sdk_update = re.sdk_original_version != re.sdk_target_version re.is_rely_update = re.rely_original_version != re.rely_target_version info_r = PM::SpecificationInfo.get_info re.sdk_list = info_r[re.sdk_name].select do |spec| Pod::Specification.root_name(spec.name) == re.sdk_name && spec.version.version == re.sdk_target_version end re.rely_list = info_r[ re.rely_name].select do |spec| Pod::Specification.root_name(spec.name) == re.rely_name && spec.version.version == re.rely_target_version end re end |