activeadmin-settings 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -2
- data/activeadmin-settings.gemspec +12 -8
- data/lib/activeadmin-settings.rb +4 -1
- data/lib/activeadmin-settings/routing.rb +13 -0
- data/lib/activeadmin-settings/version.rb +1 -1
- data/lib/generators/activeadmin_settings/install_generator.rb +1 -1
- data/vendor/assets/stylesheets/activeadmin_settings.css.scss +2 -1
- metadata +9 -25
- data/config/routes.rb +0 -7
data/README.md
CHANGED
@@ -2,24 +2,28 @@
|
|
2
2
|
require File.expand_path('../lib/activeadmin-settings/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
+
gem.name = "activeadmin-settings"
|
6
|
+
gem.version = ActiveadminSettings::VERSION
|
5
7
|
gem.authors = ["Alex Kravets"]
|
6
8
|
gem.email = ["santyor@gmail.com"]
|
9
|
+
gem.homepage = "https://github.com/alexkravets/activeadmin-settings"
|
7
10
|
gem.description = "Easy to use general purpose settings backend for activeadmin"
|
8
11
|
gem.summary = ""
|
9
|
-
gem.homepage = "https://github.com/alexkravets/activeadmin-settings"
|
10
12
|
|
13
|
+
gem.require_paths = ["lib"]
|
11
14
|
gem.files = `git ls-files`.split($\)
|
12
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
-
gem.name = "activeadmin-settings"
|
15
|
-
gem.require_paths = ["lib"]
|
16
|
-
gem.version = ActiveadminSettings::VERSION
|
17
17
|
|
18
|
-
|
18
|
+
# WARNING: These could be mongoid version specific gems
|
19
19
|
gem.add_runtime_dependency "carrierwave-mongoid"
|
20
|
-
gem.add_runtime_dependency "mini_magick"
|
21
20
|
gem.add_runtime_dependency "mongoid_globalize"
|
22
|
-
|
21
|
+
|
22
|
+
# Latest version of select2-rails seems to be not working for some reason
|
23
|
+
gem.add_runtime_dependency "select2-rails"
|
24
|
+
|
25
|
+
# Images uploading via redactor support
|
26
|
+
gem.add_runtime_dependency "mini_magick"
|
23
27
|
gem.add_runtime_dependency "aws-s3"
|
24
|
-
gem.add_runtime_dependency "
|
28
|
+
gem.add_runtime_dependency "fog"
|
25
29
|
end
|
data/lib/activeadmin-settings.rb
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
require "activeadmin-settings/version"
|
2
2
|
|
3
|
+
# WARNING: mongoid version dependent libraries
|
4
|
+
require "mongoid_globalize"
|
3
5
|
require "carrierwave/mongoid"
|
6
|
+
|
4
7
|
require "mini_magick"
|
5
8
|
require "select2-rails"
|
6
|
-
require "mongoid_globalize"
|
7
9
|
|
8
10
|
module ActiveadminSettings
|
9
11
|
require 'activeadmin-settings/engine'
|
10
12
|
require 'activeadmin-settings/helper'
|
13
|
+
require 'activeadmin-settings/routing'
|
11
14
|
|
12
15
|
IMAGE_TYPES = [ 'image/jpeg',
|
13
16
|
'image/png',
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module ActionDispatch::Routing
|
2
|
+
class Mapper
|
3
|
+
def mount_activeadmin_settings
|
4
|
+
scope '/admin', :module => "ActiveadminSettings" do
|
5
|
+
scope "redactor" do
|
6
|
+
resources :pictures, :only => [:index, :create]
|
7
|
+
end
|
8
|
+
resources :settings, :only => [:update]
|
9
|
+
resources :admin_users, :only => [:create, :update, :destroy]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: select2-rails
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
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
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: carrierwave-mongoid
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,7 +28,7 @@ dependencies:
|
|
44
28
|
- !ruby/object:Gem::Version
|
45
29
|
version: '0'
|
46
30
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
31
|
+
name: mongoid_globalize
|
48
32
|
requirement: !ruby/object:Gem::Requirement
|
49
33
|
none: false
|
50
34
|
requirements:
|
@@ -60,7 +44,7 @@ dependencies:
|
|
60
44
|
- !ruby/object:Gem::Version
|
61
45
|
version: '0'
|
62
46
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
47
|
+
name: select2-rails
|
64
48
|
requirement: !ruby/object:Gem::Requirement
|
65
49
|
none: false
|
66
50
|
requirements:
|
@@ -76,7 +60,7 @@ dependencies:
|
|
76
60
|
- !ruby/object:Gem::Version
|
77
61
|
version: '0'
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
63
|
+
name: mini_magick
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|
81
65
|
none: false
|
82
66
|
requirements:
|
@@ -108,7 +92,7 @@ dependencies:
|
|
108
92
|
- !ruby/object:Gem::Version
|
109
93
|
version: '0'
|
110
94
|
- !ruby/object:Gem::Dependency
|
111
|
-
name:
|
95
|
+
name: fog
|
112
96
|
requirement: !ruby/object:Gem::Requirement
|
113
97
|
none: false
|
114
98
|
requirements:
|
@@ -148,12 +132,12 @@ files:
|
|
148
132
|
- app/views/admin/settings/_admins_table.html.erb
|
149
133
|
- app/views/admin/settings/_index.html.erb
|
150
134
|
- app/views/admin/settings/_settings_table.html.erb
|
151
|
-
- config/routes.rb
|
152
135
|
- img/activeadmin-settings-demo.jpg
|
153
136
|
- lib/activeadmin-settings.rb
|
154
137
|
- lib/activeadmin-settings/.DS_Store
|
155
138
|
- lib/activeadmin-settings/engine.rb
|
156
139
|
- lib/activeadmin-settings/helper.rb
|
140
|
+
- lib/activeadmin-settings/routing.rb
|
157
141
|
- lib/activeadmin-settings/version.rb
|
158
142
|
- lib/generators/activeadmin_settings/install_generator.rb
|
159
143
|
- lib/generators/activeadmin_settings/templates/admin/settings.rb
|
@@ -183,7 +167,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
167
|
version: '0'
|
184
168
|
segments:
|
185
169
|
- 0
|
186
|
-
hash:
|
170
|
+
hash: -2343163755410571917
|
187
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
172
|
none: false
|
189
173
|
requirements:
|
@@ -192,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
176
|
version: '0'
|
193
177
|
segments:
|
194
178
|
- 0
|
195
|
-
hash:
|
179
|
+
hash: -2343163755410571917
|
196
180
|
requirements: []
|
197
181
|
rubyforge_project:
|
198
182
|
rubygems_version: 1.8.24
|