rspec-api_helpers 1.0.2 → 1.0.3

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: fc01855aa47f3e617fdfca911ccbf4aede2e50a3
4
- data.tar.gz: 5db89416125336490daa28757862b0a74887dc86
3
+ metadata.gz: 51a641bd76b3a46a960754e8861860d32972bac1
4
+ data.tar.gz: 1b480a982afb4055b3fbfca1fdd3f60b80c6e8bc
5
5
  SHA512:
6
- metadata.gz: 8b53bd402dd540f09d4b63e471f8bffa5e985a2b56e94ea4ed506c4c9eddbdb5dcd771a9bc378d23dfb7659239b6e5d408365a0509fd317e7701e9bdd097323a
7
- data.tar.gz: dfb3344d4d964e568a399157e3587b15893b48d2ce29f3d8ad8ca274c2821b1df850683e52ba6468f5b0ba1c445f56ed44ec4e5e8c679a584864340a067e6ee4
6
+ metadata.gz: c962fddbe7d1be3c2ee17b2ee4dbf5ba30c02da03453bbe2e4b2865fef49e2626d746162a32dd347951c2225c527739348510a123a5c958cc5cdc89b99e4493f
7
+ data.tar.gz: 48a8f069f18bba160cd52f01ed9b021d0f54ba6790be941fc2b0a9637192edde45b070a50511b6760da322b5ee700598f745d060123a2f5cd310cdbb363f1c03
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ *.gem
@@ -59,7 +59,7 @@ module Adapter::ActiveModel::CommonHelpers
59
59
 
60
60
  def parse_model(model)
61
61
  return model unless model.is_a? Hash
62
-
62
+
63
63
  return object_hash(model)
64
64
  end
65
65
 
@@ -62,7 +62,7 @@ class Adapter::ActiveModel::Resource
62
62
  def modifiers_hash
63
63
  return {} if options[:modifiers].blank?
64
64
 
65
- @modifiers_hash = {}
65
+ @modifiers_hash = HashWithIndifferentAccess.new({})
66
66
  options[:modifiers].each do |key, value|
67
67
  [key].flatten.each do |attr|
68
68
  if attrs?
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Api
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.add_runtime_dependency "activesupport", "> 4.2"
21
22
  spec.add_development_dependency "bundler", "~> 1.7"
22
23
  spec.add_development_dependency "rake", "~> 10.0"
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-api_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
@@ -11,6 +11,20 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2016-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">"
19
+ - !ruby/object:Gem::Version
20
+ version: '4.2'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">"
26
+ - !ruby/object:Gem::Version
27
+ version: '4.2'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: bundler
16
30
  requirement: !ruby/object:Gem::Requirement