svelte 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 +4 -4
- data/.ruby-version +1 -1
- data/README.md +1 -1
- data/lib/svelte/service.rb +1 -1
- data/lib/svelte/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f96d2b8c2757e7266dd0d5d80249d41b2b36e7e
|
4
|
+
data.tar.gz: 46ac26ab58580f7179539d3f863db5701126afcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e19dbe1a45c516de1cc9856b29cf68836969a2001fb3e81ce28dc3940dead603a0294cd2fcf0b01b5c043acf35fb0570f61f951b480424a47b86da09d3f4c728
|
7
|
+
data.tar.gz: e6081d50c15f64b2f0293cd00ddd5683648b492afae7c13bad6184406180fa65a77c2e6c2f06c825533733682b6abd12d56a5242d122e76ad241e552dfa70e44
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Svelte is a Swagger-to-Ruby object mapper.
|
|
4
4
|
|
5
5
|
It reads a Swagger specification file in JSON, and automatically generates Resource Classes with static methods to represent the various HTTP endpoints.
|
6
6
|
|
7
|
-
[![Build Status](https://secure.travis-ci.org/
|
7
|
+
[![Build Status](https://secure.travis-ci.org/notonthehighstreet/svelte.png?branch=master)](http://travis-ci.org/notonthehighstreet/svelte)
|
8
8
|
[![Code Climate](https://codeclimate.com/github/notonthehighstreet/svelte/badges/gpa.svg)](https://codeclimate.com/github/notonthehighstreet/svelte)
|
9
9
|
|
10
10
|
## Installation
|
data/lib/svelte/service.rb
CHANGED
@@ -16,7 +16,7 @@ module Svelte
|
|
16
16
|
# `Svelte::Service::Comments`
|
17
17
|
# @note Either `url` or `json` need to be provided. `url` will take
|
18
18
|
# precedence over `json`
|
19
|
-
def create(url
|
19
|
+
def create(url: nil, json: nil, module_name:, options: {})
|
20
20
|
json = get_json(url: url) if url
|
21
21
|
SwaggerBuilder.new(raw_hash: JSON.parse(json.to_s),
|
22
22
|
module_name: module_name,
|
data/lib/svelte/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svelte
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- notonthehighstreet.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
213
|
rubyforge_project:
|
214
|
-
rubygems_version: 2.
|
214
|
+
rubygems_version: 2.5.1
|
215
215
|
signing_key:
|
216
216
|
specification_version: 4
|
217
217
|
summary: Dynamic Ruby API Client from Swagger JSON Spec
|