admin_assistant 2.2.8 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,28 +1,9 @@
1
- require 'grancher/task'
2
1
  require 'rake'
3
2
  require 'rake/testtask'
4
- require 'rake/rdoctask'
5
3
 
6
4
  desc 'Default: run all tests across all supported Rails gem versions.'
7
5
  task :default => :test
8
6
 
9
- # run with rake publish
10
- Grancher::Task.new do |g|
11
- g.branch = 'gh-pages'
12
- g.push_to = 'origin' # automatically push too
13
-
14
- g.directory 'website'
15
- end
16
-
17
- desc 'Generate documentation for the admin_assistant plugin.'
18
- Rake::RDocTask.new(:rdoc) do |rdoc|
19
- rdoc.rdoc_dir = 'rdoc'
20
- rdoc.title = 'AdminAssistant'
21
- rdoc.options << '--line-numbers' << '--inline-source'
22
- rdoc.rdoc_files.include('README')
23
- rdoc.rdoc_files.include('lib/**/*.rb')
24
- end
25
-
26
7
  desc 'Run all tests across all supported Rails gem versions.'
27
8
  task :test do
28
9
  ENV['CMD'] = 'rake'
@@ -34,13 +15,13 @@ task :run_everywhere do
34
15
  core_cmd = ENV['CMD']
35
16
  cmds = []
36
17
  base = Dir.pwd
37
- version_dirs = %w(rails_3_0 rails_3_1)
18
+ version_dirs = %w(rails_3_1)
38
19
  version_dirs.each do |dir|
39
20
  path = File.join(base, dir)
40
21
  cmds << "cd #{path} && bundle exec #{core_cmd}"
41
22
  end
42
23
  # alternate config tests
43
- path = File.join(base, 'rails_3_0')
24
+ path = File.join(base, 'rails_3_1')
44
25
  cmds << "cd #{path} && AA_CONFIG=2 bundle exec #{core_cmd}"
45
26
  cmds.each do |cmd|
46
27
  puts cmd
@@ -67,7 +48,6 @@ begin
67
48
  gem.authors = ["Francis Hwang"]
68
49
  gem.add_dependency "will_paginate", "~> 3.0"
69
50
  gem.add_dependency "dynamic_form"
70
- gem.files.exclude "rails_3_0/**/*"
71
51
  gem.files.exclude "rails_3_1/**/*"
72
52
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
73
53
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.8
1
+ 2.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "admin_assistant"
8
- s.version = "2.2.8"
8
+ s.version = "2.3.0"
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 = "2012-02-21"
12
+ s.date = "2013-04-07"
13
13
  s.description = "admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces."
14
14
  s.email = "sera@fhwang.net"
15
15
  s.extra_rdoc_files = [
@@ -34,7 +34,6 @@ Gem::Specification.new do |s|
34
34
  "lib/admin_assistant/has_many_column.rb",
35
35
  "lib/admin_assistant/helper.rb",
36
36
  "lib/admin_assistant/index.rb",
37
- "lib/admin_assistant/init.rb",
38
37
  "lib/admin_assistant/model.rb",
39
38
  "lib/admin_assistant/paperclip_column.rb",
40
39
  "lib/admin_assistant/polymorphic_belongs_to_column.rb",
@@ -57,9 +56,6 @@ Gem::Specification.new do |s|
57
56
  "lib/views/index.html.erb",
58
57
  "lib/views/multi_form.html.erb",
59
58
  "lib/views/show.html.erb",
60
- "rails_3_0/lib/tasks/.gitkeep",
61
- "rails_3_0/public/stylesheets/.gitkeep",
62
- "rails_3_0/vendor/plugins/.gitkeep",
63
59
  "rails_3_1/app/mailers/.gitkeep",
64
60
  "rails_3_1/lib/assets/.gitkeep",
65
61
  "rails_3_1/lib/tasks/.gitkeep",
@@ -80,8 +76,8 @@ Gem::Specification.new do |s|
80
76
  "vendor/assets/images/sort-desc.png",
81
77
  "vendor/assets/javascripts/admin_assistant.js",
82
78
  "vendor/assets/javascripts/jquery.tokeninput.js",
83
- "vendor/assets/stylesheets/admin_assistant.css",
84
- "vendor/assets/stylesheets/admin_assistant_activescaffold.css",
79
+ "vendor/assets/stylesheets/admin_assistant.css.erb",
80
+ "vendor/assets/stylesheets/admin_assistant_activescaffold.css.erb",
85
81
  "vendor/assets/stylesheets/token-input.css",
86
82
  "website/_layouts/api.html",
87
83
  "website/_layouts/api1.html",
@@ -155,7 +151,7 @@ Gem::Specification.new do |s|
155
151
  ]
