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.
@@ -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
- def add_my_initializer
9
- template "ruby_captivate.rb", "config/initializers/ruby_captivate.rb"
10
- end
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 ruby_captivate
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
- def add_my_initializer
9
- template "ruby_captivate.rb", "config/initializers/ruby_captivate.rb"
10
- end
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
@@ -1,7 +1,6 @@
1
- class RubyCaptivate
2
- VERSION = '1.0.7'
1
+ class Captivate_ResultsController < ApplicationController
3
2
 
4
- def process_captivate_results
3
+ def process_results
5
4
  company_name = params[:CompanyName]
6
5
  department_name = params[:DepartmentName]
7
6
  course_name = params[:CourseName]
@@ -1,7 +1,7 @@
1
1
  class RubyCaptivate
2
2
  VERSION = '1.0.7'
3
3
 
4
- def process_captivate_results
4
+ def process_results
5
5
  company_name = params[:CompanyName]
6
6
  department_name = params[:DepartmentName]
7
7
  course_name = params[:CourseName]
@@ -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.0.33"
5
+ s.version = "1.0.34"
6
6
  s.authors = ["Michael Leveton"]
7
7
  s.date = %q{2012-01-27}
8
8
  s.description = 'Adobe Captivate reporting for Ruby'
@@ -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.0.32"
5
+ s.version = "1.0.33"
6
6
  s.authors = ["Michael Leveton"]
7
7
  s.date = %q{2012-01-27}
8
8
  s.description = 'Adobe Captivate reporting for Ruby'
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.33
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: &7821360 !ruby/object:Gem::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: *7821360
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/ruby_captivate.rb
56
- - lib/generators/ruby_captivate/templates/ruby_captivate.rb~
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.32.gem
135
+ - ruby_captivate-1.0.33.gem
139
136
  - ruby_captivate.gemspec
140
137
  - ruby_captivate.gemspec~
141
138
  - test/test_ruby_captivate.rb
@@ -1,6 +0,0 @@
1
-
2
- class InitializerGenerator < Rails::Generators::Base
3
- def create_initializer_file
4
- create_file "config/initializers/initializer.rb", "# Add initialization content here"
5
- end
6
- end
@@ -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