octorelease 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/octorelease.rb +8 -2
- data/lib/octorelease/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e9ccca5e02f96efd46018d2a28ef919068b22fe
|
4
|
+
data.tar.gz: 84817b180145055004712c5bf5f36c80b4294671
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c3d93a6237ae6ae450f0c715946fd5a86fe5b10af9aba38b72e37e0dc0940a60a57b6600f31f11c85f1f68e6a16e95790c7f3a1aadb4a271d48924b41f40a06
|
7
|
+
data.tar.gz: d1042ecf75de503698c1e00351471084e097a555dcb05e7a2174e2bf488dd3a672557be2d9f9fe79bb44adab361fb8d0604280975ef70bed847b6404da21e878
|
data/README.md
CHANGED
@@ -6,7 +6,9 @@ TODO: Write a gem description
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
|
9
|
+
```ruby
|
10
|
+
gem 'octorelease'
|
11
|
+
```
|
10
12
|
|
11
13
|
And then execute:
|
12
14
|
|
@@ -22,7 +24,7 @@ TODO: Write usage instructions here
|
|
22
24
|
|
23
25
|
## Contributing
|
24
26
|
|
25
|
-
1. Fork it (
|
27
|
+
1. Fork it ( https://github.com/mizzy/octorelease/fork )
|
26
28
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
29
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
30
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/octorelease.rb
CHANGED
@@ -21,12 +21,18 @@ task "octorelease" => "release" do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
current_version = "v#{Bundler::GemHelper.new.gemspec.version.to_s}"
|
24
|
-
previous_version = ""
|
24
|
+
previous_version = Gem::Version.create("0.0.0")
|
25
25
|
`git tag`.split(/\n/).each do |tag|
|
26
26
|
break if tag == current_version
|
27
|
-
|
27
|
+
tag.gsub!(/^v/, "")
|
28
|
+
version = Gem::Version.create(tag)
|
29
|
+
if previous_version < version
|
30
|
+
previous_version = version
|
31
|
+
end
|
28
32
|
end
|
29
33
|
|
34
|
+
previous_version = "v#{previous_version.to_s}"
|
35
|
+
|
30
36
|
log = `git log #{previous_version}..#{current_version} --grep=Merge`
|
31
37
|
|
32
38
|
repo = `git remote -v | grep origin`.match(/([\w-]+\/[\w-]+)\.git/)[1]
|
data/lib/octorelease/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octorelease
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.2.
|
104
|
+
rubygems_version: 2.2.2
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Octorelease.
|