hobo 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fa3c69c088cf89eb5b2d6b877c17437c026ca795
4
+ data.tar.gz: 545a25135cc273cab0b952710559315b9826c380
5
+ SHA512:
6
+ metadata.gz: d013a30cde686a23630791d048ba675ff58401791f5d0aedf477d55fc0a5e94f98204b1788173107a9ccd854e587e486495900169da8f6b6a7728801410debd7
7
+ data.tar.gz: 8b1430a8ed7eeb40ed5f062a7fd4c89a4be47a7276f7a806befe3bc7fd76c413984eceb81deaca56106aa4b827fec032afc4f5259d5e2ae4b7be053f18c6f792
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -161,7 +161,7 @@ ru:
161
161
  error:
162
162
  heading: "Произошла ошибка:"
163
163
  select_many:
164
- prompt: "Добавить %{model}"
164
+ prompt: "Добавить %{model}"
165
165
 
166
166
  # hobo support
167
167
  support:
@@ -816,7 +816,7 @@ module Hobo
816
816
 
817
817
  def permission_denied(error)
818
818
  self.this = true # Otherwise this gets sent user_view
819
- logger.info "Hobo: Permission Denied!"
819
+ logger.info "Hobo: Permission Denied! (#{error.inspect})"
820
820
  @permission_error = error
821
821
  if self.class.superclass.method_defined?("permission_denied")
822
822
  super
@@ -68,7 +68,7 @@ ActiveRecord::Associations::HasManyThroughAssociation.class_eval do
68
68
  end
69
69
 
70
70
 
71
- def create_record_with_user_create(attrs, options, raise = false, &block)
71
+ def _create_record_with_user_create(attrs, options, raise = false, &block)
72
72
  klass = @reflection.klass
73
73
  user = acting_user if klass < Hobo::Model
74
74
  if user
@@ -86,7 +86,7 @@ ActiveRecord::Associations::HasManyThroughAssociation.class_eval do
86
86
  create_record_without_user_create(attrs, options, raise, &block)
87
87
  end
88
88
  end
89
- alias_method_chain :create_record, :user_create
89
+ alias_method_chain :_create_record, :user_create
90
90
 
91
91
 
92
92
  def insert_record_with_owner_attributes(record, force = true, raise = false)
@@ -7,8 +7,8 @@ module Hobo
7
7
  klass.class_eval do
8
8
  extend ClassMethods
9
9
 
10
- alias_method_chain :create_record, :hobo_permission_check
11
- alias_method_chain :update_record, :hobo_permission_check
10
+ alias_method_chain :_create_record, :hobo_permission_check
11
+ alias_method_chain :_update_record, :hobo_permission_check
12
12
  alias_method_chain :destroy, :hobo_permission_check
13
13
  class << self
14
14
  alias_method_chain :has_many, :hobo_permission_check
@@ -132,23 +132,23 @@ module Hobo
132
132
  acting_user && !(self.class.has_lifecycle? && lifecycle.active_step)
133
133
  end
134
134
 
135
- def create_record_with_hobo_permission_check(*args, &b)
135
+ def _create_record_with_hobo_permission_check(*args, &b)
136
136
  if permission_check_required?
137
- create_permitted? or raise PermissionDeniedError, "#{self.class.name}#create"
137
+ create_permitted? or raise PermissionDeniedError, "#{self.class.name} #{self.id}#create"
138
138
  end
139
- create_record_without_hobo_permission_check(*args, &b)
139
+ _create_record_without_hobo_permission_check(*args, &b)
140
140
  end
141
141
 
142
- def update_record_with_hobo_permission_check(*args)
142
+ def _update_record_with_hobo_permission_check(*args)
143
143
  if permission_check_required?
144
- update_permitted? or raise PermissionDeniedError, "#{self.class.name}#update"
144
+ update_permitted? or raise PermissionDeniedError, "#{self.class.name} #{self.id}#update"
145
145
  end
146
- update_record_without_hobo_permission_check(*args)
146
+ _update_record_without_hobo_permission_check(*args)
147
147
  end
148
148
 
149
149
  def destroy_with_hobo_permission_check
150
150
  if permission_check_required?
151
- destroy_permitted? or raise PermissionDeniedError, "#{self.class.name}#.destroy"
151
+ destroy_permitted? or raise PermissionDeniedError, "#{self.class.name} #{self.id}#.destroy"
152
152
  end
153
153
 
154
154
  destroy_without_hobo_permission_check
metadata CHANGED
@@ -1,158 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
5
- prerelease:
4
+ version: 2.1.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Tom Locke
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-01-26 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :runtime
16
14
  name: hobo_support
17
- prerelease: false
18
15
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
16
  requirements:
21
17
  - - '='
22
18
  - !ruby/object:Gem::Version