156
152
  s.homepage = "http://github.com/fhwang/admin_assistant"
157
153
  s.require_paths = ["lib"]
158
- s.rubygems_version = "1.8.10"
154
+ s.rubygems_version = "1.8.25"
159
155
  s.summary = "admin_assistant is a Rails plugin that automates a lot of features typically needed in admin interfaces."
160
156
 
161
157
  if s.respond_to? :specification_version then
@@ -6,7 +6,7 @@ require 'find'
6
6
  files = %w(
7
7
  column virtual_column active_record_column association_target
8
8
  belongs_to_column builder default_search_column form_view has_many_column
9
- helper index init model paperclip_column polymorphic_belongs_to_column
9
+ helper index model paperclip_column polymorphic_belongs_to_column
10
10
  request/base request/autocomplete request/create request/destroy request/edit
11
11
  request/index request/new request/show request/update route search show_view
12
12
  )
@@ -232,9 +232,6 @@ class AdminAssistant
232
232
  end
233
233
 
234
234
  class Engine < ::Rails::Engine
235
- initializer "admin_assistant.init" do
236
- AdminAssistant.init
237
- end
238
235
  end
239
236
  end
240
237
 
@@ -1,7 +1,3 @@
1
- /******************************************************************************
2
- Don't edit this file: It gets re-copied every time the server starts.
3
- ******************************************************************************/
4
-
5
1
  var AdminAssistant = {};
6
2
 
