clog 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/README.rdoc +4 -0
  2. data/Rakefile +0 -17
  3. data/clog.gemspec +16 -199
  4. data/lib/clog.rb +2 -5
  5. data/test/rails_root/Gemfile +42 -0
  6. data/test/rails_root/Gemfile.lock +120 -0
  7. data/test/{rails3x_root/README → rails_root/README.rdoc} +13 -8
  8. data/test/{rails3x_root → rails_root}/Rakefile +2 -2
  9. data/test/{rails2x_root/public → rails_root/app/assets}/images/rails.png +0 -0
  10. data/test/rails_root/app/assets/javascripts/application.js +15 -0
  11. data/test/rails_root/app/assets/javascripts/welcome.js.coffee +3 -0
  12. data/test/rails_root/app/assets/stylesheets/application.css +13 -0
  13. data/test/rails_root/app/assets/stylesheets/welcome.css.scss +3 -0
  14. data/test/{rails3x_root → rails_root}/app/controllers/application_controller.rb +0 -0
  15. data/test/{rails3x_root/app/controllers/public_controller.rb → rails_root/app/controllers/welcome_controller.rb} +4 -2
  16. data/test/{rails3x_root → rails_root}/app/helpers/application_helper.rb +0 -0
  17. data/test/rails_root/app/helpers/welcome_helper.rb +2 -0
  18. data/test/rails_root/app/views/layouts/application.html.erb +14 -0
  19. data/test/{rails3x_root → rails_root}/config.ru +1 -1
  20. data/test/{rails3x_root → rails_root}/config/application.rb +27 -7
  21. data/test/rails_root/config/boot.rb +6 -0
  22. data/test/{rails2x_root → rails_root}/config/database.yml +4 -1
  23. data/test/{rails3x_root → rails_root}/config/environment.rb +1 -1
  24. data/test/rails_root/config/environments/development.rb +37 -0
  25. data/test/rails_root/config/environments/production.rb +67 -0
  26. data/test/{rails3x_root → rails_root}/config/environments/test.rb +11 -9
  27. data/test/{rails3x_root → rails_root}/config/initializers/backtrace_silencers.rb +0 -0
  28. data/test/{rails3x_root → rails_root}/config/initializers/inflections.rb +5 -0
  29. data/test/{rails2x_root → rails_root}/config/initializers/mime_types.rb +0 -0
  30. data/test/{rails3x_root → rails_root}/config/initializers/secret_token.rb +1 -1
  31. data/test/rails_root/config/initializers/session_store.rb +8 -0
  32. data/test/rails_root/config/initializers/wrap_parameters.rb +14 -0
  33. data/test/{rails3x_root → rails_root}/config/locales/en.yml +1 -1
  34. data/test/{rails3x_root → rails_root}/config/routes.rb +7 -7
  35. data/test/{rails2x_root/public/favicon.ico → rails_root/db/development.sqlite3} +0 -0
  36. data/test/{rails3x_root → rails_root}/db/seeds.rb +2 -2
  37. data/test/rails_root/doc/README_FOR_APP +2 -0
  38. data/test/rails_root/log/development.log +212 -0
  39. data/test/{rails3x_root → rails_root}/public/404.html +0 -0
  40. data/test/{rails3x_root → rails_root}/public/422.html +0 -0
  41. data/test/{rails3x_root → rails_root}/public/500.html +0 -1
  42. data/test/{rails3x_root → rails_root}/public/favicon.ico +0 -0
  43. data/test/{rails2x_root → rails_root}/public/robots.txt +0 -0
  44. data/test/{rails3x_root → rails_root}/script/rails +0 -0
  45. data/test/rails_root/test/functional/welcome_controller_test.rb +7 -0
  46. data/test/rails_root/test/performance/browsing_test.rb +12 -0
  47. data/test/{rails3x_root → rails_root}/test/test_helper.rb +0 -0
  48. data/test/rails_root/test/unit/helpers/welcome_helper_test.rb +4 -0
  49. data/test/rails_root/tmp/cache/assets/CF0/DA0/sprockets%2Fd7d5b37686831d37c4dd75e645f5e016 +0 -0
  50. data/test/rails_root/tmp/cache/assets/E25/4C0/sprockets%2Fde2fd9fd11c04a582cdbbe3d84a35ae6 +0 -0
  51. data/test/rails_root/tmp/pids/server.pid +1 -0
  52. data/test/test_clog.rb +16 -6
  53. metadata +86 -212
  54. data/.document +0 -5
  55. data/.gitignore +0 -23
  56. data/VERSION +0 -1
  57. data/created.rid +0 -1
  58. data/init.rb +0 -5
  59. data/test/common/functional/public_controller_test.rb +0 -11
  60. data/test/common/migrate/20100821014956_create_users.rb +0 -13
  61. data/test/common/public_controller.rb +0 -11
  62. data/test/common/unit/helpers/public_helper_test.rb +0 -4
  63. data/test/common/unit/user_test.rb +0 -17
  64. data/test/common/user.rb +0 -2
  65. data/test/helper.rb +0 -9
  66. data/test/rails2x_root.tar.gz +0 -0
  67. data/test/rails2x_root/README +0 -243
  68. data/test/rails2x_root/Rakefile +0 -10
  69. data/test/rails2x_root/app/controllers/application_controller.rb +0 -10
  70. data/test/rails2x_root/app/controllers/public_controller.rb +0 -11
  71. data/test/rails2x_root/app/helpers/application_helper.rb +0 -3
  72. data/test/rails2x_root/app/helpers/public_helper.rb +0 -2
  73. data/test/rails2x_root/app/models/user.rb +0 -2
  74. data/test/rails2x_root/config/boot.rb +0 -110
  75. data/test/rails2x_root/config/environment.rb +0 -23
  76. data/test/rails2x_root/config/environments/development.rb +0 -17
  77. data/test/rails2x_root/config/environments/production.rb +0 -28
  78. data/test/rails2x_root/config/environments/test.rb +0 -28
  79. data/test/rails2x_root/config/initializers/backtrace_silencers.rb +0 -7
  80. data/test/rails2x_root/config/initializers/cookie_verification_secret.rb +0 -7
  81. data/test/rails2x_root/config/initializers/inflections.rb +0 -10
  82. data/test/rails2x_root/config/initializers/new_rails_defaults.rb +0 -21
  83. data/test/rails2x_root/config/initializers/session_store.rb +0 -15
  84. data/test/rails2x_root/config/locales/en.yml +0 -5
  85. data/test/rails2x_root/config/routes.rb +0 -43
  86. data/test/rails2x_root/db/schema.rb +0 -21
  87. data/test/rails2x_root/db/seeds.rb +0 -7
  88. data/test/rails2x_root/public/404.html +0 -30
  89. data/test/rails2x_root/public/422.html +0 -30
  90. data/test/rails2x_root/public/500.html +0 -30
  91. data/test/rails2x_root/public/javascripts/application.js +0 -2
  92. data/test/rails2x_root/public/javascripts/controls.js +0 -963
  93. data/test/rails2x_root/public/javascripts/dragdrop.js +0 -973
  94. data/test/rails2x_root/public/javascripts/effects.js +0 -1128
  95. data/test/rails2x_root/public/javascripts/prototype.js +0 -4320
  96. data/test/rails2x_root/script/about +0 -4
  97. data/test/rails2x_root/script/console +0 -3
  98. data/test/rails2x_root/script/dbconsole +0 -3
  99. data/test/rails2x_root/script/destroy +0 -3
  100. data/test/rails2x_root/script/generate +0 -3
  101. data/test/rails2x_root/script/performance/benchmarker +0 -3
  102. data/test/rails2x_root/script/performance/profiler +0 -3
  103. data/test/rails2x_root/script/plugin +0 -3
  104. data/test/rails2x_root/script/runner +0 -3
  105. data/test/rails2x_root/script/server +0 -3
  106. data/test/rails2x_root/test/fixtures/users.yml +0 -11
  107. data/test/rails2x_root/test/performance/browsing_test.rb +0 -9
  108. data/test/rails2x_root/test/test_helper.rb +0 -39
  109. data/test/rails3x_root/.gitignore +0 -4
  110. data/test/rails3x_root/Gemfile +0 -32
  111. data/test/rails3x_root/Gemfile.lock +0 -81
  112. data/test/rails3x_root/app/helpers/public_helper.rb +0 -2
  113. data/test/rails3x_root/app/models/user.rb +0 -2
  114. data/test/rails3x_root/app/views/layouts/application.html.erb +0 -14
  115. data/test/rails3x_root/config/boot.rb +0 -13
  116. data/test/rails3x_root/config/database.yml +0 -22
  117. data/test/rails3x_root/config/environments/development.rb +0 -22
  118. data/test/rails3x_root/config/environments/production.rb +0 -49
  119. data/test/rails3x_root/config/initializers/mime_types.rb +0 -5
  120. data/test/rails3x_root/config/initializers/session_store.rb +0 -8
  121. data/test/rails3x_root/db/schema.rb +0 -22
  122. data/test/rails3x_root/lib/tasks/.gitkeep +0 -0
  123. data/test/rails3x_root/public/images/rails.png +0 -0
  124. data/test/rails3x_root/public/javascripts/application.js +0 -2
  125. data/test/rails3x_root/public/javascripts/controls.js +0 -965
  126. data/test/rails3x_root/public/javascripts/dragdrop.js +0 -974
  127. data/test/rails3x_root/public/javascripts/effects.js +0 -1123
  128. data/test/rails3x_root/public/javascripts/prototype.js +0 -6001
  129. data/test/rails3x_root/public/javascripts/rails.js +0 -175
  130. data/test/rails3x_root/public/robots.txt +0 -5
  131. data/test/rails3x_root/public/stylesheets/.gitkeep +0 -0
  132. data/test/rails3x_root/test/fixtures/users.yml +0 -11
  133. data/test/rails3x_root/test/functional.tar.gz +0 -0
  134. data/test/rails3x_root/test/performance/browsing_test.rb +0 -9
  135. data/test/rails3x_root/test/unit.tar.gz +0 -0
