active_repository 0.3.8 → 0.3.9

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: 8e5b0ef51d2ab9f65a35c88f526dacf88d48ef7e
4
- data.tar.gz: 88e25b4bf635515fa4160584f4dbdb7ebf481711
3
+ metadata.gz: 2b8855ca9300f9dd6213bdc8f1fe88f8cf991daa
4
+ data.tar.gz: abe6aa1761d399dcce10a78c48e626a7b7064b35
5
5
  SHA512:
6
- metadata.gz: e63aec75316ccd11b8cda2785c5d87b57c62419b4105f323e15aec01c32bb56d2e37584e6f2ad6c3a69b085dd6041866bb10d60a63073a7e9baf54245f044ed6
7
- data.tar.gz: 1c669b8a39a203e374870c148d7caab989bd7ea11e7cfd6948e75daecd4f6802abe405ab0c35af678c4d3685bd3ad6717a4e307939863afff49ce48cdc101ee9
6
+ metadata.gz: 632588aba610cd97a282091cd170485c337f464d585708d5e925a9f360500e089ceb7ef2531e127d9ddf3124d7431acfdeaebeb3b7905668b4f2acb951f83aa6
7
+ data.tar.gz: 6226453ec16cd1aa249df87092162f98e5925b4ee70a6f587b45c401b565f33ec1ed771474efd29168ef6dbb54afa38b8662d1f50f8ca0cddbb2782dbb3005d9
@@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
31
31
 
32
32
  gem.add_runtime_dependency(%q<active_hash>, [">= 1.2.3"])
33
33
  gem.add_runtime_dependency(%q<activemodel>, [">= 3.2.0"])
34
- gem.add_runtime_dependency(%q<sql_query_executor>, [">= 0.3.6"])
34
+ gem.add_runtime_dependency(%q<sql_query_executor>, [">= 0.3.7"])
35
35
  gem.add_development_dependency(%q<pry>)
36
36
  gem.add_development_dependency(%q<rspec>, [">= 2.14.1"])
37
37
  gem.add_development_dependency(%q<activerecord>, [">= 4.1.4"])
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  class ActiveRepository::ResultSet
3
2
  def initialize(klass, query={}, attributes={})
4
3
  @klass = klass
@@ -1,3 +1,3 @@
1
1
  module ActiveRepository
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
@@ -109,12 +109,12 @@ shared_examples ".exists?" do
109
109
  id = Country.last.id
110
110
 
111
111
  Country.delete_all
112
- Country.exists?(id).should be_false
112
+ Country.exists?(id).should_not be
113
113
 
114
114
  country = Country.create(:name => "France")
115
115
  id = country.id
116
116
 
117
- Country.exists?(id).should be_true
117
+ Country.exists?(id).should be
118
118
  end
119
119
  end
120
120
 
@@ -470,19 +470,19 @@ shared_examples "#eql?" do
470
470
  end
471
471
 
472
472
  it "should return true with the same class and id" do
473
- Country.new(:id => 23).eql?(Country.new(:id => 23)).should be_true
473
+ Country.new(:id => 23).eql?(Country.new(:id => 23)).should be
474
474
  end
475
475
 
476
476
  it "should return false with the same class and different ids" do
477
- Country.new(:id => 24).eql?(Country.new(:id => 23)).should be_false
477
+ Country.new(:id => 24).eql?(Country.new(:id => 23)).should_not be
478
478
  end
479
479
 
480
480
  it "should return false with the different classes and the same id" do
481
- Country.new(:id => 23).eql?(Region.new(:id => 23)).should be_false
481
+ Country.new(:id => 23).eql?(Region.new(:id => 23)).should_not be
482
482
  end
483
483
 
484
484
  it "returns false when id is nil" do
485
- Country.new.eql?(Country.new).should be_false
485
+ Country.new.eql?(Country.new).should_not be
486
486
  end
487
487
  end
488
488
 
@@ -533,7 +533,7 @@ shared_examples "#readonly?" do
533
533
 
534
534
  country.name = "Germany"
535
535
 
536
- country.save.should be_true
536
+ country.save.should be
537
537
 
538
538
  Country.all.size.should == 5
539
539
  country.should be_valid
@@ -571,14 +571,14 @@ shared_examples "#save" do
571
571
 
572
572
  it "does not add object to the collection if it is not valid" do
573
573
  country = Country.new :monarch => "King", :language => "bar"
574
- country.save.should be_false
574
+ country.save.should_not be
575
575
  Country.count.should == 0
576
576
  end
577
577
 
578
578
  it "adds the new object to the data collection" do
579
579
  Country.all.should be_empty
580
580
  country = Country.new :name => "foo", :monarch => "King", :language => "bar"
581
- country.save.should be_true
581
+ country.save.should be
582
582
  country.reload
583
583
 
584
584
  countries_attributes = Country.first.attributes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_repository
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Torres
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_hash
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '>='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.6
47
+ version: 0.3.7
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.6
54
+ version: 0.3.7
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement