confuddle 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/.passwd_to_unfuddle.example.yml +7 -0
- data/README.md +40 -0
- data/bin/un +833 -0
- data/bin/un.cmd +1 -0
- data/confuddle.gemspec +22 -0
- data/lib/graft/README.rdoc +138 -0
- data/lib/graft/Rakefile +43 -0
- data/lib/graft/lib/graft/core_ext/hash.rb +9 -0
- data/lib/graft/lib/graft/json.rb +14 -0
- data/lib/graft/lib/graft/json/attribute.rb +18 -0
- data/lib/graft/lib/graft/json/model.rb +28 -0
- data/lib/graft/lib/graft/model.rb +43 -0
- data/lib/graft/lib/graft/version.rb +13 -0
- data/lib/graft/lib/graft/xml.rb +19 -0
- data/lib/graft/lib/graft/xml/attribute.rb +55 -0
- data/lib/graft/lib/graft/xml/model.rb +49 -0
- data/lib/graft/lib/graft/xml/type.rb +91 -0
- data/lib/graft/test/test_helper.rb +38 -0
- data/lib/graft/test/unit/core_ext/hash_test.rb +29 -0
- data/lib/graft/test/unit/json/attribute_test.rb +51 -0
- data/lib/graft/test/unit/json/model_test.rb +86 -0
- data/lib/graft/test/unit/xml/attribute_test.rb +161 -0
- data/lib/graft/test/unit/xml/model_test.rb +173 -0
- data/lib/graft/test/unit/xml/type_test.rb +65 -0
- data/lib/unfuzzle/.gitignore +4 -0
- data/lib/unfuzzle/README.rdoc +129 -0
- data/lib/unfuzzle/Rakefile +39 -0
- data/lib/unfuzzle/lib/unfuzzle.rb +87 -0
- data/lib/unfuzzle/lib/unfuzzle/comment.rb +37 -0
- data/lib/unfuzzle/lib/unfuzzle/component.rb +31 -0
- data/lib/unfuzzle/lib/unfuzzle/milestone.rb +54 -0
- data/lib/unfuzzle/lib/unfuzzle/person.rb +20 -0
- data/lib/unfuzzle/lib/unfuzzle/priority.rb +30 -0
- data/lib/unfuzzle/lib/unfuzzle/project.rb +62 -0
- data/lib/unfuzzle/lib/unfuzzle/request.rb +75 -0
- data/lib/unfuzzle/lib/unfuzzle/response.rb +25 -0
- data/lib/unfuzzle/lib/unfuzzle/severity.rb +31 -0
- data/lib/unfuzzle/lib/unfuzzle/ticket.rb +156 -0
- data/lib/unfuzzle/lib/unfuzzle/ticket_report.rb +29 -0
- data/lib/unfuzzle/lib/unfuzzle/time_entry.rb +75 -0
- data/lib/unfuzzle/lib/unfuzzle/version.rb +13 -0
- data/lib/unfuzzle/test/fixtures/component.xml +8 -0
- data/lib/unfuzzle/test/fixtures/components.xml +17 -0
- data/lib/unfuzzle/test/fixtures/milestone.xml +12 -0
- data/lib/unfuzzle/test/fixtures/milestones.xml +25 -0
- data/lib/unfuzzle/test/fixtures/project.xml +17 -0
- data/lib/unfuzzle/test/fixtures/projects.xml +35 -0
- data/lib/unfuzzle/test/fixtures/severities.xml +24 -0
- data/lib/unfuzzle/test/fixtures/severity.xml +8 -0
- data/lib/unfuzzle/test/fixtures/ticket.xml +25 -0
- data/lib/unfuzzle/test/fixtures/tickets.xml +51 -0
- data/lib/unfuzzle/test/test_helper.rb +60 -0
- data/lib/unfuzzle/test/unit/unfuzzle/component_test.rb +36 -0
- data/lib/unfuzzle/test/unit/unfuzzle/milestone_test.rb +100 -0
- data/lib/unfuzzle/test/unit/unfuzzle/priority_test.rb +25 -0
- data/lib/unfuzzle/test/unit/unfuzzle/project_test.rb +87 -0
- data/lib/unfuzzle/test/unit/unfuzzle/request_test.rb +104 -0
- data/lib/unfuzzle/test/unit/unfuzzle/response_test.rb +37 -0
- data/lib/unfuzzle/test/unit/unfuzzle/severity_test.rb +36 -0
- data/lib/unfuzzle/test/unit/unfuzzle/ticket_test.rb +181 -0
- data/lib/unfuzzle/test/unit/unfuzzle_test.rb +39 -0
- data/lib/unfuzzle/unfuzzle.gemspec +31 -0
- data/lib/version.rb +3 -0
- metadata +176 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class UnfuzzleTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "The Unfuzzle module" do
|
6
|
+
|
7
|
+
should "be able to set the subdomain" do
|
8
|
+
Unfuzzle.subdomain = 'viget'
|
9
|
+
Unfuzzle.subdomain.should == 'viget'
|
10
|
+
end
|
11
|
+
|
12
|
+
should "be able to set the username" do
|
13
|
+
Unfuzzle.username = 'username'
|
14
|
+
Unfuzzle.username.should == 'username'
|
15
|
+
end
|
16
|
+
|
17
|
+
should "be able to set the password" do
|
18
|
+
Unfuzzle.password = 'password'
|
19
|
+
Unfuzzle.password.should == 'password'
|
20
|
+
end
|
21
|
+
|
22
|
+
should "be able to retrieve a project by id" do
|
23
|
+
Unfuzzle::Project.expects(:find_by_id).with(1).returns('project')
|
24
|
+
Unfuzzle.project(1).should == 'project'
|
25
|
+
end
|
26
|
+
|
27
|
+
should "be able to retrieve a project by slug" do
|
28
|
+
Unfuzzle::Project.expects(:find_by_slug).with('slug').returns('project')
|
29
|
+
Unfuzzle.project('slug').should == 'project'
|
30
|
+
end
|
31
|
+
|
32
|
+
should "be able to retrieve a list of all projects for the current user" do
|
33
|
+
Unfuzzle::Project.expects(:all).with().returns('projects')
|
34
|
+
Unfuzzle.projects.should == 'projects'
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{unfuzzle}
|
5
|
+
s.version = "0.1.3"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Patrick Reagan", "Bob Lail"]
|
9
|
+
s.date = %q{2010-12-22}
|
10
|
+
s.email = %q{patrick.reagan@viget.com}
|
11
|
+
s.extra_rdoc_files = ["README.rdoc"]
|
12
|
+
s.files = ["README.rdoc", "Rakefile", "lib/unfuzzle", "lib/unfuzzle/component.rb", "lib/unfuzzle/milestone.rb", "lib/unfuzzle/priority.rb", "lib/unfuzzle/project.rb", "lib/unfuzzle/request.rb", "lib/unfuzzle/response.rb", "lib/unfuzzle/severity.rb", "lib/unfuzzle/ticket.rb", "lib/unfuzzle/version.rb", "lib/unfuzzle.rb", "test/fixtures", "test/fixtures/component.xml", "test/fixtures/components.xml", "test/fixtures/milestone.xml", "test/fixtures/milestones.xml", "test/fixtures/project.xml", "test/fixtures/projects.xml", "test/fixtures/severities.xml", "test/fixtures/severity.xml", "test/fixtures/ticket.xml", "test/fixtures/tickets.xml", "test/test_helper.rb", "test/unit", "test/unit/unfuzzle", "test/unit/unfuzzle/component_test.rb", "test/unit/unfuzzle/milestone_test.rb", "test/unit/unfuzzle/priority_test.rb", "test/unit/unfuzzle/project_test.rb", "test/unit/unfuzzle/request_test.rb", "test/unit/unfuzzle/response_test.rb", "test/unit/unfuzzle/severity_test.rb", "test/unit/unfuzzle/ticket_test.rb", "test/unit/unfuzzle_test.rb"]
|
13
|
+
s.homepage = %q{http://www.viget.com/extend}
|
14
|
+
s.rdoc_options = ["--main", "README.rdoc"]
|
15
|
+
s.require_paths = ["lib"]
|
16
|
+
s.rubygems_version = %q{1.3.4}
|
17
|
+
s.summary = %q{This gem provides an interface to the Unfuddle XML API}
|
18
|
+
|
19
|
+
if s.respond_to? :specification_version then
|
20
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
21
|
+
s.specification_version = 3
|
22
|
+
|
23
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
24
|
+
s.add_runtime_dependency(%q<graft>, [">= 0.1.1"])
|
25
|
+
else
|
26
|
+
s.add_dependency(%q<graft>, [">= 0.1.1"])
|
27
|
+
end
|
28
|
+
else
|
29
|
+
s.add_dependency(%q<graft>, [">= 0.1.1"])
|
30
|
+
end
|
31
|
+
end
|
data/lib/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: confuddle
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Makarchev Konstantin
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-04-09 00:00:00 +04:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: activesupport
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 2
|
32
|
+
- 3
|
33
|
+
- 2
|
34
|
+
version: 2.3.2
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: thor
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 33
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 14
|
49
|
+
- 3
|
50
|
+
version: 0.14.3
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: hpricot
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
version: "0"
|
65
|
+
type: :runtime
|
66
|
+
version_requirements: *id003
|
67
|
+
description: Utility for work with unfuddle.com account from console
|
68
|
+
email: kostya27@gmail.com
|
69
|
+
executables:
|
70
|
+
- un
|
71
|
+
- un.cmd
|
72
|
+
extensions: []
|
73
|
+
|
74
|
+
extra_rdoc_files: []
|
75
|
+
|
76
|
+
files:
|
77
|
+
- .gitignore
|
78
|
+
- .passwd_to_unfuddle.example.yml
|
79
|
+
- README.md
|
80
|
+
- bin/un
|
81
|
+
- bin/un.cmd
|
82
|
+
- confuddle.gemspec
|
83
|
+
- lib/graft/README.rdoc
|
84
|
+
- lib/graft/Rakefile
|
85
|
+
- lib/graft/lib/graft/core_ext/hash.rb
|
86
|
+
- lib/graft/lib/graft/json.rb
|
87
|
+
- lib/graft/lib/graft/json/attribute.rb
|
88
|
+
- lib/graft/lib/graft/json/model.rb
|
89
|
+
- lib/graft/lib/graft/model.rb
|
90
|
+
- lib/graft/lib/graft/version.rb
|
91
|
+
- lib/graft/lib/graft/xml.rb
|
92
|
+
- lib/graft/lib/graft/xml/attribute.rb
|
93
|
+
- lib/graft/lib/graft/xml/model.rb
|
94
|
+
- lib/graft/lib/graft/xml/type.rb
|
95
|
+
- lib/graft/test/test_helper.rb
|
96
|
+
- lib/graft/test/unit/core_ext/hash_test.rb
|
97
|
+
- lib/graft/test/unit/json/attribute_test.rb
|
98
|
+
- lib/graft/test/unit/json/model_test.rb
|
99
|
+
- lib/graft/test/unit/xml/attribute_test.rb
|
100
|
+
- lib/graft/test/unit/xml/model_test.rb
|
101
|
+
- lib/graft/test/unit/xml/type_test.rb
|
102
|
+
- lib/unfuzzle/.gitignore
|
103
|
+
- lib/unfuzzle/README.rdoc
|
104
|
+
- lib/unfuzzle/Rakefile
|
105
|
+
- lib/unfuzzle/lib/unfuzzle.rb
|
106
|
+
- lib/unfuzzle/lib/unfuzzle/comment.rb
|
107
|
+
- lib/unfuzzle/lib/unfuzzle/component.rb
|
108
|
+
- lib/unfuzzle/lib/unfuzzle/milestone.rb
|
109
|
+
- lib/unfuzzle/lib/unfuzzle/person.rb
|
110
|
+
- lib/unfuzzle/lib/unfuzzle/priority.rb
|
111
|
+
- lib/unfuzzle/lib/unfuzzle/project.rb
|
112
|
+
- lib/unfuzzle/lib/unfuzzle/request.rb
|
113
|
+
- lib/unfuzzle/lib/unfuzzle/response.rb
|
114
|
+
- lib/unfuzzle/lib/unfuzzle/severity.rb
|
115
|
+
- lib/unfuzzle/lib/unfuzzle/ticket.rb
|
116
|
+
- lib/unfuzzle/lib/unfuzzle/ticket_report.rb
|
117
|
+
- lib/unfuzzle/lib/unfuzzle/time_entry.rb
|
118
|
+
- lib/unfuzzle/lib/unfuzzle/version.rb
|
119
|
+
- lib/unfuzzle/test/fixtures/component.xml
|
120
|
+
- lib/unfuzzle/test/fixtures/components.xml
|
121
|
+
- lib/unfuzzle/test/fixtures/milestone.xml
|
122
|
+
- lib/unfuzzle/test/fixtures/milestones.xml
|
123
|
+
- lib/unfuzzle/test/fixtures/project.xml
|
124
|
+
- lib/unfuzzle/test/fixtures/projects.xml
|
125
|
+
- lib/unfuzzle/test/fixtures/severities.xml
|
126
|
+
- lib/unfuzzle/test/fixtures/severity.xml
|
127
|
+
- lib/unfuzzle/test/fixtures/ticket.xml
|
128
|
+
- lib/unfuzzle/test/fixtures/tickets.xml
|
129
|
+
- lib/unfuzzle/test/test_helper.rb
|
130
|
+
- lib/unfuzzle/test/unit/unfuzzle/component_test.rb
|
131
|
+
- lib/unfuzzle/test/unit/unfuzzle/milestone_test.rb
|
132
|
+
- lib/unfuzzle/test/unit/unfuzzle/priority_test.rb
|
133
|
+
- lib/unfuzzle/test/unit/unfuzzle/project_test.rb
|
134
|
+
- lib/unfuzzle/test/unit/unfuzzle/request_test.rb
|
135
|
+
- lib/unfuzzle/test/unit/unfuzzle/response_test.rb
|
136
|
+
- lib/unfuzzle/test/unit/unfuzzle/severity_test.rb
|
137
|
+
- lib/unfuzzle/test/unit/unfuzzle/ticket_test.rb
|
138
|
+
- lib/unfuzzle/test/unit/unfuzzle_test.rb
|
139
|
+
- lib/unfuzzle/unfuzzle.gemspec
|
140
|
+
- lib/version.rb
|
141
|
+
has_rdoc: true
|
142
|
+
homepage: http://github.com/kostya/confuddle
|
143
|
+
licenses: []
|
144
|
+
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
hash: 3
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
version: "0"
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
hash: 3
|
165
|
+
segments:
|
166
|
+
- 0
|
167
|
+
version: "0"
|
168
|
+
requirements: []
|
169
|
+
|
170
|
+
rubyforge_project:
|
171
|
+
rubygems_version: 1.3.7
|
172
|
+
signing_key:
|
173
|
+
specification_version: 3
|
174
|
+
summary: Utility for work with unfuddle.com account from console
|
175
|
+
test_files: []
|
176
|
+
|