administrate 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of administrate might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f48fa7be0e027708d34f92c0584f31720d85d83
4
- data.tar.gz: 05d560cc12794547edfeecf5076da5335b1d13bb
3
+ metadata.gz: fa4ef06dd53660f75551b268b88b93b4bf4391bc
4
+ data.tar.gz: c3883681c77f5110ed9f371701b9a119ebd05133
5
5
  SHA512:
6
- metadata.gz: b7eb8fd1f7243912e881c98cbd92a21b4570c99ac68a02bb6e1e7a9d5ad7b32d3eeeefa3686b13ab54be37d7755942a5b5f1a942c9fe8a7eab23555576564de4
7
- data.tar.gz: a810977c34fe3d1df147532261d786e67f9a699349dd0b3d5b82a95922260128a76e17c6ec9eca1452e97e57c0780096bd1b0096d1b997d0d2fc254865b44e40
6
+ metadata.gz: 8318610319dd7a4d3761875c72360a36a53b6b4eb4af8a27ced74d8427befa18f7de5e3828c6d933951baee6080187339af98058aa2699d5c946ddf5b41ff546
7
+ data.tar.gz: e8d1806eab9124b6733bd3ab94614568e177a0fb677c26a96cceedeb5ca3041ffd7b79a3beb8dfc8fc1f16c245c38765e64793faea24ea4bb834eb2b4ff2a7f3
@@ -1,3 +1,3 @@
1
1
  module Administrate
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -24,8 +24,18 @@ module Administrate
24
24
  route(dashboard_routes)
25
25
  end
26
26
 
27
+ def run_dashboard_generators
28
+ singular_dashboard_resources.each do |resource|
29
+ Rails::Generators.invoke("administrate:dashboard", [resource])
30
+ end
31
+ end
32
+
27
33
  private
28
34
 
35
+ def singular_dashboard_resources
36
+ dashboard_resources.map(&:singularize)
37
+ end
38
+
29
39
  def dashboard_resources
30
40
  valid_dashboard_models.map do |model|
31
41
  model.to_s.pluralize.underscore
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson Wright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-15 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '1.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: normalize-rails
43
43
  requirement: !ruby/object:Gem::Requirement