ramaze 2012.04.14 → 2012.12.08b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/.gems +28 -35
  2. data/.gitignore +4 -0
  3. data/.travis.yml +3 -3
  4. data/Gemfile +3 -0
  5. data/README.md +1 -5
  6. data/Rakefile +9 -20
  7. data/examples/app/blog/app.rb +5 -14
  8. data/examples/app/todolist/start.rb +1 -5
  9. data/guide/AUTHORS +8 -3
  10. data/guide/CHANGELOG +587 -0
  11. data/guide/general/cache.md +1 -0
  12. data/guide/general/configuration.md +2 -1
  13. data/guide/general/contributing.md +1 -0
  14. data/guide/general/controllers.md +105 -10
  15. data/guide/general/helpers.md +6 -7
  16. data/guide/general/installation.md +2 -1
  17. data/guide/general/logging.md +1 -4
  18. data/guide/general/middlewares.md +15 -23
  19. data/guide/general/models.md +1 -0
  20. data/guide/general/principles.md +1 -0
  21. data/guide/general/ramaze_command.md +9 -54
  22. data/guide/general/routes.md +1 -0
  23. data/guide/general/sessions.md +3 -2
  24. data/guide/general/special_thanks.md +1 -0
  25. data/guide/general/testing.md +1 -0
  26. data/guide/general/views.md +35 -22
  27. data/lib/proto/Gemfile +4 -0
  28. data/lib/proto/README.md +35 -0
  29. data/lib/proto/Rakefile +1 -0
  30. data/lib/proto/app.rb +2 -6
  31. data/lib/proto/spec/helper.rb +39 -0
  32. data/lib/proto/task/ramaze.rake +57 -0
  33. data/lib/ramaze.rb +12 -39
  34. data/lib/ramaze/bin/create.rb +1 -3
  35. data/lib/ramaze/bin/runner.rb +0 -14
  36. data/lib/ramaze/cache.rb +21 -0
  37. data/lib/ramaze/cache/memcache.rb +1 -3
  38. data/lib/ramaze/cache/redis.rb +2 -4
  39. data/lib/ramaze/cache/sequel.rb +4 -5
  40. data/lib/ramaze/controller.rb +10 -3
  41. data/lib/ramaze/default_middleware.rb +24 -0
  42. data/lib/ramaze/files.rb +5 -5
  43. data/lib/ramaze/gestalt.rb +10 -10
  44. data/lib/ramaze/helper/blue_form.rb +33 -6
  45. data/lib/ramaze/helper/csrf.rb +22 -30
  46. data/lib/ramaze/helper/flash.rb +1 -1
  47. data/lib/ramaze/helper/upload.rb +5 -3
  48. data/lib/ramaze/helper/user.rb +1 -0
  49. data/lib/ramaze/log.rb +0 -5
  50. data/lib/ramaze/log/informer.rb +3 -3
  51. data/lib/ramaze/log/logging.rb +4 -4
  52. data/lib/ramaze/log/syslog.rb +2 -2
  53. data/lib/ramaze/response.rb +1 -1
  54. data/lib/ramaze/snippets.rb +0 -20
  55. data/lib/ramaze/spec/bacon.rb +5 -13
  56. data/lib/ramaze/version.rb +1 -1
  57. data/lib/ramaze/view/erector.rb +1 -3
  58. data/lib/ramaze/view/erubis.rb +1 -3
  59. data/lib/ramaze/view/ezamar.rb +1 -3
  60. data/lib/ramaze/view/haml.rb +1 -4
  61. data/lib/ramaze/view/liquid.rb +1 -3
  62. data/lib/ramaze/view/lokar.rb +1 -3
  63. data/lib/ramaze/view/mustache.rb +1 -3
  64. data/lib/ramaze/view/nagoro.rb +1 -4
  65. data/lib/ramaze/view/remarkably.rb +1 -4
  66. data/lib/ramaze/view/sass.rb +2 -5
  67. data/lib/ramaze/view/slim.rb +1 -3
  68. data/lib/ramaze/view/slippers.rb +1 -3
  69. data/lib/ramaze/view/tagz.rb +1 -3
  70. data/lib/ramaze/view/tenjin.rb +1 -3
  71. data/ramaze.gemspec +45 -16
  72. data/spec/helper.rb +0 -1
  73. data/spec/ramaze/cache/localmemcache.rb +0 -4
  74. data/spec/ramaze/controller/mapping.rb +17 -0
  75. data/spec/ramaze/dispatcher/directory.rb +6 -5
  76. data/spec/ramaze/dispatcher/file.rb +7 -4
  77. data/spec/ramaze/files.rb +0 -2
  78. data/spec/ramaze/helper/csrf.rb +0 -26
  79. data/spec/ramaze/helper/upload.rb +1 -0
  80. data/spec/ramaze/helper/user.rb +12 -0
  81. data/spec/ramaze/log/syslog.rb +5 -1
  82. data/spec/ramaze/view/lokar.rb +1 -1
  83. data/spec/ramaze/view/nagoro.rb +1 -1
  84. data/tasks/bacon.rake +1 -1
  85. data/tasks/gems.rake +15 -0
  86. data/tasks/release.rake +37 -8
  87. metadata +106 -139
  88. data/guide/_static/ramaze_console.png +0 -0
  89. data/guide/tutorials/introduction.md +0 -263
  90. data/lib/proto/model/init.rb +0 -6
  91. data/lib/proto/public/.htaccess +0 -24
  92. data/lib/proto/public/dispatch.fcgi +0 -11
  93. data/lib/proto/spec/main.rb +0 -20
  94. data/lib/proto/start.rb +0 -20
  95. data/lib/ramaze/app_graph.rb +0 -105
  96. data/lib/ramaze/bin/console.rb +0 -87
  97. data/lib/ramaze/bin/helper.rb +0 -107
  98. data/lib/ramaze/bin/restart.rb +0 -95
  99. data/lib/ramaze/bin/start.rb +0 -221
  100. data/lib/ramaze/bin/status.rb +0 -152
  101. data/lib/ramaze/bin/stop.rb +0 -112
  102. data/lib/ramaze/dependencies.rb +0 -84
  103. data/lib/ramaze/helper/disqus.rb +0 -27
  104. data/lib/ramaze/helper/ultraviolet.rb +0 -49
  105. data/lib/ramaze/log/analogger.rb +0 -50
  106. data/lib/ramaze/log/growl.rb +0 -55
  107. data/lib/ramaze/log/knotify.rb +0 -31
  108. data/lib/ramaze/log/xosd.rb +0 -94
  109. data/lib/ramaze/middleware_compiler.rb +0 -36
  110. data/lib/ramaze/plugin.rb +0 -69
  111. data/lib/ramaze/setup.rb +0 -210
  112. data/lib/ramaze/snippets/array/put_within.rb +0 -38
  113. data/lib/ramaze/snippets/binding/locals.rb +0 -20
  114. data/lib/ramaze/snippets/fiber.rb +0 -41
  115. data/lib/ramaze/snippets/kernel/pretty_inspect.rb +0 -18
  116. data/lib/ramaze/snippets/metaid.rb +0 -17
  117. data/lib/ramaze/snippets/numeric/filesize_format.rb +0 -30
  118. data/lib/ramaze/snippets/numeric/time.rb +0 -59
  119. data/lib/ramaze/snippets/object/instance_variable_defined.rb +0 -16
  120. data/lib/ramaze/snippets/object/pretty.rb +0 -12
  121. data/lib/ramaze/snippets/object/scope.rb +0 -16
  122. data/lib/ramaze/snippets/ordered_set.rb +0 -51
  123. data/lib/ramaze/snippets/proc/locals.rb +0 -19
  124. data/lib/ramaze/snippets/ramaze/acquire.rb +0 -32
  125. data/lib/ramaze/snippets/ramaze/dictionary.rb +0 -400
  126. data/lib/ramaze/snippets/ramaze/fiber.rb +0 -24
  127. data/lib/ramaze/snippets/ramaze/struct.rb +0 -43
  128. data/lib/ramaze/snippets/string/end_with.rb +0 -17
  129. data/lib/ramaze/snippets/string/ord.rb +0 -16
  130. data/lib/ramaze/snippets/string/start_with.rb +0 -14
  131. data/lib/ramaze/snippets/thread/into.rb +0 -16
  132. data/lib/ramaze/spec.rb +0 -4
  133. data/spec/ramaze/bin/start.rb +0 -34
  134. data/spec/ramaze/log/growl.rb +0 -45
  135. data/spec/ramaze/struct.rb +0 -50
  136. data/spec/snippets/array/put_within.rb +0 -38
  137. data/spec/snippets/binding/locals.rb +0 -12
  138. data/spec/snippets/numeric/filesize_format.rb +0 -15
  139. data/spec/snippets/numeric/time.rb +0 -15
  140. data/spec/snippets/ordered_set.rb +0 -66
  141. data/spec/snippets/ramaze/acquire.rb +0 -80
  142. data/spec/snippets/ramaze/dictionary.rb +0 -113
  143. data/spec/snippets/ramaze/struct.rb +0 -15
  144. data/spec/snippets/thread/into.rb +0 -12
  145. data/tasks/gem.rake +0 -21
  146. data/tasks/setup.rake +0 -14
