md_preview 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/COPYING +341 -0
  2. data/LICENSE +56 -0
  3. data/README.markdown +74 -0
  4. data/Rakefile +37 -0
  5. data/app/controllers/markdown_controller.rb +7 -0
  6. data/config/routes.rb +3 -0
  7. data/lib/md_preview/engine.rb +4 -0
  8. data/lib/md_preview/parser.rb +17 -0
  9. data/lib/md_preview/version.rb +3 -0
  10. data/lib/md_preview.rb +3 -0
  11. data/lib/tasks/md_preview_tasks.rake +4 -0
  12. data/test/dummy/Rakefile +7 -0
  13. data/test/dummy/app/assets/javascripts/application.js +9 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  15. data/test/dummy/app/controllers/application_controller.rb +3 -0
  16. data/test/dummy/app/helpers/application_helper.rb +2 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/test/dummy/config/application.rb +48 -0
  19. data/test/dummy/config/boot.rb +10 -0
  20. data/test/dummy/config/environment.rb +5 -0
  21. data/test/dummy/config/environments/development.rb +30 -0
  22. data/test/dummy/config/environments/production.rb +60 -0
  23. data/test/dummy/config/environments/test.rb +39 -0
  24. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  25. data/test/dummy/config/initializers/inflections.rb +10 -0
  26. data/test/dummy/config/initializers/mime_types.rb +5 -0
  27. data/test/dummy/config/initializers/secret_token.rb +7 -0
  28. data/test/dummy/config/initializers/session_store.rb +8 -0
  29. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  30. data/test/dummy/config/locales/en.yml +5 -0
  31. data/test/dummy/config/routes.rb +58 -0
  32. data/test/dummy/config.ru +4 -0
  33. data/test/dummy/log/test.log +0 -0
  34. data/test/dummy/public/404.html +26 -0
  35. data/test/dummy/public/422.html +26 -0
  36. data/test/dummy/public/500.html +26 -0
  37. data/test/dummy/public/favicon.ico +0 -0
  38. data/test/dummy/script/rails +6 -0
  39. data/test/md_preview_test.rb +7 -0
  40. data/test/test_helper.rb +10 -0
  41. data/vendor/assets/javascripts/jquery.elastic.js +162 -0
  42. data/vendor/assets/javascripts/md_preview.js +114 -0
  43. data/vendor/assets/stylesheets/md_preview.sass +67 -0
  44. metadata +145 -0
