scaleapi-ruby 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/README.md +21 -0
- data/VERSION +1 -1
- data/lib/scale.rb +5 -1
- data/scaleapi-ruby.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0599a1985b99c57973c4e5bf594e4d191d0e0855
|
|
4
|
+
data.tar.gz: f4fd00b5a15973a01d3c5f4477110bb21d04648f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abf9875f4261de9bd67a354137385d007258d21f821b2b7623131dcd876797b95d964aae29bec3cfe797224d275ad1e98f64ea51df088cbf459b0bbe8393b810
|
|
7
|
+
data.tar.gz: 13619d353ee7fa2f85afe59dc74a6013a9c902f15ff54f4c3f527b14074acca950a8a7765d070212b68acab763cb1fca6064dc04f8485e2666f1ac9276de8d2d
|
data/README.md
CHANGED
|
@@ -259,6 +259,27 @@ scale.create_comparison_task(
|
|
|
259
259
|
)
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
+
## Development
|
|
263
|
+
|
|
264
|
+
Clone this repository with:
|
|
265
|
+
|
|
266
|
+
```sh
|
|
267
|
+
$ git clone https://github.com/wikiti/scaleapi-ruby
|
|
268
|
+
$ cd scaleapi-ruby
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
Install the current development version as a gem with:
|
|
272
|
+
|
|
273
|
+
```sh
|
|
274
|
+
$ rake install
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
Run tests with:
|
|
278
|
+
|
|
279
|
+
```sh
|
|
280
|
+
$ SCALE_API_KEY="your_scale_api_key" rake test
|
|
281
|
+
```
|
|
282
|
+
|
|
262
283
|
## Authors
|
|
263
284
|
|
|
264
285
|
This project has been developed by:
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.1
|
data/lib/scale.rb
CHANGED
|
@@ -35,7 +35,11 @@ module Scale
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def self.hash(data = nil)
|
|
38
|
-
|
|
38
|
+
data ||= {}
|
|
39
|
+
|
|
40
|
+
return ActiveSupport::HashWithIndifferentAccess.new(data) if data.instance_of? Hash
|
|
41
|
+
return data.to_unsafe_hash if data.respond_to? :to_unsafe_hash
|
|
42
|
+
data
|
|
39
43
|
end
|
|
40
44
|
|
|
41
45
|
def self.descendants(klass)
|
data/scaleapi-ruby.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: scaleapi-ruby 0.2.
|
|
5
|
+
# stub: scaleapi-ruby 0.2.1 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "scaleapi-ruby"
|
|
9
|
-
s.version = "0.2.
|
|
9
|
+
s.version = "0.2.1"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Daniel Herzog"]
|
|
14
|
-
s.date = "
|
|
14
|
+
s.date = "2017-02-07"
|
|
15
15
|
s.description = "A ruby gem wrapper for the Scale API, containing all the endpoints available."
|
|
16
16
|
s.email = "info@danielherzog.es"
|
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scaleapi-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Herzog
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|