ruby_captivate 1.0.18 → 1.0.19

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.
@@ -4,17 +4,7 @@ module Ruby_Captivate
4
4
  source_root File.expand_path('../../../templates', __FILE__)
5
5
  class_option :template_engine
6
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
7
+ create_file "config/initializers/initializer.rb", "# Add initialization content here"
18
8
 
19
9
 
20
10
  end
@@ -0,0 +1,21 @@
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
+
20
+ end
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.18"
5
+ s.version = "1.0.19"
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.17"
5
+ s.version = "1.0.18"
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.18
4
+ version: 1.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -41,6 +41,7 @@ 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~
44
45
  - lib/ruby_captivate.rb
45
46
  - lib/ruby_captivate.rb~
46
47
  - pkg/ruby_captivate-1.0.0.gem
@@ -131,6 +132,7 @@ files:
131
132
  - ruby_captivate-1.0.15.gem
132
133
  - ruby_captivate-1.0.16.gem
133
134
  - ruby_captivate-1.0.17.gem
135
+ - ruby_captivate-1.0.18.gem
134
136
  - ruby_captivate-1.0.8.gem
135
137
  - ruby_captivate-1.0.9.gem
136
138
  - ruby_captivate.gemspec