svn-hook-tools 0.5.2 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -10,10 +10,11 @@ begin
10
10
  gem.summary = %Q{svn jira hook lib.}
11
11
  gem.description = %Q{svn jira hook ruby lib.}
12
12
  gem.email = "crazycode@gmail.com"
13
- gem.homepage = "http://github.com/crazycode/svn-hook-tools"
13
+ gem.homepage = "http://github.com/crazycode/svn-hooks"
14
14
  gem.authors = ["crazycode"]
15
15
 
16
- gem.add_dependency "soap4r"
16
+ # gem.add_dependency "soap4r"
17
+ gem.add_dependency "soap4r-ruby1.9", "~> 2.0.3"
17
18
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
19
  end
19
20
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.7
data/lib/svn_jira_hook.rb CHANGED
@@ -12,13 +12,21 @@ class JiraHook
12
12
  @jira.login(user, pass)
13
13
  end
14
14
 
15
+ def self.init(config = nil)
16
+ if config
17
+ @@config = config
18
+ else
19
+ @@config = nil
20
+ end
21
+ end
22
+
15
23
 
16
- def self.check(argv, keyprefix, config = nil)
24
+ def self.check(keyprefix, argv, config = nil)
25
+ #self.init(nil)
17
26
  repo_path = argv[0]
18
27
  transaction = argv[1]
19
28
  svnlook = 'svnlook'
20
29
 
21
-
22
30
  #commit_dirs_changed = `#{svnlook} dirs-changed #{repo_path} -t #{transaction}`
23
31
  #commit_changed = `#{svnlook} changed #{repo_path} -t #{transaction}`
24
32
  commit_author = `#{svnlook} author #{repo_path} -t #{transaction}`.chop
@@ -31,10 +39,10 @@ class JiraHook
31
39
  exit(1)
32
40
  end
33
41
 
34
- check(commit_author, commit_log, keyprefix, config)
42
+ check_log(commit_author, commit_log, keyprefix, config)
35
43
  end
36
44
 
37
- def self.check(commit_author, commit_log, keyprefix, config = nil)
45
+ def self.check_log(commit_author, commit_log, keyprefix, config = nil)
38
46
  if config
39
47
  jira_configuration = config
40
48
  else
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{svn-hook-tools}
8
- s.version = "0.5.2"
7
+ s.name = "svn-hook-tools"
8
+ s.version = "0.5.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
12
- s.date = %q{2011-05-09}
13
- s.description = %q{svn jira hook ruby lib.}
14
- s.email = %q{crazycode@gmail.com}
12
+ s.date = "2012-01-04"
13
+ s.description = "svn jira hook ruby lib."
14
+ s.email = "crazycode@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
17
  "README"
@@ -36,22 +36,21 @@ Gem::Specification.new do |s|
36
36
  "test/test_helper.rb",
37
37
  "test/test_jira.rb"
38
38
  ]
39
- s.homepage = %q{http://github.com/crazycode/svn-hook-tools}
39
+ s.homepage = "http://github.com/crazycode/svn-hooks"
40
40
  s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.3.7}
42
- s.summary = %q{svn jira hook lib.}
41
+ s.rubygems_version = "1.8.10"
42
+ s.summary = "svn jira hook lib."
43
43
 
44
44
  if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
45
  s.specification_version = 3
47
46
 
48
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
- s.add_runtime_dependency(%q<soap4r>, [">= 0"])
48
+ s.add_runtime_dependency(%q<soap4r-ruby1.9>, ["~> 2.0.3"])
50
49
  else
51
- s.add_dependency(%q<soap4r>, [">= 0"])
50
+ s.add_dependency(%q<soap4r-ruby1.9>, ["~> 2.0.3"])
52
51
  end
53
52
  else
54
- s.add_dependency(%q<soap4r>, [">= 0"])
53
+ s.add_dependency(%q<soap4r-ruby1.9>, ["~> 2.0.3"])
55
54
  end
56
55
  end
57
56
 
data/test/test_jira.rb CHANGED
@@ -29,7 +29,7 @@ class TestJira < Test::Unit::TestCase
29
29
 
30
30
 
31
31
  def test_check_jira
32
- # JiraHook.check("tangliqun", "Message-99:hello", 'Message')
32
+ # JiraHook.check_log("tangliqun", "Message-99:hello", 'Message')
33
33
  end
34
34
 
35
35
  end
metadata CHANGED
@@ -1,47 +1,35 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: svn-hook-tools
3
- version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 5
9
- - 2
10
- version: 0.5.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.7
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - crazycode
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-09 00:00:00 +08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: soap4r
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-01-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: soap4r-ruby1.9
16
+ requirement: &21885920 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.0.3
33
22
  type: :runtime
34
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *21885920
35
25
  description: svn jira hook ruby lib.
36
26
  email: crazycode@gmail.com
37
27
  executables: []
38
-
39
28
  extensions: []
40
-
41
- extra_rdoc_files:
29
+ extra_rdoc_files:
42
30
  - LICENSE
43
31
  - README
44
- files:
32
+ files:
45
33
  - LICENSE
46
34
  - README
47
35
  - Rakefile
@@ -60,39 +48,28 @@ files:
60
48
  - test/config/svn_hooks.yml
61
49
  - test/test_helper.rb
62
50
  - test/test_jira.rb
63
- has_rdoc: true
64
- homepage: http://github.com/crazycode/svn-hook-tools
51
+ homepage: http://github.com/crazycode/svn-hooks
65
52
  licenses: []
66
-
67
53
  post_install_message:
68
54
  rdoc_options: []
69
-
70
- require_paths:
55
+ require_paths:
71
56
  - lib
72
- required_ruby_version: !ruby/object:Gem::Requirement
57
+ required_ruby_version: !ruby/object:Gem::Requirement
73
58
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
81
- required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
64
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
90
69
  requirements: []
91
-
92
70
  rubyforge_project:
93
- rubygems_version: 1.3.7
71
+ rubygems_version: 1.8.10
94
72
  signing_key:
95
73
  specification_version: 3
96
74
  summary: svn jira hook lib.
97
75
  test_files: []
98
-