patricia 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +25 -0
  3. data/Gemfile +12 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +77 -0
  6. data/Rakefile +2 -0
  7. data/bin/patricia +48 -0
  8. data/lib/patricia/app.rb +258 -0
  9. data/lib/patricia/assets/javascripts/app.js +170 -0
  10. data/lib/patricia/assets/javascripts/bootstrap.min.js +7 -0
  11. data/lib/patricia/assets/javascripts/jquery-1.11.0.min.js +4 -0
  12. data/lib/patricia/assets/javascripts/tooltips.js +10 -0
  13. data/lib/patricia/assets/stylesheets/app.css +22 -0
  14. data/lib/patricia/assets/stylesheets/bootstrap.min.css +7 -0
  15. data/lib/patricia/cli.rb +66 -0
  16. data/lib/patricia/patricia.rb +248 -0
  17. data/lib/patricia/version.rb +3 -0
  18. data/lib/patricia/views/404.haml +12 -0
  19. data/lib/patricia/views/application.haml +18 -0
  20. data/lib/patricia/views/search.haml +62 -0
  21. data/lib/patricia/views/wiki/page.haml +31 -0
  22. data/lib/patricia/views/wiki/welcome.md +101 -0
  23. data/lib/patricia.rb +3 -0
  24. data/patricia/.gitignore +22 -0
  25. data/patricia.gemspec +25 -0
  26. data/spec/app_spec.rb +195 -0
  27. data/spec/assets/javascripts/one.js +1 -0
  28. data/spec/assets/javascripts/two.js +1 -0
  29. data/spec/assets/stylesheets/green.css +3 -0
  30. data/spec/assets/stylesheets/red.css +3 -0
  31. data/spec/patricia_wiki_spec.rb +123 -0
  32. data/spec/random-test-wiki/amazing-animals/index.md +3 -0
  33. data/spec/random-test-wiki/amazing-animals/small/hamster.md +7 -0
  34. data/spec/random-test-wiki/amazing-animals/small/mouse.md +13 -0
  35. data/spec/random-test-wiki/amazing-animals/small/rat.md +7 -0
  36. data/spec/random-test-wiki/amazing-animals/tall/elephant.md +13 -0
  37. data/spec/random-test-wiki/amazing-animals/tall/giraffe.md +7 -0
  38. data/spec/random-test-wiki/colors/blue.md +9 -0
  39. data/spec/random-test-wiki/colors/bright-orange.org +19 -0
  40. data/spec/random-test-wiki/colors/dark-yellow.textile +14 -0
  41. data/spec/random-test-wiki/colors/file.txt +3 -0
  42. data/spec/random-test-wiki/colors/green.markdown +3 -0
  43. data/spec/random-test-wiki/colors/image.png +0 -0
  44. data/spec/random-test-wiki/colors/light-pink.rst +74 -0
  45. data/spec/random-test-wiki/colors/red.md +7 -0
  46. data/spec/random-test-wiki/overview.md +15 -0
  47. data/spec/test_helpers.rb +11 -0
  48. metadata +143 -0
