radiant-dashboard-extension 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,10 +4,10 @@ class DashboardExtension < Radiant::Extension
4
4
  version RadiantDashboardExtension::VERSION
5
5
  description "Dashboard provides a way to view recent activity in Radiant and gives small extensions a place to grow."
6
6
  url "http://saturnflyer.com/"
7
-
7
+
8
8
  def activate
9
- admin.nav.unshift(Radiant::AdminUI::NavTab.new(''))
10
- tab "" do
9
+ admin.nav.unshift(Radiant::AdminUI::NavTab.new('&#10025;'))
10
+ tab "&#10025;" do
11
11
  add_item 'Activity', "/admin/dashboard"
12
12
  end
13
13
  Radiant::AdminUI.class_eval do
@@ -24,10 +24,10 @@ class DashboardExtension < Radiant::Extension
24
24
  named_scope :recently_updated, lambda{{:conditions => ['updated_at > ?', 1.week.ago ], :order => 'updated_at DESC'}}
25
25
  named_scope :by_updated, :order => 'updated_at DESC'
26
26
  }
27
- Snippet.class_eval {
28
- named_scope :recently_updated, lambda{{:conditions => ['updated_at > ?', 1.week.ago ], :order => 'updated_at DESC, name'}}
27
+ Snippet.class_eval {
28
+ named_scope :recently_updated, lambda{{:conditions => ['updated_at > ?', 1.week.ago ], :order => 'updated_at DESC, name'}}
29
29
  }
30
- Layout.class_eval {
30
+ Layout.class_eval {
31
31
  named_scope :recently_updated, lambda{{:conditions => ['updated_at > ?', 1.week.ago ], :order => 'updated_at DESC'}}
32
32
  }
33
33
  Admin::WelcomeController.class_eval {
@@ -37,14 +37,14 @@ class DashboardExtension < Radiant::Extension
37
37
  end
38
38
  }
39
39
  end
40
-
40
+
41
41
  def deactivate
42
42
  end
43
-
43
+
44
44
  private
45
-
45
+
46
46
  def load_default_dashboard_regions
47
- returning OpenStruct.new do |dashboard|
47
+ OpenStruct.new.tap do |dashboard|
48
48
  dashboard.index = Radiant::AdminUI::RegionSet.new do |index|
49
49
  index.info.concat %w{user}
50
50
  index.user_action_list.concat %w{standard_links}
@@ -57,5 +57,5 @@ class DashboardExtension < Radiant::Extension
57
57
  end
58
58
  end
59
59
  end
60
-
60
+
61
61
  end
@@ -1,3 +1,3 @@
1
1
  module RadiantDashboardExtension
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.2'
3
3
  end
metadata CHANGED
@@ -1,35 +1,26 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: radiant-dashboard-extension
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 3
9
- - 0
10
- version: 1.3.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jim Gay
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2010-10-11 00:00:00 -04:00
19
- default_executable:
12
+ date: 2010-10-11 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
- description: Dashboard provides a way to see recent activity in Radiant, and allows extension developers to add to the interface with Radiant regions.
14
+ description: Dashboard provides a way to see recent activity in Radiant, and allows
15
+ extension developers to add to the interface with Radiant regions.
23
16
  email: jim@saturnflyer.com
24
17
  executables: []
25
-
26
18
  extensions: []
27
-
28
- extra_rdoc_files:
19
+ extra_rdoc_files:
29
20
  - README.md
30
21
  - HELP.md
31
22
  - HELP_designer.md
32
- files:
23
+ files:
33
24
  - .gitignore
34
25
  - HELP.md
35
26
  - HELP_designer.md
@@ -55,43 +46,32 @@ files:
55
46
  - spec/spec.opts
56
47
  - spec/spec_helper.rb
57
48
  - spec/views/admin/dashboard/index_view_spec.rb
58
- has_rdoc: true
59
49
  homepage: http://github.com/saturnflyer/radiant-dashboard-extension
60
50
  licenses: []
61
-
62
51
  post_install_message:
63
- rdoc_options:
52
+ rdoc_options:
64
53
  - --charset=UTF-8
65
- require_paths:
54
+ require_paths:
66
55
  - lib
67
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
68
57
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
76
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
63
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- hash: 23
82
- segments:
83
- - 1
84
- - 3
85
- - 6
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
86
67
  version: 1.3.6
87
68
  requirements: []
88
-
89
69
  rubyforge_project:
90
- rubygems_version: 1.3.7
70
+ rubygems_version: 1.8.11
91
71
  signing_key:
92
72
  specification_version: 3
93
73
  summary: Dashboard Extension for Radiant CMS
94
- test_files:
74
+ test_files:
95
75
  - .gitignore
96
76
  - HELP.md
97
77
  - HELP_designer.md