apidone-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +38 -29
- data/apidone-client.gemspec +2 -2
- data/lib/apidone-client/version.rb +1 -1
- metadata +97 -61
data/README.md
CHANGED
@@ -18,9 +18,40 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
###
|
21
|
+
### Command line
|
22
|
+
|
23
|
+
$ gem install apidone-client
|
24
|
+
|
25
|
+
#### Create resource
|
26
|
+
|
27
|
+
$ apidone create art -d=artenlinea --data=foo:bar
|
28
|
+
|
29
|
+
#### List collection resources
|
30
|
+
|
31
|
+
$ apidone list art -d=artenlinea
|
32
|
+
|
33
|
+
#### Show resource
|
34
|
+
|
35
|
+
$ apidone show art -d=artenlinea --id=some_id
|
36
|
+
|
37
|
+
#### Update resource
|
38
|
+
|
39
|
+
$ apidone update art -d=artenlinea --id=some_id --data=foo:bar_updated
|
40
|
+
|
41
|
+
#### Delete resource
|
42
|
+
|
43
|
+
$ apidone delete art -d=artenlinea --id=some_id
|
44
|
+
|
45
|
+
#### Command help
|
46
|
+
|
47
|
+
$ apidone help [create, edit, update, list, show ]
|
48
|
+
|
49
|
+
|
50
|
+
### Usage in ruby scripts
|
51
|
+
|
52
|
+
require "apidone-client"
|
22
53
|
|
23
|
-
####
|
54
|
+
#### Init connection:
|
24
55
|
|
25
56
|
@conn = Apidone::Client::Connection.new("dojoruby")
|
26
57
|
|
@@ -39,33 +70,6 @@ Or install it yourself as:
|
|
39
70
|
@c.delete("lenjuages", "someid")
|
40
71
|
|
41
72
|
@c.show("lenjuages", "someid")
|
42
|
-
|
43
|
-
## Command line
|
44
|
-
|
45
|
-
#### create
|
46
|
-
|
47
|
-
$ apidone create art -d=artenlinea --data=foo:bar
|
48
|
-
|
49
|
-
#### list
|
50
|
-
|
51
|
-
$ apidone list art -d=artenlinea
|
52
|
-
|
53
|
-
#### update
|
54
|
-
|
55
|
-
$ apidone update art -d=artenlinea --id=some_id --data=foo:bar_updated
|
56
|
-
|
57
|
-
#### delete
|
58
|
-
|
59
|
-
$ apidone show art -d=artenlinea --id=some_id
|
60
|
-
|
61
|
-
#### delete
|
62
|
-
|
63
|
-
$ apidone delete art -d=artenlinea --id=some_id
|
64
|
-
|
65
|
-
|
66
|
-
#### command help
|
67
|
-
|
68
|
-
$ apidone help [create, edit, update, list, show ]
|
69
73
|
|
70
74
|
|
71
75
|
## Contributing
|
@@ -75,3 +79,8 @@ Or install it yourself as:
|
|
75
79
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
76
80
|
4. Push to the branch (`git push origin my-new-feature`)
|
77
81
|
5. Create new Pull Request
|
82
|
+
|
83
|
+
|
84
|
+
## License
|
85
|
+
|
86
|
+
Apidone::Client is released under the [MIT license](http://www.opensource.org/licenses/MIT).
|
data/apidone-client.gemspec
CHANGED
@@ -6,10 +6,10 @@ require 'apidone-client/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "apidone-client"
|
8
8
|
gem.version = Apidone::Client::VERSION
|
9
|
-
gem.authors = ["Miguel Michelson", "Luis Mancilla", "Daniel Guajardo"]
|
9
|
+
gem.authors = ["Miguel Michelson", "Luis Mancilla", "Daniel Guajardo", "Daniel Gutiérrez", "Magno Cardona"]
|
10
10
|
gem.email = ["miguelmichelson@gmail.com"]
|
11
11
|
gem.description = "Apidone.com ruby api client"
|
12
|
-
gem.summary = "Apidone ruby client is a simple client."
|
12
|
+
gem.summary = "Apidone ruby client is a simple client for apidone.com, this library was made in the context of coding (ruby) dojo. oct 2012"
|
13
13
|
gem.homepage = "http://apidone.com"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,81 +1,108 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: apidone-client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Miguel Michelson
|
9
14
|
- Luis Mancilla
|
10
15
|
- Daniel Guajardo
|
16
|
+
- "Daniel Guti\xC3\xA9rrez"
|
17
|
+
- Magno Cardona
|
11
18
|
autorequire:
|
12
19
|
bindir: bin
|
13
20
|
cert_chain: []
|
14
|
-
|
15
|
-
|
16
|
-
|
21
|
+
|
22
|
+
date: 2012-10-18 00:00:00 Z
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
17
25
|
name: thor
|
18
|
-
|
26
|
+
prerelease: false
|
27
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
28
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
hash: 3
|
33
|
+
segments:
|
34
|
+
- 0
|
35
|
+
version: "0"
|
24
36
|
type: :runtime
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
28
39
|
name: faraday
|
29
|
-
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
42
|
none: false
|
31
|
-
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 3
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
version: "0"
|
35
50
|
type: :runtime
|
36
|
-
|
37
|
-
|
38
|
-
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
39
53
|
name: json
|
40
|
-
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
56
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
version: "0"
|
46
64
|
type: :runtime
|
47
|
-
|
48
|
-
|
49
|
-
- !ruby/object:Gem::Dependency
|
65
|
+
version_requirements: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
50
67
|
name: bundler
|
51
|
-
|
68
|
+
prerelease: false
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
70
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
version: "0"
|
57
78
|
type: :development
|
58
|
-
|
59
|
-
|
60
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: *id004
|
80
|
+
- !ruby/object:Gem::Dependency
|
61
81
|
name: rspec
|
62
|
-
|
82
|
+
prerelease: false
|
83
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
84
|
none: false
|
64
|
-
requirements:
|
85
|
+
requirements:
|
65
86
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 23
|
89
|
+
segments:
|
90
|
+
- 2
|
91
|
+
- 6
|
92
|
+
- 0
|
67
93
|
version: 2.6.0
|
68
94
|
type: :development
|
69
|
-
|
70
|
-
version_requirements: *70166508108060
|
95
|
+
version_requirements: *id005
|
71
96
|
description: Apidone.com ruby api client
|
72
|
-
email:
|
97
|
+
email:
|
73
98
|
- miguelmichelson@gmail.com
|
74
|
-
executables:
|
99
|
+
executables:
|
75
100
|
- apidone
|
76
101
|
extensions: []
|
102
|
+
|
77
103
|
extra_rdoc_files: []
|
78
|
-
|
104
|
+
|
105
|
+
files:
|
79
106
|
- .gitignore
|
80
107
|
- Gemfile
|
81
108
|
- LICENSE.txt
|
@@ -91,28 +118,37 @@ files:
|
|
91
118
|
- spec/spec_helper.rb
|
92
119
|
homepage: http://apidone.com
|
93
120
|
licenses: []
|
121
|
+
|
94
122
|
post_install_message:
|
95
123
|
rdoc_options: []
|
96
|
-
|
124
|
+
|
125
|
+
require_paths:
|
97
126
|
- lib
|
98
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
99
128
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
137
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
hash: 3
|
142
|
+
segments:
|
143
|
+
- 0
|
144
|
+
version: "0"
|
110
145
|
requirements: []
|
146
|
+
|
111
147
|
rubyforge_project:
|
112
|
-
rubygems_version: 1.8.
|
148
|
+
rubygems_version: 1.8.6
|
113
149
|
signing_key:
|
114
150
|
specification_version: 3
|
115
|
-
summary: Apidone ruby client is a simple client.
|
116
|
-
test_files:
|
151
|
+
summary: Apidone ruby client is a simple client for apidone.com, this library was made in the context of coding (ruby) dojo. oct 2012
|
152
|
+
test_files:
|
117
153
|
- spec/apidone-client/connection_spec.rb
|
118
154
|
- spec/spec_helper.rb
|