data/.gems CHANGED
@@ -1,35 +1,28 @@
1
- # .gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator
2
- bacon -v1.1.0
3
- dalli -v2.0.2
4
- erector -v0.8.3
5
- erubis -v2.7.0
6
- ezamar -v2009.06
7
- haml -v3.1.4
8
- hpricot -v0.8.6
9
- innate -v2012.03
10
- liquid -v2.3.0
11
- locale -v2.0.5
12
- lokar -v0.2.1
13
- maruku -v0.6.0
14
- mustache -v0.99.4
15
- nagoro -v2009.05
16
- polyglot -v0.3.3
17
- rack -v1.4.1
18
- rack-contrib -v1.1.0
19
- rack-test -v0.6.1
20
- rake -v0.9.2.2
21
- rdiscount -v1.6.8
22
- redis -v2.2.2
23
- Remarkably -v0.6.1
24
- sass -v3.1.15
25
- sequel -v3.34.1
26
- slim -v1.2.0
27
- slippers -v0.0.14
28
- sqlite3 -v1.3.5
29
- syntax -v1.0.0
30
- tagz -v9.3.0
31
- temple -v0.4.0
32
- tenjin -v0.7.1
33
- tilt -v1.3.3
34
- treetop -v1.4.10
35
- yard -v0.7.5
1
+ ramaze
2
+ Remarkably
3
+ bacon
4
+ dalli
5
+ erector
6
+ erubis
7
+ ezamar
8
+ haml
9
+ hpricot
10
+ liquid
11
+ locale
12
+ maruku
13
+ mustache
14
+ rack-contrib
15
+ rack-test
16
+ rdiscount
17
+ redis
18
+ sass
19
+ sequel
20
+ slim
21
+ slippers
22
+ sqlite3
23
+ tagz
24
+ tenjin
25
+ yard
26
+ localmemcache
27
+ lokar
28
+ nagoro
data/.gitignore CHANGED
@@ -8,3 +8,7 @@ ydoc
8
8
  *.rbc
9
9
  database.db
10
10
  .rbx
11
+ .idea/*
12
+ *.iml
13
+ .rbenv-version
14
+ Gemfile.lock
@@ -1,10 +1,10 @@
1
+ language: ruby
1
2
  script: 'rake bacon'
2
3
  rvm:
3
- - 1.8.7
4
4
  - 1.9.2
5
5
  - 1.9.3
6
- - rbx
7
- - ree
6
+ - jruby-19mode
7
+ - rbx-19mode
8
8
 
9
9
  notifications:
10
10
  email:
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
data/README.md CHANGED
@@ -21,7 +21,7 @@ layout of the resulting framework.
21
21
 
22
22
  Today Ramaze serves as a framework for those who want to develop their projects
23
23
  in their own way rather than being forced to work in a way that the framework
24
- (and it's creators) define. It tries not to make any assumptions and more
24
+ (and its creators) define. It tries not to make any assumptions and more
25
25
  importantly: it puts you back in control of your code. An example of this is the
26
26
  default file structure of new Ramaze projects. Out of the box a new project
27
27
  uses the MVC pattern. The cool thing about Ramaze however is that you're not
@@ -120,9 +120,5 @@ directory.
120
120
  * {file:general/logging Logging Information}
121
121
  * {file:general/testing Testing Ramaze}
122
122
 
123
- ## Tutorials
124
-
125
- * {file:tutorials/introduction Introduction Tutorial}
126
-
127
123
  [mailing list]: https://groups.google.com/forum/#!forum/ramaze
128
124
  [website]: http://ramaze.net/
data/Rakefile CHANGED
@@ -1,33 +1,22 @@
1
- begin; require 'rubygems'; rescue LoadError; end
1
+ require 'rubygems'
2
2
  require 'rake'
3
- require 'rake/clean'
4
3
  require 'date'
5
4
  require 'time'
5
+ require 'rubygems/package_task'
6
6
 
7
- # All the bacon specifications
8
7
  PROJECT_SPECS = Dir.glob(File.expand_path('../spec/ramaze/**/*.rb', __FILE__))
9
8
 
10
- # Load the gemspec so it's details can be used in all the Rake tasks
11
9
  GEMSPEC = Gem::Specification::load(
12
10
  File.expand_path('../ramaze.gemspec', __FILE__)
13
11
  )
14
12
 
15
- CLEAN.include %w[
16
- **/.*.sw?
17
- *.gem
18
- .config
19
- **/*~
20
- **/{data.db,cache.yaml}
21
- *.yaml
22
- pkg
23
- rdoc
24
- ydoc
25
- *coverage*
26
- ]
13
+ Gem::PackageTask.new(GEMSPEC) do |pkg|
14
+ pkg.need_tar = false
15
+ pkg.need_zip = false
16
+ end
27
17
 
28
- Dir.glob(File.expand_path('../tasks/*.rake', __FILE__)).each do |f|
29
- import(f)
18
+ Dir.glob(File.expand_path('../tasks/*.rake', __FILE__)).each do |task|
19
+ import task
30
20
  end
31
21
 
32
- # Set the default task to running all the bacon specifications
33
- task :default => [:bacon]
22
+ task :default => :bacon
@@ -2,22 +2,13 @@
2
2
  # parts of the application.
3
3
  #
4
4
  # It will be required from either `config.ru` or `start.rb`
5
- #
6
- # Note that the require 'rubygems' line is only required if you're running a
7
- # Ruby implementation that's based on 1.8 such as REE or Rubinius (although I'm
8
- # not sure if the latter actually requires this).
5
+
9
6
  require 'rubygems'
10
7
  require 'ramaze'
11
-
12
- # This block of code automatically downloads and installs all the specified
13
- # Gems. This is similar to how Bundler and Isolate work but in a much simpler
14
- # way.
15
- Ramaze.setup(:verbose => false) do
16
- gem 'sequel'
17
- gem 'sqlite3'
18
- gem 'bcrypt-ruby', :lib => 'bcrypt'
19
- gem 'rdiscount'
20
- end
8
+ require 'sequel'
9
+ require 'sqlite3'
10
+ require 'bcrypt'
11
+ require 'rdiscount'
21
12
 
22
13
  # Make sure that Ramaze knows where you are. Without this layouts and such
