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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -7
  3. data/lib/r3c/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23f70075e93199172a1fa999fd9a652a7e83b791
4
- data.tar.gz: a6ab4aa3dd2455638d4c0c13dad7164b0b532ab0
3
+ metadata.gz: e338f77879fe87b862fd7bbc1ddf58ecffd11554
4
+ data.tar.gz: 48c4a04d339f1eae9f2225d9123aac7fead3318a
5
5
  SHA512:
6
- metadata.gz: b8c3252025f8fd0d9104f545a7408beb8843ffa7bb39e11317ec80ad746f437d2c7e36fc2e45c138261116879f65b56ff958f4dcd6491b1366ceeb1a52657c8c
7
- data.tar.gz: 0b9a74675f149c40cf4d400bb985cb5e6cfb56bb0663238f9a52f8cccb434d7be4a79c500fcbb2520dad4d9848ef57dc88bfe7960870666270ef31e6829dcb26
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
- #Set Redmine URL
12
+ ### Set Redmine URL
13
+
14
+ ```
11
15
  R3c.site('http://localhost:3000/')
16
+ ```
17
+
18
+ ### Set format
12
19
 
13
- #Set format
20
+ ```
14
21
  R3c.format(:xml)
22
+ ```
15
23
 
16
- #Use API KEY
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
- #Prepara to create an issue with an attachment
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
- #Create issue
41
+ ```
27
42
  issue= R3c.issue.create(issue_params )
43
+ ```
28
44
 
29
- #Retrive projects
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
@@ -1,5 +1,5 @@
1
1
  module R3c
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
4
4
 
5
5
 
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.2
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: http://github.com//R3c
85
+ homepage: https://github.com/wuatanabe/R3c
86
86
  licenses:
87
87
  - MIT
88
88
  metadata: {}