rimac 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/README.md +6 -0
- data/lib/rimac/version.rb +1 -1
- data/lib/rimac.rb +4 -2
- data/rimac.gemspec +1 -0
- metadata +4 -3
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.gem
|
data/README.md
CHANGED
|
@@ -3,6 +3,12 @@ Rimac - Ruby client for Municipalidad Metropolitana de Lima API ([http://lima.da
|
|
|
3
3
|
|
|
4
4
|
Rimac is a client for Municipalidad Metropolitana de Lima API ([http://lima.datosabiertos.pe/](http://lima.datosabiertos.pe/)). More information [here](http://lima.datosabiertos.pe/developers/).
|
|
5
5
|
|
|
6
|
+
Install
|
|
7
|
+
----
|
|
8
|
+
```
|
|
9
|
+
gem install rimac
|
|
10
|
+
```
|
|
11
|
+
|
|
6
12
|
Usage
|
|
7
13
|
----
|
|
8
14
|
```ruby
|
data/lib/rimac/version.rb
CHANGED
data/lib/rimac.rb
CHANGED
|
@@ -14,8 +14,10 @@ module Rimac
|
|
|
14
14
|
self.api_key = api_key
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def get(resource)
|
|
18
|
-
options
|
|
17
|
+
def get(resource, options = {})
|
|
18
|
+
options ||= {}
|
|
19
|
+
options[:limit] ||= 100
|
|
20
|
+
options[:page] ||= 0
|
|
19
21
|
options[:output] = "json_array"
|
|
20
22
|
|
|
21
23
|
url = url_for('invoke', resource, options)
|
data/rimac.gemspec
CHANGED
|
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
|
|
|
11
11
|
gem.email = ["gustavo@xenda.pe"]
|
|
12
12
|
gem.description = "Ruby client for Municipalidad Metropolitana de Lima API (http://lima.datosabiertos.pe/)"
|
|
13
13
|
gem.summary = "Ruby client for Municipalidad Metropolitana de Lima API (http://lima.datosabiertos.pe/)"
|
|
14
|
+
gem.homepage = "https://github.com/hpneo/rimac"
|
|
14
15
|
|
|
15
16
|
gem.platform = Gem::Platform::RUBY
|
|
16
17
|
gem.version = Rimac::VERSION
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rimac
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-09-
|
|
12
|
+
date: 2013-09-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Ruby client for Municipalidad Metropolitana de Lima API (http://lima.datosabiertos.pe/)
|
|
15
15
|
email:
|
|
@@ -18,11 +18,12 @@ executables: []
|
|
|
18
18
|
extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
|
20
20
|
files:
|
|
21
|
+
- .gitignore
|
|
21
22
|
- README.md
|
|
22
23
|
- lib/rimac.rb
|
|
23
24
|
- lib/rimac/version.rb
|
|
24
25
|
- rimac.gemspec
|
|
25
|
-
homepage:
|
|
26
|
+
homepage: https://github.com/hpneo/rimac
|
|
26
27
|
licenses: []
|
|
27
28
|
post_install_message:
|
|
28
29
|
rdoc_options: []
|