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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjU3YzE0YjBkMzYwZjVmMjJkYzA1NmI1YmYzOTc0YjU2ZmM2OGJhMA==
4
+ ZmZjNjJhODc5NWM1Y2VhM2YxMDhjY2I2NDNmMzRmN2QyYThjN2ZlNg==
5
5
  data.tar.gz: !binary |-
6
- NDQzMTAyMTdjNWFmYmE1OTliZDM5YzMxOWVkMTMwMDg3Yjc5MWNmNQ==
6
+ NTg0ZTc3OTYxNTM2MjM3YjE2YmYzNGFkY2E4OTc2MGRlMWRiOTQyYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDY1NjUyNGM1ODVjNjY0N2ZlY2ZhZjlkNjFiZjZlMTllNWU0NWY4Y2ExZDk0
10
- MWQ2ZTc5MDQyNTM1ZTU3NDcxM2I4NDNiMzQwN2ViYzQwNmFkNWM1MGIzNzE4
11
- ZGY2Zjg1YjMzNWRmNTk3ZThmOTljNmMzNzkwNmRmMDM2NjhlOGU=
9
+ MzBhNzI3MDVjZGY0Y2MxZWM4ZjI0YTU5OGM1ZmY4YWI1OTYwODk3MWMzMjIx
10
+ MjczMmMyNGM4ZjBkODIzNTk4NmJjNzZjYjliOWVhMDNjMjA1NWE0MTljMDE3
11
+ MDA4YjhlZmFlY2NmNDI5MDQ3ZDNmYTY3OGJhMGY2NTY3OTY4ZWY=
12
12
  data.tar.gz: !binary |-
13
- OTg0OTJlMzE3YWQyNzVhMTllNWUyMmIwYTdhMGJhY2M5OGEwNDIxZTc3YzA2
14
- NjA0NzdkZDY0MjFmYWRkNGFkZjI1ZjQyZjhjM2JjYTJmN2MwZDhlMTExNDBj
15
- OTk1OWM1NTZlMjY5MDRiNWNiOWQ1ODcyN2QwZGZhMzQ0NzdkZTQ=
13
+ ZjkwOGJiZDU1MzQ0NzJhODU1YmM0NjQ2ZDA2ZTdkMDQ5OWEzZTZhOGFhZDhm
14
+ Y2U5NjRiNjRmNzEwMjhiNTA4MjRjMWQ1Zjg3MzQ0ODMwZDc5MTAxM2U2ZGZi
15
+ YWY1NTQxZjU4N2Q1N2NmMzg0MTVlNDA1MDg4ZTkzOTA2NTFjODQ=
@@ -1 +1 @@
1
- 1.9.3-p448
1
+ 1.9.3
@@ -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: {}
@@ -1,3 +1,5 @@
1
+ #### v0.2.1
2
+ #### v0.1.4
1
3
  #### v0.2.0
2
4
  * Fixes github-auth
3
5
 
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env zsh
2
+
3
+ if [[ ! -o interactive ]]; then
4
+ return
5
+ fi
6
+
7
+ compctl -K _octopolo octopolo op
8
+
9
+ _octopolo() {
10
+ local words completions
11
+ read -cA words
12
+ completions="$(op help -c)"
13
+ reply=("${(ps:\n:)completions}")
14
+ }
@@ -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
- scrub_tag(tags.sort.last).to_version || "0.0.0".to_version
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 scrub_tag(tag)
121
- @prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(tag)
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
@@ -1,3 +1,3 @@
1
1
  module Octopolo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -202,23 +202,20 @@ module Octopolo
202
202
  end
203
203
  end
204
204
 
205
- describe "#scrub_tag" do
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.scrub_tag tag
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.scrub_tag tag
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.0
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: 2014-09-05 00:00:00.000000000 Z
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.2.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.