osdn-client 0.0.20160304 → 0.0.20160711
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/LICENSE +201 -0
- data/README.md +182 -0
- data/docs/DefaultApi.md +115 -0
- data/docs/Group.md +23 -0
- data/docs/GroupToolFlags.md +17 -0
- data/docs/News.md +14 -0
- data/docs/Package.md +13 -0
- data/docs/Pong.md +11 -0
- data/docs/ProjectApi.md +1511 -0
- data/docs/ProjectFrsApi.md +888 -0
- data/docs/ProjectNewsApi.md +576 -0
- data/docs/RelFile.md +19 -0
- data/docs/Release.md +16 -0
- data/docs/SimpleChamber.md +11 -0
- data/docs/SimpleGroup.md +11 -0
- data/docs/SimpleUser.md +10 -0
- data/docs/Skill.md +11 -0
- data/docs/Token.md +12 -0
- data/docs/User.md +20 -0
- data/docs/UserApi.md +63 -0
- data/lib/osdn-client.rb +32 -9
- data/lib/osdn-client/api/default_api.rb +50 -39
- data/lib/osdn-client/api/project_api.rb +661 -773
- data/lib/osdn-client/api/project_frs_api.rb +350 -412
- data/lib/osdn-client/api/project_news_api.rb +217 -244
- data/lib/osdn-client/api/user_api.rb +35 -20
- data/lib/osdn-client/api_client.rb +74 -13
- data/lib/osdn-client/api_error.rb +23 -0
- data/lib/osdn-client/configuration.rb +45 -1
- data/lib/osdn-client/models/group.rb +103 -65
- data/lib/osdn-client/models/group_tool_flags.rb +91 -47
- data/lib/osdn-client/models/news.rb +85 -38
- data/lib/osdn-client/models/package.rb +83 -35
- data/lib/osdn-client/models/pong.rb +79 -29
- data/lib/osdn-client/models/rel_file.rb +95 -53
- data/lib/osdn-client/models/release.rb +89 -44
- data/lib/osdn-client/models/simple_chamber.rb +79 -29
- data/lib/osdn-client/models/simple_group.rb +79 -29
- data/lib/osdn-client/models/simple_user.rb +77 -26
- data/lib/osdn-client/models/skill.rb +79 -29
- data/lib/osdn-client/models/token.rb +81 -32
- data/lib/osdn-client/models/user.rb +97 -56
- data/lib/osdn-client/version.rb +24 -1
- data/osdn-client.gemspec +30 -7
- data/spec/api/default_api_spec.rb +73 -0
- data/spec/api/{ProjectApi_spec.rb → project_api_spec.rb} +187 -264
- data/spec/api/{ProjectFrsApi_spec.rb → project_frs_api_spec.rb} +103 -136
- data/spec/api/{ProjectNewsApi_spec.rb → project_news_api_spec.rb} +71 -88
- data/spec/api/user_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +315 -0
- data/spec/configuration_spec.rb +48 -0
- data/spec/models/group_spec.rb +143 -0
- data/spec/models/group_tool_flags_spec.rb +107 -0
- data/spec/models/news_spec.rb +89 -0
- data/spec/models/package_spec.rb +83 -0
- data/spec/models/pong_spec.rb +71 -0
- data/spec/models/rel_file_spec.rb +119 -0
- data/spec/models/release_spec.rb +101 -0
- data/spec/models/simple_chamber_spec.rb +71 -0
- data/spec/models/simple_group_spec.rb +71 -0
- data/spec/models/simple_user_spec.rb +65 -0
- data/spec/models/skill_spec.rb +71 -0
- data/spec/models/token_spec.rb +77 -0
- data/spec/models/user_spec.rb +125 -0
- data/spec/spec_helper.rb +122 -0
- metadata +87 -59
- data/spec/api/DefaultApi_spec.rb +0 -58
- data/spec/api/UserApi_spec.rb +0 -39
- data/spec/models/GroupToolFlags_spec.rb +0 -124
- data/spec/models/Group_spec.rb +0 -184
- data/spec/models/News_spec.rb +0 -94
- data/spec/models/Package_spec.rb +0 -84
- data/spec/models/Pong_spec.rb +0 -64
- data/spec/models/RelFile_spec.rb +0 -144
- data/spec/models/Release_spec.rb +0 -114
- data/spec/models/SimpleChamber_spec.rb +0 -64
- data/spec/models/SimpleGroup_spec.rb +0 -64
- data/spec/models/SimpleUser_spec.rb +0 -54
- data/spec/models/Skill_spec.rb +0 -64
- data/spec/models/Token_spec.rb +0 -74
- data/spec/models/User_spec.rb +0 -154
@@ -1,64 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for OSDNClient::
|
6
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'SimpleGroup' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = OSDNClient::SimpleGroup.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of SimpleGroup' do
|
19
|
-
it 'should create an instact of SimpleGroup' do
|
20
|
-
@instance.should be_a(OSDNClient::SimpleGroup)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here
|
26
|
-
# should be_a()
|
27
|
-
# should be_nil
|
28
|
-
# should ==
|
29
|
-
# should_not ==
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'test attribute "name"' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here
|
36
|
-
# should be_a()
|
37
|
-
# should be_nil
|
38
|
-
# should ==
|
39
|
-
# should_not ==
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe 'test attribute "display_name"' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here
|
46
|
-
# should be_a()
|
47
|
-
# should be_nil
|
48
|
-
# should ==
|
49
|
-
# should_not ==
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "last_update"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here
|
56
|
-
# should be_a()
|
57
|
-
# should be_nil
|
58
|
-
# should ==
|
59
|
-
# should_not ==
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
@@ -1,54 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for OSDNClient::
|
6
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'SimpleUser' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = OSDNClient::SimpleUser.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of SimpleUser' do
|
19
|
-
it 'should create an instact of SimpleUser' do
|
20
|
-
@instance.should be_a(OSDNClient::SimpleUser)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here
|
26
|
-
# should be_a()
|
27
|
-
# should be_nil
|
28
|
-
# should ==
|
29
|
-
# should_not ==
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'test attribute "name"' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here
|
36
|
-
# should be_a()
|
37
|
-
# should be_nil
|
38
|
-
# should ==
|
39
|
-
# should_not ==
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe 'test attribute "display_name"' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here
|
46
|
-
# should be_a()
|
47
|
-
# should be_nil
|
48
|
-
# should ==
|
49
|
-
# should_not ==
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
54
|
-
|
data/spec/models/Skill_spec.rb
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for OSDNClient::
|
6
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'Skill' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = OSDNClient::Skill.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of Skill' do
|
19
|
-
it 'should create an instact of Skill' do
|
20
|
-
@instance.should be_a(OSDNClient::Skill)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "name"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here
|
26
|
-
# should be_a()
|
27
|
-
# should be_nil
|
28
|
-
# should ==
|
29
|
-
# should_not ==
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'test attribute "level"' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here
|
36
|
-
# should be_a()
|
37
|
-
# should be_nil
|
38
|
-
# should ==
|
39
|
-
# should_not ==
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe 'test attribute "experience"' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here
|
46
|
-
# should be_a()
|
47
|
-
# should be_nil
|
48
|
-
# should ==
|
49
|
-
# should_not ==
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "hate_like"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here
|
56
|
-
# should be_a()
|
57
|
-
# should be_nil
|
58
|
-
# should ==
|
59
|
-
# should_not ==
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
end
|
64
|
-
|
data/spec/models/Token_spec.rb
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for OSDNClient::
|
6
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'Token' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = OSDNClient::Token.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of Token' do
|
19
|
-
it 'should create an instact of Token' do
|
20
|
-
@instance.should be_a(OSDNClient::Token)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "access_token"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here
|
26
|
-
# should be_a()
|
27
|
-
# should be_nil
|
28
|
-
# should ==
|
29
|
-
# should_not ==
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'test attribute "expires_in"' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here
|
36
|
-
# should be_a()
|
37
|
-
# should be_nil
|
38
|
-
# should ==
|
39
|
-
# should_not ==
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe 'test attribute "token_type"' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here
|
46
|
-
# should be_a()
|
47
|
-
# should be_nil
|
48
|
-
# should ==
|
49
|
-
# should_not ==
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "scope"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here
|
56
|
-
# should be_a()
|
57
|
-
# should be_nil
|
58
|
-
# should ==
|
59
|
-
# should_not ==
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'test attribute "refresh_token"' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here
|
66
|
-
# should be_a()
|
67
|
-
# should be_nil
|
68
|
-
# should ==
|
69
|
-
# should_not ==
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
end
|
74
|
-
|
data/spec/models/User_spec.rb
DELETED
@@ -1,154 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
require 'date'
|
4
|
-
|
5
|
-
# Unit tests for OSDNClient::
|
6
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
7
|
-
# Please update as you see appropriate
|
8
|
-
describe 'User' do
|
9
|
-
before do
|
10
|
-
# run before each test
|
11
|
-
@instance = OSDNClient::User.new
|
12
|
-
end
|
13
|
-
|
14
|
-
after do
|
15
|
-
# run after each test
|
16
|
-
end
|
17
|
-
|
18
|
-
describe 'test an instance of User' do
|
19
|
-
it 'should create an instact of User' do
|
20
|
-
@instance.should be_a(OSDNClient::User)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
describe 'test attribute "id"' do
|
24
|
-
it 'should work' do
|
25
|
-
# assertion here
|
26
|
-
# should be_a()
|
27
|
-
# should be_nil
|
28
|
-
# should ==
|
29
|
-
# should_not ==
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
describe 'test attribute "name"' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here
|
36
|
-
# should be_a()
|
37
|
-
# should be_nil
|
38
|
-
# should ==
|
39
|
-
# should_not ==
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
describe 'test attribute "display_name"' do
|
44
|
-
it 'should work' do
|
45
|
-
# assertion here
|
46
|
-
# should be_a()
|
47
|
-
# should be_nil
|
48
|
-
# should ==
|
49
|
-
# should_not ==
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "unix_status"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here
|
56
|
-
# should be_a()
|
57
|
-
# should be_nil
|
58
|
-
# should ==
|
59
|
-
# should_not ==
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'test attribute "unix_uid"' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here
|
66
|
-
# should be_a()
|
67
|
-
# should be_nil
|
68
|
-
# should ==
|
69
|
-
# should_not ==
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
describe 'test attribute "authorized_keys"' do
|
74
|
-
it 'should work' do
|
75
|
-
# assertion here
|
76
|
-
# should be_a()
|
77
|
-
# should be_nil
|
78
|
-
# should ==
|
79
|
-
# should_not ==
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
|
-
describe 'test attribute "timezone"' do
|
84
|
-
it 'should work' do
|
85
|
-
# assertion here
|
86
|
-
# should be_a()
|
87
|
-
# should be_nil
|
88
|
-
# should ==
|
89
|
-
# should_not ==
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
describe 'test attribute "last_update"' do
|
94
|
-
it 'should work' do
|
95
|
-
# assertion here
|
96
|
-
# should be_a()
|
97
|
-
# should be_nil
|
98
|
-
# should ==
|
99
|
-
# should_not ==
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
describe 'test attribute "add_date"' do
|
104
|
-
it 'should work' do
|
105
|
-
# assertion here
|
106
|
-
# should be_a()
|
107
|
-
# should be_nil
|
108
|
-
# should ==
|
109
|
-
# should_not ==
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
describe 'test attribute "language"' do
|
114
|
-
it 'should work' do
|
115
|
-
# assertion here
|
116
|
-
# should be_a()
|
117
|
-
# should be_nil
|
118
|
-
# should ==
|
119
|
-
# should_not ==
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
describe 'test attribute "groups"' do
|
124
|
-
it 'should work' do
|
125
|
-
# assertion here
|
126
|
-
# should be_a()
|
127
|
-
# should be_nil
|
128
|
-
# should ==
|
129
|
-
# should_not ==
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
describe 'test attribute "chambers"' do
|
134
|
-
it 'should work' do
|
135
|
-
# assertion here
|
136
|
-
# should be_a()
|
137
|
-
# should be_nil
|
138
|
-
# should ==
|
139
|
-
# should_not ==
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
describe 'test attribute "skills"' do
|
144
|
-
it 'should work' do
|
145
|
-
# assertion here
|
146
|
-
# should be_a()
|
147
|
-
# should be_nil
|
148
|
-
# should ==
|
149
|
-
# should_not ==
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
end
|
154
|
-
|