acts_as_node 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/acts_as_node/acts_as_node.rb +1 -1
- metadata +76 -98
@@ -25,7 +25,7 @@ module Acts
|
|
25
25
|
def compatible_default_scope(scope_str)
|
26
26
|
if Rails.version >= "3.1.0"
|
27
27
|
if public_methods.include?(:default_scope)
|
28
|
-
original_method_name = "_#{rand.object_id}_#{self.name.underscore.gsub('/', '__')}_default_scope"
|
28
|
+
original_method_name = "_#{rand.object_id.abs}_#{self.name.underscore.gsub('/', '__')}_default_scope"
|
29
29
|
class_eval <<-SCOPE
|
30
30
|
class << self
|
31
31
|
alias :#{original_method_name} :default_scope
|
metadata
CHANGED
@@ -1,162 +1,140 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_node
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 0.0.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jinzhu
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
type: :runtime
|
12
|
+
date: 2011-11-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
23
15
|
name: rails
|
24
|
-
|
16
|
+
requirement: &16485260 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 1
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 1
|
33
|
-
- 1
|
20
|
+
- !ruby/object:Gem::Version
|
34
21
|
version: 3.1.1
|
22
|
+
type: :runtime
|
35
23
|
prerelease: false
|
36
|
-
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
type: :development
|
24
|
+
version_requirements: *16485260
|
25
|
+
- !ruby/object:Gem::Dependency
|
39
26
|
name: sqlite3
|
40
|
-
|
27
|
+
requirement: &17301920 !ruby/object:Gem::Requirement
|
41
28
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
- 0
|
48
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
49
34
|
prerelease: false
|
50
|
-
|
35
|
+
version_requirements: *17301920
|
51
36
|
description: ActsAsNode
|
52
|
-
email:
|
37
|
+
email:
|
53
38
|
- wosmvp@gmail.com
|
54
39
|
executables: []
|
55
|
-
|
56
40
|
extensions: []
|
57
|
-
|
58
41
|
extra_rdoc_files: []
|
59
|
-
|
60
|
-
files:
|
42
|
+
files:
|
61
43
|
- app/models/node.rb
|
62
44
|
- db/migrate/20111013091357_create_nodes.rb
|
63
45
|
- lib/acts_as_node.rb
|
64
|
-
- lib/tasks/acts_as_node_tasks.rake
|
65
46
|
- lib/acts_as_node/acts_as_node.rb
|
66
47
|
- lib/acts_as_node/version.rb
|
48
|
+
- lib/tasks/acts_as_node_tasks.rake
|
67
49
|
- MIT-LICENSE
|
68
50
|
- Rakefile
|
69
51
|
- README.rdoc
|
70
|
-
- test/acts_as_node_test.rb
|
71
52
|
- test/test_helper.rb
|
72
|
-
- test/
|
73
|
-
- test/dummy/
|
74
|
-
- test/dummy/
|
75
|
-
- test/dummy/
|
76
|
-
- test/dummy/
|
53
|
+
- test/acts_as_node_test.rb
|
54
|
+
- test/dummy/Rakefile
|
55
|
+
- test/dummy/script/rails
|
56
|
+
- test/dummy/config/routes.rb
|
57
|
+
- test/dummy/config/environments/test.rb
|
58
|
+
- test/dummy/config/environments/production.rb
|
59
|
+
- test/dummy/config/environments/development.rb
|
60
|
+
- test/dummy/config/application.rb
|
77
61
|
- test/dummy/config/boot.rb
|
62
|
+
- test/dummy/config/locales/en.yml
|
78
63
|
- test/dummy/config/environment.rb
|
79
64
|
- test/dummy/config/initializers/secret_token.rb
|
80
|
-
- test/dummy/config/initializers/
|
65
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
81
66
|
- test/dummy/config/initializers/mime_types.rb
|
82
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
83
67
|
- test/dummy/config/initializers/inflections.rb
|
84
|
-
- test/dummy/config/initializers/
|
85
|
-
- test/dummy/config/
|
86
|
-
- test/dummy/config/routes.rb
|
87
|
-
- test/dummy/config/application.rb
|
68
|
+
- test/dummy/config/initializers/session_store.rb
|
69
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
88
70
|
- test/dummy/config/database.yml
|
89
|
-
- test/dummy/
|
90
|
-
- test/dummy/
|
91
|
-
- test/dummy/
|
71
|
+
- test/dummy/app/assets/stylesheets/application.css
|
72
|
+
- test/dummy/app/assets/javascripts/application.js
|
73
|
+
- test/dummy/app/controllers/application_controller.rb
|
74
|
+
- test/dummy/app/views/layouts/application.html.erb
|
75
|
+
- test/dummy/app/helpers/application_helper.rb
|
76
|
+
- test/dummy/config.ru
|
92
77
|
- test/dummy/public/500.html
|
93
78
|
- test/dummy/public/404.html
|
94
79
|
- test/dummy/public/422.html
|
95
80
|
- test/dummy/public/favicon.ico
|
96
|
-
- test/dummy/config.ru
|
97
|
-
- test/dummy/script/rails
|
98
|
-
- test/dummy/Rakefile
|
99
|
-
has_rdoc: true
|
100
81
|
homepage: https://github.com/jinzhu/acts_as_node
|
101
82
|
licenses: []
|
102
|
-
|
103
83
|
post_install_message:
|
104
84
|
rdoc_options: []
|
105
|
-
|
106
|
-
require_paths:
|
85
|
+
require_paths:
|
107
86
|
- lib
|
108
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
109
88
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
|
114
|
-
segments:
|
89
|
+
requirements:
|
90
|
+
- - ! '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
segments:
|
115
94
|
- 0
|
116
|
-
|
117
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
hash: -1216144250565101541
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
97
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
|
123
|
-
segments:
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
segments:
|
124
103
|
- 0
|
125
|
-
|
104
|
+
hash: -1216144250565101541
|
126
105
|
requirements: []
|
127
|
-
|
128
106
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.
|
107
|
+
rubygems_version: 1.8.10
|
130
108
|
signing_key:
|
131
109
|
specification_version: 3
|
132
110
|
summary: ActsAsNode
|
133
|
-
test_files:
|
134
|
-
- test/acts_as_node_test.rb
|
111
|
+
test_files:
|
135
112
|
- test/test_helper.rb
|
136
|
-
- test/
|
137
|
-
- test/dummy/
|
138
|
-
- test/dummy/
|
139
|
-
- test/dummy/
|
140
|
-
- test/dummy/
|
113
|
+
- test/acts_as_node_test.rb
|
114
|
+
- test/dummy/Rakefile
|
115
|
+
- test/dummy/script/rails
|
116
|
+
- test/dummy/config/routes.rb
|
117
|
+
- test/dummy/config/environments/test.rb
|
118
|
+
- test/dummy/config/environments/production.rb
|
119
|
+
- test/dummy/config/environments/development.rb
|
120
|
+
- test/dummy/config/application.rb
|
141
121
|
- test/dummy/config/boot.rb
|
122
|
+
- test/dummy/config/locales/en.yml
|
142
123
|
- test/dummy/config/environment.rb
|
143
124
|
- test/dummy/config/initializers/secret_token.rb
|
144
|
-
- test/dummy/config/initializers/
|
125
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
145
126
|
- test/dummy/config/initializers/mime_types.rb
|
146
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
147
127
|
- test/dummy/config/initializers/inflections.rb
|
148
|
-
- test/dummy/config/initializers/
|
149
|
-
- test/dummy/config/
|
150
|
-
- test/dummy/config/routes.rb
|
151
|
-
- test/dummy/config/application.rb
|
128
|
+
- test/dummy/config/initializers/session_store.rb
|
129
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
152
130
|
- test/dummy/config/database.yml
|
153
|
-
- test/dummy/
|
154
|
-
- test/dummy/
|
155
|
-
- test/dummy/
|
131
|
+
- test/dummy/app/assets/stylesheets/application.css
|
132
|
+
- test/dummy/app/assets/javascripts/application.js
|
133
|
+
- test/dummy/app/controllers/application_controller.rb
|
134
|
+
- test/dummy/app/views/layouts/application.html.erb
|
135
|
+
- test/dummy/app/helpers/application_helper.rb
|
136
|
+
- test/dummy/config.ru
|
156
137
|
- test/dummy/public/500.html
|
157
138
|
- test/dummy/public/404.html
|
158
139
|
- test/dummy/public/422.html
|
159
140
|
- test/dummy/public/favicon.ico
|
160
|
-
- test/dummy/config.ru
|
161
|
-
- test/dummy/script/rails
|
162
|
-
- test/dummy/Rakefile
|