admin_assistant 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -20
- data/VERSION +1 -1
- data/admin_assistant.gemspec +125 -128
- data/lib/admin_assistant.rb +11 -7
- metadata +39 -56
- data/.gitignore +0 -16
data/Rakefile
CHANGED
|
@@ -1,29 +1,10 @@
|
|
|
1
1
|
require 'grancher/task'
|
|
2
2
|
require 'rake'
|
|
3
3
|
require 'rake/testtask'
|
|
4
|
-
require 'rake/rdoctask'
|
|
5
|
-
require 'spec/rake/spectask'
|
|
6
4
|
|
|
7
5
|
desc 'Default: run all specs across all supported Rails gem versions.'
|
|
8
6
|
task :default => :spec
|
|
9
7
|
|
|
10
|
-
# run with rake publish
|
|
11
|
-
Grancher::Task.new do |g|
|
|
12
|
-
g.branch = 'gh-pages'
|
|
13
|
-
g.push_to = 'origin' # automatically push too
|
|
14
|
-
|
|
15
|
-
g.directory 'website'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
desc 'Generate documentation for the admin_assistant plugin.'
|
|
19
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
20
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
21
|
-
rdoc.title = 'AdminAssistant'
|
|
22
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
|
23
|
-
rdoc.rdoc_files.include('README')
|
|
24
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
25
|
-
end
|
|
26
|
-
|
|
27
8
|
desc 'Run all specs across all supported Rails gem versions.'
|
|
28
9
|
task :spec do
|
|
29
10
|
supported_versions = %w(2.1.0 2.1.2 2.2.2 2.3.2 2.3.3 2.3.4)
|
|
@@ -55,7 +36,7 @@ begin
|
|
|
55
36
|
gem.homepage = "http://github.com/fhwang/admin_assistant"
|
|
56
37
|
gem.authors = ["Francis Hwang"]
|
|
57
38
|
gem.add_dependency "will_paginate"
|
|
58
|
-
gem.files.exclude "test_rails_app"
|
|
39
|
+
gem.files.exclude "test_rails_app/**/*"
|
|
59
40
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
|
60
41
|
end
|
|
61
42
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.4
|
data/admin_assistant.gemspec
CHANGED
|
@@ -1,147 +1,144 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name =
|
|
8
|
-
s.version = "1.0.
|
|
7
|
+
s.name = "admin_assistant"
|
|
8
|
+
s.version = "1.0.4"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Francis Hwang"]
|
|
12
|
-
s.date =
|
|
13
|
-
s.description =
|
|
14
|
-
s.email =
|
|
12
|
+
s.date = "2013-02-07"
|
|
13
|
+
s.description = "admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces."
|
|
14
|
+
s.email = "sera@fhwang.net"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"README"
|
|
17
17
|
]
|
|
18
18
|
s.files = [
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
"website/tutorial.markdown"
|
|
19
|
+
"MIT-LICENSE",
|
|
20
|
+
"README",
|
|
21
|
+
"Rakefile",
|
|
22
|
+
"VERSION",
|
|
23
|
+
"admin_assistant.gemspec",
|
|
24
|
+
"doc/img/blog_posts-index.png",
|
|
25
|
+
"init.rb",
|
|
26
|
+
"install.rb",
|
|
27
|
+
"lib/admin_assistant.rb",
|
|
28
|
+
"lib/admin_assistant/active_record_column.rb",
|
|
29
|
+
"lib/admin_assistant/association_target.rb",
|
|
30
|
+
"lib/admin_assistant/belongs_to_column.rb",
|
|
31
|
+
"lib/admin_assistant/builder.rb",
|
|
32
|
+
"lib/admin_assistant/column.rb",
|
|
33
|
+
"lib/admin_assistant/date_time_range_end_point_selector.rb",
|
|
34
|
+
"lib/admin_assistant/default_search_column.rb",
|
|
35
|
+
"lib/admin_assistant/file_column_column.rb",
|
|
36
|
+
"lib/admin_assistant/form_view.rb",
|
|
37
|
+
"lib/admin_assistant/has_many_column.rb",
|
|
38
|
+
"lib/admin_assistant/helper.rb",
|
|
39
|
+
"lib/admin_assistant/index.rb",
|
|
40
|
+
"lib/admin_assistant/paperclip_column.rb",
|
|
41
|
+
"lib/admin_assistant/polymorphic_belongs_to_column.rb",
|
|
42
|
+
"lib/admin_assistant/request/autocomplete.rb",
|
|
43
|
+
"lib/admin_assistant/request/base.rb",
|
|
44
|
+
"lib/admin_assistant/request/create.rb",
|
|
45
|
+
"lib/admin_assistant/request/destroy.rb",
|
|
46
|
+
"lib/admin_assistant/request/edit.rb",
|
|
47
|
+
"lib/admin_assistant/request/index.rb",
|
|
48
|
+
"lib/admin_assistant/request/new.rb",
|
|
49
|
+
"lib/admin_assistant/request/show.rb",
|
|
50
|
+
"lib/admin_assistant/request/update.rb",
|
|
51
|
+
"lib/admin_assistant/search.rb",
|
|
52
|
+
"lib/admin_assistant/show_view.rb",
|
|
53
|
+
"lib/admin_assistant/virtual_column.rb",
|
|
54
|
+
"lib/images/sort-asc.png",
|
|
55
|
+
"lib/images/sort-desc.png",
|
|
56
|
+
"lib/javascripts/admin_assistant.js",
|
|
57
|
+
"lib/stylesheets/activescaffold.css",
|
|
58
|
+
"lib/stylesheets/default.css",
|
|
59
|
+
"lib/views/_polymorphic_field_search.html.erb",
|
|
60
|
+
"lib/views/_restricted_autocompleter.html.erb",
|
|
61
|
+
"lib/views/autocomplete.html.erb",
|
|
62
|
+
"lib/views/form.html.erb",
|
|
63
|
+
"lib/views/index.html.erb",
|
|
64
|
+
"lib/views/multi_form.html.erb",
|
|
65
|
+
"lib/views/show.html.erb",
|
|
66
|
+
"tasks/admin_assistant_tasks.rake",
|
|
67
|
+
"uninstall.rb",
|
|
68
|
+
"vendor/ar_query/MIT-LICENSE",
|
|
69
|
+
"vendor/ar_query/README",
|
|
70
|
+
"vendor/ar_query/ar_query.gemspec",
|
|
71
|
+
"vendor/ar_query/init.rb",
|
|
72
|
+
"vendor/ar_query/install.rb",
|
|
73
|
+
"vendor/ar_query/lib/ar_query.rb",
|
|
74
|
+
"vendor/ar_query/spec/ar_query_spec.rb",
|
|
75
|
+
"vendor/ar_query/tasks/ar_query_tasks.rake",
|
|
76
|
+
"vendor/ar_query/uninstall.rb",
|
|
77
|
+
"website/_layouts/api.html",
|
|
78
|
+
"website/_layouts/default.html",
|
|
79
|
+
"website/api/core.markdown",
|
|
80
|
+
"website/api/destroy.markdown",
|
|
81
|
+
"website/api/form.markdown",
|
|
82
|
+
"website/api/idx.markdown",
|
|
83
|
+
"website/api/index.markdown",
|
|
84
|
+
"website/api/search.markdown",
|
|
85
|
+
"website/api/show.markdown",
|
|
86
|
+
"website/community.markdown",
|
|
87
|
+
"website/css/lightbox.css",
|
|
88
|
+
"website/css/main.css",
|
|
89
|
+
"website/design_principles.markdown",
|
|
90
|
+
"website/getting_started.markdown",
|
|
91
|
+
"website/img/blog_posts-index.png",
|
|
92
|
+
"website/img/blog_posts-search.png",
|
|
93
|
+
"website/img/lightbox/bullet.gif",
|
|
94
|
+
"website/img/lightbox/close.gif",
|
|
95
|
+
"website/img/lightbox/closelabel.gif",
|
|
96
|
+
"website/img/lightbox/donate-button.gif",
|
|
97
|
+
"website/img/lightbox/download-icon.gif",
|
|
98
|
+
"website/img/lightbox/image-1.jpg",
|
|
99
|
+
"website/img/lightbox/loading.gif",
|
|
100
|
+
"website/img/lightbox/nextlabel.gif",
|
|
101
|
+
"website/img/lightbox/prevlabel.gif",
|
|
102
|
+
"website/img/lightbox/thumb-1.jpg",
|
|
103
|
+
"website/img/screen1-thumb.png",
|
|
104
|
+
"website/img/screen1.png",
|
|
105
|
+
"website/img/screen10-thumb.png",
|
|
106
|
+
"website/img/screen10.png",
|
|
107
|
+
"website/img/screen11-thumb.png",
|
|
108
|
+
"website/img/screen11.png",
|
|
109
|
+
"website/img/screen2-thumb.png",
|
|
110
|
+
"website/img/screen2.png",
|
|
111
|
+
"website/img/screen3-thumb.png",
|
|
112
|
+
"website/img/screen3.png",
|
|
113
|
+
"website/img/screen4-thumb.png",
|
|
114
|
+
"website/img/screen4.png",
|
|
115
|
+
"website/img/screen5-thumb.png",
|
|
116
|
+
"website/img/screen5.png",
|
|
117
|
+
"website/img/screen6-thumb.png",
|
|
118
|
+
"website/img/screen6.png",
|
|
119
|
+
"website/img/screen7-thumb.png",
|
|
120
|
+
"website/img/screen7.png",
|
|
121
|
+
"website/img/screen8-thumb.png",
|
|
122
|
+
"website/img/screen8.png",
|
|
123
|
+
"website/img/screen9-thumb.png",
|
|
124
|
+
"website/img/screen9.png",
|
|
125
|
+
"website/img/user-form.png",
|
|
126
|
+
"website/index.markdown",
|
|
127
|
+
"website/js/builder.js",
|
|
128
|
+
"website/js/effects.js",
|
|
129
|
+
"website/js/lightbox.js",
|
|
130
|
+
"website/js/prototype.js",
|
|
131
|
+
"website/js/scriptaculous.js",
|
|
132
|
+
"website/quick_start.markdown",
|
|
133
|
+
"website/screenshots.markdown",
|
|
134
|
+
"website/tutorial.markdown"
|
|
136
135
|
]
|
|
137
|
-
s.homepage =
|
|
138
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
|
136
|
+
s.homepage = "http://github.com/fhwang/admin_assistant"
|
|
139
137
|
s.require_paths = ["lib"]
|
|
140
|
-
s.rubygems_version =
|
|
141
|
-
s.summary =
|
|
138
|
+
s.rubygems_version = "1.8.25"
|
|
139
|
+
s.summary = "admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces."
|
|
142
140
|
|
|
143
141
|
if s.respond_to? :specification_version then
|
|
144
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
145
142
|
s.specification_version = 3
|
|
146
143
|
|
|
147
144
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/lib/admin_assistant.rb
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
$: << File.join(File.dirname(__FILE__), '../vendor/ar_query/lib')
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
files = %w(
|
|
3
|
+
column virtual_column active_record_column association_target
|
|
4
|
+
belongs_to_column builder date_time_range_end_point_selector
|
|
5
|
+
default_search_column file_column_column form_view has_many_column helper
|
|
6
|
+
index paperclip_column polymorphic_belongs_to_column request/base
|
|
7
|
+
request/autocomplete request/create request/destroy request/edit
|
|
8
|
+
request/index request/new request/show request/update search show_view
|
|
9
|
+
)
|
|
10
|
+
files.each do |file|
|
|
11
|
+
require "#{File.dirname(__FILE__)}/admin_assistant/#{file}"
|
|
9
12
|
end
|
|
13
|
+
|
|
10
14
|
require 'will_paginate'
|
|
11
15
|
|
|
12
16
|
class AdminAssistant
|
metadata
CHANGED
|
@@ -1,47 +1,40 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: admin_assistant
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 1
|
|
8
|
-
- 0
|
|
9
|
-
- 2
|
|
10
|
-
version: 1.0.2
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.4
|
|
5
|
+
prerelease:
|
|
11
6
|
platform: ruby
|
|
12
|
-
authors:
|
|
7
|
+
authors:
|
|
13
8
|
- Francis Hwang
|
|
14
9
|
autorequire:
|
|
15
10
|
bindir: bin
|
|
16
11
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
dependencies:
|
|
21
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
22
15
|
name: will_paginate
|
|
23
|
-
|
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
25
17
|
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- -
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
|
|
30
|
-
segments:
|
|
31
|
-
- 0
|
|
32
|
-
version: "0"
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0'
|
|
33
22
|
type: :runtime
|
|
34
|
-
|
|
35
|
-
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
26
|
+
requirements:
|
|
27
|
+
- - ! '>='
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
30
|
+
description: admin_assistant is a Rails plugin that automates a lot of features typically
|
|
31
|
+
needed in admin interfaces.
|
|
36
32
|
email: sera@fhwang.net
|
|
37
33
|
executables: []
|
|
38
|
-
|
|
39
34
|
extensions: []
|
|
40
|
-
|
|
41
|
-
extra_rdoc_files:
|
|
35
|
+
extra_rdoc_files:
|
|
42
36
|
- README
|
|
43
|
-
files:
|
|
44
|
-
- .gitignore
|
|
37
|
+
files:
|
|
45
38
|
- MIT-LICENSE
|
|
46
39
|
- README
|
|
47
40
|
- Rakefile
|
|
@@ -158,39 +151,29 @@ files:
|
|
|
158
151
|
- website/quick_start.markdown
|
|
159
152
|
- website/screenshots.markdown
|
|
160
153
|
- website/tutorial.markdown
|
|
161
|
-
has_rdoc: true
|
|
162
154
|
homepage: http://github.com/fhwang/admin_assistant
|
|
163
155
|
licenses: []
|
|
164
|
-
|
|
165
156
|
post_install_message:
|
|
166
|
-
rdoc_options:
|
|
167
|
-
|
|
168
|
-
require_paths:
|
|
157
|
+
rdoc_options: []
|
|
158
|
+
require_paths:
|
|
169
159
|
- lib
|
|
170
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
161
|
none: false
|
|
172
|
-
requirements:
|
|
173
|
-
- -
|
|
174
|
-
- !ruby/object:Gem::Version
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
- 0
|
|
178
|
-
version: "0"
|
|
179
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
|
+
requirements:
|
|
163
|
+
- - ! '>='
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: '0'
|
|
166
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
167
|
none: false
|
|
181
|
-
requirements:
|
|
182
|
-
- -
|
|
183
|
-
- !ruby/object:Gem::Version
|
|
184
|
-
|
|
185
|
-
segments:
|
|
186
|
-
- 0
|
|
187
|
-
version: "0"
|
|
168
|
+
requirements:
|
|
169
|
+
- - ! '>='
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: '0'
|
|
188
172
|
requirements: []
|
|
189
|
-
|
|
190
173
|
rubyforge_project:
|
|
191
|
-
rubygems_version: 1.
|
|
174
|
+
rubygems_version: 1.8.25
|
|
192
175
|
signing_key:
|
|
193
176
|
specification_version: 3
|
|
194
|
-
summary: admin_assistant is a Rails plugin that automates a lot of features typically
|
|
177
|
+
summary: admin_assistant is a Rails plugin that automates a lot of features typically
|
|
178
|
+
needed in admin interfaces.
|
|
195
179
|
test_files: []
|
|
196
|
-
|
data/.gitignore
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
pkg/*
|
|
2
|
-
test_rails_app/db/*.sqlite3
|
|
3
|
-
test_rails_app/log/*.log
|
|
4
|
-
test_rails_app/db/schema.rb
|
|
5
|
-
test_rails_app/public/images/*
|
|
6
|
-
test_rails_app/public/javascripts/admin_assistant.js
|
|
7
|
-
test_rails_app/public/stylesheets/admin_assistant*.css
|
|
8
|
-
test_rails_app/public/stylesheets/admin_assistant/*.css
|
|
9
|
-
test_rails_app/public/file_column_image/*
|
|
10
|
-
test_rails_app/public/product/*
|
|
11
|
-
test_rails_app/public/system/*
|
|
12
|
-
test_rails_app/public/user/*
|
|
13
|
-
test_rails_app/tmp/*
|
|
14
|
-
test_rails_app/webrat-*.html
|
|
15
|
-
website/_site
|
|
16
|
-
*~
|