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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -0
  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: 0a4d10a11e19764968eb40ce20592e7ab72b422b
4
- data.tar.gz: 60b7e01cde66d6506f2f0c22b5f2ab046dc00f1e
3
+ metadata.gz: 23f70075e93199172a1fa999fd9a652a7e83b791
4
+ data.tar.gz: a6ab4aa3dd2455638d4c0c13dad7164b0b532ab0
5
5
  SHA512:
6
- metadata.gz: ead89d7d34aa79be805ab6d8f0f38ae7d9d316c7ff41d58ec4cd9c1484d0f7d4d39dd7598e0c0af7fd58396c03011d443a6d0bbb9c5e97ac1727e43085fd0c6b
7
- data.tar.gz: 4a0e12b55ef45ef0ae5bc8f8fe1ed668146bb0e0cba1844f6aa4d819e0cab1cb77753ef1c5de4581d69ae66e5b49a2014ec8247c310ee487106ada0ffd64fd5f
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
@@ -1,5 +1,5 @@
1
1
  module R3c
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
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.1
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 writte in Ruby.
74
+ Redmine Rest Client written in Ruby.
75
75
  email: paolo.freuli@gmail.com
76
76
  executables: []
77
77
  extensions: []