arusarka-mingle4r 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +0 -0
- data/README +107 -0
- metadata +63 -0
data/History.txt
ADDED
File without changes
|
data/README
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
== mingle4r
|
2
|
+
|
3
|
+
http://github.com/arusarka/mingle4r/tree/master
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
This gem is a wrapper around active resource to access the rest api exposed by mingle.
|
8
|
+
It provides a easy way to communicate with mingle. For the library to work you need to
|
9
|
+
enable basic authentication (not enabled by default) in Mingle. See below to enable
|
10
|
+
basic authentication in Mingle.
|
11
|
+
|
12
|
+
Enable basic authentication in Mingle
|
13
|
+
-------------------------------------
|
14
|
+
|
15
|
+
1) Go to Mingle DataDir
|
16
|
+
|
17
|
+
2) Open YAML file <Mingle DataDir>/config/auth_config.yml
|
18
|
+
|
19
|
+
3) Set 'basic_authentication_enabled' to 'true' (without the quotes) if it is not so
|
20
|
+
|
21
|
+
== FEATURES/PROBLEMS:
|
22
|
+
|
23
|
+
It gives you access to projects in the mingle instance, cards under the project and also
|
24
|
+
attachments for a particular card.
|
25
|
+
|
26
|
+
== SYNOPSIS:
|
27
|
+
|
28
|
+
A) Getting all the projects for a particular instance
|
29
|
+
--------------------------------------------------
|
30
|
+
|
31
|
+
Suppose you want to connect to the mingle instance hosted at http://localhost:8080 where the
|
32
|
+
username is 'testuser' and password is 'password'.
|
33
|
+
|
34
|
+
m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password')
|
35
|
+
projs = m_c.projects
|
36
|
+
|
37
|
+
projs is an array of active resource objects
|
38
|
+
|
39
|
+
B) Getting a particular project
|
40
|
+
----------------------------
|
41
|
+
|
42
|
+
Before you access a particular project you need to set the project id for the mingle client
|
43
|
+
object. You can do that in two ways. Supposing you are trying to access a project with an
|
44
|
+
identifier of 'great_mingle_project'
|
45
|
+
|
46
|
+
WARNING : project identifier and project name are different. If you named your project as
|
47
|
+
'Great Mingle Project' it's identifier is by default 'great_mingle_project'. To be sure what
|
48
|
+
the identifier of a project is you should look at the url in mingle in the particular project
|
49
|
+
you are trying to access. It should be something like 'http://localhost:8080/projects/great_mingle_project'
|
50
|
+
|
51
|
+
1) Set at initialize time
|
52
|
+
|
53
|
+
m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password', 'great_mingle_project')
|
54
|
+
m_c.project
|
55
|
+
|
56
|
+
2) Set an attribute later
|
57
|
+
|
58
|
+
m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password')
|
59
|
+
m_c.proj_id = 'great_mingle_project'
|
60
|
+
m_c.project
|
61
|
+
|
62
|
+
C) Getting cards for a particular project
|
63
|
+
--------------------------------------
|
64
|
+
|
65
|
+
Get a mingle client object initialized as in SECTION B. Then call the cards method.
|
66
|
+
|
67
|
+
m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password')
|
68
|
+
m_c.proj_id = 'great_mingle_project'
|
69
|
+
m_c.cards
|
70
|
+
|
71
|
+
cards will be an array of activeresoure objects.
|
72
|
+
|
73
|
+
== REQUIREMENTS:
|
74
|
+
|
75
|
+
1) active_resource gem, it would be automatically taken care of
|
76
|
+
during gem install.
|
77
|
+
|
78
|
+
2) Mingle > 2.3
|
79
|
+
|
80
|
+
== INSTALL:
|
81
|
+
|
82
|
+
sudo (not on crappy windows) gem install mingle4r
|
83
|
+
|
84
|
+
== LICENSE:
|
85
|
+
|
86
|
+
(The MIT License)
|
87
|
+
|
88
|
+
Copyright (c) 2009 Arusarka Haldar
|
89
|
+
|
90
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
91
|
+
a copy of this software and associated documentation files (the
|
92
|
+
'Software'), to deal in the Software without restriction, including
|
93
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
94
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
95
|
+
permit persons to whom the Software is furnished to do so, subject to
|
96
|
+
the following conditions:
|
97
|
+
|
98
|
+
The above copyright notice and this permission notice shall be
|
99
|
+
included in all copies or substantial portions of the Software.
|
100
|
+
|
101
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
102
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
103
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
104
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
105
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
106
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
107
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: arusarka-mingle4r
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- asur
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-05-16 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: activeresource
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
description: "This gem provides a wrapper around active resource so that the user can directly use the rest API exposed by Mingle without much hassle.It provides a easy way to communicate with mingle. For the library to work you need to enable basic authentication (not enabled by default) in Mingle. See below to enable basic authentication in Mingle. Enable basic authentication in Mingle ------------------------------------- 1) Go to Mingle DataDir 2) Open YAML file <Mingle DataDir>/config/auth_config.yml 3) Set 'basic_authentication_enabled' to 'true' (without the quotes) if it is not so == FEATURES/PROBLEMS: It gives you access to projects in the mingle instance, cards under the project and also attachments for a particular card. == SYNOPSIS: A) Getting all the projects for a particular instance -------------------------------------------------- Suppose you want to connect to the mingle instance hosted at http://localhost:8080 where the username is 'testuser' and password is 'password'. m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password') projs = m_c.projects projs is an array of active resource objects B) Getting a particular project ---------------------------- Before you access a particular project you need to set the project id for the mingle client object. You can do that in two ways. Supposing you are trying to access a project with an identifier of 'great_mingle_project' WARNING : project identifier and project name are different. If you named your project as 'Great Mingle Project' it's identifier is by default 'great_mingle_project'. To be sure what the identifier of a project is you should look at the url in mingle in the particular project you are trying to access. It should be something like 'http://localhost:8080/projects/great_mingle_project' 1) Set at initialize time m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password', 'great_mingle_project') m_c.project 2) Set an attribute later m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password') m_c.proj_id = 'great_mingle_project' m_c.project C) Getting cards for a particular project -------------------------------------- Get a mingle client object initialized as in SECTION B. Then call the cards method. m_c = Mingle4r::MingleClient.new('http://localhost:8080', 'testuser', 'password') m_c.proj_id = 'great_mingle_project' m_c.cards cards will be an array of activeresoure objects. == REQUIREMENTS: 1) active_resource gem, it would be automatically taken care of during gem install. 2) Mingle > 2.3 == INSTALL: sudo (not on crappy windows) gem install mingle4r"
|
26
|
+
email: arusarka@gmail.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README
|
33
|
+
files:
|
34
|
+
- README
|
35
|
+
- History.txt
|
36
|
+
has_rdoc: false
|
37
|
+
homepage: http://github.com/arusarka/mingle4r/
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options: []
|
40
|
+
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: "0"
|
48
|
+
version:
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: "0"
|
54
|
+
version:
|
55
|
+
requirements: []
|
56
|
+
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 1.2.0
|
59
|
+
signing_key:
|
60
|
+
specification_version: 2
|
61
|
+
summary: Mingle connector
|
62
|
+
test_files: []
|
63
|
+
|