oat 0.4.4 → 0.4.5

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: e885fae5d75c7ebe3c3483f7a2d520b5478e85c3
4
- data.tar.gz: 3799ac61914156b10bd4b4ef6f0a1b67fba615d9
3
+ metadata.gz: b99c27fce884d038d2dcb994993171a221fe9207
4
+ data.tar.gz: 6c1d130acce638a3387a99f029925e38a5483c51
5
5
  SHA512:
6
- metadata.gz: 1c5f905b7ec2fef0251d8f588560d33c40d6261c5eda37586589bd3d1fde0c3338d84e21d008d020e24d4e7752203ece98e344f6edc4c14abb85e6aa697730ea
7
- data.tar.gz: 402bf1413fd95c7aba6a35c0602c56a9518b2bbb163fac258a5646d0e350908cba5f17cbd5c82e2569a50802b519cfb28280898462e75e8117076b20decee56d
6
+ metadata.gz: b1f2ee9f1645746fda92ebe645083071c0cb2867766fa35ff8cc2b63a14aa297975035e02dbdf6bd5dfd2707d6acd4c15a2ab9b187cc23ea5f1ba30a48fcea81
7
+ data.tar.gz: cba99539507beaaa10e87339ccdf2b1dcd3ce13431b0651e1ff18ac2b13f788a8a812b09921efa7f01b478d3beff91e53c75ce170539550b396e04ad4ae9e38f
data/.travis.yml CHANGED
@@ -1,25 +1,36 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.1.2
3
4
  - 2.0.0
4
5
  - 1.9.3
5
6
  - 1.9.2
6
7
  - 1.8.7
8
+ - jruby-1.7.11
9
+ - rbx-2.2.9
7
10
 
8
11
  gemfile:
9
- - gemfiles/Gemfile.as-2.3.x
10
12
  - gemfiles/Gemfile.as-3.0.x
11
13
  - gemfiles/Gemfile.as-3.1.x
12
14
  - gemfiles/Gemfile.as-3.2.x
13
15
  - gemfiles/Gemfile.as-4.0.x
16
+ - gemfiles/Gemfile.as-4.1.x
14
17
 
15
18
  matrix:
16
19
  include:
17
20
  - gemfile: gemfiles/Gemfile.as-1.4.4
18
21
  rvm: 1.8.7
19
- exclude:
20
22
  - gemfile: gemfiles/Gemfile.as-2.3.x
21
- rvm: 2.0.0
23
+ rvm: 1.8.7
24
+ - gemfile: gemfiles/Gemfile.as-2.3.x
25
+ rvm: 1.9.2
26
+ - gemfile: gemfiles/Gemfile.as-2.3.x
27
+ rvm: 1.9.3
28
+ exclude:
22
29
  - gemfile: gemfiles/Gemfile.as-4.0.x
23
30
  rvm: 1.8.7
31
+ - gemfile: gemfiles/Gemfile.as-4.1.x
32
+ rvm: 1.8.7
24
33
  - gemfile: gemfiles/Gemfile.as-4.0.x
25
34
  rvm: 1.9.2
35
+ - gemfile: gemfiles/Gemfile.as-4.1.x
36
+ rvm: 1.9.2
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in oat.gemspec
4
+ gem 'activesupport', '~>4.1.4'
5
+ gemspec :path => "../"
@@ -51,7 +51,7 @@ module Oat
51
51
 
52
52
  def to_hash
53
53
  @to_hash ||= (
54
- self.instance_eval &self.class.schema
54
+ instance_eval(&self.class.schema)
55
55
  adapter.to_hash
56
56
  )
57
57
  end
data/lib/oat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oat
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
data/oat.gemspec CHANGED
@@ -21,5 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "activesupport"
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
23
  spec.add_development_dependency "rake"
24
- spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "rspec", ">= 3.0"
25
+ spec.add_development_dependency "rspec-its"
25
26
  end
@@ -104,7 +104,7 @@ describe Oat::Adapters::JsonAPI do
104
104
  its(:size) { should eq(2) }
105
105
 
106
106
  it 'has the correct entities' do
107
- linked_friends.map{ |friend| friend.fetch(:id) }.should include(2, 4)
107
+ expect(linked_friends.map{ |friend| friend.fetch(:id) }).to include(2, 4)
108
108
  end
109
109
  end
110
110
  end
@@ -49,7 +49,7 @@ describe Oat::Serializer do
49
49
  let(:user1) { user_class.new('Ismael', 35, 1, []) }
50
50
 
51
51
  it 'should have a version number' do
52
- Oat::VERSION.should_not be_nil
52
+ expect(Oat::VERSION).to_not be_nil
53
53
  end
54
54
 
55
55
  describe "#context" do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'rspec/its'
2
3
  require 'oat'
3
4
  require 'fixtures'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -54,6 +54,20 @@ dependencies:
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-its
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - '>='
@@ -89,6 +103,7 @@ files:
89
103
  - gemfiles/Gemfile.as-3.1.x
90
104
  - gemfiles/Gemfile.as-3.2.x
91
105
  - gemfiles/Gemfile.as-4.0.x
106
+ - gemfiles/Gemfile.as-4.1.x
92
107
  - lib/oat.rb
93
108
  - lib/oat/adapter.rb
94
109
  - lib/oat/adapters/hal.rb