ruby_captivate 1.0.35 → 1.0.36
Sign up to get free protection for your applications and to get access to all the features.
data/{README.txt → README.rdoc}
RENAMED
@@ -7,7 +7,8 @@ https://github.com/Leveton/ruby_captivate
|
|
7
7
|
Process Adobe Captivate SWF files with Ruby on Rails 3.0+
|
8
8
|
|
9
9
|
== SYNOPSIS:
|
10
|
-
|
10
|
+
|
11
|
+
After completing a Captivate quiz, a "captivate_results" directory is auto-created beneath the "doc" directory of your project. In this "captivate_results" directory, XML files containing the Captivate quiz results will also be auto-created
|
11
12
|
After installation, take a Captivate quiz and check for a generated XML file in 'doc/captivate_results/'. You can then use the Nokogiri gem to parse the results. http://rubygems.org/gems/nokogiri
|
12
13
|
|
13
14
|
== REQUIREMENTS:
|
@@ -16,7 +17,7 @@ Rails >= 3.0
|
|
16
17
|
|
17
18
|
== INSTALL:
|
18
19
|
|
19
|
-
**In your Captivate instance, you must specify a target URL of http://www.<yourdomain.com>/internalreport**
|
20
|
+
**In your Captivate instance, you must disable error popup windows - these windows show up even with Captivates' native PHP reporting script. You also must specify a target URL of http://www.<yourdomain.com>/internalreport**
|
20
21
|
|
21
22
|
Detailed instructions on how to set all this up on the Captivate end can be found at: https://tv.adobe.com/watch/publish-and-track-results/reporting-using-lms-or-internal-server/
|
22
23
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class CaptivateResultsController < ApplicationController
|
2
2
|
|
3
|
-
def process_results
|
3
|
+
def process_results
|
4
4
|
company_name = params[:CompanyName]
|
5
5
|
department_name = params[:DepartmentName]
|
6
6
|
course_name = params[:CourseName]
|
@@ -11,9 +11,9 @@ def process_results
|
|
11
11
|
file_path = File.join(file_path, file_name)
|
12
12
|
handle = File.open(file_path, 'w' )
|
13
13
|
handle << file_data
|
14
|
-
handle.close
|
14
|
+
handle.close # To parse the resulting XML file, you could now use Nokogiri. For example:
|
15
15
|
#file_save = File.open(handle)
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
#file_iterate = Nokogiri::XML(file_save)
|
17
|
+
## DO SOMETHING WITH 'file_iterate'
|
18
|
+
end
|
19
19
|
end
|
Binary file
|
data/ruby_captivate.gemspec
CHANGED
@@ -2,14 +2,13 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "ruby_captivate"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.36"
|
6
6
|
s.authors = ["Michael Leveton"]
|
7
7
|
s.date = %q{2012-01-27}
|
8
|
-
s.description = 'Adobe Captivate reporting for
|
8
|
+
s.description = 'Adobe Captivate reporting for Rails 3.0+'
|
9
9
|
s.summary = s.description
|
10
10
|
s.email = 'mleveton@prepcloud.com'
|
11
11
|
s.files = `git ls-files`.split("\n")
|
12
|
-
#s.files = ['README.txt', 'lib/ruby_captivate.rb','test/test_ruby_captivate.rb', 'bin/install.rb', 'bin/initializer_generator.rb']
|
13
12
|
s.homepage = 'https://github.com/Leveton/ruby_captivate'
|
14
13
|
s.has_rdoc = true
|
15
14
|
s.rubyforge_project = 'ruby_captivate'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_captivate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.36
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-01-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &17668760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,8 +21,8 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
description: Adobe Captivate reporting for
|
24
|
+
version_requirements: *17668760
|
25
|
+
description: Adobe Captivate reporting for Rails 3.0+
|
26
26
|
email: mleveton@prepcloud.com
|
27
27
|
executables:
|
28
28
|
- initializer_generator.rb
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- .autotest
|
38
38
|
- History.txt
|
39
39
|
- Manifest.txt
|
40
|
-
- README.
|
40
|
+
- README.rdoc
|
41
41
|
- Rakefile
|
42
42
|
- bin/initializer_generator.rb
|
43
43
|
- bin/initializer_generator.rb~
|
@@ -50,7 +50,7 @@ files:
|
|
50
50
|
- lib/generators/ruby_captivate/install/install_generator.rb~
|
51
51
|
- lib/generators/ruby_captivate/templates/captivate_results_controller.rb
|
52
52
|
- lib/generators/ruby_captivate/templates/captivate_results_controller.rb~
|
53
|
-
- ruby_captivate-1.0.
|
53
|
+
- ruby_captivate-1.0.35.gem
|
54
54
|
- ruby_captivate.gemspec
|
55
55
|
- test/test_ruby_captivate.rb
|
56
56
|
homepage: https://github.com/Leveton/ruby_captivate
|
@@ -76,5 +76,5 @@ rubyforge_project: ruby_captivate
|
|
76
76
|
rubygems_version: 1.8.10
|
77
77
|
signing_key:
|
78
78
|
specification_version: 3
|
79
|
-
summary: Adobe Captivate reporting for
|
79
|
+
summary: Adobe Captivate reporting for Rails 3.0+
|
80
80
|
test_files: []
|