23
14
  # wouldn't be rendered. While Ramaze.options.roots includes "." (the current
@@ -1,10 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'ramaze'
3
-
4
- Ramaze.setup do
5
- gem 'sequel'
6
- end
7
-
3
+ require 'sequel'
8
4
  require __DIR__'controller/init'
9
5
  require __DIR__'model/init'
10
6
 
@@ -1,9 +1,9 @@
1
1
  Following persons have contributed to ramaze.
2
2
  (Sorted by number of submitted patches, then alphabetically)
3
3
 
4
- 2732 Michael Fellinger <m.fellinger@gmail.com>
4
+ 2740 Michael Fellinger <m.fellinger@gmail.com>
5
+ 231 Yorick Peterse <yorickpeterse@gmail.com>
5
6
  216 Aman Gupta <aman@ramaze.net>
6
- 164 Yorick Peterse <yorickpeterse@gmail.com>
7
7
  89 Jonathan Buch <jonathan.buch@gmail.com>
8
8
  77 Pistos <gitsomegrace.5.pistos@geoshell.com>
9
9
  69 Clive Crous <clive@crous.co.za>
@@ -16,6 +16,7 @@ Following persons have contributed to ramaze.
16
16
  11 Wang, Jinjing <nfjinjing@gmail.com>
17
17
  10 Lee Jarvis <lee@jarvis.co>
18
18
  8 Mario Gutierrez <mgutz@mgutz-mbp.local>
19
+ 8 Michel Blanc <mb@mbnet.fr>
19
20
  7 Tadahiko Uehara <kikofx@gmail.com>
20
21
  6 Aki Reijonen <aki.reijonen@gmail.com>
21
22
  6 Antti Tuomi <antti.tuomi@tkk.fi>
@@ -23,21 +24,23 @@ Following persons have contributed to ramaze.
23
24
  5 Dmitry Gorbik <socket.h@gmail.com>
24
25
  5 mwlang <mwlang@cybrains.net>
25
26
  4 Andreas Karlsson <andreas@proxel.se>
27
+ 4 Diego Viola <diego.viola@gmail.com>
26
28
  4 James Tucker <jftucker@gmail.com>
27
29
  4 John Pagonis <john@pagonis.org>
28
30
  4 Masahiro Nakagawa <repeatedly@gmail.com>
29
31
  4 mig <mig@mypeplum.com>
30
32
  3 Chris Duncan <celldee@gmail.com>
33
+ 3 Claudemiro <dimiro1@gmail.com>
31
34
  3 Clinton R. Nixon <clinton.nixon@viget.com>
32
35
  3 Riku Raisaenen <riku@helloit.fi>
33
36
  3 starapor <me@sarahtaraporewalla.com>
34
37
  3 Stas SUȘCOV <stas@net.utcluj.ro>
35
- 3 Yorick Peterse <yorick@isset.nl>
36
38
  2 Andrew Farmer <xichekolas@gmail.com>
37
39
  2 jShaf <joshua.shaffner@gmail.com>
38
40
  2 Yutaka HARA <yutaka.hara+github@gmail.com>
39
41
  1 Aaron Mueller <mail@aaron-mueller.de>
40
42
  1 Ara T. Howard <ara.t.howard@gmail.com>
43
+ 1 Arnaud Meuret <arnaud@meuret.name>
41
44
  1 Bruno Rohée <bruno@rohee.com>
42
45
  1 Carlo Zottmann <carlo@zottmann.org>
43
46
  1 Cheah Chu Yeow <chuyeow@gmail.com>
@@ -50,10 +53,12 @@ Following persons have contributed to ramaze.
50
53
  1 Francesc Esplugas <francesc.esplugas@gmail.com>
51
54
  1 Gavin Kistner <gavin@phrogz.net>
52
55
  1 huma <huma@boxbot.org>
56
+ 1 Isak Andersson <IcePapih@lavabit.com>
53
57
  1 Jason Torres <jason.e.torres@gmail.com>
54
58
  1 Jean-Francois Chevrette <jfchevrette@iweb.ca>
55
59
  1 Jeremy Evans <code@jeremyevans.net>
56
60
  1 kez <kdobson@gmail.com>
61
+ 1 leucos <leucos@michel.erasme.lan>
57
62
  1 Marc Weber <marco-oweber@gmx.de>
58
63
  1 Martin Hilbig <blueonyx@dev-area.net>
59
64
  1 Matt Rubens <mrubens@goldencookie.localdomain>
