apicake 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +25 -22
  3. data/lib/apicake/version.rb +1 -1
  4. metadata +4 -116
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2fe151898dd0af0f94ef3eb0e3a8a48bab8a52da
4
- data.tar.gz: af67ab088ffc6a8ddd2f09752f0a97b2c4b5e513
2
+ SHA256:
3
+ metadata.gz: 5e37316523122c1cc0324208f5de204a9d6c837478dbb8b522410120487a1404
4
+ data.tar.gz: a0d5118f54fbd5af3d37d06e106f856c1fa3dc7d85f4ba3ccf56498808ed9f2a
5
5
  SHA512:
6
- metadata.gz: e6b9069efa47cd6fb61d6da311feac0904520adefb1ee19f06f7e54d6d32ec6625d3f1657817faec3e83116cd46c70b886aa7d872aa09e10727908c7e6a4d543
7
- data.tar.gz: 22a4099c1cdf4a48b523c673a22c2f3c382d1db4686fa9c2f0fba77bd8e3281559902d754a6c640301054e11cc3f1e579773ccefe7c544b1db1bc1f3c73e10c7
6
+ metadata.gz: bda6c3815dcb8c670883c0bf82b55bdcc32ce0461642149727253d8c4d1657c48ba9d7bec94b0a2b979a8030e42c72c6a2c78f02c429d9ff70dadb0509d21133
7
+ data.tar.gz: '0258f564a7ff9d17e60cbdaa8b0194f4b115494ddcb6fcf0fa38a9cdf00a1ab661f93c9efc3556de43b84d89c329ed92df28a19b023a2fefb4dec25b0b6937f2'
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  API Cake - Build Dynamic API Wrappers
2
2
  ==================================================
3
3
 
