ruby_captivate 1.0.33 → 1.0.34
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 +8 -3
- data/lib/generators/ruby_captivate/install/install_generator.rb~ +9 -4
- data/lib/generators/ruby_captivate/templates/{ruby_captivate.rb → captivate_results_controller.rb} +2 -3
- data/lib/{ruby_captivate.rb → generators/ruby_captivate/templates/captivate_results_controller.rb~} +1 -1
- data/{ruby_captivate-1.0.32.gem → ruby_captivate-1.0.33.gem} +0 -0
- data/ruby_captivate.gemspec +1 -1
- data/ruby_captivate.gemspec~ +1 -1
- metadata +6 -9
- data/lib/generators/ruby_captivate/initializer_generator.rb +0 -6
- data/lib/generators/ruby_captivate/initializer_generator.rb~ +0 -0
- data/lib/generators/ruby_captivate/templates/ruby_captivate.rb~ +0 -20
@@ -5,8 +5,13 @@ module Ruby_Captivate
|
|
5
5
|
desc "Creates a ruby_captivate initializer and copies locale files to your application."
|
6
6
|
class_option :orm
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
def add_controller
|
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
|
11
16
|
end
|
12
17
|
end
|
@@ -1,12 +1,17 @@
|
|
1
|
-
module
|
1
|
+
module Ruby_Captivate
|
2
2
|
class InstallGenerator < Rails::Generators::Base
|
3
3
|
source_root File.expand_path("../../templates", __FILE__)
|
4
4
|
|
5
5
|
desc "Creates a ruby_captivate initializer and copies locale files to your application."
|
6
6
|
class_option :orm
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
11
16
|
end
|
12
17
|
end
|
data/lib/generators/ruby_captivate/templates/{ruby_captivate.rb → captivate_results_controller.rb}
RENAMED
@@ -1,7 +1,6 @@
|
|
1
|
-
class
|
2
|
-
VERSION = '1.0.7'
|
1
|
+
class Captivate_ResultsController < ApplicationController
|
3
2
|
|
4
|
-
def
|
3
|
+
def process_results
|
5
4
|
company_name = params[:CompanyName]
|
6
5
|
department_name = params[:DepartmentName]
|
7
6
|
course_name = params[:CourseName]
|
Binary file
|
data/ruby_captivate.gemspec
CHANGED
data/ruby_captivate.gemspec~
CHANGED
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.34
|
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: &7525620 !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: *7525620
|
25
25
|
description: Adobe Captivate reporting for Ruby
|
26
26
|
email: mleveton@prepcloud.com
|
27
27
|
executables:
|
@@ -48,13 +48,10 @@ files:
|
|
48
48
|
- bin/ruby_captivate
|
49
49
|
- bin/ruby_captivate~
|
50
50
|
- lib/generators/install_generator.rb~
|
51
|
-
- lib/generators/ruby_captivate/initializer_generator.rb
|
52
|
-
- lib/generators/ruby_captivate/initializer_generator.rb~
|
53
51
|
- lib/generators/ruby_captivate/install/install_generator.rb
|
54
52
|
- lib/generators/ruby_captivate/install/install_generator.rb~
|
55
|
-
- lib/generators/ruby_captivate/templates/
|
56
|
-
- lib/generators/ruby_captivate/templates/
|
57
|
-
- lib/ruby_captivate.rb
|
53
|
+
- lib/generators/ruby_captivate/templates/captivate_results_controller.rb
|
54
|
+
- lib/generators/ruby_captivate/templates/captivate_results_controller.rb~
|
58
55
|
- pkg/ruby_captivate-1.0.0.gem
|
59
56
|
- pkg/ruby_captivate-1.0.0/.autotest
|
60
57
|
- pkg/ruby_captivate-1.0.0/.gemtest
|
@@ -135,7 +132,7 @@ files:
|
|
135
132
|
- pkg/ruby_captivate-1.0.7/bin/ruby_captivate
|
136
133
|
- pkg/ruby_captivate-1.0.7/lib/ruby_captivate.rb
|
137
134
|
- pkg/ruby_captivate-1.0.7/test/test_ruby_captivate.rb
|
138
|
-
- ruby_captivate-1.0.
|
135
|
+
- ruby_captivate-1.0.33.gem
|
139
136
|
- ruby_captivate.gemspec
|
140
137
|
- ruby_captivate.gemspec~
|
141
138
|
- test/test_ruby_captivate.rb
|
File without changes
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class RubyCaptivate
|
2
|
-
VERSION = '1.0.7'
|
3
|
-
|
4
|
-
def process_captivate_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
|