pr-changelog 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pr_changelog_utils.rb +11 -10
- metadata +14 -8
- checksums.yaml +0 -7
data/lib/pr_changelog_utils.rb
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'xcoder'
|
4
|
-
|
5
3
|
class ChangelogUtils
|
6
4
|
|
7
5
|
attr_accessor :branch_name
|
@@ -16,15 +14,18 @@ class ChangelogUtils
|
|
16
14
|
end
|
17
15
|
|
18
16
|
|
19
|
-
def self.
|
20
|
-
projectName =
|
21
|
-
|
22
|
-
|
17
|
+
def self.plistFile
|
18
|
+
projectName = ChangelogUtils.getProjectName
|
19
|
+
plistFile = Dir["#{Dir.pwd}/*/#{projectName}-Info.plist"]
|
20
|
+
if (plistFile.size() > 0)
|
21
|
+
return plistFile[0]
|
22
|
+
else
|
23
|
+
return nil
|
24
|
+
end
|
25
|
+
end
|
23
26
|
|
24
|
-
|
25
|
-
|
26
|
-
`git checkout .` #reset all modified files by xcoder but I don't like this solution
|
27
|
-
version
|
27
|
+
def self.showVersion
|
28
|
+
`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" #{ChangelogUtils.plistFile}`.strip
|
28
29
|
end
|
29
30
|
|
30
31
|
def self.printCurrentChange
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pr-changelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- David Cortés
|
@@ -13,6 +14,7 @@ dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: commander
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,15 +30,17 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: xcoder
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- - '>='
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- - '>='
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
description: With this gem you can generate a changelog using Pull Requests logs on
|
@@ -51,26 +56,27 @@ files:
|
|
51
56
|
homepage: https://github.com/davebcn87/pr-changelog
|
52
57
|
licenses:
|
53
58
|
- MIT
|
54
|
-
metadata: {}
|
55
59
|
post_install_message:
|
56
60
|
rdoc_options: []
|
57
61
|
require_paths:
|
58
62
|
- lib
|
59
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
60
65
|
requirements:
|
61
|
-
- - '>='
|
66
|
+
- - ! '>='
|
62
67
|
- !ruby/object:Gem::Version
|
63
68
|
version: '0'
|
64
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
65
71
|
requirements:
|
66
|
-
- - '>='
|
72
|
+
- - ! '>='
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '0'
|
69
75
|
requirements: []
|
70
76
|
rubyforge_project:
|
71
|
-
rubygems_version:
|
77
|
+
rubygems_version: 1.8.25
|
72
78
|
signing_key:
|
73
|
-
specification_version:
|
79
|
+
specification_version: 3
|
74
80
|
summary: Create a changelog for an iOS app using git history of Pull Requests already
|
75
81
|
merged and xcode version
|
76
82
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 892814aef0a56da4b276e43b5440dd1ecbfb7bcd
|
4
|
-
data.tar.gz: b77b3826dffba8786271ca8fed784aa6927b4f7b
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: d6ab5f88efc5f1523b9cbb232b5bc40b99aa8fbfb6881adfa3e9fb256b094d366f0f311c6ad554681d8af9cf5c90f2acbfc4bed39ae588557504b94d758573b6
|
7
|
-
data.tar.gz: 32dbad777581cf0919334e041e66b48d0195d190a94382d38a08ad38dbee578223f0b4232b1641483819fa1461b60254c4257967ed116fa594f3135c12fa0060
|