zenflow 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08056c15bf04111493669ac5810d2bee09e1809b
4
- data.tar.gz: de40476d5eb7b2bbed54f67f8b9e451ef3a48b07
3
+ metadata.gz: 760e912aa2ad201df500d0a421839c5fa26411bb
4
+ data.tar.gz: 4bcaa9ef762b80454c8a1cf27181e008d174516c
5
5
  SHA512:
6
- metadata.gz: 3c14ab625a909bb5afbaf2cb20a61a909ef081f3230e2dbc9fd49db22d02b3a56d702b6a84fe0c20e073a9b60fe9d93ffb87ccb5839e3fd23d30bc963bc2a8ec
7
- data.tar.gz: c13bd23582fd6e0c5eee98eaddc4fd67efcc7749d40a036a5da6b36bf9864b6dd5d05322ffb7f6554a9cb231198f7bae7f107fb83c9a7a4acf05a77774d97c27
6
+ metadata.gz: 0c438deb0f3d413cf5432b407b0515bde93e52dcf3083d9ce4d3a2c46595cb0773d0f15638187fa2366f25b36d61de3fc37fe6a0fc07a550eb925c347880ff66
7
+ data.tar.gz: 94c98d1472729f3485bb956f52e1a81e859b42cad8287108d68b837ad65141c62246e6397a00967771d00cb844464e3e43ad4f8368bc05b7e68364bd7e264465
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.1.2
@@ -1,35 +1,36 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zenflow (0.8.5)
4
+ zenflow (0.8.7)
5
5
  colored (~> 1.2)
6
- httparty (~> 0.12.0)
6
+ httparty (~> 0.13.0)
7
7
  terminal-table (~> 1.4.5)
8
- thor (~> 0.18.1)
8
+ thor (~> 0.19.0)
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
- addressable (2.3.5)
13
+ addressable (2.3.6)
14
+ byebug (3.1.2)
15
+ columnize (~> 0.8)
16
+ debugger-linecache (~> 1.2)
14
17
  celluloid (0.15.2)
15
18
  timers (~> 1.1.0)
19
+ celluloid-io (0.15.0)
20
+ celluloid (>= 0.15.0)
21
+ nio4r (>= 0.5.0)
16
22
  coderay (1.1.0)
17
23
  colored (1.2)
18
- columnize (0.3.6)
24
+ columnize (0.8.9)
19
25
  coveralls (0.7.0)
20
26
  multi_json (~> 1.3)
21
27
  rest-client
22
28
  simplecov (>= 0.7)
23
29
  term-ansicolor
24
30
  thor
25
- crack (0.4.1)
26
- safe_yaml (~> 0.9.0)
27
- debugger (1.6.5)
28
- columnize (>= 0.3.1)
29
- debugger-linecache (~> 1.2.0)
30
- debugger-ruby_core_source (~> 1.3.1)
31
+ crack (0.4.2)
32
+ safe_yaml (~> 1.0.0)
31
33
  debugger-linecache (1.2.0)
32
- debugger-ruby_core_source (1.3.1)
33
34
  diff-lcs (1.2.5)
34
35
  ffi (1.9.3)
35
36
  formatador (0.2.4)
@@ -37,34 +38,36 @@ GEM
37
38
  rspec (~> 2.0)
38
39
  rspec-instafail (~> 0.2.0)
39
40
  ruby-progressbar (~> 1.0)
40
- guard (2.2.5)
41
+ guard (2.6.1)
41
42
  formatador (>= 0.2.4)
42
- listen (~> 2.1)
43
+ listen (~> 2.7)
43
44
  lumberjack (~> 1.0)
44
45
  pry (>= 0.9.12)
45
46
  thor (>= 0.18.1)
46
47
  guard-rspec (3.0.3)
47
48
  guard (>= 1.8)
48
49
  rspec (~> 2.13)
49
- httparty (0.12.0)
50
+ httparty (0.13.1)
50
51
  json (~> 1.8)
51
52
  multi_xml (>= 0.5.2)
52
53
  json (1.8.1)
53
- listen (2.4.0)
54
+ listen (2.7.4)
54
55
  celluloid (>= 0.15.2)
56
+ celluloid-io (>= 0.15.0)
55
57
  rb-fsevent (>= 0.9.3)