@@ -0,0 +1,14 @@
1
+ h1. Give RedCloth a try!
2
+
3
+ 46dbe50e-be4a-42b9-8796-50ddf302ead0
4
+
5
+ This is the color *yellow*.
6
+
7
+ A *simple* paragraph with
8
+ a line break, some _emphasis_ and a "link":http://redcloth.org
9
+
10
+ * an item
11
+ * and another
12
+
13
+ # one
14
+ # two
@@ -0,0 +1,3 @@
1
+ This is a file
2
+
3
+ That is the end.
@@ -0,0 +1,3 @@
1
+ # Green
2
+
3
+ This is *green*.
@@ -0,0 +1,74 @@
1
+ Section Header
2
+ ==============
3
+
4
+ 8c180fdb-6db8-404d-ba7c-0fe8487234a3
5
+
6
+ This is the color *pink*.
7
+
8
+ Unordered List
9
+ --------------
10
+
11
+ - A bullet list item
12
+
13
+ - Second item
14
+
15
+ - A sub item
16
+
17
+ - Third item
18
+
19
+ Enumerated List
20
+ ---------------
21
+
22
+ 1) An enumerated list item
23
+
24
+ 2) Second item
25
+
26
+ a) Sub item that goes on at length and thus needs
27
+ to be wrapped. Note the indentation that must
28
+ match the beginning of the text, not the
29
+ enumerator.
30
+
31
+ i) Sub-sub item
32
+
33
+ 3) Third item
34
+
35
+
36
+ Here is another enumerated list:
37
+
38
+ #) Another enumerated list item
39
+
40
+ #) Second item
41
+
42
+
43
+ Image
44
+ -----
45
+
46
+ .. image:: image.jpg
47
+
48
+ Links
49
+ -----
50
+
51
+ A sentence with links to Wikipedia_ and the `Linux kernel archive`_.
52
+
53
+ .. _Wikipedia: http://www.wikipedia.org/
54
+ .. _Linux kernel archive: http://www.kernel.org/
55
+
56
+
57
+ Another sentence with an `anonymous link to the Python website`__.
58
+
59
+ __ http://www.python.org/
60
+
61
+ Literal Text
62
+ ------------
63
+
64
+ ::
65
+
66
+ some literal text
67
+
68
+ This may also be used inline at the end of a paragraph, like so::
69
+
70
+ some more literal text
71
+
72
+ .. code:: python
73
+
74
+ print("A literal block directive explicitly marked as python code")
@@ -0,0 +1,7 @@
1
+ # Red
2
+
3
+ This is *red*.
4
+
5
+ ## Image
6
+
7
+ ![Image](/colors/image.png)
@@ -0,0 +1,15 @@
1
+ # Overview
2
+ This is an overview.
3
+
4
+ # Quick Links
5
+
6
+ - [Red color](/colors/red)
7
+
8
+ # Info
9
+
10
+ Here is a list of things:
11
+ - sunshine
12
+ - tree
13
+ - blue sky
14
+ - clouds
15
+ - rain
@@ -0,0 +1,11 @@
1
+ module TestHelpers
2
+ def load_config(config)
3
+ pwd = File.dirname(__FILE__)
4
+ config = {:markup_dir => File.join(pwd, 'random-test-wiki')}
5
+ .merge(config)
6
+ # Write config file
7
+ File.open(File.expand_path('../bin/app_config.yml', pwd), 'w') do |f|
8
+ f.puts config.to_yaml
9
+ end
10
+ end
11
+ end
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: patricia
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - nounch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Renders markup Wiki pages in the browser or generates static files. Hierarchical
42
+ tree navigation for all pages is provided.
43
+ email:
44
+ - ''
45
+ executables:
46
+ - patricia
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - Gemfile
52
+ - LICENSE.txt
53
+ - README.md
54
+ - Rakefile
55
+ - bin/patricia
56
+ - lib/patricia.rb
57
+ - lib/patricia/app.rb
58
+ - lib/patricia/assets/javascripts/app.js
59
+ - lib/patricia/assets/javascripts/bootstrap.min.js
60
+ - lib/patricia/assets/javascripts/jquery-1.11.0.min.js
61
+ - lib/patricia/assets/javascripts/tooltips.js
62
+ - lib/patricia/assets/stylesheets/app.css
63
+ - lib/patricia/assets/stylesheets/bootstrap.min.css
64
+ - lib/patricia/cli.rb
65
+ - lib/patricia/patricia.rb
66
+ - lib/patricia/version.rb
67
+ - lib/patricia/views/404.haml
68
+ - lib/patricia/views/application.haml
69
+ - lib/patricia/views/search.haml
70
+ - lib/patricia/views/wiki/page.haml
71
+ - lib/patricia/views/wiki/welcome.md
72
+ - patricia.gemspec
73
+ - patricia/.gitignore
74
+ - spec/app_spec.rb
75
+ - spec/assets/javascripts/one.js
76
+ - spec/assets/javascripts/two.js
77
+ - spec/assets/stylesheets/green.css
78
+ - spec/assets/stylesheets/red.css
79
+ - spec/patricia_wiki_spec.rb
80
+ - spec/random-test-wiki/amazing-animals/index.md
81
+ - spec/random-test-wiki/amazing-animals/small/hamster.md
82
+ - spec/random-test-wiki/amazing-animals/small/mouse.md
83
+ - spec/random-test-wiki/amazing-animals/small/rat.md
84
+ - spec/random-test-wiki/amazing-animals/tall/elephant.md
85
+ - spec/random-test-wiki/amazing-animals/tall/giraffe.md
86
+ - spec/random-test-wiki/colors/blue.md
87
+ - spec/random-test-wiki/colors/bright-orange.org
88
+ - spec/random-test-wiki/colors/dark-yellow.textile
89
+ - spec/random-test-wiki/colors/file.txt
90
+ - spec/random-test-wiki/colors/green.markdown
91
+ - spec/random-test-wiki/colors/image.png
92
+ - spec/random-test-wiki/colors/light-pink.rst
93
+ - spec/random-test-wiki/colors/red.md
94
+ - spec/random-test-wiki/overview.md
95
+ - spec/test_helpers.rb
96
+ homepage: ''
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.2.2
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: Minimal markup-based Wiki
120
+ test_files:
121
+ - spec/app_spec.rb
122
+ - spec/assets/javascripts/one.js
123
+ - spec/assets/javascripts/two.js
124
+ - spec/assets/stylesheets/green.css
125
+ - spec/assets/stylesheets/red.css
126
+ - spec/patricia_wiki_spec.rb
127
+ - spec/random-test-wiki/amazing-animals/index.md
128
+ - spec/random-test-wiki/amazing-animals/small/hamster.md
129
+ - spec/random-test-wiki/amazing-animals/small/mouse.md
130
+ - spec/random-test-wiki/amazing-animals/small/rat.md
131
+ - spec/random-test-wiki/amazing-animals/tall/elephant.md
132
+ - spec/random-test-wiki/amazing-animals/tall/giraffe.md
133
+ - spec/random-test-wiki/colors/blue.md
134
+ - spec/random-test-wiki/colors/bright-orange.org
135
+ - spec/random-test-wiki/colors/dark-yellow.textile
136
+ - spec/random-test-wiki/colors/file.txt
137
+ - spec/random-test-wiki/colors/green.markdown
138
+ - spec/random-test-wiki/colors/image.png
139
+ - spec/random-test-wiki/colors/light-pink.rst
140
+ - spec/random-test-wiki/colors/red.md
141
+ - spec/random-test-wiki/overview.md
142
+ - spec/test_helpers.rb
143
+ has_rdoc: