ruby_captivate 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,12 @@
1
- require 'securerandom'
2
-
3
1
  module ruby_captivate
4
- module Generators
5
2
  class InstallGenerator < Rails::Generators::Base
6
3
  source_root File.expand_path("../../templates", __FILE__)
7
4
 
8
5
  desc "Creates a ruby_captivate initializer and copies locale files to your application."
9
6
  class_option :orm
10
7
 
11
- def copy_initializer
12
- template "ruby_captivate.rb", "config/initializers/devise.rb"
13
- end
14
-
15
- def copy_locale
16
- copy_file "../../../config/locales/en.yml", "config/locales/ruby_captivate.en.yml"
17
- end
18
-
19
- def show_readme
20
- readme "README" if behavior == :invoke
21
- end
8
+ def add_my_initializer
9
+ template "ruby_captivate.rb", "config/initializers/ruby_captivate.rb"
10
+ end
22
11
  end
23
- end
24
12
  end
@@ -0,0 +1,12 @@
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
@@ -10,5 +10,8 @@ module Ruby_Captivate
10
10
 
11
11
 
12
12
  end
13
+
14
+
15
+
13
16
  end
14
17
  end
@@ -1,7 +1,7 @@
1
1
  module Ruby_Captivate
2
2
 
3
3
  class InstallGenerator < Rails::Generators::Base
4
- include Thor::Group
4
+ class InstallGenerator < Thor::Group
5
5
  include Thor::Actions
6
6
  source_root File.expand_path('../../../templates', __FILE__)
7
7
  class_option :template_engine
@@ -11,3 +11,4 @@ module Ruby_Captivate
11
11
 
12
12
  end
13
13
  end
14
+ end
@@ -0,0 +1,20 @@
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
Binary file
@@ -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.29"
5
+ s.version = "1.0.30"
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.28"
5
+ s.version = "1.0.29"
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.29
4
+ version: 1.0.30
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: &12892180 !ruby/object:Gem::Requirement
16
+ requirement: &5569380 !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: *12892180
24
+ version_requirements: *5569380
25
25
  description: Adobe Captivate reporting for Ruby
26
26
  email: mleveton@prepcloud.com
27
27
  executables:
@@ -54,6 +54,7 @@ files:
54
54
  - lib/generators/ruby_captivate/install/install_generator.rb
55
55
  - lib/generators/ruby_captivate/install/install_generator.rb~
56
56
  - lib/generators/templates/ruby_captivate.rb
57
+ - lib/generators/templates/ruby_captivate.rb~
57
58
  - lib/ruby_captivate.rb
58
59
  - pkg/ruby_captivate-1.0.0.gem
59
60
  - pkg/ruby_captivate-1.0.0/.autotest
@@ -136,6 +137,7 @@ files:
136
137
  - pkg/ruby_captivate-1.0.7/lib/ruby_captivate.rb
137
138
  - pkg/ruby_captivate-1.0.7/test/test_ruby_captivate.rb
138
139
  - ruby_captivate-1.0.28.gem
140
+ - ruby_captivate-1.0.29.gem
139
141
  - ruby_captivate.gemspec
140
142
  - ruby_captivate.gemspec~
141
143
  - test/test_ruby_captivate.rb