gnarus_exercise 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +10 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/gnarus_exercise/application.js +15 -0
  5. data/app/assets/stylesheets/gnarus_exercise/application.css +13 -0
  6. data/app/controllers/gnarus_exercise/application_controller.rb +4 -0
  7. data/app/controllers/gnarus_exercise/attempts_controller.rb +21 -0
  8. data/app/controllers/gnarus_exercise/exercises_controller.rb +74 -0
  9. data/app/helpers/gnarus_exercise/application_helper.rb +4 -0
  10. data/app/models/gnarus_exercise/attempt.rb +13 -0
  11. data/app/models/gnarus_exercise/exercise.rb +7 -0
  12. data/app/models/gnarus_exercise/user.rb +5 -0
  13. data/app/views/gnarus_exercise/exercises/_form.html.erb +21 -0
  14. data/app/views/gnarus_exercise/exercises/edit.html.erb +6 -0
  15. data/app/views/gnarus_exercise/exercises/index.html.erb +23 -0
  16. data/app/views/gnarus_exercise/exercises/new.html.erb +5 -0
  17. data/app/views/gnarus_exercise/exercises/show.html.erb +10 -0
  18. data/app/views/layouts/gnarus_exercise/application.html.erb +15 -0
  19. data/config/initializers/devise.rb +223 -0
  20. data/config/locales/devise.en.yml +57 -0
  21. data/config/routes.rb +9 -0
  22. data/db/migrate/20120405185453_create_gnarus_exercise_exercises.rb +10 -0
  23. data/db/migrate/20120405185533_create_gnarus_exercise_attempts.rb +12 -0
  24. data/lib/gnarus_exercise.rb +4 -0
  25. data/lib/gnarus_exercise/engine.rb +5 -0
  26. data/lib/gnarus_exercise/version.rb +3 -0
  27. data/lib/tasks/gnarus_exercise_tasks.rake +4 -0
  28. data/test/dummy/README.rdoc +261 -0
  29. data/test/dummy/Rakefile +7 -0
  30. data/test/dummy/app/assets/javascripts/application.js +15 -0
  31. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  32. data/test/dummy/app/controllers/application_controller.rb +3 -0
  33. data/test/dummy/app/helpers/application_helper.rb +2 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/config/application.rb +56 -0
  37. data/test/dummy/config/boot.rb +10 -0
  38. data/test/dummy/config/database.yml +25 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +37 -0
  41. data/test/dummy/config/environments/production.rb +67 -0
  42. data/test/dummy/config/environments/test.rb +37 -0
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  44. data/test/dummy/config/initializers/inflections.rb +15 -0
  45. data/test/dummy/config/initializers/mime_types.rb +5 -0
  46. data/test/dummy/config/initializers/secret_token.rb +7 -0
  47. data/test/dummy/config/initializers/session_store.rb +8 -0
  48. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/test/dummy/config/locales/en.yml +5 -0
  50. data/test/dummy/config/routes.rb +4 -0
  51. data/test/dummy/public/404.html +26 -0
  52. data/test/dummy/public/422.html +26 -0
  53. data/test/dummy/public/500.html +25 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/script/rails +6 -0
  56. data/test/fixtures/gnarus_exercise/attempts.yml +11 -0
  57. data/test/fixtures/gnarus_exercise/exercises.yml +9 -0
  58. data/test/fixtures/gnarus_exercise/users.yml +11 -0
  59. data/test/gnarus_exercise_test.rb +7 -0
  60. data/test/integration/navigation_test.rb +10 -0
  61. data/test/test_helper.rb +10 -0
  62. data/test/unit/gnarus_exercise/attempt_test.rb +9 -0
  63. data/test/unit/gnarus_exercise/exercise_test.rb +9 -0
  64. data/test/unit/gnarus_exercise/user_test.rb +9 -0
  65. metadata +178 -0
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class GnarusExerciseTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, GnarusExercise
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,10 @@
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 }
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module GnarusExercise
4
+ class AttemptTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module GnarusExercise
4
+ class ExerciseTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module GnarusExercise
4
+ class UserTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,178 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gnarus_exercise
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Guilherme Silveira
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.2
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.2
30
+ - !ruby/object:Gem::Dependency
31
+ name: sqlite3
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: Create external exercises by mounting this plugin.
47
+ email:
48
+ - guilherme.silveira@caelum.com.br
49
+ executables: []
50
+ extensions: []
51
+ extra_rdoc_files: []
52
+ files:
53
+ - app/assets/javascripts/gnarus_exercise/application.js
54
+ - app/assets/stylesheets/gnarus_exercise/application.css
55
+ - app/controllers/gnarus_exercise/application_controller.rb
56
+ - app/controllers/gnarus_exercise/attempts_controller.rb
57
+ - app/controllers/gnarus_exercise/exercises_controller.rb
58
+ - app/helpers/gnarus_exercise/application_helper.rb
59
+ - app/models/gnarus_exercise/attempt.rb
60
+ - app/models/gnarus_exercise/exercise.rb
61
+ - app/models/gnarus_exercise/user.rb
62
+ - app/views/gnarus_exercise/exercises/_form.html.erb
63
+ - app/views/gnarus_exercise/exercises/edit.html.erb
64
+ - app/views/gnarus_exercise/exercises/index.html.erb
65
+ - app/views/gnarus_exercise/exercises/new.html.erb
66
+ - app/views/gnarus_exercise/exercises/show.html.erb
67
+ - app/views/layouts/gnarus_exercise/application.html.erb
68
+ - config/initializers/devise.rb
69
+ - config/locales/devise.en.yml
70
+ - config/routes.rb
71
+ - db/migrate/20120405185453_create_gnarus_exercise_exercises.rb
72
+ - db/migrate/20120405185533_create_gnarus_exercise_attempts.rb
73
+ - lib/gnarus_exercise/engine.rb
74
+ - lib/gnarus_exercise/version.rb
75
+ - lib/gnarus_exercise.rb
76
+ - lib/tasks/gnarus_exercise_tasks.rake
77
+ - MIT-LICENSE
78
+ - Rakefile
79
+ - README.rdoc
80
+ - test/dummy/app/assets/javascripts/application.js
81
+ - test/dummy/app/assets/stylesheets/application.css
82
+ - test/dummy/app/controllers/application_controller.rb
83
+ - test/dummy/app/helpers/application_helper.rb
84
+ - test/dummy/app/views/layouts/application.html.erb
85
+ - test/dummy/config/application.rb
86
+ - test/dummy/config/boot.rb
87
+ - test/dummy/config/database.yml
88
+ - test/dummy/config/environment.rb
89
+ - test/dummy/config/environments/development.rb
90
+ - test/dummy/config/environments/production.rb
91
+ - test/dummy/config/environments/test.rb
92
+ - test/dummy/config/initializers/backtrace_silencers.rb
93
+ - test/dummy/config/initializers/inflections.rb
94
+ - test/dummy/config/initializers/mime_types.rb
95
+ - test/dummy/config/initializers/secret_token.rb
96
+ - test/dummy/config/initializers/session_store.rb
97
+ - test/dummy/config/initializers/wrap_parameters.rb
98
+ - test/dummy/config/locales/en.yml
99
+ - test/dummy/config/routes.rb
100
+ - test/dummy/config.ru
101
+ - test/dummy/public/404.html
102
+ - test/dummy/public/422.html
103
+ - test/dummy/public/500.html
104
+ - test/dummy/public/favicon.ico
105
+ - test/dummy/Rakefile
106
+ - test/dummy/README.rdoc
107
+ - test/dummy/script/rails
108
+ - test/fixtures/gnarus_exercise/attempts.yml
109
+ - test/fixtures/gnarus_exercise/exercises.yml
110
+ - test/fixtures/gnarus_exercise/users.yml
111
+ - test/gnarus_exercise_test.rb
112
+ - test/integration/navigation_test.rb
113
+ - test/test_helper.rb
114
+ - test/unit/gnarus_exercise/attempt_test.rb
115
+ - test/unit/gnarus_exercise/exercise_test.rb
116
+ - test/unit/gnarus_exercise/user_test.rb
117
+ homepage: http://online.caelum.com.br
118
+ licenses: []
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 1.8.19
138
+ signing_key:
139
+ specification_version: 3
140
+ summary: A plugin structure for external exercises.
141
+ test_files:
142
+ - test/dummy/app/assets/javascripts/application.js
143
+ - test/dummy/app/assets/stylesheets/application.css
144
+ - test/dummy/app/controllers/application_controller.rb
145
+ - test/dummy/app/helpers/application_helper.rb
146
+ - test/dummy/app/views/layouts/application.html.erb
147
+ - test/dummy/config/application.rb
148
+ - test/dummy/config/boot.rb
149
+ - test/dummy/config/database.yml
150
+ - test/dummy/config/environment.rb
151
+ - test/dummy/config/environments/development.rb
152
+ - test/dummy/config/environments/production.rb
153
+ - test/dummy/config/environments/test.rb
154
+ - test/dummy/config/initializers/backtrace_silencers.rb
155
+ - test/dummy/config/initializers/inflections.rb
156
+ - test/dummy/config/initializers/mime_types.rb
157
+ - test/dummy/config/initializers/secret_token.rb
158
+ - test/dummy/config/initializers/session_store.rb
159
+ - test/dummy/config/initializers/wrap_parameters.rb
160
+ - test/dummy/config/locales/en.yml
161
+ - test/dummy/config/routes.rb
162
+ - test/dummy/config.ru
163
+ - test/dummy/public/404.html
164
+ - test/dummy/public/422.html
165
+ - test/dummy/public/500.html
166
+ - test/dummy/public/favicon.ico
167
+ - test/dummy/Rakefile
168
+ - test/dummy/README.rdoc
169
+ - test/dummy/script/rails
170
+ - test/fixtures/gnarus_exercise/attempts.yml
171
+ - test/fixtures/gnarus_exercise/exercises.yml
172
+ - test/fixtures/gnarus_exercise/users.yml
173
+ - test/gnarus_exercise_test.rb
174
+ - test/integration/navigation_test.rb
175
+ - test/test_helper.rb
176
+ - test/unit/gnarus_exercise/attempt_test.rb
177
+ - test/unit/gnarus_exercise/exercise_test.rb
178
+ - test/unit/gnarus_exercise/user_test.rb