octopolo 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.ruby-version +1 -1
- data/.soyuz.yml +13 -0
- data/CHANGELOG.markdown +2 -0
- data/{bash_completion.sh → completion/octopolo.sh} +0 -0
- data/completion/octopolo.zsh +14 -0
- data/lib/octopolo/scripts/tag_release.rb +4 -4
- data/lib/octopolo/version.rb +1 -1
- data/spec/octopolo/scripts/tag_release_spec.rb +4 -7
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmZjNjJhODc5NWM1Y2VhM2YxMDhjY2I2NDNmMzRmN2QyYThjN2ZlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTg0ZTc3OTYxNTM2MjM3YjE2YmYzNGFkY2E4OTc2MGRlMWRiOTQyYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzBhNzI3MDVjZGY0Y2MxZWM4ZjI0YTU5OGM1ZmY4YWI1OTYwODk3MWMzMjIx
|
10
|
+
MjczMmMyNGM4ZjBkODIzNTk4NmJjNzZjYjliOWVhMDNjMjA1NWE0MTljMDE3
|
11
|
+
MDA4YjhlZmFlY2NmNDI5MDQ3ZDNmYTY3OGJhMGY2NTY3OTY4ZWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjkwOGJiZDU1MzQ0NzJhODU1YmM0NjQ2ZDA2ZTdkMDQ5OWEzZTZhOGFhZDhm
|
14
|
+
Y2U5NjRiNjRmNzEwMjhiNTA4MjRjMWQ1Zjg3MzQ0ODMwZDc5MTAxM2U2ZGZi
|
15
|
+
YWY1NTQxZjU4N2Q1N2NmMzg0MTVlNDA1MDg4ZTkzOTA2NTFjODQ=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3
|
1
|
+
1.9.3
|
data/.soyuz.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
defaults:
|
2
|
+
deploy_cmd: gem push *.gem
|
3
|
+
before_deploy_cmds:
|
4
|
+
- /usr/local/bin/op tag-release
|
5
|
+
- sed -i "" -e "s/\".*/\"$(git tag| sort -n -t. -k1,1 -k2,2 -k3,3 | tail -1 | sed s/v//)\"/" lib/octopolo/version.rb
|
6
|
+
- git add lib/octopolo/version.rb
|
7
|
+
- git commit -m "Version Bump" && git push
|
8
|
+
- gem build octopolo.gemspec
|
9
|
+
after_deploy_cmds:
|
10
|
+
- rm *.gem
|
11
|
+
environments:
|
12
|
+
-
|
13
|
+
rubygems: {}
|
data/CHANGELOG.markdown
CHANGED
File without changes
|
@@ -80,6 +80,7 @@ module Octopolo
|
|
80
80
|
|
81
81
|
def tag_semver
|
82
82
|
current_version = get_current_version
|
83
|
+
set_prefix
|
83
84
|
ask_user_version unless @major || @minor || @patch
|
84
85
|
new_version = upgrade_version current_version
|
85
86
|
"#{prefix}#{new_version.to_s}"
|
@@ -87,7 +88,7 @@ module Octopolo
|
|
87
88
|
|
88
89
|
def get_current_version
|
89
90
|
tags = git.semver_tags
|
90
|
-
|
91
|
+
tags.map{|tag| Octopolo::SemverTagScrubber.scrub_prefix(tag); tag.to_version }.sort.last || "0.0.0".to_version
|
91
92
|
end
|
92
93
|
|
93
94
|
def ask_user_version
|
@@ -117,9 +118,8 @@ module Octopolo
|
|
117
118
|
# Private: sets/removes the prefix from the tag
|
118
119
|
#
|
119
120
|
# Allows the tag to play nice with the semantic gem
|
120
|
-
def
|
121
|
-
@prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(
|
122
|
-
tag
|
121
|
+
def set_prefix
|
122
|
+
@prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(git.semver_tags.last)
|
123
123
|
end
|
124
124
|
end
|
125
125
|
end
|
data/lib/octopolo/version.rb
CHANGED
@@ -202,23 +202,20 @@ module Octopolo
|
|
202
202
|
end
|
203
203
|
end
|
204
204
|
|
205
|
-
describe "#
|
205
|
+
describe "#set_prefix" do
|
206
206
|
let(:tag) { "v0.0.2" }
|
207
|
+
let(:git) { double(:semver_tags => [tag]) }
|
207
208
|
|
208
209
|
it "sets the prefix" do
|
209
|
-
subject.
|
210
|
+
subject.set_prefix
|
210
211
|
expect(subject.prefix).to eq("v")
|
211
212
|
end
|
212
213
|
|
213
214
|
it "does not overwrite the prefix" do
|
214
215
|
subject.prefix = "prefix"
|
215
|
-
subject.
|
216
|
+
subject.set_prefix
|
216
217
|
expect(subject.prefix).to eq("prefix")
|
217
218
|
end
|
218
|
-
|
219
|
-
it "returns the scrubbed tag" do
|
220
|
-
expect(subject.scrub_tag tag).to eq("0.0.2")
|
221
|
-
end
|
222
219
|
end
|
223
220
|
|
224
221
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- .gitignore
|
193
193
|
- .ruby-gemset
|
194
194
|
- .ruby-version
|
195
|
+
- .soyuz.yml
|
195
196
|
- .travis.yml
|
196
197
|
- CHANGELOG.markdown
|
197
198
|
- Gemfile
|
@@ -199,9 +200,10 @@ files:
|
|
199
200
|
- MIT-LICENSE
|
200
201
|
- README.markdown
|
201
202
|
- Rakefile
|
202
|
-
- bash_completion.sh
|
203
203
|
- bin/octopolo
|
204
204
|
- bin/op
|
205
|
+
- completion/octopolo.sh
|
206
|
+
- completion/octopolo.zsh
|
205
207
|
- lib/octopolo.rb
|
206
208
|
- lib/octopolo/changelog.rb
|
207
209
|
- lib/octopolo/cli.rb
|
@@ -320,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
320
322
|
version: '0'
|
321
323
|
requirements: []
|
322
324
|
rubyforge_project:
|
323
|
-
rubygems_version: 2.
|
325
|
+
rubygems_version: 2.4.4
|
324
326
|
signing_key:
|
325
327
|
specification_version: 4
|
326
328
|
summary: A set of Github workflow scripts.
|