4
- [![Gem](https://img.shields.io/gem/v/apicake.svg?style=flat-square)](https://rubygems.org/gems/apicake)
5
- [![Travis](https://img.shields.io/travis/DannyBen/apicake.svg?style=flat-square)](https://travis-ci.org/DannyBen/apicake)
6
- [![Code Climate](https://img.shields.io/codeclimate/github/DannyBen/apicake.svg?style=flat-square)](https://codeclimate.com/github/DannyBen/apicake)
7
- [![Gemnasium](https://img.shields.io/gemnasium/DannyBen/apicake.svg?style=flat-square)](https://gemnasium.com/DannyBen/apicake)
8
-
4
+ [![Gem Version](https://badge.fury.io/rb/apicake.svg)](https://badge.fury.io/rb/apicake)
5
+ [![Build Status](https://travis-ci.com/DannyBen/apicake.svg?branch=master)](https://travis-ci.com/DannyBen/apicake)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/07bd0f8653914ce703a6/maintainability)](https://codeclimate.com/github/DannyBen/apicake/maintainability)
7
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/07bd0f8653914ce703a6/test_coverage)](https://codeclimate.com/github/DannyBen/apicake/test_coverage)
9
8
 
10
9
  ---
11
10
 
@@ -36,20 +35,21 @@ TL;DR
36
35
  Turn this hypothetical API URL:
37
36
 
38
37
  ```
39
- http://api.recipies.com/cakes?layers=3
38
+ http://api.recipes.com/cakes?layers=3
40
39
  ```
41
40
 
42
41
  To this:
43
42
 
44
43
  ```ruby
45
- Recipies.cakes layers:3
44
+ recipes = Recipes.new
45
+ recipes.cakes layers:3
46
46
  ```
47
47
 
48
48
  Using this code only:
49
49
 
50
50
  ```ruby
51
- class Recipies < APICake::Base
52
- base_url 'api.recipies.com'
51
+ class Recipes < APICake::Base
52
+ base_uri 'api.recipes.com'
53
53
  end
54
54
  ```
55
55
 
@@ -78,20 +78,20 @@ URL.
78
78
  For example:
79
79
 
80
80
  ```ruby
81
- class Recipies << APICake::Base
82
- base_url 'api.recipies.com/v1'
81
+ class Recipes << APICake::Base
82
+ base_uri 'api.recipes.com/v1'
83
83
  end
84
84
 
85
- recipies = Rcipies.new
85
+ recipes = Recipes.new
86
86
 
87
- # This will access http://api.recipies.com/v1/cakes
88
- recipies.cakes
87
+ # This will access http://api.recipes.com/v1/cakes
88
+ recipes.cakes
89
89
 
90
- # This will access http://api.recipies.com/v1/cakes/chocolate
91
- recipies.cakes 'chocolate'
90
+ # This will access http://api.recipes.com/v1/cakes/chocolate
91
+ recipes.cakes 'chocolate'
92
92
 
93
- # This will access http://api.recipies.com/v1/cakes/chocolate?layers=3
94
- recipies.cakes 'chocolate', layers: 3
93
+ # This will access http://api.recipes.com/v1/cakes/chocolate?layers=3
94
+ recipes.cakes 'chocolate', layers: 3
95
95
  ```
96
96
 
97
97
  See the [Examples folder][1] for more examples.
@@ -118,9 +118,9 @@ Real World Examples
118
118
 
119
119
  These gems use APICake:
120
120
 
121
- - [Fredric][5] - API wrapper for the FRED database
122
- - [Intrinio][6] - API wrapper for the Intrinio data service
123
- - [Quata][7] - API wrapper for the Quandl data service
121
+ - [Fredric][5] - API wrapper for the FRED database ([go straight to API class][8])
122
+ - [Intrinio][6] - API wrapper for the Intrinio data service ([go straight to API class][9])
123
+ - [Quata][7] - API wrapper for the Quandl data service ([go straight to API class][10])
124
124
 
125
125
 
126
126
  ---
@@ -131,4 +131,7 @@ These gems use APICake:
131
131
  [4]: http://www.rubydoc.info/gems/apicake/0.1.1/APICake/Base
132
132
  [5]: https://github.com/DannyBen/fredric
133
133
  [6]: https://github.com/DannyBen/intrinio
134
- [7]: https://github.com/DannyBen/quata
134
+ [7]: https://github.com/DannyBen/quata
135
+ [8]: https://github.com/DannyBen/fredric/blob/master/lib/fredric/api.rb
136
+ [9]: https://github.com/DannyBen/intrinio/blob/master/lib/intrinio/api.rb
137
+ [10]: https://github.com/DannyBen/quata/blob/master/lib/quata/api.rb
@@ -1,3 +1,3 @@
1
1
  module APICake
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apicake
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
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-10 00:00:00.000000000 Z
11
+ date: 2019-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lightly
@@ -38,118 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.14'
41
- - !ruby/object:Gem::Dependency
42
- name: runfile
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.8'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.8'
55
- - !ruby/object:Gem::Dependency
56
- name: runfile-tasks
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '0.4'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '0.4'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '3.5'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '3.5'
83
- - !ruby/object:Gem::Dependency
84
- name: rdoc
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '5.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '5.0'
97
- - !ruby/object:Gem::Dependency
98
- name: byebug
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '9.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '9.0'
111
- - !ruby/object:Gem::Dependency
112
- name: simplecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0.13'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0.13'
125
- - !ruby/object:Gem::Dependency
126
- name: require_all
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.4'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '1.4'
139
- - !ruby/object:Gem::Dependency
140
- name: yard
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.8'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '0.8'
153
41
  description: Build Dynamic API Wrappers
154
42
  email: db@dannyben.com
155
43
  executables: []
@@ -174,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
174
62
  requirements:
175
63
  - - ">="
176
64
  - !ruby/object:Gem::Version
177
- version: 2.0.0
65
+ version: 2.2.2
178
66
  required_rubygems_version: !ruby/object:Gem::Requirement
179
67
  requirements:
180
68
  - - ">="
@@ -182,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
70
  version: '0'
183
71
  requirements: []
184
72
  rubyforge_project:
185
- rubygems_version: 2.6.6
73
+ rubygems_version: 2.7.6
186
74
  signing_key:
187
75
  specification_version: 4
188
76
  summary: API Building Toolkit