redmine 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/redmine.rb +1 -0
- data/lib/redmine/time_entry.rb +4 -0
- data/lib/redmine/version.rb +1 -1
- data/test/{test_rest_redmine.rb → test_issue.rb} +12 -12
- data/test/test_time_entry.rb +38 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3999fdc3318e34d33a3dc6663d733e4d2b478ea
|
4
|
+
data.tar.gz: 4009cd1d9f2a1c40df5f32ea9df33fc2a11172a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6323e87ca72a63b0eee0eba4f6a214ff52d49564b3de9300989c3c24eeedfa8b1302fe0d206d820abb1d825f5bac7db63ab30cc30947310eee51e90814274526
|
7
|
+
data.tar.gz: 41fc8d4c611f102ac14f5c3ae9dcbd89bf66224637eea5ffbabddff764fbf86e655009a18339c4a54e63f27f660c618ddfc33190679b4d0ca7c7ee0f1d71425e
|
data/lib/redmine.rb
CHANGED
data/lib/redmine/version.rb
CHANGED
@@ -2,7 +2,7 @@ require 'minitest/autorun'
|
|
2
2
|
require 'redmine'
|
3
3
|
require 'yaml'
|
4
4
|
|
5
|
-
class
|
5
|
+
class IssueTest < Minitest::Test
|
6
6
|
def setup
|
7
7
|
configuration = YAML.load_file('test/config.yml')
|
8
8
|
|
@@ -38,18 +38,18 @@ class RedmineTest < Minitest::Test
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
def test_find_issue
|
42
|
-
|
43
|
-
end
|
41
|
+
# def test_find_issue
|
42
|
+
# issue = Redmine::Issue.find(48)
|
43
|
+
# end
|
44
44
|
|
45
|
-
def test_save_issue
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
# def test_save_issue
|
46
|
+
# issue = Redmine::Issue.new({
|
47
|
+
# subject: "안녕안녕",
|
48
|
+
# status_id: 5
|
49
49
|
|
50
|
-
|
50
|
+
# })
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
end
|
52
|
+
# assert_equal true, issue.save
|
53
|
+
# assert_equal 5, issue.status_id
|
54
|
+
# end
|
55
55
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'redmine'
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
class TimeEntryTest < Minitest::Test
|
6
|
+
def setup
|
7
|
+
configuration = YAML.load_file('test/config.yml')
|
8
|
+
|
9
|
+
@api_key = configuration["api_key"]
|
10
|
+
@site = configuration["site"]
|
11
|
+
|
12
|
+
Redmine.configure do |config|
|
13
|
+
config.api_key = @api_key
|
14
|
+
config.site = @site
|
15
|
+
config.resources[:issue] = {
|
16
|
+
project_id: 1, # nowplay
|
17
|
+
tracker_id: 1, # bug
|
18
|
+
status_id: 1, # new
|
19
|
+
priority_id: 2, # normal
|
20
|
+
category_id: 1
|
21
|
+
}
|
22
|
+
|
23
|
+
config.resources[:time_entry] = {
|
24
|
+
activity_id: 9 # developer
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
@te = Redmine::TimeEntry.new
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_init
|
32
|
+
te = Redmine::TimeEntry.create(
|
33
|
+
issue_id: 55,
|
34
|
+
hours: 4,
|
35
|
+
comments: "하하하"
|
36
|
+
)
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- topray
|
@@ -43,10 +43,12 @@ files:
|
|
43
43
|
- lib/redmine/configuration.rb
|
44
44
|
- lib/redmine/exception.rb
|
45
45
|
- lib/redmine/issue.rb
|
46
|
+
- lib/redmine/time_entry.rb
|
46
47
|
- lib/redmine/version.rb
|
47
48
|
- redmine.gemspec
|
48
49
|
- test/config.yml.example
|
49
|
-
- test/
|
50
|
+
- test/test_issue.rb
|
51
|
+
- test/test_time_entry.rb
|
50
52
|
homepage: https://github.com/topray/rest-redmine
|
51
53
|
licenses:
|
52
54
|
- MIT
|