mercure 0.1.3 → 0.1.5
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/mercure.rb +6 -6
- data/lib/mercure/changelog.rb +33 -30
- data/lib/mercure/deploy.rb +1 -1
- data/lib/mercure/parse.rb +1 -1
- data/lib/mercure/paths.rb +39 -39
- data/lib/mercure/upload.rb +15 -15
- data/lib/mercure/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc4f122febfd18aa0440e5420ff98cbc691e98f8
|
4
|
+
data.tar.gz: bedbf5c4fed43af951be5b19f05762b606ea8290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b530e01c9b6764440082933dfcb8899ac1c78b00caf9415d8210bb3951c49d95f5aa5bbd7310e323a18601ca2a8982c21cbe0fa219245ea6b490cc9d2aed71
|
7
|
+
data.tar.gz: 5ca844fcfbedf17936abf88b45a25631a7300d0c731721bf0633823171e5c2e974682c23de61847daf122627523298dd725412aa3e4d13742acd2760d1661dcf
|
data/lib/mercure.rb
CHANGED
@@ -59,12 +59,12 @@ module Mercure
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
-
desc "changelog JOB", "will build, upload and deploy the job"
|
63
|
-
option :p, :type => :boolean
|
64
|
-
option :pinailleur, :type => :boolean
|
65
|
-
def changelog(plist)
|
66
|
-
|
67
|
-
end
|
62
|
+
# desc "changelog JOB", "will build, upload and deploy the job"
|
63
|
+
# option :p, :type => :boolean
|
64
|
+
# option :pinailleur, :type => :boolean
|
65
|
+
# def changelog(plist)
|
66
|
+
# generateChangelogs plist
|
67
|
+
# end
|
68
68
|
|
69
69
|
end
|
70
70
|
|
data/lib/mercure/changelog.rb
CHANGED
@@ -7,33 +7,36 @@ require 'cfpropertylist'
|
|
7
7
|
|
8
8
|
require_relative 'paths.rb'
|
9
9
|
|
10
|
-
def generateChangelogs (plist_path)
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
|
-
def generateChangelog (deploy)
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
10
|
+
# def generateChangelogs (plist_path)
|
11
|
+
#
|
12
|
+
# plist_content = CFPropertyList::List.new(file: plist_path)
|
13
|
+
# deployments = CFPropertyList.native_types(plist_content.value)
|
14
|
+
#
|
15
|
+
# deployments.each do |deploy|
|
16
|
+
#
|
17
|
+
# generateChangelog deploy
|
18
|
+
#
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
# end
|
22
|
+
|
23
|
+
|
24
|
+
# def generateChangelog (deploy)
|
25
|
+
#
|
26
|
+
# settings = load_settings deploy
|
27
|
+
# changelogPath = changelogPath(settings)
|
28
|
+
# previousTag = settings[:deploy]["build"]["previousGitTag"]
|
29
|
+
# currentTag = settings[:deploy]["build"]["currentGitTag"]
|
30
|
+
#
|
31
|
+
# if previousTag.nil? || currentTag.nil?
|
32
|
+
# return
|
33
|
+
#
|
34
|
+
# name = 'mercure'
|
35
|
+
# g = Gem::Specification.find_by_name( name )
|
36
|
+
# script_path = File.join( g.full_gem_path, 'lib/mercure/changelog.sh' )
|
37
|
+
#
|
38
|
+
# puts "#{script_path} #{previousTag} #{currentTag} #{changelogPath}"
|
39
|
+
#
|
40
|
+
# system("#{script_path} #{previousTag} #{currentTag} #{changelogPath}")
|
41
|
+
#
|
42
|
+
# end
|
data/lib/mercure/deploy.rb
CHANGED
data/lib/mercure/parse.rb
CHANGED
@@ -29,7 +29,7 @@ def updateParse (settings)
|
|
29
29
|
appVersion["versionChangeLog"] = parseInfos["versionChangeLog"]
|
30
30
|
appVersion["versionLevel"] = parseInfos["versionLevel"].to_i
|
31
31
|
appVersion["versionUrl"] = publicPlistURL settings
|
32
|
-
|
32
|
+
#appVersion["changelogUrl"] = publicChangelogURL settings
|
33
33
|
|
34
34
|
result = appVersion.save
|
35
35
|
|
data/lib/mercure/paths.rb
CHANGED
@@ -159,48 +159,48 @@ end
|
|
159
159
|
# IPA
|
160
160
|
#
|
161
161
|
|
162
|
-
def changelogName (settings)
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
end
|
174
|
-
|
175
|
-
def changelogPath (settings)
|
176
|
-
|
177
|
-
buildDirectory = settings[:buildDirectory]
|
178
|
-
buildConfiguration = settings[:buildConfiguration]
|
179
|
-
buildNumber = settings[:buildNumber]
|
180
|
-
applicationName = settings[:applicationName]
|
181
|
-
changelogName = changelogName(settings)
|
182
|
-
|
183
|
-
"#{buildDirectory}/#{buildConfiguration}-iphoneos/#{changelogName}"
|
184
|
-
|
185
|
-
end
|
162
|
+
# def changelogName (settings)
|
163
|
+
#
|
164
|
+
# buildDirectory = settings[:buildDirectory]
|
165
|
+
# buildConfiguration = settings[:buildConfiguration]
|
166
|
+
# buildNumber = settings[:buildNumber]
|
167
|
+
# applicationName = settings[:applicationName]
|
168
|
+
#
|
169
|
+
# pjServerConf = settings[:deploy]["infosPlist"]["PJServerConf"]
|
170
|
+
#
|
171
|
+
# "changelog.#{applicationName}.#{buildNumber}.html"
|
172
|
+
#
|
173
|
+
# end
|
186
174
|
|
187
|
-
def
|
175
|
+
# def changelogPath (settings)
|
176
|
+
#
|
177
|
+
# buildDirectory = settings[:buildDirectory]
|
178
|
+
# buildConfiguration = settings[:buildConfiguration]
|
179
|
+
# buildNumber = settings[:buildNumber]
|
180
|
+
# applicationName = settings[:applicationName]
|
181
|
+
# changelogName = changelogName(settings)
|
182
|
+
#
|
183
|
+
# "#{buildDirectory}/#{buildConfiguration}-iphoneos/#{changelogName}"
|
184
|
+
#
|
185
|
+
# end
|
188
186
|
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
187
|
+
# def remoteChangelogPath (settings , destination)
|
188
|
+
#
|
189
|
+
# changelogName = changelogName(settings)
|
190
|
+
# remotePath = destination["path"]
|
191
|
+
#
|
192
|
+
# "#{remotePath}/#{changelogName}"
|
193
|
+
#
|
194
|
+
# end
|
195
195
|
|
196
|
-
def publicChangelogURL (settings)
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
end
|
196
|
+
# def publicChangelogURL (settings)
|
197
|
+
#
|
198
|
+
# publicURL = settings[:deploy]["uploadServer"]["plist"][0]["publicURL"]
|
199
|
+
# changelogName = changelogName (settings)
|
200
|
+
#
|
201
|
+
# "#{publicURL}/#{changelogName}"
|
202
|
+
#
|
203
|
+
# end
|
204
204
|
|
205
205
|
#
|
206
206
|
# Extra
|
data/lib/mercure/upload.rb
CHANGED
@@ -14,7 +14,7 @@ def uploadArtefacts(settings)
|
|
14
14
|
|
15
15
|
uploadPlist settings
|
16
16
|
uploadIPA settings
|
17
|
-
uploadChangelog settings
|
17
|
+
# uploadChangelog settings
|
18
18
|
|
19
19
|
end
|
20
20
|
|
@@ -71,20 +71,20 @@ def uploadPlist(settings)
|
|
71
71
|
|
72
72
|
end
|
73
73
|
|
74
|
-
def uploadChangelog(settings)
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
end
|
74
|
+
# def uploadChangelog(settings)
|
75
|
+
#
|
76
|
+
# settings[:deploy]["uploadServer"]["plist"].each do |destination|
|
77
|
+
#
|
78
|
+
# changelogPath = changelogPath (settings)
|
79
|
+
# remoteChangelogPath = remoteChangelogPath (settings , destination)
|
80
|
+
#
|
81
|
+
# files_to_upload = [[changelogPath , remoteChangelogPath]]
|
82
|
+
#
|
83
|
+
# uploadFiles(settings , destination , files_to_upload)
|
84
|
+
#
|
85
|
+
# end
|
86
|
+
#
|
87
|
+
# end
|
88
88
|
|
89
89
|
# files_to_upload is an array of arrays
|
90
90
|
# that must be like [local_file_path , remote_file_path]
|
data/lib/mercure/version.rb
CHANGED