ruby_captivate 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/ruby_captivate/install/install_generator.rb +4 -0
- data/lib/generators/ruby_captivate/templates/process_results.html.erb +0 -0
- data/ruby_captivate-1.1.1.gem +0 -0
- data/ruby_captivate.gemspec +1 -1
- metadata +5 -7
- data/lib/generators/install_generator.rb~ +0 -12
- data/lib/generators/ruby_captivate/install/install_generator.rb~ +0 -17
- data/lib/generators/ruby_captivate/templates/captivate_results_controller.rb~ +0 -20
- data/ruby_captivate-1.1.0.gem +0 -0
@@ -9,6 +9,10 @@ module Ruby_Captivate
|
|
9
9
|
template "captivate_results_controller.rb", "app/controllers/captivate_results_controller.rb"
|
10
10
|
end
|
11
11
|
|
12
|
+
def add_stub_view
|
13
|
+
template "process_results.html.erb", "app/views/process_results.html.erb"
|
14
|
+
end
|
15
|
+
|
12
16
|
def add_captivate_routes
|
13
17
|
captivate_route = "match '/internalreport', :to => 'captivate_results#process_results'"
|
14
18
|
route captivate_route
|
File without changes
|
Binary file
|
data/ruby_captivate.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.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.1.
|
5
|
+
s.version = "1.1.2"
|
6
6
|
s.authors = ["Michael Leveton"]
|
7
7
|
s.date = %q{2012-01-27}
|
8
8
|
s.description = 'Adobe Captivate reporting for Rails 3.0+'
|
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.1.
|
4
|
+
version: 1.1.2
|
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: &11822240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *11822240
|
25
25
|
description: Adobe Captivate reporting for Rails 3.0+
|
26
26
|
email: mleveton@prepcloud.com
|
27
27
|
executables: []
|
@@ -32,12 +32,10 @@ files:
|
|
32
32
|
- Manifest.txt
|
33
33
|
- README.rdoc
|
34
34
|
- Rakefile
|
35
|
-
- lib/generators/install_generator.rb~
|
36
35
|
- lib/generators/ruby_captivate/install/install_generator.rb
|
37
|
-
- lib/generators/ruby_captivate/install/install_generator.rb~
|
38
36
|
- lib/generators/ruby_captivate/templates/captivate_results_controller.rb
|
39
|
-
- lib/generators/ruby_captivate/templates/
|
40
|
-
- ruby_captivate-1.1.
|
37
|
+
- lib/generators/ruby_captivate/templates/process_results.html.erb
|
38
|
+
- ruby_captivate-1.1.1.gem
|
41
39
|
- ruby_captivate.gemspec
|
42
40
|
- test/test_ruby_captivate.rb
|
43
41
|
homepage: https://github.com/Leveton/ruby_captivate
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module ruby_captivate
|
2
|
-
class InstallGenerator < Rails::Generators::Base
|
3
|
-
source_root File.expand_path("../../templates", __FILE__)
|
4
|
-
|
5
|
-
desc "Creates a ruby_captivate initializer and copies locale files to your application."
|
6
|
-
class_option :orm
|
7
|
-
|
8
|
-
def add_my_initializer
|
9
|
-
template "initializer.rb", "config/initializers/appointments.rb"
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
module Ruby_Captivate
|
2
|
-
class InstallGenerator < Rails::Generators::Base
|
3
|
-
source_root File.expand_path("../../templates", __FILE__)
|
4
|
-
|
5
|
-
desc "Creates a ruby_captivate initializer and copies locale files to your application."
|
6
|
-
class_option :orm
|
7
|
-
|
8
|
-
def add_my_initializer
|
9
|
-
template "captivate_results_controller.rb", "app/controllers/captivate_results_controller.rb"
|
10
|
-
end
|
11
|
-
|
12
|
-
def add_captivate_routes
|
13
|
-
captivate_route = "match '/internalreport', :to => 'captivate_results#process_results'"
|
14
|
-
route captivate_route
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class RubyCaptivate
|
2
|
-
VERSION = '1.0.7'
|
3
|
-
|
4
|
-
def process_results
|
5
|
-
company_name = params[:CompanyName]
|
6
|
-
department_name = params[:DepartmentName]
|
7
|
-
course_name = params[:CourseName]
|
8
|
-
file_name = params[:Filename]
|
9
|
-
file_data = params[:Filedata]
|
10
|
-
file_path = File.join("#{Rails.root}/doc", "CaptivateResults", company_name, department_name, course_name)
|
11
|
-
FileUtils.mkdir_p(file_path)
|
12
|
-
file_path = File.join(file_path, file_name)
|
13
|
-
handle = File.open(file_path, 'w' )
|
14
|
-
handle << file_data
|
15
|
-
handle.close
|
16
|
-
#file_save = File.open(handle)
|
17
|
-
end
|
18
|
-
|
19
|
-
|
20
|
-
end
|
data/ruby_captivate-1.1.0.gem
DELETED
Binary file
|