samus 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a3d8755d36607bc5af17c52a506a71d56d2c012
4
- data.tar.gz: f98f0b7fb11d61db3b9fa90302509eea0c820418
3
+ metadata.gz: 464a4326184056319c7567b5ac46a983d5428dd9
4
+ data.tar.gz: 2c86ec8b72c7132e8392320aff450ebf9b9c51a2
5
5
  SHA512:
6
- metadata.gz: c78546ff112af1449037e2c1eb43fd20228461fc9b438efcc867685a16b7c286729006e92ca55214dc470c62eca2478b635aef7ef8b053a46e6fd3dec23a1f0d
7
- data.tar.gz: 06b5123b4f12d818195acc10b79e721dc774057fb406a30ef41bde897da0210f01cc171c68ff49d6048bbeeed5c713d50d9c804a0a7b3d2fb4cecaa5054b3b85
6
+ metadata.gz: f7571279aced2d05e223ac5306574a0c59c2d72427a75b251e4a3b8851277d15f39a1fe8ba03f1fa9a783d6b0360df764d22049db693c5d586507f5331033c21
7
+ data.tar.gz: f6fa06436b63bc20fdcf51e556a8a7291a9bfdde8e5f555a3133181684049bcb5a1316d512f03a743b4f12d8a315ad1812cb1ae8e52eb8251a8d1e03e67afb75
@@ -0,0 +1,15 @@
1
+ # 1.4.2 - October 26, 2014
2
+
3
+ - Add `build/changelog-parse` command to build ChangeLog from latest entries.
4
+
5
+ # 1.4.1 - October 24, 2014
6
+
7
+ - Remove date from title in `publish/github-release`
8
+
9
+ # 1.4.0 - October 24, 2014
10
+
11
+ - Add `publish/github-release` command.
12
+
13
+ # 1.3.0 - July 23, 2014
14
+
15
+ - Fix issue where repository would not reset when using `samus-build` command.
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ def parse_changelog(changelog)
4
+ out, collect_started = [], false
5
+ File.read(changelog).split(/\r?\n/).each do |line|
6
+ if line =~ /^(#+\s+)?\d+/
7
+ break if collect_started
8
+ collect_started = true
9
+ next
10
+ end
11
+
12
+ next if line =~ /^(\S)\1*$/
13
+ out << line if collect_started
14
+ end
15
+ out.join("\n").strip
16
+ end
17
+
18
+ file = ARGV[0]
19
+ dest = File.join(ENV["__build_dir"], ENV["_destination"] || file)
20
+ File.open(dest, "w") {|f| f.puts(parse_changelog(file)) }
@@ -0,0 +1,7 @@
1
+ Parses a ChangeLog file and extracts entries for latest release.
2
+
3
+ Files:
4
+ * The path to the ChangeLog file.
5
+
6
+ Arguments:
7
+ * destination: an optional destination filename.
@@ -1,3 +1,3 @@
1
1
  module Samus
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
data/samus.json CHANGED
@@ -28,15 +28,6 @@
28
28
  "remotes": "origin",
29
29
  "refs": "master v$version"
30
30
  }
31
- },
32
- {
33
- "action": "github-release",
34
- "credentials": "lsegal.github",
35
- "files": [],
36
- "arguments": {
37
- "repository": "lsegal/samus",
38
- "tag": "v$version"
39
- }
40
31
  }
41
32
  ]
42
33
  },
@@ -50,6 +41,22 @@
50
41
  "credentials": "lsegal.rubygems"
51
42
  }
52
43
  ]
44
+ },
45
+ {
46
+ "action": "changelog-parse",
47
+ "files": ["CHANGELOG.md"],
48
+ "publish": [
49
+ {
50
+ "action": "github-release",
51
+ "credentials": "lsegal.github",
52
+ "files": [],
53
+ "arguments": {
54
+ "repository": "lsegal/samus",
55
+ "tag": "v$version",
56
+ "changelog": "CHANGELOG.md"
57
+ }
58
+ }
59
+ ]
53
60
  }
54
61
  ]
55
62
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loren Segal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-25 00:00:00.000000000 Z
11
+ date: 2014-10-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: lsegal@soen.ca
@@ -17,6 +17,7 @@ executables:
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - CHANGELOG.md
20
21
  - LICENSE
21
22
  - README.md
22
23
  - bin/samus
@@ -26,6 +27,8 @@ files:
26
27
  - commands/build/archive-tgz.help.md
27
28
  - commands/build/archive-zip
28
29
  - commands/build/archive-zip.help.md
30
+ - commands/build/changelog-parse
31
+ - commands/build/changelog-parse.help.md
29
32
  - commands/build/fs-copy
30
33
  - commands/build/fs-copy.help.md
31
34
  - commands/build/fs-mkdir