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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YThjY2Y2ZTMyNzRjNTdjYTZlMjk5MjhjNzI5YWU5NDQyYzM5Y2U3Mw==
4
+ NjU3YzE0YjBkMzYwZjVmMjJkYzA1NmI1YmYzOTc0YjU2ZmM2OGJhMA==
5
5
  data.tar.gz: !binary |-
6
- ZmE2NjdkMzE5MDc5NWI5ODU4YWQ4OWJlM2QwYWJlZTZjN2NkOWVhMw==
6
+ NDQzMTAyMTdjNWFmYmE1OTliZDM5YzMxOWVkMTMwMDg3Yjc5MWNmNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmU3ZmJlOTg4MTE0NWVhNDhkODkwYzdiODc0Mjc4Zjg1ODBiM2U4MzQyYzZm
10
- NGYxMmU1MTYxZmQ0NDQyNTg4MDZiZDUyYjY5ZmJlYzQ1ZDNmMzRmYTg4YjZh
11
- YmM3N2IwMzRhMjlkMTAxYzMwYzQxMDhlMzQ2MjM3NTBlZDYxYTM=
9
+ ZDY1NjUyNGM1ODVjNjY0N2ZlY2ZhZjlkNjFiZjZlMTllNWU0NWY4Y2ExZDk0
10
+ MWQ2ZTc5MDQyNTM1ZTU3NDcxM2I4NDNiMzQwN2ViYzQwNmFkNWM1MGIzNzE4
11
+ ZGY2Zjg1YjMzNWRmNTk3ZThmOTljNmMzNzkwNmRmMDM2NjhlOGU=
12
12
  data.tar.gz: !binary |-
13
- YjI1OTllMmVlYzBmMzI3N2QxOWEzZjYxZTNmYmEzNzM3ZGVmZDU5YjVlYWFm
14
- YmMxM2UzZGExY2Y4ZDYwNmUzYjVhOTRiZDMwZjFkODM4YTkzZjZmNzBkMTI0
15
- YTAzOTgwN2ZkZjMyZGM4MTk0ZTZlN2I1YTYyMDQzNWQ4ZDUwOWQ=
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
@@ -1,4 +1,3 @@
1
- #### v0.1.4
2
1
  #### v0.2.0
3
2
  * Fixes github-auth
4
3
 
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.map{|tag| Octopolo::SemverTagScrubber.scrub_prefix(tag); tag.to_version }.sort.last || "0.0.0".to_version
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 set_prefix
122
- @prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(git.semver_tags.last)
120
+ def scrub_tag(tag)
121
+ @prefix ||= Octopolo::SemverTagScrubber.scrub_prefix(tag)
122
+ tag
123
123
  end
124
124
  end
125
125
  end
@@ -1,3 +1,3 @@
1
1
  module Octopolo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -202,20 +202,23 @@ module Octopolo
202
202
  end
203
203
  end
204
204
 
205
- describe "#set_prefix" do
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.set_prefix
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.set_prefix
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.1.4
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: 2015-01-28 00:00:00.000000000 Z
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.4.4
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: {}
@@ -1,14 +0,0 @@
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
- }