establish 0.0.32 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/establish/app_metadata.rb +31 -0
- data/lib/establish/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: 27fb20c8c645f4d35cb12cbc03b75a2c88aec3c88f06093ed118c4389e8402b9
|
4
|
+
data.tar.gz: 4bf38cffe7d25d2b60763d2efcc48bb3e5f4037b929e4c4943e76d62a0df8d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 740769f4ad5b5bb41ba03cb1ef714a0c4907e28941228389be33b33b3a453f839273821f165eb65b0cd43fc0464ea23fba11d07dad0aa733958cdb802deafec5
|
7
|
+
data.tar.gz: bcad395c2c1255c114227b9a7419696c7dfe463e6175ba09e252f06b883bd31998d906b9ae34a0e1f20952ca28a6e55b5021ef1ada7d959b63bd6ab0bbf41d9f
|
@@ -31,11 +31,42 @@ module Establish
|
|
31
31
|
# Updating metadata information
|
32
32
|
#####################################################
|
33
33
|
|
34
|
+
# Update the app title
|
35
|
+
def update_title(hash)
|
36
|
+
update_localized_value('title', hash) do |field, new_val|
|
37
|
+
raise AppMetadataParameterError.new("Parameter needs to be an hash, containing strings with the new description") unless new_val.kind_of?String
|
38
|
+
field.content = new_val
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
34
42
|
# Update the app description which is shown in the AppStore
|
35
43
|
def update_description(hash)
|
36
44
|
update_localized_value('description', hash) do |field, new_val|
|
37
45
|
raise AppMetadataParameterError.new("Parameter needs to be as hash, containing strings with the new description") unless new_val.kind_of?String
|
46
|
+
field.content = new_val
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# Set the changelog
|
51
|
+
def update_changelog(hash)
|
52
|
+
update_localized_value('version_whats_new', hash) do |field, new_val|
|
53
|
+
raise AppMetadataParameterError.new("Parameter needs to be as hash, containing strings with the new description") unless new_val.kind_of?String
|
54
|
+
field.content = new_val
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Update the Marketing URL
|
59
|
+
def update_marketing_url(hash)
|
60
|
+
update_localized_value('software_url', hash) do |field, new_val|
|
61
|
+
raise AppMetadataParameterError.new("Parameter needs to be an hash, containing strings with the new description") unless new_val.kind_of?String
|
62
|
+
field.content = new_val
|
63
|
+
end
|
64
|
+
end
|
38
65
|
|
66
|
+
# Update the support URL
|
67
|
+
def update_support_url(hash)
|
68
|
+
update_localized_value('support_url', hash) do |field, new_val|
|
69
|
+
raise AppMetadataParameterError.new("Parameter needs to be an hash, containing strings with the new description") unless new_val.kind_of?String
|
39
70
|
field.content = new_val
|
40
71
|
end
|
41
72
|
end
|
data/lib/establish/version.rb
CHANGED