R3c 0.0.1 → 0.0.2
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 +30 -0
- 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: 23f70075e93199172a1fa999fd9a652a7e83b791
|
4
|
+
data.tar.gz: a6ab4aa3dd2455638d4c0c13dad7164b0b532ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8c3252025f8fd0d9104f545a7408beb8843ffa7bb39e11317ec80ad746f437d2c7e36fc2e45c138261116879f65b56ff958f4dcd6491b1366ceeb1a52657c8c
|
7
|
+
data.tar.gz: 0b9a74675f149c40cf4d400bb985cb5e6cfb56bb0663238f9a52f8cccb434d7be4a79c500fcbb2520dad4d9848ef57dc88bfe7960870666270ef31e6829dcb26
|
data/README.md
CHANGED
@@ -1,2 +1,32 @@
|
|
1
1
|
# R3c
|
2
2
|
Rest Redmine Ruby Client
|
3
|
+
|
4
|
+
## Setup
|
5
|
+
|
6
|
+
gem install R3c
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
#Set Redmine URL
|
11
|
+
R3c.site('http://localhost:3000/')
|
12
|
+
|
13
|
+
#Set format
|
14
|
+
R3c.format(:xml)
|
15
|
+
|
16
|
+
#Use API KEY
|
17
|
+
R3c.auth({api: {key: '8091d55257c4c90b6d56e83322622cb5f4ecee64'}})
|
18
|
+
|
19
|
+
|
20
|
+
#Prepara to create an issue with an attachment
|
21
|
+
file = File.read('c:\windows-version.txt')
|
22
|
+
token = R3c.upload file
|
23
|
+
issue_params= {"project_id"=> 1, "subject"=> "This is the subject"}
|
24
|
+
issue_params["uploads"]= [{"upload"=>{"token"=> token, "filename"=> "R3c.gemspec", "description"=> "a gemspec", "content_type"=> "text/plain"}}]
|
25
|
+
|
26
|
+
#Create issue
|
27
|
+
issue= R3c.issue.create(issue_params )
|
28
|
+
|
29
|
+
#Retrive projects
|
30
|
+
projects= R3c.project.all
|
31
|
+
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Freuli
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: 1.8.3
|
73
73
|
description: |2
|
74
|
-
Redmine Rest Client
|
74
|
+
Redmine Rest Client written in Ruby.
|
75
75
|
email: paolo.freuli@gmail.com
|
76
76
|
executables: []
|
77
77
|
extensions: []
|