admin_assistant 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
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.2
1
+ 1.0.4
@@ -1,147 +1,144 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
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 = %q{admin_assistant}
8
- s.version = "1.0.2"
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 = %q{2010-11-06}
13
- s.description = %q{admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces.}
14
- s.email = %q{sera@fhwang.net}
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
- ".gitignore",
20
- "MIT-LICENSE",
21
- "README",
22
- "Rakefile",
23
- "VERSION",
24
- "admin_assistant.gemspec",
25
- "doc/img/blog_posts-index.png",
26
- "init.rb",
27
- "install.rb",
28
- "lib/admin_assistant.rb",
29
- "lib/admin_assistant/active_record_column.rb",
30
- "lib/admin_assistant/association_target.rb",
31
- "lib/admin_assistant/belongs_to_column.rb",
32
- "lib/admin_assistant/builder.rb",
33
- "lib/admin_assistant/column.rb",
34
- "lib/admin_assistant/date_time_range_end_point_selector.rb",
35
- "lib/admin_assistant/default_search_column.rb",
36
- "lib/admin_assistant/file_column_column.rb",
37
- "lib/admin_assistant/form_view.rb",
38
- "lib/admin_assistant/has_many_column.rb",
39
- "lib/admin_assistant/helper.rb",
40
- "lib/admin_assistant/index.rb",
41
- "lib/admin_assistant/paperclip_column.rb",
42
- "lib/admin_assistant/polymorphic_belongs_to_column.rb",
43
- "lib/admin_assistant/request/autocomplete.rb",
44
- "lib/admin_assistant/request/base.rb",
45
- "lib/admin_assistant/request/create.rb",
46
- "lib/admin_assistant/request/destroy.rb",
47
- "lib/admin_assistant/request/edit.rb",
48
- "lib/admin_assistant/request/index.rb",
49
- "lib/admin_assistant/request/new.rb",
50
- "lib/admin_assistant/request/show.rb",
51
- "lib/admin_assistant/request/update.rb",
52
- "lib/admin_assistant/search.rb",
53
- "lib/admin_assistant/show_view.rb",
54
- "lib/admin_assistant/virtual_column.rb",
55
- "lib/images/sort-asc.png",
56
- "lib/images/sort-desc.png",
57
- "lib/javascripts/admin_assistant.js",
58
- "lib/stylesheets/activescaffold.css",
59
- "lib/stylesheets/default.css",
60
- "lib/views/_polymorphic_field_search.html.erb",
61
- "lib/views/_restricted_autocompleter.html.erb",
62
- "lib/views/autocomplete.html.erb",
63
- "lib/views/form.html.erb",
64
- "lib/views/index.html.erb",
65
- "lib/views/multi_form.html.erb",
66
- "lib/views/show.html.erb",
67
- "tasks/admin_assistant_tasks.rake",
68
- "uninstall.rb",
69
- "vendor/ar_query/MIT-LICENSE",
70
- "vendor/ar_query/README",
71
- "vendor/ar_query/ar_query.gemspec",
72
- "vendor/ar_query/init.rb",
73
- "vendor/ar_query/install.rb",
74
- "vendor/ar_query/lib/ar_query.rb",
75
- "vendor/ar_query/spec/ar_query_spec.rb",
76
- "vendor/ar_query/tasks/ar_query_tasks.rake",
77
- "vendor/ar_query/uninstall.rb",
78
- "website/_layouts/api.html",
79
- "website/_layouts/default.html",
80
- "website/api/core.markdown",
81
- "website/api/destroy.markdown",
82
- "website/api/form.markdown",
83
- "website/api/idx.markdown",
84
- "website/api/index.markdown",
85
- "website/api/search.markdown",
86
- "website/api/show.markdown",
87
- "website/community.markdown",
88
- "website/css/lightbox.css",
89
- "website/css/main.css",
90
- "website/design_principles.markdown",
91
- "website/getting_started.markdown",
92
- "website/img/blog_posts-index.png",
93
- "website/img/blog_posts-search.png",
94
- "website/img/lightbox/bullet.gif",
95
- "website/img/lightbox/close.gif",
96
- "website/img/lightbox/closelabel.gif",
97
- "website/img/lightbox/donate-button.gif",
98
- "website/img/lightbox/download-icon.gif",
99
- "website/img/lightbox/image-1.jpg",
100
- "website/img/lightbox/loading.gif",
101
- "website/img/lightbox/nextlabel.gif",
102
- "website/img/lightbox/prevlabel.gif",
103
- "website/img/lightbox/thumb-1.jpg",
104
- "website/img/screen1-thumb.png",
105
- "website/img/screen1.png",
106
- "website/img/screen10-thumb.png",
107
- "website/img/screen10.png",
108
- "website/img/screen11-thumb.png",
109
- "website/img/screen11.png",
110
- "website/img/screen2-thumb.png",
111
- "website/img/screen2.png",
112
- "website/img/screen3-thumb.png",
113
- "website/img/screen3.png",
114
- "website/img/screen4-thumb.png",
115
- "website/img/screen4.png",
116
- "website/img/screen5-thumb.png",
117
- "website/img/screen5.png",
118
- "website/img/screen6-thumb.png",
119
- "website/img/screen6.png",
120
- "website/img/screen7-thumb.png",
121
- "website/img/screen7.png",
122
- "website/img/screen8-thumb.png",
123
- "website/img/screen8.png",
124
- "website/img/screen9-thumb.png",
125
- "website/img/screen9.png",
126
- "website/img/user-form.png",
127
- "website/index.markdown",
128
- "website/js/builder.js",
129
- "website/js/effects.js",
130
- "website/js/lightbox.js",
131
- "website/js/prototype.js",
132
- "website/js/scriptaculous.js",
133
- "website/quick_start.markdown",
134
- "website/screenshots.markdown",
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 = %q{http://github.com/fhwang/admin_assistant}
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 = %q{1.3.7}
141
- s.summary = %q{admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces.}
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
@@ -1,12 +1,16 @@
1
1
  $: << File.join(File.dirname(__FILE__), '../vendor/ar_query/lib')
2
- require 'find'
3
- require 'admin_assistant/column'
4
- Find.find(File.dirname(__FILE__)) do |path|
5
- if path =~ %r|\.rb$| && path !~ %r|admin_assistant\.rb$| &&
6
- path !~ %r|admin_assistant/column\.rb$|
7
- require path
8
- end
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
- hash: 19
5
- prerelease: false
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
- date: 2010-11-06 00:00:00 -04:00
19
- default_executable:
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
- prerelease: false
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
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- description: admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces.
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
- - --charset=UTF-8
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
- hash: 3
176
- segments:
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
- hash: 3
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.3.7
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 needed in admin interfaces.
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
- *~