scaleapi-ruby 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26c1c294636530362a4f60432fab27b5ac3f9c3f
4
- data.tar.gz: cbd7b37c1a3368c636ed12972d94317cf5142042
3
+ metadata.gz: 0599a1985b99c57973c4e5bf594e4d191d0e0855
4
+ data.tar.gz: f4fd00b5a15973a01d3c5f4477110bb21d04648f
5
5
  SHA512:
6
- metadata.gz: 9a8677dea8e27c82349443f3733399c7156316cf8b9a1fc69c7e5f302c3cc7319528acfd4b5cb7629fca613aaf2ef3659e6b496af8604743696908733f19df15
7
- data.tar.gz: ab3a1e062d1e136b5754430f959510dcf76a68251c2434e62e89deb8f230aa6388361ffaf9410f047c948a488db66dfd26700b253150e4b3d41b33a2fbf6cea2
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.0
1
+ 0.2.1
@@ -35,7 +35,11 @@ module Scale
35
35
  end
36
36
 
37
37
  def self.hash(data = nil)
38
- ActiveSupport::HashWithIndifferentAccess.new data
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)
@@ -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.0 ruby lib
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.0"
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 = "2016-12-26"
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.0
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: 2016-12-26 00:00:00.000000000 Z
11
+ date: 2017-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client