scoped_serializer 0.0.1 → 0.0.2

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: 5fbd0dea1bb6ee4232f72241d4ac445b730b7e06
4
- data.tar.gz: 8a9841173c363ee66e3928e3fd55b0bfac0772d8
3
+ metadata.gz: 196bfc01398816a75c990ce9a4f2e396c76330ca
4
+ data.tar.gz: 538964d4220858ca63e3be103081440a4a097b00
5
5
  SHA512:
6
- metadata.gz: 7d625b615545c73c6465a3fa4408ec1d131e1e99e0493299b224353a07dfd779f18451cb2f2c5373536e730c8a7e73fb2e2d2d23d55e4d8bc93ff3b34d246e6b
7
- data.tar.gz: ead71b87fcc96ae6dd2d173ea1f9519cb2428b1d499da8b2756c98251e4981b9323d80edacb0728a2137ed9bc84fffb15bbe3372dc3cb7ccce2002e10d9ba960
6
+ metadata.gz: e95f8288fe9eb945a9121aebf2813e4b50b4d83bd3c5a7f31c41af35aafe9a0592f025a85530ff51c0721c894173bb12099e72c3a4a7e7c1bc69db5d4dbc6987
7
+ data.tar.gz: d199ad933211719006e154dd09fcb04a3e09ea472213c22f8808822e16e6a620da40fd0ffafa9d6bfaef8cdd2675a5cee38f97546b713a69dfe29c866da943fc
data/Rakefile CHANGED
@@ -1,21 +1,6 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
6
3
 
7
- require 'rdoc/task'
8
-
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'ScopedSerializer'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
16
-
17
-
18
-
19
-
20
- Bundler::GemHelper.install_tasks
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
21
6
 
@@ -94,9 +94,10 @@ module ScopedSerializer
94
94
  # @return [Hash]
95
95
  #
96
96
  def attributes_hash
97
- @scope.attributes.collect do |attr|
97
+ attributes = @scope.attributes.collect do |attr|
98
98
  [attr, fetch_property(attr)]
99
- end.to_h
99
+ end
100
+ Hash[attributes]
100
101
  end
101
102
 
102
103
  ##
@@ -1,3 +1,3 @@
1
1
  module ScopedSerializer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoped_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arjen Oosterkamp
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  description: Scoped serializers for Rails
84
112
  email:
85
113
  - mail@arjen.me