@@ -1,3 +1,590 @@
1
+ [d94938b | Fri Dec 07 23:27:39 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
2
+
3
+ * Switch back to dates for versions.
4
+
5
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
6
+
7
+ [c57c6e8 | Fri Dec 07 23:22:56 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
8
+
9
+ * Use 3.0.0 for the next version.
10
+
11
+ Due to the way Rubygems sorts Gem versions using the version number "2.0.0"
12
+ would producte unreliable results.
13
+
14
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
15
+
16
+ [30abe12 | Fri Dec 07 22:07:54 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
17
+
18
+ * Strip newlines of the confirmation message.
19
+
20
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
21
+
22
+ [1cf5ce9 | Fri Dec 07 22:06:36 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
23
+
24
+ * Build the gem before pushing it.
25
+
26
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
27
+
28
+ [e8ff001 | Fri Dec 07 22:05:03 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
29
+
30
+ * Release 2.0.0b
31
+
32
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
33
+
34
+ [f73e5c4 | Fri Dec 07 22:04:43 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
35
+
36
+ * Uncommented the Git commands in the release task.
37
+
38
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
39
+
40
+ [95bcea8 | Fri Dec 07 22:03:54 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
41
+
42
+ * Updated the release Rake tasks.
43
+
44
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
45
+
46
+ [720daea | Fri Dec 07 22:03:34 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
47
+
48
+ * Auto generate the release date.
49
+
50
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
51
+
52
+ [45cbb80 | Fri Dec 07 21:49:25 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
53
+
54
+ * New setup for writing Ramaze applications.
55
+
56
+ Most of the code from the `ramaze` command has been removed from the executable
57
+ into individual Rake tasks located in the prototype. This makes it easier for
58
+ developers to customize these parts (e.g. by using a custom REPL) as well as
59
+ making it easier to maintain Ramaze itself.
60
+
61
+ With these changes I've also removed the tutorials section from the userguide.
62
+ It hasn't been updated in a while and with these changes was no longer really
63
+ useful.
64
+
65
+ In short the following changes:
66
+
67
+ * ramaze start => rake ramaze:start
68
+ * ramaze console => rake ramaze:irb or rake ramaze:pry
69
+ * Rake is now a dependency of Ramaze so that it's installed when installing
70
+ Ramaze
71
+ * ramaze stop, status and restart have been removed
72
+
73
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
74
+
75
+ [8d53dca | Fri Dec 07 20:22:16 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
76
+
77
+ * Fixed a bunch of YARD formatting errors.
78
+
79
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
80
+
81
+ [938a9c4 | Fri Dec 07 20:11:34 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
82
+
83
+ * Updated the documentation on logging.
84
+
85
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
86
+
87
+ [03352e5 | Fri Dec 07 20:04:35 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
88
+
89
+ * CSRF expiration and custom field names.
90
+
91
+ CSRF tokens are no longer expired during a existing session. Automatically
92
+ expiring them doesn't make things a whole lot more secure. It also makes it
93
+ impossible to use the same session in multiple browser windows/tabs, this is
94
+ due to the token being re-generated upon successful requests which in turn
95
+ would invalidate existing tokens.
96
+
97
+ Developers are now also able to specify a custom name for the field containing
98
+ the CSRF token. This can be done by setting
99
+ `Ramaze::Helper::CSRF.options.field_name`.
100
+
101
+ This commit fixes #31.
102
+
103
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
104
+
105
+ [900d4e7 | Fri Dec 07 19:52:36 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
106
+
107
+ * Fix for storing data using the Sequel cache.
108
+
109
+ Due to a bug the Sequel cache would store data for all users, this has been
110
+ fixed by filtering out records based on the unique namespaced key for each
111
+ user.
112
+
113
+ This commit fixes #54. thanks to @joegsn for reporting it.
114
+
115
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
116
+
117
+ [f79efba | Fri Dec 07 19:47:20 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
118
+
119
+ * Updated the version number.
120
+
121
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
122
+
123
+ [4758a06 | Thu Dec 06 23:41:39 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
124
+
125
+ * Updated the Travis configuration.
126
+
127
+ Ruby versions based on 1.8 will no longer be tested.
128
+
129
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
130
+
131
+ [b1df1f5 | Thu Dec 06 23:37:08 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
132
+
133
+ * Removed more useless helpers/loggers.
134
+
135
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
136
+
137
+ [b3662f0 | Thu Dec 06 23:10:37 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
138
+
139
+ * Removed ramaze/spec.rb.
140
+
141
+ This file has been deprecated for a long time.
142
+
143
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
144
+
145
+ [2024702 | Thu Dec 06 23:07:56 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
146
+
147
+ * Removed Ramaze.setup, Plugin and AppGraph.
148
+
149
+ Ramaze.setup was removed due to the lack of tests and Bundler (and similar
150
+ tools) being a much better tool to solve this problem. Ramaze::Plugin and
151
+ Ramaze::AppGraph were also removed due to the lack of tests and not being used
152
+ internally.
153
+
154
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
155
+
156
+ [7e966dc | Thu Dec 06 22:53:25 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
157
+
158
+ * Removed a ton of snippets.
159
+
160
+ Most of these snippets were either unused by Ramaze itself or were originally
161
+ added to provide compatibility between Ruby 1.8/1.9. There also werent any
162
+ tests for quite a few of these snippets.
163
+
164
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
165
+
166
+ [86cc398 | Thu Dec 06 21:50:43 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
167
+
168
+ * Removed a left over reference to Growl.
169
+
170
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
171
+
172
+ [0e45ce9 | Thu Dec 06 21:44:51 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
173
+
174
+ * Removed the Growl logger.
175
+
176
+ This logger was fairly useless for both development and production
177
+ environments. It was also a pain to test, even on OS X.
178
+
179
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
180
+
181
+ [dfbb949 | Thu Dec 06 21:40:31 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
182
+
183
+ * Cleaning up shop.
184
+
185
+ To make it easier for developers to hack on Ramaze I've started changing
186
+ several parts of Ramaze related to how it handles dependencies and how the
187
+ release process is executed.
188
+
189
+ To make things easier I've added a Gemfile to the project (as well as an
190
+ updated .gems file). This means people can install the development gems by
191
+ simply running `bundle install`.
192
+
193
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
194
+
195
+ [b9d1294 | Wed Dec 05 23:27:38 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
196
+
197
+ * New way of setting middleware.
198
+
199
+ Middleware are now set similar to how it's done in Innate HEAD.
200
+
201
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
202
+
203
+ [2f52ae6 | Wed Oct 03 22:37:16 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
204
+
205
+ * Fixed Ramaze's middleware handling.
206
+
207
+ Turns out that calls such as `self.app` (see the various commits I made in the
208
+ Innate repository) can be a bit of a pain. While Ramaze "mirrors" the various
209
+ Innate constants it would apparently create a clone of `Innate.app` instead of
210
+ a reference (maybe something else equally weird was going on though).
211
+
212
+ Fixing this was rather easy, after I found out what the heck was going on. I
213
+ removed `Ramaze.recompile_middleware` since it offers no benefits over
214
+ `Innate.recompile_middleware` as well as having changed a few references to
215
+ `Innate.app`. This along with the various changes I made to the Innate code
216
+ means that Ramaze now plays along nicely with Innate.
217
+
218
+ Since I'm currently on a plane somewhere high in the sky (insert Top Gun tune
219
+ here) there's a chance my way of thinking has gone wack. Because of that I'm
220
+ asking @manveru and @leucos to take a look at this commit for some much needed
221
+ feedback.
222
+
223
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
224
+
225
+ [2deb0c5 | Mon Sep 24 16:04:46 UTC 2012] Michael Fellinger <m.fellinger@gmail.com>
226
+
227
+ * fix middlewares
228
+
229
+ [1887faa | Wed Sep 19 10:00:45 UTC 2012] Isak Andersson <IcePapih@lavabit.com>
230
+
231
+ * Fixes small grammatic typo in configuration.md
232
+
233
+ "Ramaze does not automatically tries to" -> "Ramaze does not automatically try to"
234
+
235
+ [523ade0 | Thu Jul 19 10:14:07 UTC 2012] Arnaud Meuret <arnaud@meuret.name>
236
+
237
+ * Escape % sequences before handing messages to ::Syslog
238
+
239
+ [2baf79c | Sun Jul 15 18:30:49 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
240
+
241
+ * Simplified loading of Rack::ETag.
242
+
243
+ Checking for the arity of Rack::ETag is no longer needed.
244
+
245
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
246
+
247
+ [abd969b | Sun Jul 15 18:25:14 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
248
+
249
+ * Fixed the file dispatcher specification.
250
+
251
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
252
+
253
+ [f9fb78c | Sun Jul 15 18:24:10 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
254
+
255
+ * Fixed the directory dispatcher specification.
256
+
257
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
258
+
259
+ [723bc3c | Sun Jul 15 18:18:57 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
260
+
261
+ * Use Ramaze.middleware instead of .middleware!
262
+
263
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
264
+
265
+ [d0c4ef2 | Sun Jul 15 18:18:52 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
266
+
267
+ * Remove the dependency on RackFileWrapper.
268
+
269
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
270
+
271
+ [6f0be19 | Sun Jul 15 18:18:51 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
272
+
273
+ * Remove the dependency on RackFileWrapper.
274
+
275
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
276
+
277
+ [a7ca4e7 | Sun Jul 15 17:57:29 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
278
+
279
+ * Initial steps for Ramaze 2.0.
280
+
281
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
282
+
283
+ [f46eb24 | Sun Jun 24 22:39:53 UTC 2012] Michel Blanc <mb@mbnet.fr>
284
+
285
+ * Fixes issue #43
286
+
287
+ Closes uploaded file, since leaving it opened doesn't seem to be
288
+ required, and it might lead to issues on Win32.
289
+ Added spec to check that file has been closed.
290
+
291
+ [2b59453 | Sun Jun 24 14:52:16 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
292
+
293
+ * Clarify that layouts should be set outside actions
294
+
295
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
296
+
297
+ [6fb93b5 | Fri Jun 15 20:38:20 UTC 2012] Michel Blanc <mb@mbnet.fr>
298
+
299
+ * Adds sid regenration on user logout
300
+
301
+ When Ramaze::Helper::UserHelper#_logout is called, the session.sid is
302
+ not regenerated. This can confuse session tracking libraries that rely
303
+ on session IDs.
304
+ This patch forces _logout to regenerate a sid.
305
+ A test is included to ensure sid rotation at logout.
306
+
307
+ [724bb3f | Thu May 17 18:58:41 UTC 2012] Claudemiro <dimiro1@gmail.com>
308
+
309
+ * Ramaze::Controller.generate_mapping must respect custom irregular mappings.
310
+
311
+ [f0a1423 | Wed May 16 20:13:18 UTC 2012] Claudemiro <dimiro1@gmail.com>
312
+
313
+ * Spec doesn't map Module::Controller
314
+
315
+ This spec was missing.
316
+
317
+ [deafc3b | Wed May 16 19:57:57 UTC 2012] Claudemiro <dimiro1@gmail.com>
318
+
319
+ * Fix generate_mapping method in Ramaze::Controller
320
+
321
+ This method should generate the URI for the full namespace of the class:
322
+
323
+ Irregular:
324
+
325
+ 1. Controller should map to nil
326
+ 2. Module::Controller should map to nil
327
+ 3. MainController should map to /
328
+ 4. Module::MainController should map to /module
329
+
330
+ Regular:
331
+
332
+ 1. ClassController should map to /class
333
+ 2. Class should map to /class
334
+ 3. Module::ClassController should map to /module/class
335
+
336
+ [edabd3c | Mon May 14 17:53:04 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
337
+
338
+ * Make Ramaze::Cache app aware.
339
+
340
+ Innate used a hardcoded value of "pristine" for cache namespaces due to not
341
+ having a concept of applications such as Ramaze has. This meant that if you had
342
+ two applications running on the same host and user as well as using the same
343
+ cache (e.g. Memcached) you'd end up with the problem of data being overwritten
344
+ by these applications.
345
+
346
+ For example, assume you have two applications:
347
+
348
+ 1. "a"
349
+ 2. "b"
350
+
351
+ If you were to run these applications on host "myhost" and user "myuser" you'd
352
+ end up with the following cache keys, regardless of the value of
353
+ `Ramaze.options.app.name`:
354
+
355
+ 1. myhost-myuser-pristine-memcached
356
+ 2. myhost-myuser-pristine-memcached
357
+
358
+ This commit will change those keys to the following:
359
+
360
+ 1. myhost-myuser-a-memcached
361
+ 2. myhost-myuser-b-memcached
362
+
363
+ Of course this assumes you've properly set the application names. If these are
364
+ not set the code will default to "pristine".
365
+
366
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
367
+
368
+ [9c4e39c | Mon May 14 17:20:26 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
369
+
370
+ * render_partial() does call an action.
371
+
372
+ The documentation has been updated to clarify that render_partial() does call an
373
+ action opposed to render_view() which does not.
374
+
375
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
376
+
377
+ [4f7651e | Sat May 12 19:04:02 UTC 2012] Michel Blanc <mb@mbnet.fr>
378
+
379
+ * Fixes typo from last commit and adds blueform object paramter explanation
380
+
381
+ Last commit introduced typos, which this patch corrects.
382
+ A small blurb is added to explain one of the coolest thing that can be
383
+ done with blueform: memoizing user entry and redisplay the form after
384
+ server side form (in)validation.
385
+
386
+ [67a0acd | Sat May 12 18:52:03 UTC 2012] Michel Blanc <mb@mbnet.fr>
387
+
388
+ * Adds blue form examples and #g hint
389
+
390
+ It wasn't obvious how one had to do to generate tags not covered by
391
+ current Form methods. This patch gives a hint on using Form#g to get a
392
+ Gestalt instance back, and use it as usual.
393
+
394
+ An example is added to illustrate this and show how to use additional
395
+ arguments to set attibutes.
396
+
397
+ [e017cbc | Sat May 12 15:53:42 UTC 2012] Michel Blanc <mb@mbnet.fr>
398
+
399
+ * Fixes blue_form html doc tags and code syntax
400
+
401
+ HTML tags referenced in the documentation were not escaped. Thus, when
402
+ rendered as HTML, those tags weren't displayed properly in the browser.
403
+ This patch escapes them as suggested by yorickpeterse.
404
+
405
+ One of the examples wasn't syntactically correct, and had an extra do
406
+ before the block. This is not removed and the example parses properly.
407
+
408
+ [c6a332c | Sat May 12 13:32:54 UTC 2012] Michel Blanc <mb@mbnet.fr>
409
+
410
+ * Fixes rendering of in-documentation html tag
411
+
412
+ The <p> tag cited in documentation is not escaped by Yard.
413
+ May be yard has an option to handle this, but for now this patch solves
414
+ this by escaping < and > to html entities
415
+
416
+ [f163277 | Sun Apr 29 00:16:58 UTC 2012] Diego Viola <diego.viola@gmail.com>
417
+
418
+ * more small fix/details
419
+
420
+ [a9b32d0 | Sun Apr 29 00:05:19 UTC 2012] Diego Viola <diego.viola@gmail.com>
421
+
422
+ * use : only once for text
423
+
424
+ [8cd6ed3 | Thu Apr 26 11:33:51 UTC 2012] Diego Viola <diego.viola@gmail.com>
425
+
426
+ * spell fix
427
+
428
+ [d498217 | Wed Apr 25 21:33:26 UTC 2012] Diego Viola <diego.viola@gmail.com>
429
+
430
+ * fix spelling error
431
+
432
+ [eab77b1 | Tue Apr 17 10:03:12 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
433
+
434
+ * Custom titles for all static markdown files.
435
+
436
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
437
+
438
+ [5df6b75 | Tue Apr 17 09:41:21 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
439
+
440
+ * Fixed a minor formatting issue in controllers.md.
441
+
442
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
443
+
444
+ [b672513 | Tue Apr 17 09:38:46 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
445
+
446
+ * Described method parameters and routing.
447
+
448
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
449
+
450
+ [f61d3da | Sat Apr 14 17:29:21 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
451
+
452
+ * Ramaze 2012.04.14.
453
+
454
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
455
+
456
+ [ced58a0 | Sat Apr 14 16:54:15 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
457
+
458
+ * Sessions specs for Sequel, LRU and LocalMemCache.
459
+
460
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
461
+
462
+ [27cab7f | Sat Apr 14 12:08:50 UTC 2012] Michael Fellinger <m.fellinger@gmail.com>
463
+
464
+ * also make sure we use namespaced keys in cache_delete
465
+
466
+ [487aee1 | Sat Apr 14 12:03:21 UTC 2012] Michael Fellinger <m.fellinger@gmail.com>
467
+
468
+ * namespace keys in redis
469
+
470
+ [28add0c | Sat Apr 14 12:00:12 UTC 2012] Michael Fellinger <m.fellinger@gmail.com>
471
+
472
+ * only use default when value is nil
473
+
474
+ [be0b31e | Sat Apr 14 11:56:07 UTC 2012] Michael Fellinger <m.fellinger@gmail.com>
475
+
476
+ * speed up redis cache spec a bit
477
+
478
+ [f419146 | Sat Apr 14 11:15:56 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
479
+
480
+ * Encode session data when using Redis.
481
+
482
+ The cache adapter Ramaze::Cache::Redis would store raw values opposed to
483
+ encoding them using Marshal. This would make it impossible for this adapter to
484
+ be used for sessions as session data is stored in a hash opposed to a simple
485
+ string.
486
+
487
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
488
+
489
+ [467b5b5 | Fri Apr 06 12:21:07 UTC 2012] Michel Blanc <mb@mbnet.fr>
490
+
491
+ * Fixes typos in tutorial
492
+
493
+ [da08072 | Tue Apr 03 19:24:42 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
494
+
495
+ * Update for Cache::MemCache and Dalli 2.
496
+
497
+ Dalli 2 deprecated the :compression option in favor of simply :compress. The
498
+ code of Ramaze::Cache::MemCache has been updated to use the new option along
499
+ with a minimum version of Dalli (2.0.2).
500
+
501
+ This commit fixes #36.
502
+
503
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
504
+
505
+ [97d5967 | Tue Apr 03 19:22:20 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
506
+
507
+ * Updated the .gems file.
508
+
509
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
510
+
511
+ [31bab37 | Fri Mar 23 15:20:25 UTC 2012] Yorick Peterse <yorick@isset.nl>
512
+
513
+ * Title update in the README.
514
+
515
+ The title for testing Ramaze code was changed from "Testing with Ramaze" to
516
+ simply "Testing Ramaze".
517
+
518
+ Signed-off-by: Yorick Peterse <yorick@isset.nl>
519
+
520
+ [528ce2d | Thu Mar 22 19:27:24 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
521
+
522
+ * Updated the special thanks page.
523
+
524
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
525
+
526
+ [0b1537f | Thu Mar 22 19:24:57 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
527
+
528
+ * Re-wrote and expanded the testing guide.
529
+
530
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
531
+
532
+ [f45ad1f | Thu Mar 22 18:25:48 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
533
+
534
+ * Use specific version numbers for the .gems file.
535
+
536
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
537
+
538
+ [92b1f26 | Sat Mar 17 11:20:14 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
539
+
540
+ * Fixed another typo in the README.
541
+
542
+ Again thanks to dotbaiki for reporting it.
543
+
544
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
545
+
546
+ [9bffef4 | Sat Mar 17 10:56:49 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
547
+
548
+ * Fixed a typo, thanks dotbaiki for reporting it.
549
+
550
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
551
+
552
+ [13a0945 | Mon Mar 12 17:37:58 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
553
+
554
+ * Document the ability to customize the pager HTML.
555
+
556
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
557
+
558
+ [510cb54 | Mon Mar 12 17:32:37 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
559
+
560
+ * Removed some useless whitespace.
561
+
562
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
563
+
564
+ [95abb19 | Sun Mar 11 19:24:21 UTC 2012] leucos <leucos@michel.erasme.lan>
565
+
566
+ * Added customization for css classes in the Paginate helper
567
+
568
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
569
+
570
+ [b215063 | Mon Mar 12 08:28:00 UTC 2012] Yorick Peterse <yorick@isset.nl>
571
+
572
+ * Updated the .mailmap file.
573
+
574
+ Signed-off-by: Yorick Peterse <yorick@isset.nl>
575
+
576
+ [64224c8 | Mon Mar 12 08:27:25 UTC 2012] Yorick Peterse <yorick@isset.nl>
577
+
578
+ * Updated the list of Gems in the .gems file.
579
+
580
+ Signed-off-by: Yorick Peterse <yorick@isset.nl>
581
+
582
+ [6be53eb | Wed Mar 07 18:41:59 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
583
+
584
+ * Release 2012.03.07.
585
+
586
+ Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
587
+
1
588
  [aa5d48f | Mon Mar 05 19:08:01 UTC 2012] Yorick Peterse <yorickpeterse@gmail.com>
2
589
 
3
590
  * Updated the list of authors and the changelog.