ruby_captivate 1.0.24 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,8 @@ module Ruby_Captivate
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path('../../../templates', __FILE__)
5
5
  class_option :template_engine
6
- include Thor
6
+ include Thor::Group
7
+ include Thor::Actions
7
8
 
8
9
 
9
10
  copy_file 'ruby_captivate.rb', 'config/initializers/ruby_captivate.rb'
@@ -3,7 +3,7 @@ module Ruby_Captivate
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
  source_root File.expand_path('../../../templates', __FILE__)
5
5
  class_option :template_engine
6
- require 'thor'
6
+ include Thor
7
7
 
8
8
 
9
9
  copy_file 'ruby_captivate.rb', 'config/initializers/ruby_captivate.rb'
@@ -11,16 +11,4 @@ module Ruby_Captivate
11
11
 
12
12
  end
13
13
 
14
- def copy_file(source, *args, &block)
15
- config = args.last.is_a?(Hash) ? args.pop : {}
16
- destination = args.first || source
17
- source = File.expand_path(find_in_source_paths(source.to_s))
18
-
19
- create_file destination, nil, config do
20
- content = File.binread(source)
21
- content = block.call(content) if block
22
- content
23
- end
24
- end
25
-
26
14
  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.24"
5
+ s.version = "1.0.25"
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.23"
5
+ s.version = "1.0.24"
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.24
4
+ version: 1.0.25
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: &12245580 !ruby/object:Gem::Requirement
16
+ requirement: &21065540 !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: *12245580
24
+ version_requirements: *21065540
25
25
  description: Adobe Captivate reporting for Ruby
26
26
  email: mleveton@prepcloud.com
27
27
  executables:
@@ -135,6 +135,7 @@ files:
135
135
  - pkg/ruby_captivate-1.0.7/bin/ruby_captivate
136
136
  - pkg/ruby_captivate-1.0.7/lib/ruby_captivate.rb
137
137
  - pkg/ruby_captivate-1.0.7/test/test_ruby_captivate.rb
138
+ - ruby_captivate-1.0.24.gem
138
139
  - ruby_captivate.gemspec
139
140
  - ruby_captivate.gemspec~
140
141
  - test/test_ruby_captivate.rb