56
58
  rb-inotify (>= 0.9)
57
- lumberjack (1.0.4)
59
+ lumberjack (1.0.5)
58
60
  method_source (0.8.2)
59
- mime-types (2.0)
60
- multi_json (1.8.4)
61
+ mime-types (2.2)
62
+ multi_json (1.10.0)
61
63
  multi_xml (0.5.5)
62
- pry (0.9.12.4)
64
+ nio4r (1.0.0)
65
+ pry (0.9.12.6)
63
66
  coderay (~> 1.0)
64
67
  method_source (~> 0.8)
65
68
  slop (~> 3.4)
66
69
  rb-fsevent (0.9.4)
67
- rb-inotify (0.9.3)
70
+ rb-inotify (0.9.4)
68
71
  ffi (>= 0.5.0)
69
72
  rest-client (1.6.7)
70
73
  mime-types (>= 1.16)
@@ -72,24 +75,24 @@ GEM
72
75
  rspec-core (~> 2.14.0)
73
76
  rspec-expectations (~> 2.14.0)
74
77
  rspec-mocks (~> 2.14.0)
75
- rspec-core (2.14.7)
76
- rspec-expectations (2.14.4)
78
+ rspec-core (2.14.8)
79
+ rspec-expectations (2.14.5)
77
80
  diff-lcs (>= 1.1.3, < 2.0)
78
81
  rspec-instafail (0.2.4)
79
- rspec-mocks (2.14.4)
80
- ruby-progressbar (1.4.0)
81
- safe_yaml (0.9.7)
82
+ rspec-mocks (2.14.6)
83
+ ruby-progressbar (1.4.2)
84
+ safe_yaml (1.0.3)
82
85
  simplecov (0.7.1)
83
86
  multi_json (~> 1.0)
84
87
  simplecov-html (~> 0.7.1)
85
88
  simplecov-html (0.7.1)
86
- slop (3.4.7)
87
- term-ansicolor (1.2.2)
88
- tins (~> 0.8)
89
+ slop (3.5.0)
90
+ term-ansicolor (1.3.0)
91
+ tins (~> 1.0)
89
92
  terminal-table (1.4.5)
90
- thor (0.18.1)
93
+ thor (0.19.1)
91
94
  timers (1.1.0)
92
- tins (0.13.1)
95
+ tins (1.1.0)
93
96
  vcr (2.5.0)
94
97
  webmock (1.13.0)
95
98
  addressable (>= 2.2.7)
@@ -99,8 +102,8 @@ PLATFORMS
99
102
  ruby
100
103
 
101
104
  DEPENDENCIES
105
+ byebug
102
106
  coveralls
103
- debugger (~> 1.6.1)
104
107
  fuubar (~> 1.1.1)
105
108
  guard-rspec (~> 3.0.2)
106
109
  rspec (~> 2.14)
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  major: 0
3
3
  minor: 8
4
- patch: 6
4
+ patch: 7
5
5
  pre:
@@ -16,7 +16,7 @@ module Zenflow
16
16
  already_created?(Zenflow::PullRequest.find_by_ref("#{flow}/#{branch_name}"))
17
17
 
