bit_player 0.4.4 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -3
- data/Rakefile +15 -1
- data/app/models/bit_player/content_providers/form_view_provider.rb +1 -1
- data/app/models/bit_player/content_providers/view_provider.rb +1 -1
- data/app/models/bit_player/navigator.rb +5 -4
- data/lib/bit_player/engine.rb +1 -0
- data/lib/bit_player/version.rb +2 -1
- data/spec/dummy/log/development.log +678 -232
- data/spec/dummy/log/test.log +212 -3242
- data/spec/models/bit_player/navigator_spec.rb +6 -2
- metadata +31 -18
- data/config/routes.rb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a7e4605f9077016c7cafc9231c5e904b8b9c3e0
|
4
|
+
data.tar.gz: ceb523c187fdf1576d3528e5b8a6d8ba4f8674fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5fe18a2a3e5a11f93241e132ced19f0a18badff9d60b49bb273721fda9d082b12912f20db07772ffa396d865f0c041d254e2bf607b89fd75c4f5d8706e64657
|
7
|
+
data.tar.gz: 64fa0de3d1dbe29dbe4cdb17ac0b48cdd981c4c2b180ba49b8bf38b6b78e1622f0a9f2e408d0270fb7854d54b0f4f22aa62e07d64ca1fc5aa9ba3df572469841
|
data/README.md
CHANGED
@@ -4,10 +4,13 @@
|
|
4
4
|
|
5
5
|
gem install bit-player
|
6
6
|
|
7
|
-
##
|
7
|
+
## Create and migrate the database
|
8
8
|
|
9
|
-
bin/rake
|
10
|
-
|
9
|
+
bin/rake db:create db:migrate
|
10
|
+
|
11
|
+
## Run specs and linters
|
12
|
+
|
13
|
+
bin/rake
|
11
14
|
|
12
15
|
## Build the gem
|
13
16
|
|
data/Rakefile
CHANGED
@@ -18,4 +18,18 @@ require 'rspec/core/rake_task'
|
|
18
18
|
desc "Run all specs in spec directory (excluding plugin specs)"
|
19
19
|
RSpec::Core::RakeTask.new(:spec => "app:db:test:prepare")
|
20
20
|
|
21
|
-
|
21
|
+
require 'rubocop/rake_task'
|
22
|
+
|
23
|
+
RuboCop::RakeTask.new
|
24
|
+
|
25
|
+
desc 'Run Brakeman'
|
26
|
+
task :brakeman do
|
27
|
+
dir = File.dirname(__FILE__)
|
28
|
+
puts `#{ File.join(dir, 'bin', 'brakeman') } #{ File.join(dir, '.') }`
|
29
|
+
end
|
30
|
+
|
31
|
+
task :default do
|
32
|
+
Rake::Task['rubocop'].invoke
|
33
|
+
Rake::Task['brakeman'].invoke
|
34
|
+
Rake::Task['spec'].invoke
|
35
|
+
end
|
@@ -55,9 +55,9 @@ module BitPlayer
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def fetch_previous_content
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
return unless previous_content?
|
59
|
+
|
60
|
+
@status.decrement_content_position
|
61
61
|
end
|
62
62
|
|
63
63
|
def previous_content?
|
@@ -83,9 +83,10 @@ module BitPlayer
|
|
83
83
|
|
84
84
|
def current_module
|
85
85
|
@current_module ||= nil
|
86
|
+
arm = @participant.active_group.arm
|
86
87
|
|
87
88
|
module_attrs = {
|
88
|
-
bit_core_tool_id:
|
89
|
+
bit_core_tool_id: arm.bit_core_tools.find_by_title(context).try(:id),
|
89
90
|
position: module_position
|
90
91
|
}
|
91
92
|
|
data/lib/bit_player/engine.rb
CHANGED
data/lib/bit_player/version.rb
CHANGED