23
- version: 2.1.0
19
+ version: 2.1.1
20
+ type: :runtime
21
+ prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
29
- version: 2.1.0
26
+ version: 2.1.1
30
27
  - !ruby/object:Gem::Dependency
31
- type: :runtime
32
28
  name: hobo_fields
33
- prerelease: false
34
29
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
30
  requirements:
37
31
  - - '='
38
32
  - !ruby/object:Gem::Version
39
- version: 2.1.0
33
+ version: 2.1.1
34
+ type: :runtime
35
+ prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - '='
44
39
  - !ruby/object:Gem::Version
45
- version: 2.1.0
40
+ version: 2.1.1
46
41
  - !ruby/object:Gem::Dependency
47
- type: :runtime
48
42
  name: dryml
49
- prerelease: false
50
43
  requirement: !ruby/object:Gem::Requirement
51
- none: false
52
44
  requirements:
53
45
  - - '='
54
46
  - !ruby/object:Gem::Version
55
- version: 2.1.0
47
+ version: 2.1.1
48
+ type: :runtime
49
+ prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - '='
60
53
  - !ruby/object:Gem::Version
61
- version: 2.1.0
54
+ version: 2.1.1
62
55
  - !ruby/object:Gem::Dependency
63
- type: :runtime
64
56
  name: hobo_will_paginate
65
- prerelease: false
66
57
  requirement: !ruby/object:Gem::Requirement
67
- none: false
68
58
  requirements:
69
- - - ! '>='
59
+ - - ">="
70
60
  - !ruby/object:Gem::Version
71
61
  version: '0'
62
+ type: :runtime
63
+ prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - ">="
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
- type: :development
80
70
  name: rubydoctest
81
- prerelease: false
82
71
  requirement: !ruby/object:Gem::Requirement
83
- none: false
84
72
  requirements:
85
- - - ! '>='
73
+ - - ">="
86
74
  - !ruby/object:Gem::Version
87
75
  version: 1.1.3
76
+ type: :development
77
+ prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: 1.1.3
94
83
  - !ruby/object:Gem::Dependency
95
- type: :development
96
84
  name: shoulda
97
- prerelease: false
98
85
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
86
  requirements:
101
- - - ! '>='
87
+ - - ">="
102
88
  - !ruby/object:Gem::Version
103
89
  version: '0'
90
+ type: :development
91
+ prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
- type: :development
112
98
  name: irt
113
- prerelease: false
114
99
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
100
  requirements:
117
101
  - - '='
118
102
  - !ruby/object:Gem::Version
119
103
  version: 1.2.11
104
+ type: :development
105
+ prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - '='
124
109
  - !ruby/object:Gem::Version
125
110
  version: 1.2.11
126
111
  - !ruby/object:Gem::Dependency
127
- type: :development
128
112
  name: mocha
129
- prerelease: false
130
113
  requirement: !ruby/object:Gem::Requirement
131
- none: false
132
114
  requirements:
133
- - - ! '>='
115
+ - - ">="
134
116
  - !ruby/object:Gem::Version
135
117
  version: '0'
118
+ type: :development
119
+ prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - ">="
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
- type: :development
144
126
  name: yard
145
- prerelease: false
146
127
  requirement: !ruby/object:Gem::Requirement
147
- none: false
148
128
  requirements:
149
- - - ! '>='
129
+ - - ">="
150
130
  - !ruby/object:Gem::Version
151
131
  version: '0'
132
+ type: :development
133
+ prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - ">="
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  description: The web app builder for Rails
@@ -366,28 +347,27 @@ files:
366
347
  - test/permissions/test_permissions.rb
367
348
  homepage: http://hobocentral.net
368
349
  licenses: []
350
+ metadata: {}
369
351
  post_install_message:
370
352
  rdoc_options:
371
- - --charset=UTF-8
353
+ - "--charset=UTF-8"
372
354
  require_paths:
373
355
  - lib
374
356
  required_ruby_version: !ruby/object:Gem::Requirement
375
- none: false
376
357
  requirements:
377
- - - ! '>='
358
+ - - ">="
378
359
  - !ruby/object:Gem::Version
379
360
  version: '0'
380
361
  required_rubygems_version: !ruby/object:Gem::Requirement
381
- none: false
382
362
  requirements:
383
- - - ! '>='
363
+ - - ">="
384
364
  - !ruby/object:Gem::Version
385
365
  version: 1.3.6
386
366
  requirements: []
387
367
  rubyforge_project: hobo
388
- rubygems_version: 1.8.25
368
+ rubygems_version: 2.2.2
389
369
  signing_key:
390
- specification_version: 3
370
+ specification_version: 4
391
371
  summary: The web app builder for Rails
392
372
  test_files: []
393
373
  has_rdoc: