gamification 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +28 -0
- data/app/assets/javascripts/gamification/application.js +13 -0
- data/app/assets/stylesheets/gamification/application.css +15 -0
- data/app/controllers/gamification/application_controller.rb +4 -0
- data/app/helpers/gamification/application_helper.rb +4 -0
- data/app/models/gamification/scoring.rb +5 -0
- data/app/models/gamification/task.rb +5 -0
- data/app/views/layouts/gamification/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20140309173049_create_gamification_tasks.rb +10 -0
- data/db/migrate/20140309175957_create_gamification_scorings.rb +12 -0
- data/lib/gamification.rb +5 -0
- data/lib/gamification/concerns.rb +3 -0
- data/lib/gamification/concerns/models.rb +4 -0
- data/lib/gamification/concerns/models/scoring.rb +8 -0
- data/lib/gamification/concerns/models/task.rb +50 -0
- data/lib/gamification/engine.rb +12 -0
- data/lib/gamification/version.rb +3 -0
- data/lib/tasks/gamification_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/article.rb +3 -0
- data/spec/dummy/app/models/user.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +30 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +83 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140309200402_create_users.rb +8 -0
- data/spec/dummy/db/migrate/20140309200453_create_articles.rb +8 -0
- data/spec/dummy/db/schema.rb +47 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +2547 -0
- data/spec/dummy/log/test.log +4316 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/factories/articles.rb +6 -0
- data/spec/dummy/spec/factories/users.rb +6 -0
- data/spec/dummy/spec/models/article_spec.rb +5 -0
- data/spec/dummy/spec/models/user_spec.rb +5 -0
- data/spec/factories/gamification_scorings.rb +8 -0
- data/spec/factories/gamification_tasks.rb +8 -0
- data/spec/models/gamification/scoring_spec.rb +7 -0
- data/spec/models/gamification/task_spec.rb +77 -0
- data/spec/spec_helper.rb +23 -0
- metadata +222 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Gamification
|
4
|
+
describe Task do
|
5
|
+
let(:subject) { create :user }
|
6
|
+
let(:task) { create :gamification_task }
|
7
|
+
|
8
|
+
describe '#completed_by?' do
|
9
|
+
context 'for a task that is completed by the given subject' do
|
10
|
+
before do
|
11
|
+
create :gamification_scoring, task: task, subjectable: subject
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'returns true' do
|
15
|
+
expect(task).to be_completed_by subject
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'for a task that is not completed by the given subject' do
|
20
|
+
it 'returns false' do
|
21
|
+
expect(task).not_to be_completed_by subject
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe '#complete_for' do
|
27
|
+
context 'for a task that is not yet completed' do
|
28
|
+
it 'creates a scoring for the given subject' do
|
29
|
+
expect(task.complete_for subject).to be_instance_of Scoring
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
context 'for a task that is already completed' do
|
34
|
+
before do
|
35
|
+
create :gamification_scoring, task: task, subjectable: subject
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'raises an error' do
|
39
|
+
expect { task.complete_for subject}.to raise_error Task::Completed
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '.complete_for' do
|
45
|
+
let!(:tasks) { create_list :gamification_task, 3 }
|
46
|
+
|
47
|
+
before do
|
48
|
+
create :gamification_scoring, task: tasks.first, subjectable: subject
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'creates scorings for tasks that were completed' do
|
52
|
+
expect(Task.complete_for(subject).count).to eq 2
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe '.completed_by' do
|
57
|
+
let!(:complete_task) { create :gamification_task }
|
58
|
+
let!(:incomplete_task) { create :gamification_task }
|
59
|
+
|
60
|
+
before do
|
61
|
+
complete_task.complete_for subject
|
62
|
+
end
|
63
|
+
|
64
|
+
it 'returns completed tasks by a given subject' do
|
65
|
+
expect(Task.completed_by(subject).count).to eq 1
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe '.incomplete_by' do
|
70
|
+
let!(:incomplete_tasks) { create_list :gamification_task, 2 }
|
71
|
+
|
72
|
+
it 'returns incomplete tasks by a given subject' do
|
73
|
+
expect(Task.incomplete_by(subject).count).to eq 2
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
require 'factory_girl_rails'
|
7
|
+
|
8
|
+
Rails.backtrace_cleaner.remove_silencers!
|
9
|
+
|
10
|
+
# Load support files
|
11
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
12
|
+
|
13
|
+
# Load dummy factories
|
14
|
+
Dir["#{File.dirname(__FILE__)}/dummy/spec/factories/**/*.rb"].each { |f| require f }
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
config.mock_with :rspec
|
18
|
+
config.use_transactional_fixtures = true
|
19
|
+
config.infer_base_class_for_anonymous_controllers = false
|
20
|
+
config.order = "random"
|
21
|
+
|
22
|
+
config.include FactoryGirl::Syntax::Methods
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,222 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gamification
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Johannes Gorset
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-03-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.1.0.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.1.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
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: rspec-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: factory_girl_rails
|
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: Gamification is a collection of models for Ruby on Rails that allows
|
70
|
+
you to make anything a game
|
71
|
+
email:
|
72
|
+
- johannes@hyper.no
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- MIT-LICENSE
|
78
|
+
- Rakefile
|
79
|
+
- app/assets/javascripts/gamification/application.js
|
80
|
+
- app/assets/stylesheets/gamification/application.css
|
81
|
+
- app/controllers/gamification/application_controller.rb
|
82
|
+
- app/helpers/gamification/application_helper.rb
|
83
|
+
- app/models/gamification/scoring.rb
|
84
|
+
- app/models/gamification/task.rb
|
85
|
+
- app/views/layouts/gamification/application.html.erb
|
86
|
+
- config/routes.rb
|
87
|
+
- db/migrate/20140309173049_create_gamification_tasks.rb
|
88
|
+
- db/migrate/20140309175957_create_gamification_scorings.rb
|
89
|
+
- lib/gamification.rb
|
90
|
+
- lib/gamification/concerns.rb
|
91
|
+
- lib/gamification/concerns/models.rb
|
92
|
+
- lib/gamification/concerns/models/scoring.rb
|
93
|
+
- lib/gamification/concerns/models/task.rb
|
94
|
+
- lib/gamification/engine.rb
|
95
|
+
- lib/gamification/version.rb
|
96
|
+
- lib/tasks/gamification_tasks.rake
|
97
|
+
- spec/dummy/README.rdoc
|
98
|
+
- spec/dummy/Rakefile
|
99
|
+
- spec/dummy/app/assets/javascripts/application.js
|
100
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
101
|
+
- spec/dummy/app/controllers/application_controller.rb
|
102
|
+
- spec/dummy/app/helpers/application_helper.rb
|
103
|
+
- spec/dummy/app/models/article.rb
|
104
|
+
- spec/dummy/app/models/user.rb
|
105
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
106
|
+
- spec/dummy/bin/bundle
|
107
|
+
- spec/dummy/bin/rails
|
108
|
+
- spec/dummy/bin/rake
|
109
|
+
- spec/dummy/config.ru
|
110
|
+
- spec/dummy/config/application.rb
|
111
|
+
- spec/dummy/config/boot.rb
|
112
|
+
- spec/dummy/config/database.yml
|
113
|
+
- spec/dummy/config/environment.rb
|
114
|
+
- spec/dummy/config/environments/development.rb
|
115
|
+
- spec/dummy/config/environments/production.rb
|
116
|
+
- spec/dummy/config/environments/test.rb
|
117
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
118
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
119
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
120
|
+
- spec/dummy/config/initializers/inflections.rb
|
121
|
+
- spec/dummy/config/initializers/mime_types.rb
|
122
|
+
- spec/dummy/config/initializers/session_store.rb
|
123
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
124
|
+
- spec/dummy/config/locales/en.yml
|
125
|
+
- spec/dummy/config/routes.rb
|
126
|
+
- spec/dummy/config/secrets.yml
|
127
|
+
- spec/dummy/db/development.sqlite3
|
128
|
+
- spec/dummy/db/migrate/20140309200402_create_users.rb
|
129
|
+
- spec/dummy/db/migrate/20140309200453_create_articles.rb
|
130
|
+
- spec/dummy/db/schema.rb
|
131
|
+
- spec/dummy/db/test.sqlite3
|
132
|
+
- spec/dummy/log/development.log
|
133
|
+
- spec/dummy/log/test.log
|
134
|
+
- spec/dummy/public/404.html
|
135
|
+
- spec/dummy/public/422.html
|
136
|
+
- spec/dummy/public/500.html
|
137
|
+
- spec/dummy/public/favicon.ico
|
138
|
+
- spec/dummy/spec/factories/articles.rb
|
139
|
+
- spec/dummy/spec/factories/users.rb
|
140
|
+
- spec/dummy/spec/models/article_spec.rb
|
141
|
+
- spec/dummy/spec/models/user_spec.rb
|
142
|
+
- spec/factories/gamification_scorings.rb
|
143
|
+
- spec/factories/gamification_tasks.rb
|
144
|
+
- spec/models/gamification/scoring_spec.rb
|
145
|
+
- spec/models/gamification/task_spec.rb
|
146
|
+
- spec/spec_helper.rb
|
147
|
+
homepage: http://github.com/hyperoslo/gamification
|
148
|
+
licenses:
|
149
|
+
- MIT
|
150
|
+
metadata: {}
|
151
|
+
post_install_message:
|
152
|
+
rdoc_options: []
|
153
|
+
require_paths:
|
154
|
+
- lib
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
requirements: []
|
166
|
+
rubyforge_project:
|
167
|
+
rubygems_version: 2.2.2
|
168
|
+
signing_key:
|
169
|
+
specification_version: 4
|
170
|
+
summary: Gamification is a collection of models for Ruby on Rails that allows you
|
171
|
+
to make anything a game
|
172
|
+
test_files:
|
173
|
+
- spec/dummy/app/assets/javascripts/application.js
|
174
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
175
|
+
- spec/dummy/app/controllers/application_controller.rb
|
176
|
+
- spec/dummy/app/helpers/application_helper.rb
|
177
|
+
- spec/dummy/app/models/article.rb
|
178
|
+
- spec/dummy/app/models/user.rb
|
179
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
180
|
+
- spec/dummy/bin/bundle
|
181
|
+
- spec/dummy/bin/rails
|
182
|
+
- spec/dummy/bin/rake
|
183
|
+
- spec/dummy/config/application.rb
|
184
|
+
- spec/dummy/config/boot.rb
|
185
|
+
- spec/dummy/config/database.yml
|
186
|
+
- spec/dummy/config/environment.rb
|
187
|
+
- spec/dummy/config/environments/development.rb
|
188
|
+
- spec/dummy/config/environments/production.rb
|
189
|
+
- spec/dummy/config/environments/test.rb
|
190
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
191
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
192
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
193
|
+
- spec/dummy/config/initializers/inflections.rb
|
194
|
+
- spec/dummy/config/initializers/mime_types.rb
|
195
|
+
- spec/dummy/config/initializers/session_store.rb
|
196
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
197
|
+
- spec/dummy/config/locales/en.yml
|
198
|
+
- spec/dummy/config/routes.rb
|
199
|
+
- spec/dummy/config/secrets.yml
|
200
|
+
- spec/dummy/config.ru
|
201
|
+
- spec/dummy/db/development.sqlite3
|
202
|
+
- spec/dummy/db/migrate/20140309200402_create_users.rb
|
203
|
+
- spec/dummy/db/migrate/20140309200453_create_articles.rb
|
204
|
+
- spec/dummy/db/schema.rb
|
205
|
+
- spec/dummy/db/test.sqlite3
|
206
|
+
- spec/dummy/log/development.log
|
207
|
+
- spec/dummy/log/test.log
|
208
|
+
- spec/dummy/public/404.html
|
209
|
+
- spec/dummy/public/422.html
|
210
|
+
- spec/dummy/public/500.html
|
211
|
+
- spec/dummy/public/favicon.ico
|
212
|
+
- spec/dummy/Rakefile
|
213
|
+
- spec/dummy/README.rdoc
|
214
|
+
- spec/dummy/spec/factories/articles.rb
|
215
|
+
- spec/dummy/spec/factories/users.rb
|
216
|
+
- spec/dummy/spec/models/article_spec.rb
|
217
|
+
- spec/dummy/spec/models/user_spec.rb
|
218
|
+
- spec/factories/gamification_scorings.rb
|
219
|
+
- spec/factories/gamification_tasks.rb
|
220
|
+
- spec/models/gamification/scoring_spec.rb
|
221
|
+
- spec/models/gamification/task_spec.rb
|
222
|
+
- spec/spec_helper.rb
|