activeadmin_custom_layout 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/Gemfile +16 -0
  4. data/Gemfile.lock +255 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +80 -0
  7. data/Rakefile +37 -0
  8. data/activeadmin_custom_layout.gemspec +35 -0
  9. data/app/assets/config/activeadmin_custom_layout_manifest.js +2 -0
  10. data/app/assets/images/activeadmin_custom_layout/.keep +0 -0
  11. data/app/assets/javascripts/activeadmin_custom_layout/application.js +13 -0
  12. data/app/assets/stylesheets/activeadmin_custom_layout/application.css +15 -0
  13. data/app/controllers/activeadmin_custom_layout/application_controller.rb +5 -0
  14. data/app/helpers/activeadmin_custom_layout/application_helper.rb +4 -0
  15. data/app/jobs/activeadmin_custom_layout/application_job.rb +4 -0
  16. data/app/mailers/activeadmin_custom_layout/application_mailer.rb +6 -0
  17. data/app/models/activeadmin_custom_layout/application_record.rb +5 -0
  18. data/app/views/layouts/activeadmin_custom_layout/application.html.erb +14 -0
  19. data/bin/.keep +0 -0
  20. data/config/routes.rb +2 -0
  21. data/lib/activeadmin_custom_layout.rb +7 -0
  22. data/lib/activeadmin_custom_layout/engine.rb +13 -0
  23. data/lib/activeadmin_custom_layout/helpers.rb +17 -0
  24. data/lib/activeadmin_custom_layout/layout/base.rb +89 -0
  25. data/lib/activeadmin_custom_layout/layout/header.rb +27 -0
  26. data/lib/activeadmin_custom_layout/layout/index.rb +43 -0
  27. data/lib/activeadmin_custom_layout/layout/title_bar.rb +35 -0
  28. data/lib/activeadmin_custom_layout/version.rb +3 -0
  29. data/lib/tasks/activeadmin_custom_layout_tasks.rake +4 -0
  30. data/test/activeadmin_custom_layout_test.rb +7 -0
  31. data/test/dummy/Rakefile +6 -0
  32. data/test/dummy/app/admin/admin_user.rb +28 -0
  33. data/test/dummy/app/admin/dashboard.rb +33 -0
  34. data/test/dummy/app/assets/config/manifest.js +5 -0
  35. data/test/dummy/app/assets/images/.keep +0 -0
  36. data/test/dummy/app/assets/javascripts/active_admin.js.coffee +1 -0
  37. data/test/dummy/app/assets/javascripts/application.js +13 -0
  38. data/test/dummy/app/assets/javascripts/cable.js +13 -0
  39. data/test/dummy/app/assets/javascripts/channels/.keep +0 -0
  40. data/test/dummy/app/assets/stylesheets/active_admin.scss +17 -0
  41. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  42. data/test/dummy/app/channels/application_cable/channel.rb +4 -0
  43. data/test/dummy/app/channels/application_cable/connection.rb +4 -0
  44. data/test/dummy/app/controllers/application_controller.rb +3 -0
  45. data/test/dummy/app/controllers/concerns/.keep +0 -0
  46. data/test/dummy/app/helpers/application_helper.rb +2 -0
  47. data/test/dummy/app/jobs/application_job.rb +2 -0
  48. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  49. data/test/dummy/app/models/admin_user.rb +6 -0
  50. data/test/dummy/app/models/application_record.rb +3 -0
  51. data/test/dummy/app/models/concerns/.keep +0 -0
  52. data/test/dummy/app/views/layouts/application.html.erb +38 -0
  53. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  54. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  55. data/test/dummy/bin/bundle +3 -0
  56. data/test/dummy/bin/rails +4 -0
  57. data/test/dummy/bin/rake +4 -0
  58. data/test/dummy/bin/setup +34 -0
  59. data/test/dummy/bin/update +29 -0
  60. data/test/dummy/config.ru +5 -0
  61. data/test/dummy/config/application.rb +15 -0
  62. data/test/dummy/config/boot.rb +5 -0
  63. data/test/dummy/config/cable.yml +9 -0
  64. data/test/dummy/config/database.yml +25 -0
  65. data/test/dummy/config/environment.rb +5 -0
  66. data/test/dummy/config/environments/development.rb +54 -0
  67. data/test/dummy/config/environments/production.rb +86 -0
  68. data/test/dummy/config/environments/test.rb +42 -0
  69. data/test/dummy/config/initializers/active_admin.rb +272 -0
  70. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  71. data/test/dummy/config/initializers/assets.rb +11 -0
  72. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  73. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  74. data/test/dummy/config/initializers/devise.rb +274 -0
  75. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  76. data/test/dummy/config/initializers/inflections.rb +16 -0
  77. data/test/dummy/config/initializers/mime_types.rb +4 -0
  78. data/test/dummy/config/initializers/new_framework_defaults.rb +24 -0
  79. data/test/dummy/config/initializers/session_store.rb +3 -0
  80. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  81. data/test/dummy/config/locales/devise.en.yml +62 -0
  82. data/test/dummy/config/locales/en.yml +23 -0
  83. data/test/dummy/config/puma.rb +47 -0
  84. data/test/dummy/config/routes.rb +5 -0
  85. data/test/dummy/config/secrets.yml +22 -0
  86. data/test/dummy/config/spring.rb +6 -0
  87. data/test/dummy/db/migrate/20160919123758_devise_create_admin_users.rb +42 -0
  88. data/test/dummy/db/migrate/20160919123801_create_active_admin_comments.rb +19 -0
  89. data/test/dummy/db/schema.rb +46 -0
  90. data/test/dummy/db/seeds.rb +15 -0
  91. data/test/dummy/lib/assets/.keep +0 -0
  92. data/test/dummy/log/.keep +0 -0
  93. data/test/dummy/public/404.html +67 -0
  94. data/test/dummy/public/422.html +67 -0
  95. data/test/dummy/public/500.html +66 -0
  96. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  97. data/test/dummy/public/apple-touch-icon.png +0 -0
  98. data/test/dummy/public/favicon.ico +0 -0
  99. data/test/dummy/test/fixtures/admin_users.yml +11 -0
  100. data/test/dummy/test/models/admin_user_test.rb +7 -0
  101. data/test/integration/navigation_test.rb +8 -0
  102. data/test/test_helper.rb +20 -0
  103. metadata +390 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6c3c9488958c42ab32bedf6c2a1e96c95bc76841
