go_gamification 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/go_gamification/flyingcloud.png +0 -0
  3. data/app/assets/images/go_gamification/hair.png +0 -0
  4. data/app/assets/images/go_gamification/hair.png~ +0 -0
  5. data/app/assets/javascripts/gamification/inventories.js +2 -0
  6. data/app/assets/javascripts/gamification/item_groups.js +2 -0
  7. data/app/assets/javascripts/gamification/item_types.js +2 -0
  8. data/app/assets/javascripts/gamification/items.js +2 -0
  9. data/app/assets/javascripts/go_gamification/character-new.js.erb +1 -13
  10. data/app/assets/stylesheets/gamification/inventories.css +4 -0
  11. data/app/assets/stylesheets/gamification/item_groups.css +4 -0
  12. data/app/assets/stylesheets/gamification/item_types.css +4 -0
  13. data/app/assets/stylesheets/gamification/items.css +4 -0
  14. data/app/assets/stylesheets/scaffold.css +80 -0
  15. data/app/controllers/gamification/inventories_controller.rb +69 -0
  16. data/app/controllers/gamification/item_groups_controller.rb +58 -0
  17. data/app/controllers/gamification/item_types_controller.rb +58 -0
  18. data/app/controllers/gamification/items_controller.rb +58 -0
  19. data/app/helpers/gamification/inventories_helper.rb +2 -0
  20. data/app/helpers/gamification/item_groups_helper.rb +2 -0
  21. data/app/helpers/gamification/item_types_helper.rb +2 -0
  22. data/app/helpers/gamification/items_helper.rb +2 -0
  23. data/app/models/gamification/inventory.rb +40 -0
  24. data/app/models/gamification/item.rb +10 -0
  25. data/app/models/gamification/item_group.rb +5 -0
  26. data/app/models/gamification/item_type.rb +5 -0
  27. data/app/views/gamification/inventories/_form.html.erb +32 -0
  28. data/app/views/gamification/inventories/_inventory.html.erb +56 -0
  29. data/app/views/gamification/inventories/edit.html.erb +6 -0
  30. data/app/views/gamification/inventories/index.html.erb +31 -0
  31. data/app/views/gamification/inventories/new.html.erb +5 -0
  32. data/app/views/gamification/inventories/show.html.erb +19 -0
  33. data/app/views/gamification/inventories/update.js.erb +195 -0
  34. data/app/views/gamification/item_groups/_form.html.erb +22 -0
  35. data/app/views/gamification/item_groups/edit.html.erb +6 -0
  36. data/app/views/gamification/item_groups/index.html.erb +27 -0
  37. data/app/views/gamification/item_groups/new.html.erb +5 -0
  38. data/app/views/gamification/item_groups/show.html.erb +9 -0
  39. data/app/views/gamification/item_types/_collection.html.erb +13 -0
  40. data/app/views/gamification/item_types/_form.html.erb +14 -0
  41. data/app/views/gamification/item_types/_pagination.html.erb +4 -0
  42. data/app/views/gamification/item_types/edit.html.erb +24 -0
  43. data/app/views/gamification/item_types/index.html.erb +42 -0
  44. data/app/views/gamification/item_types/new.html.erb +25 -0
  45. data/app/views/gamification/item_types/show.html.erb +9 -0
  46. data/app/views/gamification/items/_collection.html.erb +21 -0
  47. data/app/views/gamification/items/_form.html.erb +23 -0
  48. data/app/views/gamification/items/_pagination.html.erb +4 -0
  49. data/app/views/gamification/items/edit.html.erb +6 -0
  50. data/app/views/gamification/items/index.html.erb +41 -0
  51. data/app/views/gamification/items/new.html.erb +24 -0
  52. data/app/views/gamification/items/show.html.erb +39 -0
  53. data/config/routes.rb +5 -3
  54. data/db/migrate/20171026222729_create_gamification_item_types.rb +9 -0
  55. data/db/migrate/20171026223122_create_gamification_items.rb +15 -0
  56. data/db/migrate/20171026223219_create_gamification_inventories.rb +11 -0
  57. data/db/migrate/20171027010758_alter_table_go_gamification_item_type_add_key.rb +3 -0
  58. data/db/migrate/20171028203227_create_gamification_item_groups.rb +9 -0
  59. data/db/migrate/20171028203324_alter_table_gamificationitem_add_group.rb +5 -0
  60. data/lib/go_gamification/version.rb +1 -1
  61. metadata +128 -45
metadata CHANGED
@@ -1,69 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_gamification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Carlos Ottobboni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: draper
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: carrierwave
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: devise
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: cancancan
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
53
81
  - !ruby/object:Gem::Version
54
82
  version: '0'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: sqlite3
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
- - - '>='
87
+ - - ">="
60
88
  - !ruby/object:Gem::Version
61
89
  version: '0'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
- - - '>='
94
+ - - ">="
67
95
  - !ruby/object:Gem::Version
68
96
  version: '0'
69
97
  description: go_gamification engine
@@ -73,58 +101,113 @@ executables: []
73
101
  extensions: []
74
102
  extra_rdoc_files: []
75
103
  files:
76
- - app/controllers/gamification/levels_controller.rb
77
- - app/controllers/gamification/rewards_controller.rb
78
- - app/assets/images/go_gamification/leftArm-jump.png
104
+ - MIT-LICENSE
105
+ - Rakefile
79
106
  - app/assets/images/go_gamification/background.png
80
- - app/assets/images/go_gamification/hair.png
81
- - app/assets/images/go_gamification/rightArm-jump.png
82
107
  - app/assets/images/go_gamification/cloud.png
83
- - app/assets/images/go_gamification/rightArm.png
84
- - app/assets/images/go_gamification/torso.png
108
+ - app/assets/images/go_gamification/flyingcloud.png
109
+ - app/assets/images/go_gamification/hair.png
110
+ - app/assets/images/go_gamification/hair.png~
85
111
  - app/assets/images/go_gamification/head.png
86
- - app/assets/images/go_gamification/legs.png
112
+ - app/assets/images/go_gamification/leftArm-jump.png
87
113
  - app/assets/images/go_gamification/leftArm.png
88
114
  - app/assets/images/go_gamification/legs-jump.png
115
+ - app/assets/images/go_gamification/legs.png
116
+ - app/assets/images/go_gamification/rightArm-jump.png
117
+ - app/assets/images/go_gamification/rightArm.png
118
+ - app/assets/images/go_gamification/torso.png
119
+ - app/assets/javascripts/gamification/inventories.js
120
+ - app/assets/javascripts/gamification/item_groups.js
121
+ - app/assets/javascripts/gamification/item_types.js
122
+ - app/assets/javascripts/gamification/items.js
89
123
  - app/assets/javascripts/go_gamification/bhive.js.erb
90
124
  - app/assets/javascripts/go_gamification/character-new.js.erb
91
- - app/assets/javascripts/go_gamification/excanvas.js
92
125
  - app/assets/javascripts/go_gamification/character.js.erb
93
- - app/helpers/gamification/rewards_helper.rb
126
+ - app/assets/javascripts/go_gamification/excanvas.js
127
+ - app/assets/stylesheets/gamification/inventories.css
128
+ - app/assets/stylesheets/gamification/item_groups.css
129
+ - app/assets/stylesheets/gamification/item_types.css
130
+ - app/assets/stylesheets/gamification/items.css
131
+ - app/assets/stylesheets/scaffold.css
132
+ - app/controllers/gamification/inventories_controller.rb
133
+ - app/controllers/gamification/item_groups_controller.rb
134
+ - app/controllers/gamification/item_types_controller.rb
135
+ - app/controllers/gamification/items_controller.rb
136
+ - app/controllers/gamification/levels_controller.rb
137
+ - app/controllers/gamification/rewards_controller.rb
94
138
  - app/helpers/gamification/application_helper.rb
95
- - app/views/gamification/rewards/_presentation.html.erb
96
- - app/views/gamification/rewards/_reward.html.erb
139
+ - app/helpers/gamification/inventories_helper.rb
140
+ - app/helpers/gamification/item_groups_helper.rb
141
+ - app/helpers/gamification/item_types_helper.rb
142
+ - app/helpers/gamification/items_helper.rb
143
+ - app/helpers/gamification/rewards_helper.rb
144
+ - app/models/application_record.rb
145
+ - app/models/gamification.rb
146
+ - app/models/gamification/goal.rb
147
+ - app/models/gamification/inventory.rb
148
+ - app/models/gamification/item.rb
149
+ - app/models/gamification/item_group.rb
150
+ - app/models/gamification/item_type.rb
151
+ - app/models/gamification/level.rb
152
+ - app/models/gamification/medal.rb
153
+ - app/models/gamification/reward.rb
154
+ - app/uploaders/gamification/image_uploader.rb
155
+ - app/views/gamification/inventories/_form.html.erb
156
+ - app/views/gamification/inventories/_inventory.html.erb
157
+ - app/views/gamification/inventories/edit.html.erb
158
+ - app/views/gamification/inventories/index.html.erb
159
+ - app/views/gamification/inventories/new.html.erb
160
+ - app/views/gamification/inventories/show.html.erb
161
+ - app/views/gamification/inventories/update.js.erb
162
+ - app/views/gamification/item_groups/_form.html.erb
163
+ - app/views/gamification/item_groups/edit.html.erb
164
+ - app/views/gamification/item_groups/index.html.erb
165
+ - app/views/gamification/item_groups/new.html.erb
166
+ - app/views/gamification/item_groups/show.html.erb
167
+ - app/views/gamification/item_types/_collection.html.erb
168
+ - app/views/gamification/item_types/_form.html.erb
169
+ - app/views/gamification/item_types/_pagination.html.erb
170
+ - app/views/gamification/item_types/edit.html.erb
171
+ - app/views/gamification/item_types/index.html.erb
172
+ - app/views/gamification/item_types/new.html.erb
173
+ - app/views/gamification/item_types/show.html.erb
174
+ - app/views/gamification/items/_collection.html.erb
175
+ - app/views/gamification/items/_form.html.erb
176
+ - app/views/gamification/items/_pagination.html.erb
177
+ - app/views/gamification/items/edit.html.erb
178
+ - app/views/gamification/items/index.html.erb
179
+ - app/views/gamification/items/new.html.erb
180
+ - app/views/gamification/items/show.html.erb
181
+ - app/views/gamification/levels/_form.html.erb
97
182
  - app/views/gamification/levels/edit.html.erb
98
- - app/views/gamification/levels/show.html.erb
99
183
  - app/views/gamification/levels/index.html.erb
100
- - app/views/gamification/levels/_form.html.erb
101
184
  - app/views/gamification/levels/new.html.erb
185
+ - app/views/gamification/levels/show.html.erb
186
+ - app/views/gamification/rewards/_presentation.html.erb
187
+ - app/views/gamification/rewards/_reward.html.erb
102
188
  - app/views/gamification/scorings/create.html.erb
103
- - app/uploaders/gamification/image_uploader.rb
104
- - app/models/gamification.rb
105
- - app/models/application_record.rb
106
- - app/models/gamification/medal.rb
107
- - app/models/gamification/level.rb
108
- - app/models/gamification/goal.rb
109
- - app/models/gamification/reward.rb
110
- - config/routes.rb
111
189
  - config/initializers/assets.rb
112
- - db/migrate/20171020181620_create_go_gamification_scorings.rb
190
+ - config/routes.rb
113
191
  - db/migrate/20171020181447_create_go_gamification_tasks.rb
114
- - db/migrate/20171026001848_alter_table_go_gamification_count.rb
115
- - db/migrate/20171026003231_alter_table_go_gamification_levels.rb
192
+ - db/migrate/20171020181620_create_go_gamification_scorings.rb
193
+ - db/migrate/20171020182027_rename_everything.rb
116
194
  - db/migrate/20171020182119_create_go_gamification_medals.rb
117
- - db/migrate/20171020182329_add_seen_at_to_go_gamification_rewards.rb
118
195
  - db/migrate/20171020182210_add_description_to_go_gamification_medals.rb
119
- - db/migrate/20171023230506_create_go_gamification_levels.rb
120
196
  - db/migrate/20171020182248_rename_go_gamification_tasks_to_goals.rb
121
- - db/migrate/20171020182027_rename_everything.rb
122
- - lib/tasks/go_gamification_tasks.rake
197
+ - db/migrate/20171020182329_add_seen_at_to_go_gamification_rewards.rb
198
+ - db/migrate/20171023230506_create_go_gamification_levels.rb
199
+ - db/migrate/20171026001848_alter_table_go_gamification_count.rb
200
+ - db/migrate/20171026003231_alter_table_go_gamification_levels.rb
201
+ - db/migrate/20171026222729_create_gamification_item_types.rb
202
+ - db/migrate/20171026223122_create_gamification_items.rb
203
+ - db/migrate/20171026223219_create_gamification_inventories.rb
204
+ - db/migrate/20171027010758_alter_table_go_gamification_item_type_add_key.rb
205
+ - db/migrate/20171028203227_create_gamification_item_groups.rb
206
+ - db/migrate/20171028203324_alter_table_gamificationitem_add_group.rb
207
+ - lib/go_gamification.rb
123
208
  - lib/go_gamification/engine.rb
124
209
  - lib/go_gamification/version.rb
125
- - lib/go_gamification.rb
126
- - MIT-LICENSE
127
- - Rakefile
210
+ - lib/tasks/go_gamification_tasks.rake
128
211
  homepage: http://www.gorails.com.br
129
212
  licenses:
130
213
  - MIT
@@ -135,17 +218,17 @@ require_paths:
135
218
  - lib
136
219
  required_ruby_version: !ruby/object:Gem::Requirement
137
220
  requirements:
138
- - - '>='
221
+ - - ">="
139
222
  - !ruby/object:Gem::Version
140
223
  version: '0'
141
224
  required_rubygems_version: !ruby/object:Gem::Requirement
142
225
  requirements:
143
- - - '>='
226
+ - - ">="
144
227
  - !ruby/object:Gem::Version
145
228
  version: '0'
146
229
  requirements: []
147
230
  rubyforge_project:
148
- rubygems_version: 2.0.14.1
231
+ rubygems_version: 2.6.13
149
232
  signing_key:
150
233
  specification_version: 4
151
234
  summary: go_gamification engine