kosher 0.9.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/kosher/venue.rb CHANGED
@@ -9,5 +9,11 @@ module Kosher
9
9
 
10
10
  # The country the venue is based in.
11
11
  key :country
12
+
13
+ class << self
14
+ def amazon
15
+ @amazons ||= select { |record| record.name.include? 'Amazon' }
16
+ end
17
+ end
12
18
  end
13
19
  end
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = '0.9.1'
2
+ VERSION = '0.10.0'
3
3
  end
data/test/kosher_test.rb CHANGED
@@ -59,4 +59,8 @@ class TestKosher < MiniTest::Unit::TestCase
59
59
  offer.venue_id = 0
60
60
  assert_raises(Kosher::Invalid) { offer.kosher? }
61
61
  end
62
+
63
+ def test_amazon_venues
64
+ assert_equal 8, Kosher::Venue.amazon.size
65
+ end
62
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kosher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.10.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-12 00:00:00.000000000Z
12
+ date: 2011-08-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
16
- requirement: &70269322416700 !ruby/object:Gem::Requirement
16
+ requirement: &70291732975860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70269322416700
24
+ version_requirements: *70291732975860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: money
27
- requirement: &70269322415880 !ruby/object:Gem::Requirement
27
+ requirement: &70291732975020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.7'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70269322415880
35
+ version_requirements: *70291732975020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: structure
38
- requirement: &70269322415060 !ruby/object:Gem::Requirement
38
+ requirement: &70291732974260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0.15'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70269322415060
46
+ version_requirements: *70291732974260
47
47
  description: Online trade, abstracted
48
48
  email: code@papercavalier.com
49
49
  executables: []
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  segments:
83
83
  - 0
84
- hash: 908814609031354876
84
+ hash: 3228881349343595223
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 908814609031354876
93
+ hash: 3228881349343595223
94
94
  requirements: []
95
95
  rubyforge_project:
96
96
  rubygems_version: 1.8.6