7
3
  $(document).ready(function() {
@@ -34,7 +30,7 @@ $(document).ready(function() {
34
30
  return false;
35
31
  });
36
32
 
37
- $('.index a.toggle').live('click', function(event) {
33
+ $('.index a.toggle').on('click', function(event) {
38
34
  url = $(event.target).attr('href');
39
35
  container = '#' + $(event.target).parent().attr('id');
40
36
  $.post(
@@ -1,7 +1,3 @@
1
- /******************************************************************************
2
- Don't edit this file: It gets re-copied every time the server starts.
3
- ******************************************************************************/
4
-
5
1
  .admin_assistant { font-family: "Verdana","Arial", sans-serif }
6
2
  .admin_assistant h2 { font-size: large; font-weight: bold }
7
3
  .admin_assistant .actions {
@@ -21,10 +17,10 @@ Don't edit this file: It gets re-copied every time the server starts.
21
17
  color: white
22
18
  }
23
19
  .admin_assistant.index th.sort.asc {
24
- background: #000 url(../../images/admin_assistant/sort-asc.png) no-repeat right
20
+ background: #000 url(<%= asset_data_uri 'sort-asc.png' %>) no-repeat right
25
21
  }
26
22
  .admin_assistant.index th.sort.desc {
27
- background: #000 url(../../images/admin_assistant/sort-desc.png) no-repeat right
23
+ background: #000 url(<%= asset_data_uri 'sort-desc.png' %>) no-repeat right
28
24
  }
29
25
  .admin_assistant.index td {
30
26
  background: white;
@@ -1,7 +1,3 @@
1
- /******************************************************************************
2
- Don't edit this file: It gets re-copied every time the server starts.
3
- ******************************************************************************/
4
-
5
1
  .admin_assistant {
6
2
  font-family: "Arial", sans-serif;
7
3
  margin: 9px 0
@@ -53,10 +49,10 @@ Don't edit this file: It gets re-copied every time the server starts.
53
49
  text-decoration: none;
54
50
  }
55
51
  .admin_assistant.index th.sort.asc {
56
- background: #333 url(../../images/admin_assistant/sort-asc.png) no-repeat right
52
+ background: #333 url(<%= asset_data_uri 'sort-asc.png' %>) no-repeat right
57
53
  }
58
54
  .admin_assistant.index th.sort.desc {
59
- background: #333 url(../../images/admin_assistant/sort-desc.png) no-repeat right
55
+ background: #333 url(<%= asset_data_uri 'sort-desc.png' %>) no-repeat right
60
56
  }
61
57
  .admin_assistant.index td {
62
58
  background: #E6F2FF;
@@ -221,4 +217,4 @@ ul.aa_filter li {
221
217
  float: left;
222
218
  margin: 0 10px 10px 0;
223
219
  font-weight: bold;
224
- }
220
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin_assistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.8
4
+ version: 2.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-21 00:00:00.000000000Z
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: will_paginate
16
- requirement: &70284619663540 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70284619663540
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: dynamic_form
27
- requirement: &70284619662520 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70284619662520
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: admin_assistant is a Rails plugin that automates a lot of features typically
37
47
  needed in admin interfaces.
38
48
  email: sera@fhwang.net
@@ -59,7 +69,6 @@ files:
59
69
  - lib/admin_assistant/has_many_column.rb
60
70
  - lib/admin_assistant/helper.rb
61
71
  - lib/admin_assistant/index.rb
62
- - lib/admin_assistant/init.rb
63
72
  - lib/admin_assistant/model.rb
64
73
  - lib/admin_assistant/paperclip_column.rb
65
74
  - lib/admin_assistant/polymorphic_belongs_to_column.rb
@@ -82,9 +91,6 @@ files:
82
91
  - lib/views/index.html.erb
83
92
  - lib/views/multi_form.html.erb
84
93
  - lib/views/show.html.erb
85
- - rails_3_0/lib/tasks/.gitkeep
86
- - rails_3_0/public/stylesheets/.gitkeep
87
- - rails_3_0/vendor/plugins/.gitkeep
88
94
  - rails_3_1/app/mailers/.gitkeep
89
95
  - rails_3_1/lib/assets/.gitkeep
90
96
  - rails_3_1/lib/tasks/.gitkeep
@@ -105,8 +111,8 @@ files:
105
111
  - vendor/assets/images/sort-desc.png
106
112
  - vendor/assets/javascripts/admin_assistant.js
107
113
  - vendor/assets/javascripts/jquery.tokeninput.js
108
- - vendor/assets/stylesheets/admin_assistant.css
109
- - vendor/assets/stylesheets/admin_assistant_activescaffold.css
114
+ - vendor/assets/stylesheets/admin_assistant.css.erb
115
+ - vendor/assets/stylesheets/admin_assistant_activescaffold.css.erb
110
116
  - vendor/assets/stylesheets/token-input.css
111
117
  - website/_layouts/api.html
112
118
  - website/_layouts/api1.html
@@ -197,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
203
  version: '0'
198
204
  requirements: []
199
205
  rubyforge_project:
200
- rubygems_version: 1.8.10
206
+ rubygems_version: 1.8.25
201
207
  signing_key:
202
208
  specification_version: 3
203
209
  summary: admin_assistant is a Rails plugin that automates a lot of features typically
@@ -1,20 +0,0 @@
1
- require 'fileutils'
2
- require 'pathname'
3
-
4
- class AdminAssistant
5
- def self.init
6
- gem_root = File.dirname(__FILE__) + "/../.."
7
- copy_into_public = %w(images)
8
- unless app_uses_sprockets?
9
- copy_into_public.concat(%w(stylesheets javascripts))
10
- end
11
- copy_into_public.each do |asset_type|
12
- asset_dir = "#{Rails.root}/public/#{asset_type}/admin_assistant"
13
- FileUtils.mkdir_p(asset_dir) unless File.exist?(asset_dir)
14
- FileUtils.cp_r(
15
- Dir.glob("#{gem_root}/vendor/assets/#{asset_type}/*"), asset_dir
16
- )
17
- end
18
- end
19
- end
20
-
File without changes
File without changes
File without changes