data/README.rdoc CHANGED
@@ -77,6 +77,10 @@ of maxwidth as representing the width of your terminal window. The default is 15
77
77
 
78
78
  version 0.2.0 now outputs during testing (not to log but to shell)
79
79
 
80
+ version 0.2.1 does the opposite of the above line. Tests now have
81
+ too much formatting and output, so lets log to test.log if we're
82
+ running in a rails env
83
+
80
84
  == Copyright
81
85
 
82
86
  Copyright (c) 2010 Kevin Swope. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,23 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- summary = "Little rails debugging gem for writing colorized output to log file."
8
- gem.name = "clog"
9
- gem.summary = summary
10
- gem.description = summary
11
- gem.email = "gems-kevdev@snkmail.com"
12
- gem.homepage = "http://github.com/kswope/clog"
13
- gem.authors = ["Kevin Swope"]
14
- gem.add_dependency('term-ansicolor')
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20
- end
21
4
 
22
5
  desc "build README.html from README.doc (for previewing in browser)"
23
6
  task :readme do
data/clog.gemspec CHANGED
@@ -1,206 +1,23 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
1
+
5
2
 
6
3
  Gem::Specification.new do |s|
7
- s.name = %q{clog}
8
- s.version = "0.2.0"
9
4
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
5
+ s.name = 'clog'
6
+
7
+ s.version = '1.0.0'
8
+
9
+ s.summary = "Little rails debugging gem for writing colorized output to log file."
10
+
11
+ s.description = "Little rails debugging gem for writing colorized output to log file."
12
+
11
13
  s.authors = ["Kevin Swope"]
12
- s.date = %q{2010-10-07}
13
- s.description = %q{Little rails debugging gem for writing colorized output to log file.}
14
- s.email = %q{gems-kevdev@snkmail.com}
15
- s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "clog.gemspec",
27
- "created.rid",
28
- "init.rb",
29
- "lib/clog.rb",
30
- "test/common/functional/public_controller_test.rb",
31
- "test/common/migrate/20100821014956_create_users.rb",
32
- "test/common/public_controller.rb",
33
- "test/common/unit/helpers/public_helper_test.rb",
34
- "test/common/unit/user_test.rb",
35
- "test/common/user.rb",
36
- "test/helper.rb",
37
- "test/rails2x_root.tar.gz",
38
- "test/rails2x_root/README",
39
- "test/rails2x_root/Rakefile",
40
- "test/rails2x_root/app/controllers/application_controller.rb",
41
- "test/rails2x_root/app/controllers/public_controller.rb",
42
- "test/rails2x_root/app/helpers/application_helper.rb",
43
- "test/rails2x_root/app/helpers/public_helper.rb",
44
- "test/rails2x_root/app/models/user.rb",
45
- "test/rails2x_root/config/boot.rb",
46
- "test/rails2x_root/config/database.yml",
47
- "test/rails2x_root/config/environment.rb",
48
- "test/rails2x_root/config/environments/development.rb",
49
- "test/rails2x_root/config/environments/production.rb",
50
- "test/rails2x_root/config/environments/test.rb",
51
- "test/rails2x_root/config/initializers/backtrace_silencers.rb",
52
- "test/rails2x_root/config/initializers/cookie_verification_secret.rb",
53
- "test/rails2x_root/config/initializers/inflections.rb",
54
- "test/rails2x_root/config/initializers/mime_types.rb",
55
- "test/rails2x_root/config/initializers/new_rails_defaults.rb",
56
- "test/rails2x_root/config/initializers/session_store.rb",
57
- "test/rails2x_root/config/locales/en.yml",
58
- "test/rails2x_root/config/routes.rb",
59
- "test/rails2x_root/db/schema.rb",
60
- "test/rails2x_root/db/seeds.rb",
61
- "test/rails2x_root/public/404.html",
62
- "test/rails2x_root/public/422.html",
63
- "test/rails2x_root/public/500.html",
64
- "test/rails2x_root/public/favicon.ico",
65
- "test/rails2x_root/public/images/rails.png",
66
- "test/rails2x_root/public/javascripts/application.js",
67
- "test/rails2x_root/public/javascripts/controls.js",
68
- "test/rails2x_root/public/javascripts/dragdrop.js",
69
- "test/rails2x_root/public/javascripts/effects.js",
70
- "test/rails2x_root/public/javascripts/prototype.js",
71
- "test/rails2x_root/public/robots.txt",
72
- "test/rails2x_root/script/about",
73
- "test/rails2x_root/script/console",
74
- "test/rails2x_root/script/dbconsole",
75
- "test/rails2x_root/script/destroy",
76
- "test/rails2x_root/script/generate",
77
- "test/rails2x_root/script/performance/benchmarker",
78
- "test/rails2x_root/script/performance/profiler",
79
- "test/rails2x_root/script/plugin",
80
- "test/rails2x_root/script/runner",
81
- "test/rails2x_root/script/server",
82
- "test/rails2x_root/test/fixtures/users.yml",
83
- "test/rails2x_root/test/performance/browsing_test.rb",
84
- "test/rails2x_root/test/test_helper.rb",
85
- "test/rails3x_root/.gitignore",
86
- "test/rails3x_root/Gemfile",
87
- "test/rails3x_root/Gemfile.lock",
88
- "test/rails3x_root/README",
89
- "test/rails3x_root/Rakefile",
90
- "test/rails3x_root/app/controllers/application_controller.rb",
91
- "test/rails3x_root/app/controllers/public_controller.rb",
92
- "test/rails3x_root/app/helpers/application_helper.rb",
93
- "test/rails3x_root/app/helpers/public_helper.rb",
94
- "test/rails3x_root/app/models/user.rb",
95
- "test/rails3x_root/app/views/layouts/application.html.erb",
96
- "test/rails3x_root/config.ru",
97
- "test/rails3x_root/config/application.rb",
98
- "test/rails3x_root/config/boot.rb",
99
- "test/rails3x_root/config/database.yml",
100
- "test/rails3x_root/config/environment.rb",
101
- "test/rails3x_root/config/environments/development.rb",
102
- "test/rails3x_root/config/environments/production.rb",
103
- "test/rails3x_root/config/environments/test.rb",
104
- "test/rails3x_root/config/initializers/backtrace_silencers.rb",
105
- "test/rails3x_root/config/initializers/inflections.rb",
106
- "test/rails3x_root/config/initializers/mime_types.rb",
107
- "test/rails3x_root/config/initializers/secret_token.rb",
108
- "test/rails3x_root/config/initializers/session_store.rb",
109
- "test/rails3x_root/config/locales/en.yml",
110
- "test/rails3x_root/config/routes.rb",
111
- "test/rails3x_root/db/schema.rb",
112
- "test/rails3x_root/db/seeds.rb",
113
- "test/rails3x_root/lib/tasks/.gitkeep",
114
- "test/rails3x_root/public/404.html",
115
- "test/rails3x_root/public/422.html",
116
- "test/rails3x_root/public/500.html",
117
- "test/rails3x_root/public/favicon.ico",
118
- "test/rails3x_root/public/images/rails.png",
119
- "test/rails3x_root/public/javascripts/application.js",
120
- "test/rails3x_root/public/javascripts/controls.js",
121
- "test/rails3x_root/public/javascripts/dragdrop.js",
122
- "test/rails3x_root/public/javascripts/effects.js",
123
- "test/rails3x_root/public/javascripts/prototype.js",
124
- "test/rails3x_root/public/javascripts/rails.js",
125
- "test/rails3x_root/public/robots.txt",
126
- "test/rails3x_root/public/stylesheets/.gitkeep",
127
- "test/rails3x_root/script/rails",
128
- "test/rails3x_root/test/fixtures/users.yml",
129
- "test/rails3x_root/test/functional.tar.gz",
130
- "test/rails3x_root/test/performance/browsing_test.rb",
131
- "test/rails3x_root/test/test_helper.rb",
132
- "test/rails3x_root/test/unit.tar.gz",
133
- "test/test_clog.rb"
134
- ]
135
- s.homepage = %q{http://github.com/kswope/clog}
136
- s.rdoc_options = ["--charset=UTF-8"]
137
- s.require_paths = ["lib"]
138
- s.rubygems_version = %q{1.3.7}
139
- s.summary = %q{Little rails debugging gem for writing colorized output to log file.}
140
- s.test_files = [
141
- "test/common/functional/public_controller_test.rb",
142
- "test/common/migrate/20100821014956_create_users.rb",
143
- "test/common/public_controller.rb",
144
- "test/common/unit/helpers/public_helper_test.rb",
145
- "test/common/unit/user_test.rb",
146
- "test/common/user.rb",
147
- "test/helper.rb",
148
- "test/rails2x_root/app/controllers/application_controller.rb",
149
- "test/rails2x_root/app/controllers/public_controller.rb",
150
- "test/rails2x_root/app/helpers/application_helper.rb",
151
- "test/rails2x_root/app/helpers/public_helper.rb",
152
- "test/rails2x_root/app/models/user.rb",
153
- "test/rails2x_root/config/boot.rb",
154
- "test/rails2x_root/config/environment.rb",
155
- "test/rails2x_root/config/environments/development.rb",
156
- "test/rails2x_root/config/environments/production.rb",
157
- "test/rails2x_root/config/environments/test.rb",
158
- "test/rails2x_root/config/initializers/backtrace_silencers.rb",
159
- "test/rails2x_root/config/initializers/cookie_verification_secret.rb",
160
- "test/rails2x_root/config/initializers/inflections.rb",
161
- "test/rails2x_root/config/initializers/mime_types.rb",
162
- "test/rails2x_root/config/initializers/new_rails_defaults.rb",
163
- "test/rails2x_root/config/initializers/session_store.rb",
164
- "test/rails2x_root/config/routes.rb",
165
- "test/rails2x_root/db/schema.rb",
166
- "test/rails2x_root/db/seeds.rb",
167
- "test/rails2x_root/test/performance/browsing_test.rb",
168
- "test/rails2x_root/test/test_helper.rb",
169
- "test/rails3x_root/app/controllers/application_controller.rb",
170
- "test/rails3x_root/app/controllers/public_controller.rb",
171
- "test/rails3x_root/app/helpers/application_helper.rb",
172
- "test/rails3x_root/app/helpers/public_helper.rb",
173
- "test/rails3x_root/app/models/user.rb",
174
- "test/rails3x_root/config/application.rb",
175
- "test/rails3x_root/config/boot.rb",
176
- "test/rails3x_root/config/environment.rb",
177
- "test/rails3x_root/config/environments/development.rb",
178
- "test/rails3x_root/config/environments/production.rb",
179
- "test/rails3x_root/config/environments/test.rb",
180
- "test/rails3x_root/config/initializers/backtrace_silencers.rb",
181
- "test/rails3x_root/config/initializers/inflections.rb",
182
- "test/rails3x_root/config/initializers/mime_types.rb",
183
- "test/rails3x_root/config/initializers/secret_token.rb",
184
- "test/rails3x_root/config/initializers/session_store.rb",
185
- "test/rails3x_root/config/routes.rb",
186
- "test/rails3x_root/db/schema.rb",
187
- "test/rails3x_root/db/seeds.rb",
188
- "test/rails3x_root/test/performance/browsing_test.rb",
189
- "test/rails3x_root/test/test_helper.rb",
190
- "test/test_clog.rb"
191
- ]
192
14
 
193
- if s.respond_to? :specification_version then
194
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
195
- s.specification_version = 3
15
+ s.email = "gems-kevdev@snkmail.com"
196
16
 
197
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
198
- s.add_runtime_dependency(%q<term-ansicolor>, [">= 0"])
199
- else
200
- s.add_dependency(%q<term-ansicolor>, [">= 0"])
201
- end
202
- else
203
- s.add_dependency(%q<term-ansicolor>, [">= 0"])
204
- end
205
- end
17
+ s.files = Dir.glob("**/*")
18
+
19
+ s.homepage = "http://github.com/kswope/clog"
206
20
 
21
+ s.add_runtime_dependency 'term-ansicolor', '>=0'
22
+
23
+ end
data/lib/clog.rb CHANGED
@@ -22,7 +22,7 @@ class Clog
22
22
  def clog(*args)
23
23
 
24
24
  # write to appopriate stream
25
- if defined?(Rails.logger) && Rails.env != 'test'
25
+ if defined?(Rails.logger)
26
26
  Rails.logger.debug(message(*args))
27
27
  else # for testing
28
28
  puts message(*args)
@@ -99,11 +99,8 @@ class Clog
99
99
  line = match[2]
100
100
  func = match[3]
101
101
 
102
- # try to remove Rails.root from path
103
- #path[Rails.root.to_s] = "" if defined?(Rails.root)
102
+ # try to remove Rails.root from path, shorten what we have to display
104
103
  path.gsub!(/#{Rails.root}\//, '') if defined?(Rails.root)
105
-
106
- #path.gsub!(/#{RAILS_ROOT}\//, '') if defined? RAILS_ROOT
107
104
 
108
105
  "#{path}:#{line} #{func}()"
109
106
 
@@ -0,0 +1,42 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rails', '3.2.12'
4
+
5
+ # Bundle edge Rails instead:
6
+ # gem 'rails', :git => 'git://github.com/rails/rails.git'
7
+
8
+ gem 'sqlite3'
9
+
10
+
11
+ # what we are here to test!
12
+ gem "clog", :path => "../.."
13
+
14
+
15
+ # Gems used only for assets and not required
16
+ # in production environments by default.
17
+ group :assets do
18
+ gem 'sass-rails', '~> 3.2.3'
19
+ gem 'coffee-rails', '~> 3.2.1'
20
+
21
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
22
+ # gem 'therubyracer', :platforms => :ruby
23
+
24
+ gem 'uglifier', '>= 1.0.3'
25
+ end
26
+
27
+ gem 'jquery-rails'
28
+
29
+ # To use ActiveModel has_secure_password
30
+ # gem 'bcrypt-ruby', '~> 3.0.0'
31
+
32
+ # To use Jbuilder templates for JSON
33
+ # gem 'jbuilder'
34
+
35
+ # Use unicorn as the app server
36
+ # gem 'unicorn'
37
+
38
+ # Deploy with Capistrano
39
+ # gem 'capistrano'
40
+
41
+ # To use debugger
42
+ # gem 'debugger'
@@ -0,0 +1,120 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ clog (1.0.0)
5
+ term-ansicolor
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.12)
11
+ actionpack (= 3.2.12)
12
+ mail (~> 2.4.4)
13
+ actionpack (3.2.12)
14
+ activemodel (= 3.2.12)
15
+ activesupport (= 3.2.12)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.12)
24
+ activesupport (= 3.2.12)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.12)
27
+ activemodel (= 3.2.12)
28
+ activesupport (= 3.2.12)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.12)
32
+ activemodel (= 3.2.12)
33
+ activesupport (= 3.2.12)
34
+ activesupport (3.2.12)
35
+ i18n (~> 0.6)
36
+ multi_json (~> 1.0)
37
+ arel (3.0.2)
38
+ builder (3.0.4)
39
+ coffee-rails (3.2.2)
40
+ coffee-script (>= 2.2.0)
41
+ railties (~> 3.2.0)
42
+ coffee-script (2.2.0)
43
+ coffee-script-source
44
+ execjs
45
+ coffee-script-source (1.6.2)
46
+ erubis (2.7.0)
47
+ execjs (1.4.0)
48
+ multi_json (~> 1.0)
49
+ hike (1.2.1)
50
+ i18n (0.6.4)
51
+ journey (1.0.4)
52
+ jquery-rails (2.2.1)
53
+ railties (>= 3.0, < 5.0)
54
+ thor (>= 0.14, < 2.0)
55
+ json (1.7.7)
56
+ mail (2.4.4)
57
+ i18n (>= 0.4.0)
58
+ mime-types (~> 1.16)
59
+ treetop (~> 1.4.8)
60
+ mime-types (1.22)
61
+ multi_json (1.7.2)
62
+ polyglot (0.3.3)
63
+ rack (1.4.5)
64
+ rack-cache (1.2)
65
+ rack (>= 0.4)
66
+ rack-ssl (1.3.3)
67
+ rack
68
+ rack-test (0.6.2)
69
+ rack (>= 1.0)
70
+ rails (3.2.12)
71
+ actionmailer (= 3.2.12)
72
+ actionpack (= 3.2.12)
73
+ activerecord (= 3.2.12)
74
+ activeresource (= 3.2.12)
75
+ activesupport (= 3.2.12)
76
+ bundler (~> 1.0)
77
+ railties (= 3.2.12)
78
+ railties (3.2.12)
79
+ actionpack (= 3.2.12)
80
+ activesupport (= 3.2.12)
81
+ rack-ssl (~> 1.3.2)
82
+ rake (>= 0.8.7)
83
+ rdoc (~> 3.4)
84
+ thor (>= 0.14.6, < 2.0)
85
+ rake (10.0.4)
86
+ rdoc (3.12.2)
87
+ json (~> 1.4)
88
+ sass (3.2.7)
89
+ sass-rails (3.2.6)
90
+ railties (~> 3.2.0)
91
+ sass (>= 3.1.10)
92
+ tilt (~> 1.3)
93
+ sprockets (2.2.2)
94
+ hike (~> 1.2)
95
+ multi_json (~> 1.0)
96
+ rack (~> 1.0)
97
+ tilt (~> 1.1, != 1.3.0)
98
+ sqlite3 (1.3.7)
99
+ term-ansicolor (1.1.4)
100
+ thor (0.18.1)
101
+ tilt (1.3.6)
102
+ treetop (1.4.12)
103
+ polyglot
104
+ polyglot (>= 0.3.1)
105
+ tzinfo (0.3.37)
106
+ uglifier (1.3.0)
107
+ execjs (>= 0.3.0)
108
+ multi_json (~> 1.0, >= 1.0.2)
109
+
110
+ PLATFORMS
111
+ ruby
112
+
113
+ DEPENDENCIES
114
+ clog!
115
+ coffee-rails (~> 3.2.1)
116
+ jquery-rails
117
+ rails (= 3.2.12)
118
+ sass-rails (~> 3.2.3)
119
+ sqlite3
120
+ uglifier (>= 1.0.3)
@@ -91,7 +91,7 @@ mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
91
91
 
