code_notes 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +47 -0
- data/Rakefile +36 -0
- data/bin/code_notes +6 -0
- data/code_notes.gemspec +27 -0
- data/lib/code_notes.rb +13 -0
- data/lib/code_notes/railtie.rb +10 -0
- data/lib/code_notes/source_annotation_extractor.rb +136 -0
- data/lib/code_notes/version.rb +3 -0
- data/lib/tasks/annotations.rake +21 -0
- data/test/code_notes_test.rb +7 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +58 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +5 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/test_helper.rb +15 -0
- metadata +181 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,181 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: code_notes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Benjamin Fleischer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-29 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.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
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
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.2.13
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.2.13
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sqlite3
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: code notes task extracted from Rails
|
70
|
+
email:
|
71
|
+
- github@benjaminfleischer.com
|
72
|
+
executables:
|
73
|
+
- code_notes
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- .gitignore
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE.txt
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- bin/code_notes
|
83
|
+
- code_notes.gemspec
|
84
|
+
- lib/code_notes.rb
|
85
|
+
- lib/code_notes/railtie.rb
|
86
|
+
- lib/code_notes/source_annotation_extractor.rb
|
87
|
+
- lib/code_notes/version.rb
|
88
|
+
- lib/tasks/annotations.rake
|
89
|
+
- test/code_notes_test.rb
|
90
|
+
- test/dummy/README.rdoc
|
91
|
+
- test/dummy/Rakefile
|
92
|
+
- test/dummy/app/assets/javascripts/application.js
|
93
|
+
- test/dummy/app/assets/stylesheets/application.css
|
94
|
+
- test/dummy/app/controllers/application_controller.rb
|
95
|
+
- test/dummy/app/helpers/application_helper.rb
|
96
|
+
- test/dummy/app/mailers/.gitkeep
|
97
|
+
- test/dummy/app/models/.gitkeep
|
98
|
+
- test/dummy/app/views/layouts/application.html.erb
|
99
|
+
- test/dummy/config.ru
|
100
|
+
- test/dummy/config/application.rb
|
101
|
+
- test/dummy/config/boot.rb
|
102
|
+
- test/dummy/config/database.yml
|
103
|
+
- test/dummy/config/environment.rb
|
104
|
+
- test/dummy/config/environments/development.rb
|
105
|
+
- test/dummy/config/environments/production.rb
|
106
|
+
- test/dummy/config/environments/test.rb
|
107
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
108
|
+
- test/dummy/config/initializers/inflections.rb
|
109
|
+
- test/dummy/config/initializers/mime_types.rb
|
110
|
+
- test/dummy/config/initializers/secret_token.rb
|
111
|
+
- test/dummy/config/initializers/session_store.rb
|
112
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
113
|
+
- test/dummy/config/locales/en.yml
|
114
|
+
- test/dummy/config/routes.rb
|
115
|
+
- test/dummy/lib/assets/.gitkeep
|
116
|
+
- test/dummy/log/.gitkeep
|
117
|
+
- test/dummy/public/404.html
|
118
|
+
- test/dummy/public/422.html
|
119
|
+
- test/dummy/public/500.html
|
120
|
+
- test/dummy/public/favicon.ico
|
121
|
+
- test/dummy/script/rails
|
122
|
+
- test/test_helper.rb
|
123
|
+
homepage: https://github.com/bf4/code_notes
|
124
|
+
licenses:
|
125
|
+
- MIT
|
126
|
+
metadata: {}
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
requirements: []
|
142
|
+
rubyforge_project:
|
143
|
+
rubygems_version: 2.0.8
|
144
|
+
signing_key:
|
145
|
+
specification_version: 4
|
146
|
+
summary: code notes task extracted from Rails
|
147
|
+
test_files:
|
148
|
+
- test/code_notes_test.rb
|
149
|
+
- test/dummy/README.rdoc
|
150
|
+
- test/dummy/Rakefile
|
151
|
+
- test/dummy/app/assets/javascripts/application.js
|
152
|
+
- test/dummy/app/assets/stylesheets/application.css
|
153
|
+
- test/dummy/app/controllers/application_controller.rb
|
154
|
+
- test/dummy/app/helpers/application_helper.rb
|
155
|
+
- test/dummy/app/mailers/.gitkeep
|
156
|
+
- test/dummy/app/models/.gitkeep
|
157
|
+
- test/dummy/app/views/layouts/application.html.erb
|
158
|
+
- test/dummy/config.ru
|
159
|
+
- test/dummy/config/application.rb
|
160
|
+
- test/dummy/config/boot.rb
|
161
|
+
- test/dummy/config/database.yml
|
162
|
+
- test/dummy/config/environment.rb
|
163
|
+
- test/dummy/config/environments/development.rb
|
164
|
+
- test/dummy/config/environments/production.rb
|
165
|
+
- test/dummy/config/environments/test.rb
|
166
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
167
|
+
- test/dummy/config/initializers/inflections.rb
|
168
|
+
- test/dummy/config/initializers/mime_types.rb
|
169
|
+
- test/dummy/config/initializers/secret_token.rb
|
170
|
+
- test/dummy/config/initializers/session_store.rb
|
171
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
172
|
+
- test/dummy/config/locales/en.yml
|
173
|
+
- test/dummy/config/routes.rb
|
174
|
+
- test/dummy/lib/assets/.gitkeep
|
175
|
+
- test/dummy/log/.gitkeep
|
176
|
+
- test/dummy/public/404.html
|
177
|
+
- test/dummy/public/422.html
|
178
|
+
- test/dummy/public/500.html
|
179
|
+
- test/dummy/public/favicon.ico
|
180
|
+
- test/dummy/script/rails
|
181
|
+
- test/test_helper.rb
|