ruby_captivate 1.0.14 → 1.0.15

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,5 +1,21 @@
1
- class InitializerGenerator < Rails::Generators::Base
2
- def create_initializer_file
3
- create_file "config/initializers/initializer.rb", "# Add initialization content here"
1
+ module ruby_captivate
2
+
3
+ class InstallGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../../../templates', __FILE__)
5
+ class_option :template_engine
6
+
7
+ if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1
8
+
9
+ desc "Copies a config initializer to config/initializers/formtastic.rb"
10
+ def copy_files
11
+ copy_file 'ruby_captivate.rb', 'config/initializers/ruby_captivate.rb'
12
+ end
13
+ else
14
+
15
+ desc "Copies some CSS files to public/stylesheets/ and a config initializer to config/initializers/formtastic.rb"
16
+
17
+ end
18
+
19
+
4
20
  end
5
21
  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.14"
5
+ s.version = "1.0.15"
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.13"
5
+ s.version = "1.0.14"
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.14
4
+ version: 1.0.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,7 +41,6 @@ files:
41
41
  - lib/generators/ruby_captivate/initializer_generator.rb
42
42
  - lib/generators/ruby_captivate/initializer_generator.rb~
43
43
  - lib/generators/ruby_captivate/install/install_generator.rb
44
- - lib/generators/ruby_captivate/install/install_generator.rb~
45
44
  - lib/ruby_captivate.rb
46
45
  - lib/ruby_captivate.rb~
47
46
  - pkg/ruby_captivate-1.0.0.gem
@@ -128,6 +127,7 @@ files:
128
127
  - ruby_captivate-1.0.11.gem
129
128
  - ruby_captivate-1.0.12.gem
130
129
  - ruby_captivate-1.0.13.gem
130
+ - ruby_captivate-1.0.14.gem
131
131
  - ruby_captivate-1.0.8.gem
132
132
  - ruby_captivate-1.0.9.gem
133
133
  - ruby_captivate.gemspec
@@ -1,21 +0,0 @@
1
- module RubyCaptivate
2
-
3
- class InstallGenerator < Rails::Generators::Base
4
- source_root File.expand_path('../../../templates', __FILE__)
5
- class_option :template_engine
6
-
7
- if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1
8
-
9
- desc "Copies a config initializer to config/initializers/formtastic.rb"
10
- def copy_files
11
- copy_file 'ruby_captivate.rb', 'config/initializers/ruby_captivate.rb'
12
- end
13
- else
14
-
15
- desc "Copies some CSS files to public/stylesheets/ and a config initializer to config/initializers/formtastic.rb"
16
-
17
- end
18
-
19
-
20
- end
21
- end