R3c 0.0.2 → 0.0.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/README.md +33 -7
- data/lib/r3c/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e338f77879fe87b862fd7bbc1ddf58ecffd11554
|
4
|
+
data.tar.gz: 48c4a04d339f1eae9f2225d9123aac7fead3318a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8febb087e31d9d15a298ec8c35bf7dcb1816724b05a8307e0ff632c4fafefc5c0d060b6e7303c2232abe927f47aa64bebe5cad7b5e1fd4f0c2e80dc05644f7f
|
7
|
+
data.tar.gz: 78d8abb8a41a0cab81df43461ede9de529e047ae6c936dda2944144cf9853618292621d3498c600b5324e20815aff347c0d9c4814d6c4c7ef2789c69a126e5d7
|
data/README.md
CHANGED
@@ -3,30 +3,56 @@ Rest Redmine Ruby Client
|
|
3
3
|
|
4
4
|
## Setup
|
5
5
|
|
6
|
+
```
|
6
7
|
gem install R3c
|
8
|
+
```
|
7
9
|
|
8
10
|
## Usage
|
9
11
|
|
10
|
-
|
12
|
+
### Set Redmine URL
|
13
|
+
|
14
|
+
```
|
11
15
|
R3c.site('http://localhost:3000/')
|
16
|
+
```
|
17
|
+
|
18
|
+
### Set format
|
12
19
|
|
13
|
-
|
20
|
+
```
|
14
21
|
R3c.format(:xml)
|
22
|
+
```
|
15
23
|
|
16
|
-
|
24
|
+
###Use API KEY
|
25
|
+
|
26
|
+
```
|
17
27
|
R3c.auth({api: {key: '8091d55257c4c90b6d56e83322622cb5f4ecee64'}})
|
28
|
+
```
|
18
29
|
|
30
|
+
###Prepare to create an issue with an attachment
|
19
31
|
|
20
|
-
|
32
|
+
```
|
21
33
|
file = File.read('c:\windows-version.txt')
|
22
34
|
token = R3c.upload file
|
23
35
|
issue_params= {"project_id"=> 1, "subject"=> "This is the subject"}
|
24
36
|
issue_params["uploads"]= [{"upload"=>{"token"=> token, "filename"=> "R3c.gemspec", "description"=> "a gemspec", "content_type"=> "text/plain"}}]
|
37
|
+
```
|
38
|
+
|
39
|
+
###Create issue
|
25
40
|
|
26
|
-
|
41
|
+
```
|
27
42
|
issue= R3c.issue.create(issue_params )
|
43
|
+
```
|
28
44
|
|
29
|
-
|
45
|
+
### Retrieve all projects
|
46
|
+
|
47
|
+
```
|
30
48
|
projects= R3c.project.all
|
49
|
+
```
|
50
|
+
|
51
|
+
### Find user with id 1
|
52
|
+
|
53
|
+
```
|
54
|
+
user= R3c.user.find 1
|
55
|
+
```
|
56
|
+
|
57
|
+
See code for more examples
|
31
58
|
|
32
|
-
See code for other examples
|
data/lib/r3c/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: R3c
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Freuli
|
@@ -82,7 +82,7 @@ files:
|
|
82
82
|
- lib/r3c.rb
|
83
83
|
- lib/r3c/r3c.rb
|
84
84
|
- lib/r3c/version.rb
|
85
|
-
homepage:
|
85
|
+
homepage: https://github.com/wuatanabe/R3c
|
86
86
|
licenses:
|
87
87
|
- MIT
|
88
88
|
metadata: {}
|