zoid 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -10
  3. data/lib/zoid/version.rb +1 -1
  4. data/zoid.gemspec +9 -8
  5. metadata +32 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cf13da47e8a5007904c05cf145e41e00fd90e8d
4
- data.tar.gz: 5186c65b169f9ca52739774043929ed88079de90
3
+ metadata.gz: be2a5ab67b3e8e4659ba8f10fbb3e84c36605c57
4
+ data.tar.gz: 1fb44606a91f464a6bdb64e855b6e8be30f575aa
5
5
  SHA512:
6
- metadata.gz: 1802810ebd9546f2acfd3658c021fef51f9963726915a7f0952bbfe552ee44ce6ecbc3c967247d1e5e8909b35763f22de39173fec6823e9fd302e8d9df7bc7ef
7
- data.tar.gz: a86930da51bb0805dca00f432f61f864f404d31db040744b928f20ee04df49cb58e3214a3c30723d3b860f4161cb5c5ffacb193f179afc3c7509e6283ade6773
6
+ metadata.gz: 2098eb4aaa5debd2916c046e0d57b2b5d8d565204bd4abdd67030bde172c66943406a83c79b44e9b649ad93f0ae00036cc2010ff692ca30fcd9c984bf8c5069f
7
+ data.tar.gz: 4fb80ccca5296992d595f867e7b9e20fa8cb174ac81fa98b5a539d1e2cc0d8bea926a4a08457b5ba33eac8c919699e7b9e43059f857de541ff4da0d5117d751d
data/README.md CHANGED
@@ -2,14 +2,6 @@
2
2
 
3
3
  Friendly Json API consumer.
4
4
 
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ``` ruby
10
- gem 'zoid'
11
- ```
12
-
13
5
  ## Usage
14
6
 
15
7
  Start by creating an agent for the API endpoint
@@ -20,13 +12,13 @@ github_agent = Zoid::Agent.new("https://api.github.com")
20
12
 
21
13
  Use the agent to communicate with the API
22
14
 
23
- ``` ruby
15
+ ``` rb
24
16
  response = github_agent.get "/repos/vmg/redcarpet/issues", {:state => "closed"}
25
17
  ```
26
18
 
27
19
  The body is already parsed, and ready for consumation
28
20
 
29
- ``` ruby
21
+ ``` rb
30
22
  closed_issues = response.body
31
23
 
32
24
  titles = closed_issues.map { |issue| issue.title }
@@ -34,6 +26,14 @@ titles = closed_issues.map { |issue| issue.title }
34
26
  puts titles
35
27
  ```
36
28
 
29
+ ## Installation
30
+
31
+ Add this line to your application's Gemfile:
32
+
33
+ ``` rb
34
+ gem 'zoid'
35
+ ```
36
+
37
37
  ## Development
38
38
 
39
39
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
data/lib/zoid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zoid
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/zoid.gemspec CHANGED
@@ -8,9 +8,10 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Zoid::VERSION
9
9
  spec.authors = ["Igor Sarcevic"]
10
10
  spec.email = ["igisar@gmail.com"]
11
+ spec.license = "MIT"
11
12
 
12
13
  spec.summary = %q{Friendly Json Api consumer}
13
- spec.description = %q{Friendly Json Api consumer}
14
+ spec.description = %q{Friendly Json Api consumer that handles communication with remote servers.}
14
15
  spec.homepage = "https://github.com/shiroyasha/zoid"
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -18,14 +19,14 @@ Gem::Specification.new do |spec|
18
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
20
  spec.require_paths = ["lib"]
20
21
 
21
- spec.add_dependency "faraday"
22
- spec.add_dependency "faraday_middleware"
23
- spec.add_dependency "httpclient"
22
+ spec.add_dependency "faraday", "~> 0.9"
23
+ spec.add_dependency "faraday_middleware", "~> 0.9"
24
+ spec.add_dependency "httpclient", "~> 0.1"
24
25
 
25
26
  spec.add_development_dependency "bundler", "~> 1.9"
26
27
  spec.add_development_dependency "rake", "~> 10.0"
27
- spec.add_development_dependency "rspec"
28
- spec.add_development_dependency "byebug"
29
- spec.add_development_dependency "vcr"
30
- spec.add_development_dependency "webmock"
28
+ spec.add_development_dependency "rspec", "~> 3.3"
29
+ spec.add_development_dependency "byebug", "~> 5.0"
30
+ spec.add_development_dependency "vcr", "~> 2.9"
31
+ spec.add_development_dependency "webmock", "~> 1.21"
31
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Sarcevic
@@ -14,44 +14,44 @@ dependencies:
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '0.9'
20
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
- version: '0'
26
+ version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.9'
34
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: '0'
40
+ version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: httpclient
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '0.1'
48
48
  type: :runtime
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: '0.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,59 +84,59 @@ dependencies:
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: '3.3'
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
- version: '0'
96
+ version: '3.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: byebug
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: '5.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
- version: '0'
110
+ version: '5.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: vcr
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: '2.9'
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
- version: '0'
124
+ version: '2.9'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: webmock
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ">="
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0'
131
+ version: '1.21'
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
- version: '0'
139
- description: Friendly Json Api consumer
138
+ version: '1.21'
139
+ description: Friendly Json Api consumer that handles communication with remote servers.
140
140
  email:
141
141
  - igisar@gmail.com
142
142
  executables: []
@@ -158,7 +158,8 @@ files:
158
158
  - lib/zoid/version.rb
159
159
  - zoid.gemspec
160
160
  homepage: https://github.com/shiroyasha/zoid
161
- licenses: []
161
+ licenses:
162
+ - MIT
162
163
  metadata: {}
163
164
  post_install_message:
164
165
  rdoc_options: []