@@ -0,0 +1,67 @@
1
+ div.markdown-preview
2
+ div.tab-container
3
+ border: 0.5em solid #eee
4
+ border-top: 0
5
+ padding: 0.5em
6
+ margin-bottom: 1em
7
+
8
+ textarea
9
+ width: 96.5%
10
+ height: 250px
11
+ font-size: 1.1em
12
+ font-family: sans-serif
13
+ padding: 0.75em
14
+ margin: 0
15
+
16
+ div.preview
17
+ min-height: 145px
18
+
19
+ ul.tabs
20
+ margin: 0
21
+ margin-top: 1em
22
+ padding: 0
23
+ list-style: none
24
+ height: 30px
25
+ padding: 5px
26
+ background: #eee
27
+ font-size: 0.9em
28
+
29
+ li
30
+ float: left
31
+ margin: 0
32
+ margin-right: 10px
33
+ padding: 0
34
+ height: 29px
35
+ line-height: 29px
36
+ overflow: hidden
37
+ position: relative
38
+ //+border-radius(10px) TODO: Replace
39
+ font-family: 'Helvetica', sans-serif
40
+ font-size: 1.2em
41
+
42
+ &.label
43
+ float: right
44
+ color: #888
45
+ font-size: 0.9em
46
+ a
47
+ display: inline-block
48
+ padding: 0
49
+ color: #888
50
+ text-decoration: underline
51
+ &:hover
52
+ background: #eee
53
+ color: #333
54
+
55
+ &.active
56
+ background: #fff
57
+ a:hover
58
+ background: #fff
59
+ a
60
+ text-decoration: none
61
+ color: #000
62
+ display: block
63
+ padding: 0 20px
64
+ //+border-radius(10px) TODO: Replace
65
+ line-height: 29px
66
+ &:hover
67
+ background: #ccc
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: md_preview
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jordan Byron
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-06 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &2153056360 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2153056360
25
+ - !ruby/object:Gem::Dependency
26
+ name: redcarpet
27
+ requirement: &2153055820 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 2.0.0b3
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2153055820
36
+ description: Rails plugin to unobtrusively add markdown preview to textareas
37
+ email:
38
+ - jordan@ducksoupsoftware.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - app/controllers/markdown_controller.rb
44
+ - config/routes.rb
45
+ - lib/md_preview/engine.rb
46
+ - lib/md_preview/parser.rb
47
+ - lib/md_preview/version.rb
48
+ - lib/md_preview.rb
49
+ - lib/tasks/md_preview_tasks.rake
50
+ - vendor/assets/javascripts/jquery.elastic.js
51
+ - vendor/assets/javascripts/md_preview.js
52
+ - vendor/assets/stylesheets/md_preview.sass
53
+ - Rakefile
54
+ - README.markdown
55
+ - LICENSE
56
+ - COPYING
57
+ - test/dummy/app/assets/javascripts/application.js
58
+ - test/dummy/app/assets/stylesheets/application.css
59
+ - test/dummy/app/controllers/application_controller.rb
60
+ - test/dummy/app/helpers/application_helper.rb
61
+ - test/dummy/app/views/layouts/application.html.erb
62
+ - test/dummy/config/application.rb
63
+ - test/dummy/config/boot.rb
64
+ - test/dummy/config/environment.rb
65
+ - test/dummy/config/environments/development.rb
66
+ - test/dummy/config/environments/production.rb
67
+ - test/dummy/config/environments/test.rb
68
+ - test/dummy/config/initializers/backtrace_silencers.rb
69
+ - test/dummy/config/initializers/inflections.rb
70
+ - test/dummy/config/initializers/mime_types.rb
71
+ - test/dummy/config/initializers/secret_token.rb
72
+ - test/dummy/config/initializers/session_store.rb
73
+ - test/dummy/config/initializers/wrap_parameters.rb
74
+ - test/dummy/config/locales/en.yml
75
+ - test/dummy/config/routes.rb
76
+ - test/dummy/config.ru
77
+ - test/dummy/log/test.log
78
+ - test/dummy/public/404.html
79
+ - test/dummy/public/422.html
80
+ - test/dummy/public/500.html
81
+ - test/dummy/public/favicon.ico
82
+ - test/dummy/Rakefile
83
+ - test/dummy/script/rails
84
+ - test/md_preview_test.rb
85
+ - test/test_helper.rb
86
+ homepage: https://github.com/mendicant-university/md_preview
87
+ licenses: []
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ none: false
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ segments:
99
+ - 0
100
+ hash: -4153533771174014377
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ segments:
108
+ - 0
109
+ hash: -4153533771174014377
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 1.8.6
113
+ signing_key:
114
+ specification_version: 3
115
+ summary: Markdown preview for Rails
116
+ test_files:
117
+ - test/dummy/app/assets/javascripts/application.js
118
+ - test/dummy/app/assets/stylesheets/application.css
119
+ - test/dummy/app/controllers/application_controller.rb
120
+ - test/dummy/app/helpers/application_helper.rb
121
+ - test/dummy/app/views/layouts/application.html.erb
122
+ - test/dummy/config/application.rb
123
+ - test/dummy/config/boot.rb
124
+ - test/dummy/config/environment.rb
125
+ - test/dummy/config/environments/development.rb
126
+ - test/dummy/config/environments/production.rb
127
+ - test/dummy/config/environments/test.rb
128
+ - test/dummy/config/initializers/backtrace_silencers.rb
129
+ - test/dummy/config/initializers/inflections.rb
130
+ - test/dummy/config/initializers/mime_types.rb
131
+ - test/dummy/config/initializers/secret_token.rb
132
+ - test/dummy/config/initializers/session_store.rb
133
+ - test/dummy/config/initializers/wrap_parameters.rb
134
+ - test/dummy/config/locales/en.yml
135
+ - test/dummy/config/routes.rb
136
+ - test/dummy/config.ru
137
+ - test/dummy/log/test.log
138
+ - test/dummy/public/404.html
139
+ - test/dummy/public/422.html
140
+ - test/dummy/public/500.html
141
+ - test/dummy/public/favicon.ico
142
+ - test/dummy/Rakefile
143
+ - test/dummy/script/rails
144
+ - test/md_preview_test.rb
145
+ - test/test_helper.rb