4
+ data.tar.gz: 0450fc5812eb54c574b39ce62a69888a76eb3dc5
5
+ SHA512:
6
+ metadata.gz: 3234cb5b5d831aabd749ec19e48002075cd3f65184171648c9a4a4af8170450023cf17023ce1b2bd5e6836ddf07535882e74f8a43473267f81806a955f97fd9c
7
+ data.tar.gz: 17db877b19e4bd54504a44976e897ba0ad7c1ed47ce8cc43659af79a2d9a7af7e210d10d78d9b539b4ea09d8662a6b471f2487e00ee6ff1e9b298c94b3062c31
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in activeadmin_custom_layout.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ # gem 'byebug', group: [:development, :test]
15
+
16
+ gem 'inherited_resources', github: 'activeadmin/inherited_resources'
data/Gemfile.lock ADDED
@@ -0,0 +1,255 @@
1
+ GIT
2
+ remote: git://github.com/activeadmin/inherited_resources.git
3
+ revision: 4434f0ae72f790cf371728838c927c338100555d
4
+ specs:
5
+ inherited_resources (1.6.0)
6
+ actionpack (>= 3.2, < 5.1)
7
+ has_scope (~> 0.6)
8
+ railties (>= 3.2, < 5.1)
9
+ responders
10
+
11
+ PATH
12
+ remote: .
13
+ specs:
14
+ activeadmin_custom_layout (0.1.0)
15
+ activeadmin (>= 1.0.0.pre4)
16
+
17
+ GEM
18
+ remote: https://rubygems.org/
19
+ specs:
20
+ actioncable (5.0.0.1)
21
+ actionpack (= 5.0.0.1)
22
+ nio4r (~> 1.2)
23
+ websocket-driver (~> 0.6.1)
24
+ actionmailer (5.0.0.1)
25
+ actionpack (= 5.0.0.1)
26
+ actionview (= 5.0.0.1)
27
+ activejob (= 5.0.0.1)
28
+ mail (~> 2.5, >= 2.5.4)
29
+ rails-dom-testing (~> 2.0)
30
+ actionpack (5.0.0.1)
31
+ actionview (= 5.0.0.1)
32
+ activesupport (= 5.0.0.1)
33
+ rack (~> 2.0)
34
+ rack-test (~> 0.6.3)
35
+ rails-dom-testing (~> 2.0)
36
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
37
+ actionview (5.0.0.1)
38
+ activesupport (= 5.0.0.1)
39
+ builder (~> 3.1)
40
+ erubis (~> 2.7.0)
41
+ rails-dom-testing (~> 2.0)
42
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
43
+ activeadmin (1.0.0.pre4)
44
+ arbre (~> 1.0, >= 1.0.2)
45
+ bourbon
46
+ coffee-rails
47
+ formtastic (~> 3.1)
48
+ formtastic_i18n
49
+ inherited_resources (~> 1.6)
50
+ jquery-rails
51
+ jquery-ui-rails
52
+ kaminari (~> 0.15)
53
+ rails (>= 3.2, < 5.1)
54
+ ransack (~> 1.3)
55
+ sass-rails
56
+ sprockets (< 4)
57
+ activejob (5.0.0.1)
58
+ activesupport (= 5.0.0.1)
59
+ globalid (>= 0.3.6)
60
+ activemodel (5.0.0.1)
61
+ activesupport (= 5.0.0.1)
62
+ activerecord (5.0.0.1)
63
+ activemodel (= 5.0.0.1)
64
+ activesupport (= 5.0.0.1)
65
+ arel (~> 7.0)
66
+ activesupport (5.0.0.1)
67
+ concurrent-ruby (~> 1.0, >= 1.0.2)
68
+ i18n (~> 0.7)
69
+ minitest (~> 5.1)
70
+ tzinfo (~> 1.1)
71
+ annotate (2.7.1)
72
+ activerecord (>= 3.2, < 6.0)
73
+ rake (>= 10.4, < 12.0)
74
+ arbre (1.1.1)
75
+ activesupport (>= 3.0.0)
76
+ arel (7.1.2)
77
+ ast (2.3.0)
78
+ awesome_print (1.7.0)
79
+ bcrypt (3.1.11)
80
+ bourbon (4.2.7)
81
+ sass (~> 3.4)
82
+ thor (~> 0.19)
83
+ builder (3.2.2)
84
+ byebug (9.0.5)
85
+ coderay (1.1.1)
86
+ coffee-rails (4.2.1)
87
+ coffee-script (>= 2.2.0)
88
+ railties (>= 4.0.0, < 5.2.x)
89
+ coffee-script (2.4.1)
90
+ coffee-script-source
91
+ execjs
92
+ coffee-script-source (1.10.0)
93
+ concurrent-ruby (1.0.2)
94
+ debug_inspector (0.0.2)
95
+ devise (4.2.0)
96
+ bcrypt (~> 3.0)
97
+ orm_adapter (~> 0.1)
98
+ railties (>= 4.1.0, < 5.1)
99
+ responders
100
+ warden (~> 1.2.3)
101
+ erubis (2.7.0)
102
+ execjs (2.7.0)
103
+ ffi (1.9.14)
104
+ formtastic (3.1.4)
105
+ actionpack (>= 3.2.13)
106
+ formtastic_i18n (0.6.0)
107
+ globalid (0.3.7)
108
+ activesupport (>= 4.1.0)
109
+ has_scope (0.7.0)
110
+ actionpack (>= 4.1, < 5.1)
111
+ activesupport (>= 4.1, < 5.1)
112
+ i18n (0.7.0)
113
+ jquery-rails (4.2.1)
114
+ rails-dom-testing (>= 1, < 3)
115
+ railties (>= 4.2.0)
116
+ thor (>= 0.14, < 2.0)
117
+ jquery-ui-rails (5.0.5)
118
+ railties (>= 3.2.16)
119
+ kaminari (0.17.0)
120
+ actionpack (>= 3.0.0)
121
+ activesupport (>= 3.0.0)
122
+ listen (3.0.8)
123
+ rb-fsevent (~> 0.9, >= 0.9.4)
124
+ rb-inotify (~> 0.9, >= 0.9.7)
125
+ loofah (2.0.3)
126
+ nokogiri (>= 1.5.9)
127
+ mail (2.6.4)
128
+ mime-types (>= 1.16, < 4)
129
+ method_source (0.8.2)
130
+ mime-types (3.1)
131
+ mime-types-data (~> 3.2015)
132
+ mime-types-data (3.2016.0521)
133
+ mini_portile2 (2.1.0)
134
+ minitest (5.9.0)
135
+ nio4r (1.2.1)
136
+ nokogiri (1.6.8)
137
+ mini_portile2 (~> 2.1.0)
138
+ pkg-config (~> 1.1.7)
139
+ orm_adapter (0.5.0)
140
+ parser (2.3.1.3)
141
+ ast (~> 2.2)
142
+ pkg-config (1.1.7)
143
+ polyamorous (1.3.1)
144
+ activerecord (>= 3.0)
145
+ powerpack (0.1.1)
146
+ pry (0.10.4)
147
+ coderay (~> 1.1.0)
148
+ method_source (~> 0.8.1)
149
+ slop (~> 3.4)
150
+ pry-byebug (3.4.0)
151
+ byebug (~> 9.0)
152
+ pry (~> 0.10)
153
+ rack (2.0.1)
154
+ rack-test (0.6.3)
155
+ rack (>= 1.0)
156
+ rails (5.0.0.1)
157
+ actioncable (= 5.0.0.1)
158
+ actionmailer (= 5.0.0.1)
159
+ actionpack (= 5.0.0.1)
160
+ actionview (= 5.0.0.1)
161
+ activejob (= 5.0.0.1)
162
+ activemodel (= 5.0.0.1)
163
+ activerecord (= 5.0.0.1)
164
+ activesupport (= 5.0.0.1)
165
+ bundler (>= 1.3.0, < 2.0)
166
+ railties (= 5.0.0.1)
167
+ sprockets-rails (>= 2.0.0)
168
+ rails-dom-testing (2.0.1)
169
+ activesupport (>= 4.2.0, < 6.0)
170
+ nokogiri (~> 1.6.0)
171
+ rails-html-sanitizer (1.0.3)
172
+ loofah (~> 2.0)
173
+ railties (5.0.0.1)
174
+ actionpack (= 5.0.0.1)
175
+ activesupport (= 5.0.0.1)
176
+ method_source
177
+ rake (>= 0.8.7)
178
+ thor (>= 0.18.1, < 2.0)
179
+ rainbow (2.1.0)
180
+ rake (11.2.2)
181
+ ransack (1.8.2)
182
+ actionpack (>= 3.0)
183
+ activerecord (>= 3.0)
184
+ activesupport (>= 3.0)
185
+ i18n
186
+ polyamorous (~> 1.3)
187
+ rb-fsevent (0.9.7)
188
+ rb-inotify (0.9.7)
189
+ ffi (>= 0.5.0)
190
+ responders (2.3.0)
191
+ railties (>= 4.2.0, < 5.1)
192
+ rubocop (0.43.0)
193
+ parser (>= 2.3.1.1, < 3.0)
194
+ powerpack (~> 0.1)
195
+ rainbow (>= 1.99.1, < 3.0)
196
+ ruby-progressbar (~> 1.7)
197
+ unicode-display_width (~> 1.0, >= 1.0.1)
198
+ ruby-progressbar (1.8.1)
199
+ sass (3.4.22)
200
+ sass-rails (5.0.6)
201
+ railties (>= 4.0.0, < 6)
202
+ sass (~> 3.1)
203
+ sprockets (>= 2.8, < 4.0)
204
+ sprockets-rails (>= 2.0, < 4.0)
205
+ tilt (>= 1.1, < 3)
206
+ slop (3.6.0)
207
+ spring (1.7.2)
208
+ spring-watcher-listen (2.0.0)
209
+ listen (>= 2.7, < 4.0)
210
+ spring (~> 1.2)
211
+ sprockets (3.7.0)
212
+ concurrent-ruby (~> 1.0)
213
+ rack (> 1, < 3)
214
+ sprockets-rails (3.2.0)
215
+ actionpack (>= 4.0)
216
+ activesupport (>= 4.0)
217
+ sprockets (>= 3.0.0)
218
+ sqlite3 (1.3.11)
219
+ thor (0.19.1)
220
+ thread_safe (0.3.5)
221
+ tilt (2.0.5)
222
+ tzinfo (1.2.2)
223
+ thread_safe (~> 0.1)
224
+ unicode-display_width (1.1.1)
225
+ warden (1.2.6)
226
+ rack (>= 1.0)
227
+ web-console (3.3.1)
228
+ actionview (>= 5.0)
229
+ activemodel (>= 5.0)
230
+ debug_inspector
231
+ railties (>= 5.0)
232
+ websocket-driver (0.6.4)
233
+ websocket-extensions (>= 0.1.0)
234
+ websocket-extensions (0.1.2)
235
+
236
+ PLATFORMS
237
+ ruby
238
+
239
+ DEPENDENCIES
240
+ activeadmin_custom_layout!
241
+ annotate
242
+ awesome_print
243
+ devise (~> 4.2.0)
244
+ inherited_resources!
245
+ listen (~> 3.0.5)
246
+ pry (~> 0.10.4)
247
+ pry-byebug (~> 3.4.0)
248
+ rubocop
249
+ spring
250
+ spring-watcher-listen (~> 2.0.0)
251
+ sqlite3
252
+ web-console
253
+
254
+ BUNDLED WITH
255
+ 1.12.5
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2016 Guillermo Bisheimer
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ # ActiveadminCustomLayout
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+
6
+ ### Available exports
7
+
8
+ ```HTML
9
+ <!DOCTYPE html>
10
+ <html>
11
+ <head>
12
+ <%= yield :title %>
13
+ <%= yield :stylesheets %>
14
+ <%= yield :javascripts %>
15
+ <%= yield :favicon %>
16
+ <%= yield :meta_tags %>
17
+ <%= yield :favicon %>
18
+ <%= csrf_meta_tag %>
19
+ </head>
20
+ <body class="<%= yield :body_classes %>" >
21
+ <div id="wrapper">
22
+ <%= yield :unsupported_browser %>
23
+ <div class="header" id="header"> <%#= yield :header %>
24
+ <%= yield :site_title %>
25
+ <%= yield :global_navigation %>
26
+ <%= yield :utility_navigation %>
27
+ </div>
28
+ <div class="title_bar" id="title_bar"> <%#= yield :title_bar %>
29
+ <div id="titlebar_left">
30
+ <%= yield :breadcrumb %>
31
+ <%= yield :title_tag %>
32
+ </div>
33
+ <div id="titlebar_right">
34
+ <%= yield :action_items %>
35
+ </div>
36
+ </div>
37
+ <%#= yield :page_content %>
38
+ <%= yield :flash_messages %>
39
+ <div id="active_admin_content" class="<%= (content_for? :sidebar) ? "with_sidebar" : "without_sidebar" %>" >
40
+ <%= yield :main_content %>
41
+ <%= yield :sidebar %>
42
+ </div>
43
+ <%= yield :footer %>
44
+ </div>
45
+ </body>
46
+ </html>
47
+ ```
48
+
49
+ When rendering the index view:
50
+ ```HTML
51
+ <div class="table_tools"> <%#= yield :table_tools %>
52
+ <%= yield :index_batch_actions %>
53
+ <%= yield :index_scopes %>
54
+ <%= yield :index_index_list %>
55
+ </div>
56
+ <%= yield :index_collection %>
57
+ ```
58
+
59
+ ## Installation
60
+ Add this line to your application's Gemfile:
61
+
62
+ ```ruby
63
+ gem 'activeadmin_custom_layout'
64
+ ```
65
+
66
+ And then execute:
67
+ ```bash
68
+ $ bundle
69
+ ```
70
+
71
+ Or install it yourself as:
72
+ ```bash
73
+ $ gem install activeadmin_custom_layout
74
+ ```
75
+
76
+ ## Contributing
77
+ Contribution directions go here.
78
+
79
+ ## License
80
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,37 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'ActiveadminCustomLayout'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+ load 'rails/tasks/statistics.rake'
22
+
23
+
24
+
25
+ require 'bundler/gem_tasks'
26
+
27
+ require 'rake/testtask'
28
+
29
+ Rake::TestTask.new(:test) do |t|
30
+ t.libs << 'lib'
31
+ t.libs << 'test'
32
+ t.pattern = 'test/**/*_test.rb'
33
+ t.verbose = false
34
+ end
35
+
36
+
37
+ task default: :test
@@ -0,0 +1,35 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ require "activeadmin_custom_layout/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "activeadmin_custom_layout"
7
+ s.version = ActiveadminCustomLayout::VERSION
8
+ s.authors = ["ByS Sistemas de Control"]
9
+ s.email = ["info@bys-control.com.ar"]
10
+ s.homepage = "https://github.com/bys-control/activeadmin_custom_layout"
11
+ s.summary = "Extracts ActiveAdmin page components as independent content_for tags to use in regular application layouts"
12
+ s.description = "This gem extracts ActiveAdmin page components as content_for tags using rails CaptureHelper. You can then use those tags to customize application layout as with any non-ActiveAdmin Rails application."
13
+ s.license = "MIT"
14
+
15
+ s.files = `git ls-files -z`.split("\x0")
16
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
+ s.require_paths = ["lib"]
19
+
20
+ s.add_dependency "activeadmin", ">= 1.0.0.pre4"
21
+
22
+ s.add_development_dependency "sqlite3"
23
+ s.add_development_dependency "devise", "~> 4.2.0"
24
+ s.add_development_dependency "pry", "~> 0.10.4"
25
+ s.add_development_dependency "pry-byebug", "~> 3.4.0"
26
+
27
+ s.add_development_dependency 'web-console'
28
+ s.add_development_dependency 'listen', '~> 3.0.5'
29
+ s.add_development_dependency 'spring'
30
+ s.add_development_dependency 'spring-watcher-listen', '~> 2.0.0'
31
+ s.add_development_dependency 'rubocop'
32
+ s.add_development_dependency 'annotate'
33
+ s.add_development_dependency 'awesome_print'
34
+
35
+ end