pluct 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDY3YjZlZThiYzg5NWQ3ZDFmNjA4N2ExMzU2YmMyM2QwNjliZmUyZQ==
5
- data.tar.gz: !binary |-
6
- Nzc1MjIxZGYzNTE3YWRkNTc2OGJlOTIwMDU4ODhjODcyYTEwNTBkOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- Y2VhNTAwODVkYjM3YTg0NDhmZjZkNDIyYzBlZTRkMzQ2ZTBiODRhNjNlNDMy
10
- YzNiNjkyNWVjYmE1NGUyMTcyZTNlYTE3YWQ2Y2FjM2E5MTEwYWY5NTM1NGNj
11
- M2FkYzQ1MmJkYjBhZGE4YTU1YjRhNTkxMjYzYTI0Njg0MDkwMzY=
12
- data.tar.gz: !binary |-
13
- NzgyY2VkYjZlNjRjZWJmMDExZjllNzUzYjBkMTBhNzI1N2Y1ZDA2MjhkZWNj
14
- MDNlOWUxMzgzNGEyYzQ3NzlmY2RmOGNiNjA1OGQzOTk1MGMzYjFlMWViYjg5
15
- OTE0ZmVkYzE1NTJiODVkYzU0ZTNlM2ViMjMwYTY2MzcxY2VhNjI=
2
+ SHA1:
3
+ metadata.gz: b5e7e5ce8fc80c536f48b76f289fc34d6e1eb741
4
+ data.tar.gz: 0bf8d8d7d4d4af8d815efafa4bcff8d280074a87
5
+ SHA512:
6
+ metadata.gz: d834d9683f71668847115fd08fffa7c0c1e6dfc6b0b2035e864069862b2411b3c8f33be4fb081238f53ba733802bdeeb54c64590b1b983df039c712abe68fcd9
7
+ data.tar.gz: bccb60208134239ecefd1dca85a4733dc6042b4d2bcc8dc3ebdb98094af91abccf29b9f0a7bba01936fc023acd31c8fa3af64900a0758a887db4308b6454b45a
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Build Status](https://drone.io/github.com/globocom/pluct-ruby/status.png)](https://drone.io/github.com/globocom/pluct-ruby/latest)
1
2
  # Pluct
2
3
 
3
4
  WIP
@@ -20,10 +21,10 @@ Or install it yourself as:
20
21
 
21
22
  ```ruby
22
23
  require 'pluct'
23
- resource = Pluct.get_resource 'http://example.org/posts'
24
- p resource.schema
25
- p resource.schema.data
26
- p resource.data
24
+ apps = Pluct::Resource.new('http://example.com/')
25
+ app = apps.collection({context_name: 'test-baas', collection_name: 'apps'}).add({name: 'My Awesome app.', description: 'App description.'})
26
+
27
+ p app.response.headers[:location]
27
28
  ```
28
29
  ## Contributing
29
30
 
@@ -1,7 +1,7 @@
1
1
  require 'addressable/template'
2
+ require 'multi_json'
2
3
  require 'json'
3
4
  require 'pluct/extensions/json'
4
- require 'multi_json'
5
5
  require 'pluct/version'
6
6
 
7
7
  module Pluct
@@ -1,3 +1,3 @@
1
1
  module Pluct
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -18,16 +18,15 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "addressable"
21
+ spec.add_dependency "addressable"
22
+ spec.add_dependency "multi_json"
23
+
22
24
  spec.add_development_dependency "bundler", "~> 1.3"
23
- spec.add_development_dependency "multi_json"
25
+ spec.add_development_dependency "pry"
26
+ spec.add_development_dependency "pry-nav"
24
27
  spec.add_development_dependency "rake"
25
28
  spec.add_development_dependency "rest-client"
26
29
  spec.add_development_dependency "rspec"
27
30
  spec.add_development_dependency "vcr"
28
31
  spec.add_development_dependency "webmock"
29
-
30
-
31
- spec.add_development_dependency "pry"
32
- spec.add_development_dependency "pry-nav"
33
32
  end
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alberto Leal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-27 00:00:00.000000000 Z
11
+ date: 2013-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- type: :development
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
34
- type: :development
33
+ version: '0'
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: multi_json
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.3'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rake
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rest-client
70
+ name: pry-nav
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: vcr
98
+ name: rest-client
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: webmock
112
+ name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ! '>='
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ! '>='
122
+ - - '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: pry
126
+ name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: pry-nav
140
+ name: webmock
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: json-schema hypermedia client
@@ -195,12 +195,12 @@ require_paths:
195
195
  - lib
196
196
  required_ruby_version: !ruby/object:Gem::Requirement
197
197
  requirements:
198
- - - ! '>='
198
+ - - '>='
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
- - - ! '>='
203
+ - - '>='
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
@@ -223,4 +223,3 @@ test_files:
223
223
  - spec/support/vcr/integration/expands_uri.yml
224
224
  - spec/support/vcr/integration/instance_info.yml
225
225
  - spec/support/vcr/integration/page_not_found.yml
226
- has_rdoc: