machinist-couchrest-model 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source :rubygems
2
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ machinist-couchrest-model (1.1.0)
5
+ couchrest_model
6
+ machinist (= 2.0.0.beta2)
7
+ machinist-couchrest-model
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ activemodel (3.1.1)
13
+ activesupport (= 3.1.1)
14
+ builder (~> 3.0.0)
15
+ i18n (~> 0.6)
16
+ activesupport (3.1.1)
17
+ multi_json (~> 1.0)
18
+ builder (3.0.0)
19
+ couchrest (1.1.2)
20
+ mime-types (~> 1.15)
21
+ multi_json (~> 1.0.0)
22
+ rest-client (~> 1.6.1)
23
+ couchrest_model (1.1.2)
24
+ activemodel (~> 3.0)
25
+ couchrest (~> 1.1.2)
26
+ mime-types (~> 1.15)
27
+ tzinfo (~> 0.3.22)
28
+ diff-lcs (1.1.3)
29
+ git (1.2.5)
30
+ i18n (0.6.0)
31
+ jeweler (1.6.4)
32
+ bundler (~> 1.0)
33
+ git (>= 1.2.5)
34
+ rake
35
+ machinist (2.0.0.beta2)
36
+ mime-types (1.16)
37
+ multi_json (1.0.3)
38
+ rake (0.9.2)
39
+ rest-client (1.6.7)
40
+ mime-types (>= 1.16)
41
+ rspec (2.6.0)
42
+ rspec-core (~> 2.6.0)
43
+ rspec-expectations (~> 2.6.0)
44
+ rspec-mocks (~> 2.6.0)
45
+ rspec-core (2.6.4)
46
+ rspec-expectations (2.6.0)
47
+ diff-lcs (~> 1.1.2)
48
+ rspec-mocks (2.6.0)
49
+ tzinfo (0.3.30)
50
+ yard (0.7.2)
51
+
52
+ PLATFORMS
53
+ ruby
54
+
55
+ DEPENDENCIES
56
+ jeweler
57
+ machinist-couchrest-model!
58
+ rake
59
+ rspec (>= 1.2.9)
60
+ yard
data/Rakefile CHANGED
@@ -11,8 +11,10 @@ begin
11
11
  gem.homepage = "http://github.com/pezra/machinist-couchrest-model"
12
12
  gem.authors = ["Peter Williams"]
13
13
  gem.add_development_dependency "rspec", ">= 1.2.9"
14
+ gem.add_development_dependency "rake", ">= 0"
14
15
  gem.add_development_dependency "yard", ">= 0"
15
- gem.add_dependency "machinist", "~> 2.0"
16
+ gem.add_development_dependency "jeweler", ">= 0"
17
+ gem.add_dependency "machinist", "2.0.0.beta2" # this is actually lie, it really needs the post beta2 head of master
16
18
  gem.add_dependency "couchrest_model"
17
19
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
18
20
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0
@@ -18,3 +18,5 @@ module CouchRest #:nodoc:
18
18
  end
19
19
  end
20
20
  end
21
+
22
+ require 'machinist_couchrest_model/property_protection'
@@ -0,0 +1,23 @@
1
+ require 'couchrest/model/property_protection'
2
+
3
+ module CouchRest
4
+ module Model
5
+ module PropertyProtection
6
+ extend ActiveSupport::Concern
7
+
8
+ # override attribute protection for Machinist, making all attributes available for mass assignment
9
+
10
+ module ClassMethods
11
+ def accessible_properties
12
+ props = properties
13
+ end
14
+
15
+ def protected_properties
16
+ []
17
+ end
18
+ end
19
+
20
+ end
21
+ end
22
+ end
23
+
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{machinist-couchrest-model}
8
- s.version = "1.0.2"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Williams"]
12
- s.date = %q{2012-02-24}
12
+ s.date = %q{2011-10-12}
13
13
  s.description = %q{Manufacture test CouchRest models with ease using Machinist}
14
14
  s.email = %q{pezra@barelyenough.org}
15
15
  s.extra_rdoc_files = [
@@ -19,6 +19,8 @@ Gem::Specification.new do |s|
19
19
  ]
20
20
  s.files = [
21
21
  ".document",
22
+ "Gemfile",
23
+ "Gemfile.lock",
22
24
  "LICENSE",
23
25
  "README.md",
24
26
  "README.rdoc",
@@ -27,6 +29,7 @@ Gem::Specification.new do |s|
27
29
  "lib/machinist-couchrest-model.rb",
28
30
  "lib/machinist_couchrest_model/blueprint.rb",
29
31
  "lib/machinist_couchrest_model/lathe.rb",
32
+ "lib/machinist_couchrest_model/property_protection.rb",
30
33
  "machinist-couchrest-model.gemspec",
31
34
  "spec/machinist_couchrest_model/blueprint_spec.rb",
32
35
  "spec/machinist_couchrest_model/lathe_spec.rb",
@@ -42,20 +45,65 @@ Gem::Specification.new do |s|
42
45
  s.specification_version = 3
43
46
 
44
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<machinist-couchrest-model>, [">= 0"])
45
49
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
50
+ s.add_development_dependency(%q<rake>, [">= 0"])
46
51
  s.add_development_dependency(%q<yard>, [">= 0"])
47
- s.add_runtime_dependency(%q<machinist>, ["~> 2.0"])
52
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
53
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
54
+ s.add_development_dependency(%q<rake>, [">= 0"])
55
+ s.add_development_dependency(%q<yard>, [">= 0"])
56
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
57
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
58
+ s.add_development_dependency(%q<rake>, [">= 0"])
59
+ s.add_development_dependency(%q<yard>, [">= 0"])
60
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
61
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
62
+ s.add_development_dependency(%q<rake>, [">= 0"])
63
+ s.add_development_dependency(%q<yard>, [">= 0"])
64
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
65
+ s.add_runtime_dependency(%q<machinist>, ["= 2.0.0.beta2"])
48
66
  s.add_runtime_dependency(%q<couchrest_model>, [">= 0"])
49
67
  else
68
+ s.add_dependency(%q<machinist-couchrest-model>, [">= 0"])
69
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
70
+ s.add_dependency(%q<rake>, [">= 0"])
71
+ s.add_dependency(%q<yard>, [">= 0"])
72
+ s.add_dependency(%q<jeweler>, [">= 0"])
73
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
74
+ s.add_dependency(%q<rake>, [">= 0"])
75
+ s.add_dependency(%q<yard>, [">= 0"])
76
+ s.add_dependency(%q<jeweler>, [">= 0"])
77
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
78
+ s.add_dependency(%q<rake>, [">= 0"])
79
+ s.add_dependency(%q<yard>, [">= 0"])
80
+ s.add_dependency(%q<jeweler>, [">= 0"])
50
81
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
82
+ s.add_dependency(%q<rake>, [">= 0"])
51
83
  s.add_dependency(%q<yard>, [">= 0"])
52
- s.add_dependency(%q<machinist>, ["~> 2.0"])
84
+ s.add_dependency(%q<jeweler>, [">= 0"])
85
+ s.add_dependency(%q<machinist>, ["= 2.0.0.beta2"])
53
86
  s.add_dependency(%q<couchrest_model>, [">= 0"])
54
87
  end
55
88
  else
89
+ s.add_dependency(%q<machinist-couchrest-model>, [">= 0"])
90
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
91
+ s.add_dependency(%q<rake>, [">= 0"])
92
+ s.add_dependency(%q<yard>, [">= 0"])
93
+ s.add_dependency(%q<jeweler>, [">= 0"])
94
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
95
+ s.add_dependency(%q<rake>, [">= 0"])
96
+ s.add_dependency(%q<yard>, [">= 0"])
97
+ s.add_dependency(%q<jeweler>, [">= 0"])
98
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
99
+ s.add_dependency(%q<rake>, [">= 0"])
100
+ s.add_dependency(%q<yard>, [">= 0"])
101
+ s.add_dependency(%q<jeweler>, [">= 0"])
56
102
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
103
+ s.add_dependency(%q<rake>, [">= 0"])
57
104
  s.add_dependency(%q<yard>, [">= 0"])
58
- s.add_dependency(%q<machinist>, ["~> 2.0"])
105
+ s.add_dependency(%q<jeweler>, [">= 0"])
106
+ s.add_dependency(%q<machinist>, ["= 2.0.0.beta2"])
59
107
  s.add_dependency(%q<couchrest_model>, [">= 0"])
60
108
  end
61
109
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinist-couchrest-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,111 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-24 00:00:00.000000000 -07:00
12
+ date: 2011-10-12 00:00:00.000000000 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: machinist-couchrest-model
17
+ requirement: &2156688660 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2156688660
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ requirement: &2156687080 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.9
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *2156687080
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake
39
+ requirement: &2156685840 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *2156685840
48
+ - !ruby/object:Gem::Dependency
49
+ name: yard
50
+ requirement: &2156506700 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *2156506700
59
+ - !ruby/object:Gem::Dependency
60
+ name: jeweler
61
+ requirement: &2156504960 !ruby/object:Gem::Requirement
62
+ none: false
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: *2156504960
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: &2156501840 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 1.2.9
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: *2156501840
81
+ - !ruby/object:Gem::Dependency
82
+ name: rake
83
+ requirement: &2156498500 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: *2156498500
92
+ - !ruby/object:Gem::Dependency
93
+ name: yard
94
+ requirement: &2156497040 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: *2156497040
103
+ - !ruby/object:Gem::Dependency
104
+ name: jeweler
105
+ requirement: &2156493180 !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: *2156493180
15
114
  - !ruby/object:Gem::Dependency
16
115
  name: rspec
17
- requirement: &2153147680 !ruby/object:Gem::Requirement
116
+ requirement: &2156491760 !ruby/object:Gem::Requirement
18
117
  none: false
19
118
  requirements:
20
119
  - - ! '>='
@@ -22,10 +121,76 @@ dependencies:
22
121
  version: 1.2.9
23
122
  type: :development
24
123
  prerelease: false
25
- version_requirements: *2153147680
124
+ version_requirements: *2156491760
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: &2156488840 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: *2156488840
26
136
  - !ruby/object:Gem::Dependency
27
137
  name: yard
28
- requirement: &2153147020 !ruby/object:Gem::Requirement
138
+ requirement: &2156487120 !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: *2156487120
147
+ - !ruby/object:Gem::Dependency
148
+ name: jeweler
149
+ requirement: &2156485220 !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: *2156485220
158
+ - !ruby/object:Gem::Dependency
159
+ name: rspec
160
+ requirement: &2156483220 !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: 1.2.9
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: *2156483220
169
+ - !ruby/object:Gem::Dependency
170
+ name: rake
171
+ requirement: &2156480740 !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ type: :development
178
+ prerelease: false
179
+ version_requirements: *2156480740
180
+ - !ruby/object:Gem::Dependency
181
+ name: yard
182
+ requirement: &2156478360 !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: *2156478360
191
+ - !ruby/object:Gem::Dependency
192
+ name: jeweler
193
+ requirement: &2156476060 !ruby/object:Gem::Requirement
29
194
  none: false
30
195
  requirements:
31
196
  - - ! '>='
@@ -33,21 +198,21 @@ dependencies:
33
198
  version: '0'
34
199
  type: :development
35
200
  prerelease: false
36
- version_requirements: *2153147020
201
+ version_requirements: *2156476060
37
202
  - !ruby/object:Gem::Dependency
38
203
  name: machinist
39
- requirement: &2153146380 !ruby/object:Gem::Requirement
204
+ requirement: &2156472900 !ruby/object:Gem::Requirement
40
205
  none: false
41
206
  requirements:
42
- - - ~>
207
+ - - =
43
208
  - !ruby/object:Gem::Version
44
- version: '2.0'
209
+ version: 2.0.0.beta2
45
210
  type: :runtime
46
211
  prerelease: false
47
- version_requirements: *2153146380
212
+ version_requirements: *2156472900
48
213
  - !ruby/object:Gem::Dependency
49
214
  name: couchrest_model
50
- requirement: &2153145760 !ruby/object:Gem::Requirement
215
+ requirement: &2156468660 !ruby/object:Gem::Requirement
51
216
  none: false
52
217
  requirements:
53
218
  - - ! '>='
@@ -55,7 +220,7 @@ dependencies:
55
220
  version: '0'
56
221
  type: :runtime
57
222
  prerelease: false
58
- version_requirements: *2153145760
223
+ version_requirements: *2156468660
59
224
  description: Manufacture test CouchRest models with ease using Machinist
60
225
  email: pezra@barelyenough.org
61
226
  executables: []
@@ -66,6 +231,8 @@ extra_rdoc_files:
66
231
  - README.rdoc
67
232
  files:
68
233
  - .document
234
+ - Gemfile
235
+ - Gemfile.lock
69
236
  - LICENSE
70
237
  - README.md
71
238
  - README.rdoc
@@ -74,6 +241,7 @@ files:
74
241
  - lib/machinist-couchrest-model.rb
75
242
  - lib/machinist_couchrest_model/blueprint.rb
76
243
  - lib/machinist_couchrest_model/lathe.rb
244
+ - lib/machinist_couchrest_model/property_protection.rb
77
245
  - machinist-couchrest-model.gemspec
78
246
  - spec/machinist_couchrest_model/blueprint_spec.rb
79
247
  - spec/machinist_couchrest_model/lathe_spec.rb
@@ -92,6 +260,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
260
  - - ! '>='
93
261
  - !ruby/object:Gem::Version
94
262
  version: '0'
263
+ segments:
264
+ - 0
265
+ hash: -1246095635940923951
95
266
  required_rubygems_version: !ruby/object:Gem::Requirement
96
267
  none: false
97
268
  requirements: