radiant-concurrent_draft-extension 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/HELP.rdoc +32 -0
  2. data/README.textile +52 -0
  3. data/Rakefile +136 -0
  4. data/VERSION +1 -0
  5. data/app/views/admin/_draft_controls.html.haml +85 -0
  6. data/app/views/admin/_edit_buttons.html.haml +10 -0
  7. data/app/views/admin/layouts/_edit_content.html.haml +5 -0
  8. data/app/views/admin/page_parts/_page_part.html.haml +20 -0
  9. data/app/views/admin/pages/_edit_layout_and_type.html.haml +11 -0
  10. data/app/views/admin/pages/_published_meta.html.haml +4 -0
  11. data/app/views/admin/snippets/_edit_content.html.haml +5 -0
  12. data/app/views/admin/users/_edit_roles.html.haml +26 -0
  13. data/concurrent_draft_extension.rb +30 -0
  14. data/config/initializers/radiant_config.rb +3 -0
  15. data/config/locales/en.yml +11 -0
  16. data/config/routes.rb +9 -0
  17. data/db/migrate/001_update_schemata.rb +29 -0
  18. data/db/migrate/002_create_draft_page_elements.rb +10 -0
  19. data/db/migrate/003_add_publisher_role.rb +9 -0
  20. data/lib/concurrent_draft/admin_controller_extensions.rb +52 -0
  21. data/lib/concurrent_draft/helper_extensions.rb +39 -0
  22. data/lib/concurrent_draft/model_extensions.rb +77 -0
  23. data/lib/concurrent_draft/page_extensions.rb +28 -0
  24. data/lib/concurrent_draft/site_controller_extensions.rb +16 -0
  25. data/lib/concurrent_draft/tags.rb +56 -0
  26. data/lib/tasks/concurrent_draft_extension_tasks.rake +46 -0
  27. data/public/images/admin/cancel.png +0 -0
  28. data/public/images/admin/clock.png +0 -0
  29. data/public/images/admin/page_delete.png +0 -0
  30. data/public/images/admin/page_edit.png +0 -0
  31. data/public/images/admin/page_refresh.png +0 -0
  32. data/public/images/admin/tick.png +0 -0
  33. data/public/javascripts/admin/concurrent_draft.js +72 -0
  34. data/public/stylesheets/admin/concurrent_draft.css +74 -0
  35. data/spec/controllers/admin_controller_extensions_spec.rb +184 -0
  36. data/spec/controllers/site_controller_extensions_spec.rb +31 -0
  37. data/spec/matchers/concurrent_draft_matcher.rb +11 -0
  38. data/spec/models/model_extensions_spec.rb +114 -0
  39. data/spec/models/page_extensions_spec.rb +56 -0
  40. data/spec/models/tags_spec.rb +43 -0
  41. data/spec/spec.opts +6 -0
  42. data/spec/spec_helper.rb +38 -0
  43. data/test/helpers/caching_test_helper.rb +42 -0
  44. data/test/helpers/page_part_test_helper.rb +49 -0
  45. data/test/helpers/page_test_helper.rb +77 -0
  46. data/vendor/plugins/12_hour_time/CHANGELOG +2 -0
  47. data/vendor/plugins/12_hour_time/README +16 -0
  48. data/vendor/plugins/12_hour_time/Rakefile +22 -0
  49. data/vendor/plugins/12_hour_time/init.rb +1 -0
  50. data/vendor/plugins/12_hour_time/lib/12_hour_time.rb +78 -0
  51. data/vendor/plugins/12_hour_time/test/12_hour_time_test.rb +52 -0
  52. data/vendor/plugins/12_hour_time/test/test_helper.rb +3 -0
  53. metadata +143 -0