18
18
  pull = Zenflow::PullRequest.create(
19
- base: branch(:source),
19
+ base: branch(:destination) || branch(:source),
20
20
  head: "#{flow}/#{branch_name}",
21
21
  title: "#{flow}: #{branch_name}",
22
22
  body: Zenflow::Ask("Describe this #{flow}:", required: true)
@@ -10,7 +10,7 @@ module Zenflow
10
10
  return unless exist?
11
11
  change = prompt_for_change(options)
12
12
  if change
13
- prepend_change_to_changelog(change, options)
13
+ prepend_change_to_changelog("* #{change}", options)
14
14
  else
15
15
  rotate(:commit => true) if options[:rotate]
16
16
  end
@@ -25,8 +25,9 @@ module Zenflow
25
25
  def prepend_change_to_changelog(change, options={})
26
26
  return unless exist?
27
27
  new_changes = Zenflow::Shell.shell_escape_for_single_quoting(change)
28
+ prepended_changelog = prepended_changelog(new_changes)
28
29
  File.open("CHANGELOG.md", "w") do |f|
29
- f.write prepended_changelog(new_changes)
30
+ f.write prepended_changelog
30
31
  end
31
32
  rotate(:name => options[:name]) if options[:rotate]
32
33
  Zenflow::Shell["git add CHANGELOG.md && git commit -a -m 'Adding line to CHANGELOG: #{new_changes}'"]
@@ -38,7 +39,6 @@ module Zenflow
38
39
  <<-EOS
39
40
  #{new_changes}
40
41
  #{existing_changes}
41
- --------------------------------------------------------------------------------
42
42
  #{changelog}
43
43
  EOS
44
44
  end
@@ -68,9 +68,8 @@ module Zenflow
68
68
  return unless exist?
69
69
  changelog = File.read("CHANGELOG.md").strip
70
70
  changes = changelog.split("--------------------------------------------------------------------------------")[0]
71
- return if changes.strip.empty?
72
- changelog = changelog.sub(changes, "")
73
- return changes.strip, changelog
71
+ changelog = changelog.sub(changes, "") if changes
72
+ return changes.to_s.strip, changelog
74
73
  end
75
74
 
76
75
  def row_name(name=nil)
@@ -177,7 +177,7 @@ module BranchCommandSpec
177
177
  pull = double(valid?: true)
178
178
  pull.stub(:[]).with("html_url").and_return("URL")
179
179
  Zenflow::PullRequest.should_receive(:create).with(
180
- base: "master",
180
+ base: "production",
181
181
  head: "test/new-test-branch",
182
182
  title: "test: new-test-branch",
183
183
  body: "A great test"
@@ -195,7 +195,7 @@ module BranchCommandSpec
195
195
  before do
196
196
  Zenflow.should_receive(:Ask).with("Describe this test:", required: true).and_return("A great test")
197
197
  Zenflow::PullRequest.should_receive(:create).with(
198
- base: "master",
198
+ base: "production",
199
199
  head: "test/new-test-branch",
200
200
  title: "test: new-test-branch",
201
201
  body: "A great test"
@@ -18,7 +18,7 @@ describe Zenflow::Changelog do
18
18
  before { Zenflow::Changelog.should_receive(:prompt_for_change).and_return('wrote tests for updating the changelog') }
19
19
 
20
20
  it "prepends the change to the changelog and returns the change" do
21
- Zenflow::Changelog.should_receive(:prepend_change_to_changelog).with('wrote tests for updating the changelog', {})
21
+ Zenflow::Changelog.should_receive(:prepend_change_to_changelog).with('* wrote tests for updating the changelog', {})
22
22
  expect(Zenflow::Changelog.update).to eq('wrote tests for updating the changelog')
23
23
  end
24
24
  end
@@ -85,7 +85,7 @@ describe Zenflow::Changelog do
85
85
  describe '.prepended_changelog' do
86
86
  it "returns the new changes prepended to the existing changelog" do
87
87
  Zenflow::Changelog.should_receive(:get_changes).and_return(['test branching', 'amongst other things'])
88
- expect(Zenflow::Changelog.prepended_changelog('test prepended changelog')).to eq("test prepended changelog\ntest branching\n--------------------------------------------------------------------------------\namongst other things\n")
88
+ expect(Zenflow::Changelog.prepended_changelog('test prepended changelog')).to eq("test prepended changelog\ntest branching\namongst other things\n")
89
89
  end
90
90
  end
91
91
 
@@ -154,12 +154,12 @@ describe Zenflow::Changelog do
154
154
 
155
155
  context "but there are no changes" do
156
156
  before do
157
- file = "\n--------------------------------------------------------------------------------\nold changes"
158
- File.should_receive(:read).with('CHANGELOG.md').and_return(file)
157
+ @file = "\n--------------------------------------------------------------------------------\nold changes"
158
+ File.should_receive(:read).with('CHANGELOG.md').and_return(@file)
159
159
  end
160
160
 
161
- it 'returns nil' do
162
- expect(Zenflow::Changelog.get_changes).to be_nil
161
+ it 'returns the no new changes, but include old changes' do
162
+ expect(Zenflow::Changelog.get_changes).to eq(["", @file.strip])
163
163
  end
164
164
  end
165
165
 
@@ -17,13 +17,13 @@ Gem::Specification.new do |s|
17
17
  s.description = "Zenflow is a development workflow management tool."
18
18
  s.license = 'MIT'
19
19
  s.executables << "zenflow"
20
- s.add_dependency "thor", "~> 0.18.1"
20
+ s.add_dependency "thor", "~> 0.19.0"
21
21
  s.add_dependency "colored", "~> 1.2"
22
22
  s.add_dependency "terminal-table", "~> 1.4.5"
23
- s.add_dependency "httparty", "~> 0.12.0"
23
+ s.add_dependency "httparty", "~> 0.13.0"
24
24
  s.add_development_dependency('rspec', '~> 2.14')
25
25
  s.add_development_dependency('simplecov', '~> 0.7.1')
26
- s.add_development_dependency('debugger', '~> 1.6.1')
26
+ s.add_development_dependency('byebug')
27
27
  s.add_development_dependency('fuubar', '~> 1.1.1')
28
28
  s.add_development_dependency('guard-rspec', '~> 3.0.2')
29
29
  s.add_development_dependency('vcr', '~> 2.5.0')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kittelson
@@ -10,160 +10,160 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-03-10 00:00:00.000000000 Z
13
+ date: 2014-07-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.18.1
21
+ version: 0.19.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.18.1
28
+ version: 0.19.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: colored
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '1.2'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '1.2'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: terminal-table
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 1.4.5
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ~>
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 1.4.5
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: httparty
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ~>
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: 0.12.0
63
+ version: 0.13.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ~>
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: 0.12.0
70
+ version: 0.13.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ~>
75
+ - - "~>"
76
76
  - !ruby/object:Gem::Version
77
77
  version: '2.14'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ~>
82
+ - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: '2.14'
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: simplecov
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ~>
89
+ - - "~>"
90
90
  - !ruby/object:Gem::Version
91
91
  version: 0.7.1
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ~>
96
+ - - "~>"
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.7.1
99
99
  - !ruby/object:Gem::Dependency
100
- name: debugger
100
+ name: byebug
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ~>
103
+ - - ">="
104
104
  - !ruby/object:Gem::Version
105
- version: 1.6.1
105
+ version: '0'
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ~>
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 1.6.1
112
+ version: '0'
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: fuubar
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ~>
117
+ - - "~>"
118
118
  - !ruby/object:Gem::Version
119
119
  version: 1.1.1
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
- - - ~>
124
+ - - "~>"
125
125
  - !ruby/object:Gem::Version
126
126
  version: 1.1.1
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: guard-rspec
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ~>
131
+ - - "~>"
132
132
  - !ruby/object:Gem::Version
133
133
  version: 3.0.2
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ~>
138
+ - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: 3.0.2
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: vcr
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
- - - ~>
145
+ - - "~>"
146
146
  - !ruby/object:Gem::Version
147
147
  version: 2.5.0
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ~>
152
+ - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: 2.5.0
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: webmock
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
- - - ~>
159
+ - - "~>"
160
160
  - !ruby/object:Gem::Version
161
161
  version: 1.13.0
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - ~>
166
+ - - "~>"
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.13.0
169
169
  description: Zenflow is a development workflow management tool.
@@ -176,11 +176,11 @@ executables:
176
176
  extensions: []
177
177
  extra_rdoc_files: []
178
178
  files:
179
- - .gitignore
180
- - .rspec
181
- - .ruby-gemset
182
- - .ruby-version
183
- - .zenflow
179
+ - ".gitignore"
180
+ - ".rspec"
181
+ - ".ruby-gemset"
182
+ - ".ruby-version"
183
+ - ".zenflow"
184
184
  - CHANGELOG.md
185
185
  - Gemfile
186
186
  - Gemfile.lock
@@ -259,17 +259,17 @@ require_paths:
259
259
  - lib
260
260
  required_ruby_version: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - '>='
262
+ - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  requirements:
267
- - - '>='
267
+ - - ">="
268
268
  - !ruby/object:Gem::Version
269
269
  version: '0'
270
270
  requirements: []
271
271
  rubyforge_project:
272
- rubygems_version: 2.2.1
272
+ rubygems_version: 2.2.2
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: Branch management and deployment tool.