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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00bfb25b6832250ab5a1b8f5233574fca200e404
4
- data.tar.gz: 4ad55e297ff2e568be4eb87dd9bc59ef99ead58b
3
+ metadata.gz: bc4f122febfd18aa0440e5420ff98cbc691e98f8
4
+ data.tar.gz: bedbf5c4fed43af951be5b19f05762b606ea8290
5
5
  SHA512:
6
- metadata.gz: e39deac709acdef5e439f112c00743c3a5738b285f1bd8c529906a1f81c645a5de2792db34eca2b2017d8d8915ef6910548d11d650542991c0b348aebe0a5d76
7
- data.tar.gz: 222b0999d810280d963eba4766e8f2c875b9dd6756a4ec616e73db80ff3a702c446a445502981ff0989874f100d837d27fbded06f3b15f137a54b3adcc01634e
6
+ metadata.gz: 07b530e01c9b6764440082933dfcb8899ac1c78b00caf9415d8210bb3951c49d95f5aa5bbd7310e323a18601ca2a8982c21cbe0fa219245ea6b490cc9d2aed71
7
+ data.tar.gz: 5ca844fcfbedf17936abf88b45a25631a7300d0c731721bf0633823171e5c2e974682c23de61847daf122627523298dd725412aa3e4d13742acd2760d1661dcf
@@ -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
- generateChangelogs plist
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
 
@@ -7,33 +7,36 @@ require 'cfpropertylist'
7
7
 
8
8
  require_relative 'paths.rb'
9
9
 
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
- name = 'mercure'
32
- g = Gem::Specification.find_by_name( name )
33
- script_path = File.join( g.full_gem_path, 'lib/mercure/changelog.sh' )
34
-
35
- puts "#{script_path} #{previousTag} #{currentTag} #{changelogPath}"
36
-
37
- system("#{script_path} #{previousTag} #{currentTag} #{changelogPath}")
38
-
39
- end
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
@@ -227,7 +227,7 @@ end
227
227
  def buildArtefacts (xcode_settings)
228
228
  generateIpa xcode_settings
229
229
  generatePlist xcode_settings
230
- generateChangelog xcode_settings
230
+ # generateChangelog xcode_settings
231
231
  end
232
232
 
233
233
  # def unlock_keychain
@@ -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
- appVersion["changelogUrl"] = publicChangelogURL settings
32
+ #appVersion["changelogUrl"] = publicChangelogURL settings
33
33
 
34
34
  result = appVersion.save
35
35
 
@@ -159,48 +159,48 @@ end
159
159
  # IPA
160
160
  #
161
161
 
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
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 remoteChangelogPath (settings , destination)
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
- changelogName = changelogName(settings)
190
- remotePath = destination["path"]
191
-
192
- "#{remotePath}/#{changelogName}"
193
-
194
- end
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
- publicURL = settings[:deploy]["uploadServer"]["plist"][0]["publicURL"]
199
- changelogName = changelogName (settings)
200
-
201
- "#{publicURL}/#{changelogName}"
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
@@ -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
- 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
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]
@@ -1,3 +1,3 @@
1
1
  module Mercure
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Meuel