mmine 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/lib/mmine/notification_extension_integrator.rb +15 -14
- data/lib/mmine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87b41833acd8fb02c77a920fd41ee568e4d21bbfb35554c7711288a614e5966
|
4
|
+
data.tar.gz: 633958a2d6f07b842ad73293c6f36bfae062ee4b1f4cc2424ca7e4137d40a64b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2f83dee1c721dd34ac6793e3905bcbdc965dabb02e3ca06efb3e7a6724579de8b14531d9b14c6a4259299e0bb4ed845707767eeacfce985fb95f6641e53c8a4
|
7
|
+
data.tar.gz: 1cffffc0b4a23e8931e55271e8b62cebc4b1c671b591f41ea5ac6d89a79e5ffa2e2bff86c172d649c11c8aeb158d9e2edc478e59078e4e8849931b836c570b5c
|
@@ -114,20 +114,21 @@ class NotificationExtensionIntegrator
|
|
114
114
|
FileUtils.cp(@extension_source_name_filepath, @extension_code_destination_filepath)
|
115
115
|
filereference = getNotificationExtensionGroupReference().new_reference(@extension_code_destination_filepath)
|
116
116
|
@ne_target.add_file_references([filereference])
|
117
|
-
|
118
|
-
putApplicationCodeInSourceCode()
|
119
117
|
else
|
120
118
|
@logger.info("Notification extension source code already exists on path: #{@extension_code_destination_filepath}")
|
121
119
|
end
|
120
|
+
putApplicationCodeInSourceCode()
|
122
121
|
end
|
123
122
|
|
124
123
|
def putApplicationCodeInSourceCode
|
125
|
-
@application_code
|
126
124
|
source_code = File.read(@extension_code_destination_filepath)
|
127
125
|
modified_source_code = source_code.gsub(/<# put your Application Code here #>/, "\"#{@application_code}\"")
|
128
|
-
|
129
|
-
|
130
|
-
|
126
|
+
unless source_code == modified_source_code
|
127
|
+
File.open(@extension_code_destination_filepath, "w") do |file|
|
128
|
+
@logger.info("\tWriting application code to source code at #{@extension_code_destination_filepath}")
|
129
|
+
file.puts modified_source_code
|
130
|
+
end
|
131
|
+
end
|
131
132
|
end
|
132
133
|
|
133
134
|
def setupDevelopmentTeam
|
@@ -404,10 +405,10 @@ class NotificationExtensionIntegrator
|
|
404
405
|
end
|
405
406
|
end
|
406
407
|
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
408
|
+
File.open(plist_path,'w') do |file|
|
409
|
+
@logger.info("\tWriting changes to plist: #{plist_path}")
|
410
|
+
file.puts Nokogiri::XML(doc.to_xml) { |x| x.noblanks }
|
411
|
+
end
|
411
412
|
end
|
412
413
|
|
413
414
|
def putKeyArrayElement(key, value, filepath) # check if it appends to existing array
|
@@ -443,10 +444,10 @@ class NotificationExtensionIntegrator
|
|
443
444
|
end
|
444
445
|
end
|
445
446
|
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
447
|
+
File.open(filepath,'w') do |file|
|
448
|
+
@logger.info("\tWriting changes to entitlements: #{filepath}")
|
449
|
+
file.puts Nokogiri::XML(doc.to_xml) { |x| x.noblanks }
|
450
|
+
end
|
450
451
|
end
|
451
452
|
|
452
453
|
def putAppGroupEntitlement(filepath)
|
data/lib/mmine/version.rb
CHANGED