restrack-client 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +42 -0
- data/README.markdown +9 -8
- data/lib/restrack-client/version.rb +1 -1
- data/restrack-client.komodoproject +4 -0
- metadata +4 -2
data/.gitignore
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
|
4
|
+
# rdoc generated
|
5
|
+
rdoc
|
6
|
+
|
7
|
+
# yard generated
|
8
|
+
doc
|
9
|
+
.yardoc
|
10
|
+
|
11
|
+
# bundler
|
12
|
+
.bundle
|
13
|
+
|
14
|
+
# jeweler generated
|
15
|
+
pkg
|
16
|
+
|
17
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
18
|
+
#
|
19
|
+
# * Create a file at ~/.gitignore
|
20
|
+
# * Include files you want ignored
|
21
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
22
|
+
#
|
23
|
+
# After doing this, these files will be ignored in all your git projects,
|
24
|
+
# saving you from having to 'pollute' every project you touch with them
|
25
|
+
#
|
26
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
27
|
+
#
|
28
|
+
# For MacOS:
|
29
|
+
#
|
30
|
+
#.DS_Store
|
31
|
+
#
|
32
|
+
# For TextMate
|
33
|
+
#*.tmproj
|
34
|
+
#tmtags
|
35
|
+
#
|
36
|
+
# For emacs:
|
37
|
+
#*~
|
38
|
+
#\#*
|
39
|
+
#.\#*
|
40
|
+
#
|
41
|
+
# For vim:
|
42
|
+
#*.swp
|
data/README.markdown
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
# RESTRack::Client
|
2
2
|
|
3
|
-
A library for interacting with RESTful web services.
|
4
|
-
|
3
|
+
A library for interacting with RESTful web services. This gem was written to communicate with RESTRack based
|
4
|
+
services, although it provides a convenient API to any RESTful service.
|
5
5
|
|
6
6
|
|
7
7
|
## Usage
|
8
8
|
|
9
|
-
uri = URI.new('http://
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
uri = URI.new('http://foo-provider.example.com')
|
10
|
+
provider = RESTRack::Client.new(uri)
|
11
|
+
provider = RESTRack::Client.new('http://foobar-provider.example.com')
|
12
|
+
foo = provider.foo(123).get # request is made to GET /foo/123
|
13
|
+
foo_resource = provider.foo(123) # pivot object that hasn't yet made request
|
13
14
|
foo = foo_resource.get( { :data => 'something_here' } ) # request is made to GET /foo/123
|
14
|
-
bar =
|
15
|
+
bar = provider.foo(123).bar # pivot object that hasn't yet made request
|
15
16
|
bar.delete # request is made to DELETE /foo/123/bar
|
16
|
-
bar =
|
17
|
+
bar = provider.foo(123).bar.post( { :data => 'something_here' } ) # POST request is made /foo/123/bar
|
17
18
|
|
18
19
|
|
19
20
|
## License
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: restrack-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Chris St. John
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-17 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -79,6 +79,7 @@ extra_rdoc_files: []
|
|
79
79
|
|
80
80
|
files:
|
81
81
|
- .document
|
82
|
+
- .gitignore
|
82
83
|
- Gemfile
|
83
84
|
- Gemfile.lock
|
84
85
|
- README.markdown
|
@@ -86,6 +87,7 @@ files:
|
|
86
87
|
- lib/restrack-client.rb
|
87
88
|
- lib/restrack-client/version.rb
|
88
89
|
- restrack-client.gemspec
|
90
|
+
- restrack-client.komodoproject
|
89
91
|
- test/helper.rb
|
90
92
|
- test/test_app/config.ru
|
91
93
|
- test/test_app/config/constants.yaml
|