octopolo 0.1.4 → 0.2.0
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/CHANGELOG.markdown +0 -1
- data/{completion/octopolo.sh → bash_completion.sh} +0 -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 +7 -4
- metadata +4 -6
- data/.soyuz.yml +0 -13
- data/completion/octopolo.zsh +0 -14
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjU3YzE0YjBkMzYwZjVmMjJkYzA1NmI1YmYzOTc0YjU2ZmM2OGJhMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDQzMTAyMTdjNWFmYmE1OTliZDM5YzMxOWVkMTMwMDg3Yjc5MWNmNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDY1NjUyNGM1ODVjNjY0N2ZlY2ZhZjlkNjFiZjZlMTllNWU0NWY4Y2ExZDk0
|
10
|
+
MWQ2ZTc5MDQyNTM1ZTU3NDcxM2I4NDNiMzQwN2ViYzQwNmFkNWM1MGIzNzE4
|
11
|
+
ZGY2Zjg1YjMzNWRmNTk3ZThmOTljNmMzNzkwNmRmMDM2NjhlOGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTg0OTJlMzE3YWQyNzVhMTllNWUyMmIwYTdhMGJhY2M5OGEwNDIxZTc3YzA2
|
14
|
+
NjA0NzdkZDY0MjFmYWRkNGFkZjI1ZjQyZjhjM2JjYTJmN2MwZDhlMTExNDBj
|
15
|
+
OTk1OWM1NTZlMjY5MDRiNWNiOWQ1ODcyN2QwZGZhMzQ0NzdkZTQ=
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.9.3
|
1
|
+
1.9.3-p448
|
data/CHANGELOG.markdown
CHANGED
File without changes
|
@@ -80,7 +80,6 @@ module Octopolo
|
|
80
80
|
|
81
81
|
def tag_semver
|
82
82
|
current_version = get_current_version
|
83
|
-
set_prefix
|
84
83
|
ask_user_version unless @major || @minor || @patch
|
85
84
|
new_version = upgrade_version current_version
|
86
85
|
"#{prefix}#{new_version.to_s}"
|
@@ -88,7 +87,7 @@ module Octopolo
|
|
88
87
|
|
89
88
|
def get_current_version
|
90
89
|
tags = git.semver_tags
|
91
|
-
tags.
|
90
|
+
scrub_tag(tags.sort.last).to_version || "0.0.0".to_version
|
92
91
|
end
|
93
92
|
|
94
93
|
def ask_user_version
|
@@ -118,8 +117,9 @@ module Octopolo
|
|
118
117
|
# Private: sets/removes the prefix from the tag
|
119
118
|
#
|
120
119
|
# Allows the tag to play nice with the semantic gem
|
121
|
-
def
|
122
|
-
@prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(
|
120
|
+
def scrub_tag(tag)
|
121
|
+
@prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(tag)
|
122
|
+
tag
|
123
123
|
end
|
124
124
|
end
|
125
125
|
end
|
data/lib/octopolo/version.rb
CHANGED
@@ -202,20 +202,23 @@ module Octopolo
|
|
202
202
|
end
|
203
203
|
end
|
204
204
|
|
205
|
-
describe "#
|
205
|
+
describe "#scrub_tag" do
|
206
206
|
let(:tag) { "v0.0.2" }
|
207
|
-
let(:git) { double(:semver_tags => [tag]) }
|
208
207
|
|
209
208
|
it "sets the prefix" do
|
210
|
-
subject.
|
209
|
+
subject.scrub_tag tag
|
211
210
|
expect(subject.prefix).to eq("v")
|
212
211
|
end
|
213
212
|
|
214
213
|
it "does not overwrite the prefix" do
|
215
214
|
subject.prefix = "prefix"
|
216
|
-
subject.
|
215
|
+
subject.scrub_tag tag
|
217
216
|
expect(subject.prefix).to eq("prefix")
|
218
217
|
end
|
218
|
+
|
219
|
+
it "returns the scrubbed tag" do
|
220
|
+
expect(subject.scrub_tag tag).to eq("0.0.2")
|
221
|
+
end
|
219
222
|
end
|
220
223
|
|
221
224
|
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.
|
4
|
+
version: 0.2.0
|
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: 2014-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -192,7 +192,6 @@ files:
|
|
192
192
|
- .gitignore
|
193
193
|
- .ruby-gemset
|
194
194
|
- .ruby-version
|
195
|
-
- .soyuz.yml
|
196
195
|
- .travis.yml
|
197
196
|
- CHANGELOG.markdown
|
198
197
|
- Gemfile
|
@@ -200,10 +199,9 @@ files:
|
|
200
199
|
- MIT-LICENSE
|
201
200
|
- README.markdown
|
202
201
|
- Rakefile
|
202
|
+
- bash_completion.sh
|
203
203
|
- bin/octopolo
|
204
204
|
- bin/op
|
205
|
-
- completion/octopolo.sh
|
206
|
-
- completion/octopolo.zsh
|
207
205
|
- lib/octopolo.rb
|
208
206
|
- lib/octopolo/changelog.rb
|
209
207
|
- lib/octopolo/cli.rb
|
@@ -322,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
320
|
version: '0'
|
323
321
|
requirements: []
|
324
322
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.
|
323
|
+
rubygems_version: 2.2.2
|
326
324
|
signing_key:
|
327
325
|
specification_version: 4
|
328
326
|
summary: A set of Github workflow scripts.
|
data/.soyuz.yml
DELETED
@@ -1,13 +0,0 @@
|
|
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/completion/octopolo.zsh
DELETED