TicGit-ng 1.0.2.17 → 1.0.2.18

Sign up to get free protection for your applications and to get access to all the features.
data/README.mkd CHANGED
@@ -386,7 +386,7 @@ I pull rubygems from testing to avoid a problem with gherkin creating a syntacti
386
386
 
387
387
  To test your version of ticgit-ng, go to your ticgit-ng directory and run
388
388
 
389
- rake bacon
389
+ rspec spec/*_spec.rb
390
390
 
391
391
  ### How to generate a gem from your development copy of ticgit-ng ###
392
392
 
@@ -191,7 +191,7 @@ module TicGitNG
191
191
  self.window_lines, self.window_cols = buf.unpack("S2")
192
192
  true
193
193
  end
194
- rescue Errno::EINVAL
194
+ rescue Errno::EINVAL, Errno::ENOTTY
195
195
  end
196
196
 
197
197
  def try_windows
@@ -1,3 +1,3 @@
1
1
  module TicGitNG
2
- VERSION = '1.0.2.17'
2
+ VERSION = '1.0.2.18'
3
3
  end
metadata CHANGED
@@ -1,125 +1,109 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: TicGit-ng
3
- version: !ruby/object:Gem::Version
4
- hash: 117
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2.18
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 2
10
- - 17
11
- version: 1.0.2.17
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - Scott Chacon
15
9
  - Jeff Welling
16
10
  autorequire:
17
11
  bindir: bin
18
12
  cert_chain: []
19
-
20
- date: 2012-10-03 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2014-02-08 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: git
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
34
23
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
24
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
40
26
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rspec
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
48
39
  type: :development
49
- version_requirements: *id002
50
- description: TicGit-ng is a simple ticketing system, roughly similar to the Lighthouse model, that is based in git.
51
- email:
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: TicGit-ng is a simple ticketing system, roughly similar to the Lighthouse
48
+ model, that is based in git.
49
+ email:
52
50
  - Jeff.Welling@gmail.com
53
- executables:
51
+ executables:
54
52
  - ti
55
53
  - ticgitweb
56
54
  extensions: []
57
-
58
55
  extra_rdoc_files: []
59
-
60
- files:
61
- - bin/ticgitweb
56
+ files:
62
57
  - bin/ti
63
- - lib/ticgit-ng.rb
64
- - lib/ticgit-ng/cli.rb
58
+ - bin/ticgitweb
65
59
  - lib/ticgit-ng/attachment.rb
66
- - lib/ticgit-ng/command/milestone.rb
67
- - lib/ticgit-ng/command/checkout.rb
68
- - lib/ticgit-ng/command/state.rb
69
- - lib/ticgit-ng/command/list.rb
60
+ - lib/ticgit-ng/base.rb
61
+ - lib/ticgit-ng/cli.rb
70
62
  - lib/ticgit-ng/command/assign.rb
71
- - lib/ticgit-ng/command/sync.rb
63
+ - lib/ticgit-ng/command/attach.rb
64
+ - lib/ticgit-ng/command/checkout.rb
72
65
  - lib/ticgit-ng/command/comment.rb
73
- - lib/ticgit-ng/command/points.rb
74
- - lib/ticgit-ng/command/tag.rb
75
- - lib/ticgit-ng/command/show.rb
76
66
  - lib/ticgit-ng/command/help.rb
77
- - lib/ticgit-ng/command/recent.rb
78
- - lib/ticgit-ng/command/attach.rb
79
67
  - lib/ticgit-ng/command/init.rb
68
+ - lib/ticgit-ng/command/list.rb
69
+ - lib/ticgit-ng/command/milestone.rb
80
70
  - lib/ticgit-ng/command/new.rb
71
+ - lib/ticgit-ng/command/points.rb
72
+ - lib/ticgit-ng/command/recent.rb
73
+ - lib/ticgit-ng/command/show.rb
74
+ - lib/ticgit-ng/command/state.rb
75
+ - lib/ticgit-ng/command/sync.rb
76
+ - lib/ticgit-ng/command/tag.rb
77
+ - lib/ticgit-ng/command.rb
81
78
  - lib/ticgit-ng/comment.rb
82
- - lib/ticgit-ng/syncable_ticket.rb
83
- - lib/ticgit-ng/version.rb
84
79
  - lib/ticgit-ng/ticket.rb
85
- - lib/ticgit-ng/command.rb
86
- - lib/ticgit-ng/base.rb
80
+ - lib/ticgit-ng/version.rb
81
+ - lib/ticgit-ng.rb
87
82
  - LICENSE_MIT
88
83
  - LICENSE_GPL
89
84
  - README.mkd
90
85
  homepage: https://github.com/jeffWelling/ticgit
91
86
  licenses: []
92
-
93
87
  post_install_message:
94
88
  rdoc_options: []
95
-
96
- require_paths:
89
+ require_paths:
97
90
  - lib
98
- required_ruby_version: !ruby/object:Gem::Requirement
91
+ required_ruby_version: !ruby/object:Gem::Requirement
99
92
  none: false
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
107
- required_rubygems_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
98
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 3
113
- segments:
114
- - 0
115
- version: "0"
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
116
103
  requirements: []
117
-
118
104
  rubyforge_project: ticgit-ng
119
- rubygems_version: 1.8.15
105
+ rubygems_version: 1.8.23
120
106
  signing_key:
121
107
  specification_version: 3
122
108
  summary: Git based distributed ticketing system
123
109
  test_files: []
124
-
125
- has_rdoc:
@@ -1,63 +0,0 @@
1
- module TicGitNG
2
- module Sync
3
- class SyncableTicket
4
-
5
-
6
- #return value is boolean, true if attr has all of the
7
- #standard attributes, as defined in standard_attributes()
8
- def has_standard_attributes attrs
9
- Sync.standard_attributes.each {|attribute, value|
10
- if attribute==:comments
11
- if (attrs.has_key?(attribute) or attrs.has_key?(attribute.to_s))
12
- attribute=attribute.to_s unless attrs.has_key?(attribute)
13
- attrs[attribute].each {|comment|
14
- value.each_key {|comment_value|
15
-
16
- #:comment__id is hint that we need to look for an ID tag, but not necessarily one that is named comment__id
17
- #or one that uses a name that we can completely predict ahead of time. So, we look for any ticket matching this regex.
18
- if comment_value==:comment__id
19
- return false unless comment.map {|k_v| !k_v[0].to_s[/^comment_.*_id$/].nil?}.include?(true)
20
- next
21
- end
22
-
23
- return false unless (comment.has_key?(comment_value) or comment.has_key?(comment_value.to_s))
24
- }
25
- }
26
- end
27
- else
28
- return false unless (attrs.has_key?(attribute) or attrs.has_key?(attribute.to_s))
29
- end
30
-
31
- }
32
-
33
- end
34
-
35
- #parse the comments in attrs for updates of static fields, denoted
36
- #by lines in the form of "#KEY=VALUE" where key is an attribute such
37
- #as state, title, or label.
38
- def parse_attrs_for_updates attrs, malleable
39
- updates=[]
40
- comment_regex=/\n#[^=]*="[^"]*"/
41
- comment_key='comments'
42
- comment_key=comment_key.to_sym unless attrs.has_key?(comment_key)
43
- attrs[comment_key].each {|comment|
44
- c_b_key='comment_body'
45
- c_b_key=c_b_key.to_sym unless comment.has_key?(c_b_key)
46
- text=comment[c_b_key]
47
- while text[comment_regex]
48
- match=text[comment_regex]
49
- text.gsub!(match,'')
50
- updates << match
51
- end
52
- }
53
- updates.each {|update|
54
- attr_key,attr_value = update.strip.gsub(/#/,'')
55
- attr_key=attr_key.downcase
56
- next unless malleable.include?(attr_key)
57
- attrs.set(attr_key, attr_value)
58
- }
59
- attrs
60
- end
61
- end
62
- end
63
- end