contract_acceptance_framework 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ class Contract < ActiveRecord::Base
4
4
  validates :maintenance_version, :uniqueness => { :scope => [:minor_version, :major_version, :key] }
5
5
  validates :maintenance_version, :minor_version, :major_version, :key, :content, :presence => true
6
6
 
7
- scope :accepted_by, lambda{|acceptable| joins(:contract_acceptances).where({ :contract_acceptances => { :acceptable_id => acceptable.id, :acceptable_type => acceptable.type } }) }
7
+ scope :accepted_by, lambda{|acceptable| joins(:contract_acceptances).where({ :contract_acceptances => { :acceptable_id => acceptable.id, :acceptable_type => acceptable.class.to_s } }) }
8
8
  scope :for_key, lambda{|key| where("`key` = ?", key) }
9
9
  scope :by_version, order("major_version DESC, minor_version DESC, maintenance_version DESC")
10
10
 
@@ -1,3 +1,3 @@
1
1
  module ContractAcceptanceFramework
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contract_acceptance_framework
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
5
+ version: 0.0.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Josh Adams
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-02-11 00:00:00 -06:00
13
+ date: 2011-04-25 00:00:00 -05:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,13 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 15424057
30
- segments:
31
- - 1
32
- - 0
33
- - 0
34
- - rc
35
- - 6
36
24
  version: 1.0.0.rc.6
37
25
  type: :development
38
26
  version_requirements: *id001
@@ -44,11 +32,6 @@ dependencies:
44
32
  requirements:
45
33
  - - ~>
46
34
  - !ruby/object:Gem::Version
47
- hash: 31
48
- segments:
49
- - 2
50
- - 4
51
- - 0
52
35
  version: 2.4.0
53
36
  type: :development
54
37
  version_requirements: *id002
@@ -60,11 +43,6 @@ dependencies:
60
43
  requirements:
61
44
  - - ~>
62
45
  - !ruby/object:Gem::Version
63
- hash: 29
64
- segments:
65
- - 1
66
- - 3
67
- - 3
68
46
  version: 1.3.3
69
47
  type: :development
70
48
  version_requirements: *id003
@@ -76,11 +54,6 @@ dependencies:
76
54
  requirements:
77
55
  - - ~>
78
56
  - !ruby/object:Gem::Version
79
- hash: 7
80
- segments:
81
- - 3
82
- - 0
83
- - 0
84
57
  version: 3.0.0
85
58
  type: :runtime
86
59
  version_requirements: *id004
@@ -92,11 +65,6 @@ dependencies:
92
65
  requirements:
93
66
  - - ~>
94
67
  - !ruby/object:Gem::Version
95
- hash: 7
96
- segments:
97
- - 3
98
- - 0
99
- - 0
100
68
  version: 3.0.0
101
69
  type: :runtime
102
70
  version_requirements: *id005
@@ -135,25 +103,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
103
  requirements:
136
104
  - - ">="
137
105
  - !ruby/object:Gem::Version
138
- hash: 3
139
- segments:
140
- - 0
141
106
  version: "0"
142
107
  required_rubygems_version: !ruby/object:Gem::Requirement
143
108
  none: false
144
109
  requirements:
145
110
  - - ">="
146
111
  - !ruby/object:Gem::Version
147
- hash: 23
148
- segments:
149
- - 1
150
- - 3
151
- - 6
152
112
  version: 1.3.6
153
113
  requirements: []
154
114
 
155
115
  rubyforge_project: contract_acceptance_framework
156
- rubygems_version: 1.4.2
116
+ rubygems_version: 1.6.2
157
117
  signing_key:
158
118
  specification_version: 3
159
119
  summary: Allow rails objects to agree to versioned contracts