@@ -0,0 +1,3 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../../../../config/environment")
3
+ require 'test_help'
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: radiant-concurrent_draft-extension
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Andrew vonderLuft
14
+ - Sean Cribbs
15
+ autorequire:
16
+ bindir: bin
17
+ cert_chain: []
18
+
19
+ date: 2011-03-24 00:00:00 -07:00
20
+ default_executable:
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: radiant
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 57
31
+ segments:
32
+ - 0
33
+ - 9
34
+ - 1
35
+ version: 0.9.1
36
+ type: :runtime
37
+ version_requirements: *id001
38
+ description: Enables draft versions of pages, snippets and layouts, which can be scheduled for promotion.
39
+ email: avonderluft@avlux.net
40
+ executables: []
41
+
42
+ extensions: []
43
+
44
+ extra_rdoc_files:
45
+ - README.textile
46
+ files:
47
+ - HELP.rdoc
48
+ - README.textile
49
+ - Rakefile
50
+ - VERSION
51
+ - app/views/admin/_draft_controls.html.haml
52
+ - app/views/admin/_edit_buttons.html.haml
53
+ - app/views/admin/layouts/_edit_content.html.haml
54
+ - app/views/admin/page_parts/_page_part.html.haml
55
+ - app/views/admin/pages/_edit_layout_and_type.html.haml
56
+ - app/views/admin/pages/_published_meta.html.haml
57
+ - app/views/admin/snippets/_edit_content.html.haml
58
+ - app/views/admin/users/_edit_roles.html.haml
59
+ - concurrent_draft_extension.rb
60
+ - config/initializers/radiant_config.rb
61
+ - config/locales/en.yml
62
+ - config/routes.rb
63
+ - db/migrate/001_update_schemata.rb
64
+ - db/migrate/002_create_draft_page_elements.rb
65
+ - db/migrate/003_add_publisher_role.rb
66
+ - lib/concurrent_draft/admin_controller_extensions.rb
67
+ - lib/concurrent_draft/helper_extensions.rb
68
+ - lib/concurrent_draft/model_extensions.rb
69
+ - lib/concurrent_draft/page_extensions.rb
70
+ - lib/concurrent_draft/site_controller_extensions.rb
71
+ - lib/concurrent_draft/tags.rb
72
+ - lib/tasks/concurrent_draft_extension_tasks.rake
73
+ - public/images/admin/cancel.png
74
+ - public/images/admin/clock.png
75
+ - public/images/admin/page_delete.png
76
+ - public/images/admin/page_edit.png
77
+ - public/images/admin/page_refresh.png
78
+ - public/images/admin/tick.png
79
+ - public/javascripts/admin/concurrent_draft.js
80
+ - public/stylesheets/admin/concurrent_draft.css
81
+ - spec/controllers/admin_controller_extensions_spec.rb
82
+ - spec/controllers/site_controller_extensions_spec.rb
83
+ - spec/matchers/concurrent_draft_matcher.rb
84
+ - spec/models/model_extensions_spec.rb
85
+ - spec/models/page_extensions_spec.rb
86
+ - spec/models/tags_spec.rb
87
+ - spec/spec.opts
88
+ - spec/spec_helper.rb
89
+ - test/helpers/caching_test_helper.rb
90
+ - test/helpers/page_part_test_helper.rb
91
+ - test/helpers/page_test_helper.rb
92
+ - vendor/plugins/12_hour_time/CHANGELOG
93
+ - vendor/plugins/12_hour_time/README
94
+ - vendor/plugins/12_hour_time/Rakefile
95
+ - vendor/plugins/12_hour_time/init.rb
96
+ - vendor/plugins/12_hour_time/lib/12_hour_time.rb
97
+ - vendor/plugins/12_hour_time/test/12_hour_time_test.rb
98
+ - vendor/plugins/12_hour_time/test/test_helper.rb
99
+ has_rdoc: true
100
+ homepage: https://github.com/avonderluft/radiant-concurrent_draft-extension
101
+ licenses: []
102
+
103
+ post_install_message:
104
+ rdoc_options: []
105
+
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ hash: 3
114
+ segments:
115
+ - 0
116
+ version: "0"
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ hash: 3
123
+ segments:
124
+ - 0
125
+ version: "0"
126
+ requirements: []
127
+
128
+ rubyforge_project:
129
+ rubygems_version: 1.6.2
130
+ signing_key:
131
+ specification_version: 3
132
+ summary: Concurrent Draft Extension for Radiant CMS
133
+ test_files:
134
+ - spec/controllers/admin_controller_extensions_spec.rb
135
+ - spec/controllers/site_controller_extensions_spec.rb
136
+ - spec/matchers/concurrent_draft_matcher.rb
137
+ - spec/models/model_extensions_spec.rb
138
+ - spec/models/page_extensions_spec.rb
139
+ - spec/models/tags_spec.rb
140
+ - spec/spec_helper.rb
141
+ - test/helpers/caching_test_helper.rb
142
+ - test/helpers/page_part_test_helper.rb
143
+ - test/helpers/page_test_helper.rb