cartoonist-suggestions 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  <% content_for :title, t("suggestions.new.title") %>
2
2
 
3
+ <%= markdown Setting[:suggestion_prefix] %>
4
+
3
5
  <%= form_tag "/suggestions", :method => :post, :authenticity_token => false, :class => "suggestion-box" do %>
4
6
  <p>
5
7
  <label class="optional">
@@ -23,6 +23,15 @@ en:
23
23
  layout:
24
24
  navigation:
25
25
  suggest: Suggest
26
+ settings:
27
+ show:
28
+ sections:
29
+ suggestions:
30
+ page: Page Details
31
+ settings:
32
+ suggestion_prefix: "Suggestion prefix (markdown):"
33
+ tabs:
34
+ suggestions: Suggestions
26
35
  suggestion: Suggestion
27
36
  suggestions:
28
37
  new:
@@ -1,7 +1,13 @@
1
- # TODO: Searchables... perhaps as a mixin... lcase(blah) like lcase(?)
2
- # Maybe make everything mixin, and use things like Cartoonist.register "MyEntity"
3
1
  module CartoonistSuggestions
4
2
  class Engine < ::Rails::Engine
3
+ config.to_prepare do
4
+ Setting::Tab.define :suggestions, :order => 3 do
5
+ Setting::Section.define :page, :order => 1 do
6
+ Setting.define :suggestion_prefix, :type => :text
7
+ end
8
+ end
9
+ end
10
+
5
11
  Cartoonist::Navigation::Link.add :url => "/suggestions/new", :class => "suggest", :label => "cartoonist.layout.navigation.suggest", :order => 3
6
12
  Cartoonist::Admin::Tab.add :suggestions, :url => "/admin/suggestions"
7
13
  Cartoonist::Migration.add_for self
@@ -2,7 +2,7 @@ module CartoonistSuggestions
2
2
  class Version
3
3
  class << self
4
4
  def to_s
5
- "0.0.16"
5
+ "0.0.17"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,37 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cartoonist-suggestions
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.17
4
5
  prerelease:
5
- version: 0.0.16
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Mike Virata-Stone
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-12-15 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: cartoonist
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
21
- - - "="
22
- - !ruby/object:Gem::Version
23
- version: 0.0.16
18
+ requirements:
19
+ - - '='
20
+ - !ruby/object:Gem::Version
21
+ version: 0.0.17
24
22
  type: :runtime
25
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.0.17
26
30
  description: Plugin for community suggestion feedback.
27
31
  email: reasonnumber@gmail.com
28
32
  executables: []
29
-
30
33
  extensions: []
31
-
32
34
  extra_rdoc_files: []
33
-
34
- files:
35
+ files:
35
36
  - app/controllers/admin/suggestions_controller.rb
36
37
  - app/controllers/suggestions_controller.rb
37
38
  - app/models/suggestion.rb
@@ -48,30 +49,26 @@ files:
48
49
  - lib/cartoonist-suggestions/version.rb
49
50
  homepage: http://reasonnumber.com/cartoonist
50
51
  licenses: []
51
-
52
52
  post_install_message:
53
53
  rdoc_options: []
54
-
55
- require_paths:
54
+ require_paths:
56
55
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
58
57
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: "0"
63
- 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
64
63
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
69
68
  requirements: []
70
-
71
69
  rubyforge_project:
72
70
  rubygems_version: 1.8.24
73
71
  signing_key:
74
72
  specification_version: 3
75
73
  summary: Cartoonist Suggestions
76
74
  test_files: []
77
-