92
92
  class WeblogController < ActionController::Base
93
93
  def index
94
- @posts = Post.find(:all)
94
+ @posts = Post.all
95
95
  debugger
96
96
  end
97
97
  end
@@ -139,7 +139,7 @@ To reload your controllers and models after launching the console run
139
139
  <tt>reload!</tt>
140
140
 
141
141
  More information about irb can be found at:
142
- link:http://www.rubycentral.com/pickaxe/irb.html
142
+ link:http://www.rubycentral.org/pickaxe/irb.html
143
143
 
144
144
 
145
145
  == dbconsole
@@ -156,8 +156,13 @@ PostgreSQL and SQLite 3.
156
156
  The default directory structure of a generated Ruby on Rails application:
157
157
 
158
158
  |-- app
159
+ | |-- assets
160
+ | |-- images
161
+ | |-- javascripts
162
+ | `-- stylesheets
159
163
  | |-- controllers
160
164
  | |-- helpers
165
+ | |-- mailers
161
166
  | |-- models
162
167
  | `-- views
163
168
  | `-- layouts
@@ -171,11 +176,7 @@ The default directory structure of a generated Ruby on Rails application:
171
176
  | `-- tasks
172
177
  |-- log
173
178
  |-- public
174
- | |-- images
175
- | |-- javascripts
176
- | `-- stylesheets
177
179
  |-- script
178
- | `-- performance
179
180
  |-- test
180
181
  | |-- fixtures
181
182
  | |-- functional
@@ -188,11 +189,16 @@ The default directory structure of a generated Ruby on Rails application:
188
189
  | |-- sessions
189
190
  | `-- sockets
190
191
  `-- vendor
192
+ |-- assets
193
+ `-- stylesheets
191
194
  `-- plugins
192
195
 
193
196
  app
194
197
  Holds all the code that's specific to this particular application.
195
198
 
199
+ app/assets
200
+ Contains subdirectories for images, stylesheets, and JavaScript files.
201
+
196
202
  app/controllers
197
203
  Holds controllers that should be named like weblogs_controller.rb for
198
204
  automated URL mapping. All controllers should descend from
@@ -237,8 +243,7 @@ lib
237
243
  the load path.
238
244
 
239
245
  public
240
- The directory available for the web server. Contains subdirectories for
241
- images, stylesheets, and javascripts. Also contains the dispatchers and the
246
+ The directory available for the web server. Also contains the dispatchers and the
242
247
  default HTML files. This should be set as the DOCUMENT_ROOT of your web
243
248
  server.
244
249