activeadmin-async_panel 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8f0db864cf01637b7d3dd7a89184c50ba28fb589
4
+ data.tar.gz: 62092f9c0c95596afc3b48d211ae4c925984efd2
5
+ SHA512:
6
+ metadata.gz: b04bc2d9fd2b58cfd9d4839adf6e13dcae1a20470067f9bfbbc18f69098bc94e4c437b61872e809788097e9ff96e35d9286f261d47285839c36990e7afe60002
7
+ data.tar.gz: 2e8e5c6a56c10b1a77ad0ded8b57853072b6ebf559da1d3aa051fb44b0a01a1997f90a4b1f7845b12df7c72df56b63e68e215173e6808fb1e653c04b7ee72e38
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/dummy/tmp/
9
+ /spec/dummy/public/assets
10
+ /spec/dummy/.sass-cache
11
+ /spec/dummy/log/*.log
12
+ /tmp/
13
+ *.sqlite3
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require rails_helper
data/.travis.yml ADDED
@@ -0,0 +1,24 @@
1
+ sudo: false
2
+ language: ruby
3
+
4
+ rvm:
5
+ - 2.1.5
6
+ - 2.2.4
7
+ - 2.3.1
8
+ - ruby-head
9
+
10
+ matrix:
11
+ allow_failures:
12
+ - rvm: ruby-head
13
+ fast_finish: true
14
+
15
+ before_install: gem update --remote bundler
16
+ install:
17
+ - bundle install --retry=3
18
+ script:
19
+ - bundle exec rake dummy:prepare
20
+ - bundle exec rspec
21
+
22
+ addons:
23
+ code_climate:
24
+ repo_token: 2446d680d10249420b115f02c97395570e666b3b2e07d7832182b53c52bd4f38
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in activeadmin-async_panel.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,250 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ activeadmin-async_panel (0.1.0)
5
+ activeadmin (>= 1.0.0.pre1)
6
+ coffee-rails (>= 4.1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionmailer (4.2.5.1)
12
+ actionpack (= 4.2.5.1)
13
+ actionview (= 4.2.5.1)
14
+ activejob (= 4.2.5.1)
15
+ mail (~> 2.5, >= 2.5.4)
16
+ rails-dom-testing (~> 1.0, >= 1.0.5)
17
+ actionpack (4.2.5.1)
18
+ actionview (= 4.2.5.1)
19
+ activesupport (= 4.2.5.1)
20
+ rack (~> 1.6)
21
+ rack-test (~> 0.6.2)
22
+ rails-dom-testing (~> 1.0, >= 1.0.5)
23
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
+ actionview (4.2.5.1)
25
+ activesupport (= 4.2.5.1)
26
+ builder (~> 3.1)
27
+ erubis (~> 2.7.0)
28
+ rails-dom-testing (~> 1.0, >= 1.0.5)
29
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
+ activeadmin (1.0.0.pre4)
31
+ arbre (~> 1.0, >= 1.0.2)
32
+ bourbon
33
+ coffee-rails
34
+ formtastic (~> 3.1)
35
+ formtastic_i18n
36
+ inherited_resources (~> 1.6)
37
+ jquery-rails
38
+ jquery-ui-rails
39
+ kaminari (~> 0.15)
40
+ rails (>= 3.2, < 5.1)
41
+ ransack (~> 1.3)
42
+ sass-rails
43
+ sprockets (< 4)
44
+ activejob (4.2.5.1)
45
+ activesupport (= 4.2.5.1)
46
+ globalid (>= 0.3.0)
47
+ activemodel (4.2.5.1)
48
+ activesupport (= 4.2.5.1)
49
+ builder (~> 3.1)
50
+ activerecord (4.2.5.1)
51
+ activemodel (= 4.2.5.1)
52
+ activesupport (= 4.2.5.1)
53
+ arel (~> 6.0)
54
+ activesupport (4.2.5.1)
55
+ i18n (~> 0.7)
56
+ json (~> 1.7, >= 1.7.7)
57
+ minitest (~> 5.1)
58
+ thread_safe (~> 0.3, >= 0.3.4)
59
+ tzinfo (~> 1.1)
60
+ addressable (2.4.0)
61
+ arbre (1.1.1)
62
+ activesupport (>= 3.0.0)
63
+ arel (6.0.3)
64
+ bourbon (4.2.7)
65
+ sass (~> 3.4)
66
+ thor (~> 0.19)
67
+ builder (3.2.2)
68
+ capybara (2.7.1)
69
+ addressable
70
+ mime-types (>= 1.16)
71
+ nokogiri (>= 1.3.3)
72
+ rack (>= 1.0.0)
73
+ rack-test (>= 0.5.4)
74
+ xpath (~> 2.0)
75
+ cliver (0.3.2)
76
+ codeclimate-test-reporter (0.4.8)
77
+ simplecov (>= 0.7.1, < 1.0.0)
78
+ coffee-rails (4.2.1)
79
+ coffee-script (>= 2.2.0)
80
+ railties (>= 4.0.0, < 5.2.x)
81
+ coffee-script (2.4.1)
82
+ coffee-script-source
83
+ execjs
84
+ coffee-script-source (1.12.2)
85
+ concurrent-ruby (1.0.4)
86
+ database_cleaner (1.5.3)
87
+ diff-lcs (1.2.5)
88
+ docile (1.1.5)
89
+ erubis (2.7.0)
90
+ execjs (2.7.0)
91
+ factory_girl (4.5.0)
92
+ activesupport (>= 3.0.0)
93
+ factory_girl_rails (4.5.0)
94
+ factory_girl (~> 4.5.0)
95
+ railties (>= 3.0.0)
96
+ formtastic (3.1.4)
97
+ actionpack (>= 3.2.13)
98
+ formtastic_i18n (0.6.0)
99
+ globalid (0.3.7)
100
+ activesupport (>= 4.1.0)
101
+ has_scope (0.6.0)
102
+ actionpack (>= 3.2, < 5)
103
+ activesupport (>= 3.2, < 5)
104
+ i18n (0.7.0)
105
+ inherited_resources (1.6.0)
106
+ actionpack (>= 3.2, < 5)
107
+ has_scope (~> 0.6.0.rc)
108
+ railties (>= 3.2, < 5)
109
+ responders
110
+ jquery-rails (4.2.2)
111
+ rails-dom-testing (>= 1, < 3)
112
+ railties (>= 4.2.0)
113
+ thor (>= 0.14, < 2.0)
114
+ jquery-ui-rails (5.0.5)
115
+ railties (>= 3.2.16)
116
+ json (1.8.3)
117
+ kaminari (0.17.0)
118
+ actionpack (>= 3.0.0)
119
+ activesupport (>= 3.0.0)
120
+ launchy (2.4.3)
121
+ addressable (~> 2.3)
122
+ loofah (2.0.3)
123
+ nokogiri (>= 1.5.9)
124
+ mail (2.6.4)
125
+ mime-types (>= 1.16, < 4)
126
+ mime-types (2.99.1)
127
+ mini_portile2 (2.1.0)
128
+ minitest (5.10.1)
129
+ nokogiri (1.7.0.1)
130
+ mini_portile2 (~> 2.1.0)
131
+ phantomjs (2.1.1.0)
132
+ poltergeist (1.10.0)
133
+ capybara (~> 2.1)
134
+ cliver (~> 0.3.1)
135
+ websocket-driver (>= 0.2.0)
136
+ polyamorous (1.3.1)
137
+ activerecord (>= 3.0)
138
+ rack (1.6.5)
139
+ rack-test (0.6.3)
140
+ rack (>= 1.0)
141
+ rails (4.2.5.1)
142
+ actionmailer (= 4.2.5.1)
143
+ actionpack (= 4.2.5.1)
144
+ actionview (= 4.2.5.1)
145
+ activejob (= 4.2.5.1)
146
+ activemodel (= 4.2.5.1)
147
+ activerecord (= 4.2.5.1)
148
+ activesupport (= 4.2.5.1)
149
+ bundler (>= 1.3.0, < 2.0)
150
+ railties (= 4.2.5.1)
151
+ sprockets-rails
152
+ rails-deprecated_sanitizer (1.0.3)
153
+ activesupport (>= 4.2.0.alpha)
154
+ rails-dom-testing (1.0.8)
155
+ activesupport (>= 4.2.0.beta, < 5.0)
156
+ nokogiri (~> 1.6)
157
+ rails-deprecated_sanitizer (>= 1.0.1)
158
+ rails-html-sanitizer (1.0.3)
159
+ loofah (~> 2.0)
160
+ railties (4.2.5.1)
161
+ actionpack (= 4.2.5.1)
162
+ activesupport (= 4.2.5.1)
163
+ rake (>= 0.8.7)
164
+ thor (>= 0.18.1, < 2.0)
165
+ rake (10.5.0)
166
+ ransack (1.8.2)
167
+ actionpack (>= 3.0)
168
+ activerecord (>= 3.0)
169
+ activesupport (>= 3.0)
170
+ i18n
171
+ polyamorous (~> 1.3)
172
+ responders (2.3.0)
173
+ railties (>= 4.2.0, < 5.1)
174
+ rspec (3.3.0)
175
+ rspec-core (~> 3.3.0)
176
+ rspec-expectations (~> 3.3.0)
177
+ rspec-mocks (~> 3.3.0)
178
+ rspec-core (3.3.2)
179
+ rspec-support (~> 3.3.0)
180
+ rspec-expectations (3.3.1)
181
+ diff-lcs (>= 1.2.0, < 2.0)
182
+ rspec-support (~> 3.3.0)
183
+ rspec-mocks (3.3.2)
184
+ diff-lcs (>= 1.2.0, < 2.0)
185
+ rspec-support (~> 3.3.0)
186
+ rspec-rails (3.3.3)
187
+ actionpack (>= 3.0, < 4.3)
188
+ activesupport (>= 3.0, < 4.3)
189
+ railties (>= 3.0, < 4.3)
190
+ rspec-core (~> 3.3.0)
191
+ rspec-expectations (~> 3.3.0)
192
+ rspec-mocks (~> 3.3.0)
193
+ rspec-support (~> 3.3.0)
194
+ rspec-support (3.3.0)
195
+ sass (3.4.23)
196
+ sass-rails (5.0.6)
197
+ railties (>= 4.0.0, < 6)
198
+ sass (~> 3.1)
199
+ sprockets (>= 2.8, < 4.0)
200
+ sprockets-rails (>= 2.0, < 4.0)
201
+ tilt (>= 1.1, < 3)
202
+ simplecov (0.11.1)
203
+ docile (~> 1.1.0)
204
+ json (~> 1.8)
205
+ simplecov-html (~> 0.10.0)
206
+ simplecov-html (0.10.0)
207
+ sprockets (3.7.1)
208
+ concurrent-ruby (~> 1.0)
209
+ rack (> 1, < 3)
210
+ sprockets-rails (3.2.0)
211
+ actionpack (>= 4.0)
212
+ activesupport (>= 4.0)
213
+ sprockets (>= 3.0.0)
214
+ sqlite3 (1.3.11)
215
+ temping (3.3.0)
216
+ activerecord (>= 3.1)
217
+ activesupport (>= 3.1)
218
+ thor (0.19.4)
219
+ thread_safe (0.3.5)
220
+ tilt (2.0.5)
221
+ tzinfo (1.2.2)
222
+ thread_safe (~> 0.1)
223
+ websocket-driver (0.6.4)
224
+ websocket-extensions (>= 0.1.0)
225
+ websocket-extensions (0.1.2)
226
+ xpath (2.0.0)
227
+ nokogiri (~> 1.3)
228
+
229
+ PLATFORMS
230
+ ruby
231
+
232
+ DEPENDENCIES
233
+ activeadmin-async_panel!
234
+ bundler (~> 1.10)
235
+ capybara (~> 2.1)
236
+ codeclimate-test-reporter (~> 0.4)
237
+ database_cleaner (~> 1.5.0)
238
+ factory_girl_rails
239
+ jquery-ui-rails (~> 5.0.5)
240
+ launchy (~> 2.4.3)
241
+ phantomjs (~> 2.1.1)
242
+ poltergeist (~> 1.10.0)
243
+ rake (~> 10.0)
244
+ rspec (~> 3.3, >= 3.3.0)
245
+ rspec-rails (~> 3.3)
246
+ sqlite3 (~> 1.3, >= 1.3.11)
247
+ temping (~> 3.3, >= 3.3.0)
248
+
249
+ BUNDLED WITH
250
+ 1.13.6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Alex Emelyanov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,81 @@
1
+ [![Gem Version](https://badge.fury.io/rb/activeadmin-async_panel.svg)](https://badge.fury.io/rb/activeadmin-async_panel)
2
+ [![Build Status](https://travis-ci.org/holyketzer/activeadmin-async_panel.svg?branch=master)](https://travis-ci.org/holyketzer/activeadmin-async_panel)
3
+ [![Code Climate](https://codeclimate.com/github/holyketzer/activeadmin-async_panel/badges/gpa.svg)](https://codeclimate.com/github/holyketzer/activeadmin-async_panel)
4
+ [![Test Coverage](https://codeclimate.com/github/holyketzer/activeadmin-async_panel/badges/coverage.svg)](https://codeclimate.com/github/holyketzer/activeadmin-async_panel/coverage)
5
+
6
+ # ActiveAdmin::AsyncPanel
7
+
8
+ This gem allows you to create ActiveAdmin panels with content loaded dynamically via AJAX requests.
9
+
10
+ ## Prerequisites
11
+
12
+ This extension assumes that you're using [Active Admin](https://github.com/activeadmin/activeadmin)
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ ```ruby
19
+ gem 'activeadmin-async_panel'
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ $ bundle
25
+
26
+ Or install it yourself as:
27
+
28
+ $ gem install activeadmin-async_panel
29
+
30
+ ## Usage
31
+
32
+ Include this line in your JavaScript code (active_admin.js.coffee)
33
+
34
+ ```coffeescript
35
+ #= require activeadmin-async_panel
36
+ ```
37
+
38
+ To use this stuff do next steps:
39
+
40
+ Step 1. Define async panel
41
+
42
+ ```ruby
43
+ panel 'Name', class: 'async-panel', 'data-url' => some_action_admin_resources_path, 'data-period' => 1.minute
44
+ ```
45
+
46
+ If you setup `data-period`, panel will be periodically updated. If not, it will be loaded once right after page load
47
+
48
+ Step 2. Define `member_action` or `collection_action` to handle request specified by path helper
49
+
50
+ ```ruby
51
+ collection_action :some_action do
52
+ @resources = Resource.some_scope
53
+ render layout: false # mandatory line, layout should be disaled to render template only
54
+ end
55
+ ```
56
+
57
+ Step 3. Define you view template to render action above in file `views/admin/resources/some_action.html.arb`can also be (slim, erb), for e.g. arb:
58
+
59
+ ```ruby
60
+ table_for resources do
61
+ column :value1
62
+ column :value2
63
+ end
64
+ ```
65
+
66
+ Note that in step 2 you can pass template variables with `@`, but inside template you should use them without `@`.
67
+
68
+ ## Development
69
+
70
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
71
+
72
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
73
+
74
+ ## Contributing
75
+
76
+ Bug reports and pull requests are welcome on GitHub at https://github.com/holyketzer/activeadmin-async_panel. This project is intended to be a safe, welcoming space for collaboration.
77
+
78
+ ## License
79
+
80
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
81
+
data/Rakefile ADDED
@@ -0,0 +1,28 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ task default: ['dummy:prepare', :spec]
7
+
8
+ require 'rake/clean'
9
+ CLEAN.include 'spec/dummy/db/*sqlite3', 'spec/dummy/log/*', 'spec/dummy/public/assets/*', 'spec/dummy/tmp/**/*'
10
+
11
+ namespace :dummy do
12
+ desc 'Setup dummy app database'
13
+ task :prepare do
14
+ # File.expand_path is executed directory of generated Rails app
15
+ rakefile = File.expand_path('Rakefile', dummy_path)
16
+ command = "rake -f '%s' db:schema:load RAILS_ENV=test" % rakefile
17
+ sh(command) unless ENV['DISABLE_CREATE']
18
+ end
19
+
20
+ def dummy_path
21
+ rel_path = ENV['DUMMY_APP_PATH'] || 'spec/dummy'
22
+ if @current_path.to_s.include?(rel_path)
23
+ @current_path
24
+ else
25
+ @current_path = File.expand_path(rel_path)
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'active_admin/async_panel/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = 'activeadmin-async_panel'
8
+ gem.version = ActiveAdmin::AsyncPanel::VERSION
9
+ gem.authors = ['Alex Emelyanov']
10
+ gem.email = ['aemelyanov@spbtv.com']
11
+
12
+ gem.summary = 'AJAX-powered async panels for ActiveAdmin'
13
+ gem.description = 'Allows to define special attributes for ActiveAdmin panel to make it AJAX loadable and auto-updatable'
14
+ gem.homepage = 'https://github.com/holyketzer/activeadmin-async_panel'
15
+ gem.license = 'MIT'
16
+
17
+ gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ gem.bindir = 'exe'
19
+ gem.executables = gem.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ gem.require_paths = ['lib']
21
+
22
+ gem.add_dependency 'activeadmin', '>= 1.0.0.pre1'
23
+ gem.add_dependency 'coffee-rails', '>= 4.1.0'
24
+ gem.add_development_dependency 'bundler', '~> 1.10'
25
+ gem.add_development_dependency 'rake', '~> 10.0'
26
+ gem.add_development_dependency 'rspec', '~> 3.3', '>= 3.3.0'
27
+ gem.add_development_dependency 'rspec-rails', '~> 3.3'
28
+ gem.add_development_dependency 'factory_girl_rails'
29
+ gem.add_development_dependency 'sqlite3', '~> 1.3', '>= 1.3.11'
30
+ gem.add_development_dependency 'temping', '~> 3.3', '>= 3.3.0'
31
+ gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
32
+ gem.add_development_dependency 'capybara', '~> 2.1'
33
+ gem.add_development_dependency 'phantomjs', '~> 2.1.1'
34
+ gem.add_development_dependency 'poltergeist', '~> 1.10.0'
35
+ gem.add_development_dependency 'database_cleaner', '~> 1.5.0'
36
+ gem.add_development_dependency 'launchy', '~> 2.4.3'
37
+ gem.add_development_dependency 'jquery-ui-rails', '~> 5.0.5'
38
+ end
@@ -0,0 +1,33 @@
1
+ # To use this stuff do next steps:
2
+
3
+ # 1. Define async panel
4
+ # if you setup 'data-period' panel will be periodically updated if not it will be loaded once after page load
5
+ # panel 'Name', class: 'async-panel', 'data-url' => path_helper, 'data-period' => 1.minute
6
+
7
+ # 2. Define member_action or collection action to handle request specified by path_helper
8
+ # collection_action do
9
+ # @resources = SomeResource.some_scope
10
+ # render layout: false # mandatory line, layout should be disaled to render template only
11
+ # end
12
+
13
+ # 3. Define you view template to render action above in file views/resource_names/action_name.html.arb (slim, erb)
14
+ # table_for resources do
15
+ # column :value1
16
+ # column :calue2
17
+ # end
18
+
19
+ $ ->
20
+ $('.async-panel').each (index, item) ->
21
+ item = $(item)
22
+ worker = ->
23
+ $.ajax
24
+ url: item.data('url')
25
+ success: (data) ->
26
+ $('.panel_contents', item).html(data)
27
+ complete: ->
28
+ # Schedule the next request when the current one's completed
29
+ period = item.data('period')
30
+ if period
31
+ setTimeout worker, period * 1000
32
+
33
+ worker()
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "activeadmin/async_panel"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ require 'active_admin'
2
+ require 'active_admin/async_panel/engine'
3
+ require 'active_admin/async_panel/version'
@@ -0,0 +1,10 @@
1
+ require 'rails/engine'
2
+
3
+ module ActiveAdmin
4
+ module AsyncPanel
5
+ # Including an Engine tells Rails that this gem contains assets
6
+ class Engine < ::Rails::Engine
7
+
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ module ActiveAdmin
2
+ module AsyncPanel
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require 'active_admin/async_panel'
metadata ADDED
@@ -0,0 +1,305 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activeadmin-async_panel
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alex Emelyanov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activeadmin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0.pre1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0.pre1
27
+ - !ruby/object:Gem::Dependency
28
+ name: coffee-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.3'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 3.3.0
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '3.3'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 3.3.0
89
+ - !ruby/object:Gem::Dependency
90
+ name: rspec-rails
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '3.3'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '3.3'
103
+ - !ruby/object:Gem::Dependency
104
+ name: factory_girl_rails
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: sqlite3
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '1.3'
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 1.3.11
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '1.3'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 1.3.11
137
+ - !ruby/object:Gem::Dependency
138
+ name: temping
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '3.3'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 3.3.0
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '3.3'
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 3.3.0
157
+ - !ruby/object:Gem::Dependency
158
+ name: codeclimate-test-reporter
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: '0.4'
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '0.4'
171
+ - !ruby/object:Gem::Dependency
172
+ name: capybara
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '2.1'
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - "~>"
183
+ - !ruby/object:Gem::Version
184
+ version: '2.1'
185
+ - !ruby/object:Gem::Dependency
186
+ name: phantomjs
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - "~>"
190
+ - !ruby/object:Gem::Version
191
+ version: 2.1.1
192
+ type: :development
193
+ prerelease: false
194
+ version_requirements: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - "~>"
197
+ - !ruby/object:Gem::Version
198
+ version: 2.1.1
199
+ - !ruby/object:Gem::Dependency
200
+ name: poltergeist
201
+ requirement: !ruby/object:Gem::Requirement
202
+ requirements:
203
+ - - "~>"
204
+ - !ruby/object:Gem::Version
205
+ version: 1.10.0
206
+ type: :development
207
+ prerelease: false
208
+ version_requirements: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - "~>"
211
+ - !ruby/object:Gem::Version
212
+ version: 1.10.0
213
+ - !ruby/object:Gem::Dependency
214
+ name: database_cleaner
215
+ requirement: !ruby/object:Gem::Requirement
216
+ requirements:
217
+ - - "~>"
218
+ - !ruby/object:Gem::Version
219
+ version: 1.5.0
220
+ type: :development
221
+ prerelease: false
222
+ version_requirements: !ruby/object:Gem::Requirement
223
+ requirements:
224
+ - - "~>"
225
+ - !ruby/object:Gem::Version
226
+ version: 1.5.0
227
+ - !ruby/object:Gem::Dependency
228
+ name: launchy
229
+ requirement: !ruby/object:Gem::Requirement
230
+ requirements:
231
+ - - "~>"
232
+ - !ruby/object:Gem::Version
233
+ version: 2.4.3
234
+ type: :development
235
+ prerelease: false
236
+ version_requirements: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - "~>"
239
+ - !ruby/object:Gem::Version
240
+ version: 2.4.3
241
+ - !ruby/object:Gem::Dependency
242
+ name: jquery-ui-rails
243
+ requirement: !ruby/object:Gem::Requirement
244
+ requirements:
245
+ - - "~>"
246
+ - !ruby/object:Gem::Version
247
+ version: 5.0.5
248
+ type: :development
249
+ prerelease: false
250
+ version_requirements: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - "~>"
253
+ - !ruby/object:Gem::Version
254
+ version: 5.0.5
255
+ description: Allows to define special attributes for ActiveAdmin panel to make it
256
+ AJAX loadable and auto-updatable
257
+ email:
258
+ - aemelyanov@spbtv.com
259
+ executables: []
260
+ extensions: []
261
+ extra_rdoc_files: []
262
+ files:
263
+ - ".gitignore"
264
+ - ".rspec"
265
+ - ".travis.yml"
266
+ - CODE_OF_CONDUCT.md
267
+ - Gemfile
268
+ - Gemfile.lock
269
+ - LICENSE.txt
270
+ - README.md
271
+ - Rakefile
272
+ - activeadmin-async_panel.gemspec
273
+ - app/assets/javascripts/activeadmin-async_panel.js.coffee
274
+ - bin/console
275
+ - bin/setup
276
+ - lib/active_admin/async_panel.rb
277
+ - lib/active_admin/async_panel/engine.rb
278
+ - lib/active_admin/async_panel/version.rb
279
+ - lib/activeadmin-async_panel.rb
280
+ homepage: https://github.com/holyketzer/activeadmin-async_panel
281
+ licenses:
282
+ - MIT
283
+ metadata: {}
284
+ post_install_message:
285
+ rdoc_options: []
286
+ require_paths:
287
+ - lib
288
+ required_ruby_version: !ruby/object:Gem::Requirement
289
+ requirements:
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: '0'
293
+ required_rubygems_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ">="
296
+ - !ruby/object:Gem::Version
297
+ version: '0'
298
+ requirements: []
299
+ rubyforge_project:
300
+ rubygems_version: 2.5.1
301
+ signing_key:
302
+ specification_version: 4
303
+ summary: AJAX-powered async panels for ActiveAdmin
304
+ test_files: []
305
+ has_rdoc: