ruby_captivate 1.0.13 → 1.0.14

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,21 +1,5 @@
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
-
1
+ class InitializerGenerator < Rails::Generators::Base
2
+ def create_initializer_file
3
+ create_file "config/initializers/initializer.rb", "# Add initialization content here"
20
4
  end
21
5
  end
@@ -1,23 +1,17 @@
1
1
  module RubyCaptivate
2
- # Copies formtastic.css to public/stylesheets/ (Rails 3.0.x only) and a config initializer
3
- # to config/initializers/formtastic.rb (all Rails versions).
4
- #
5
- # @example
6
- # $ rails generate formtastic:install
7
- #
8
- # @todo Test with Rails 3.0
2
+
9
3
  class InstallGenerator < Rails::Generators::Base
10
4
  source_root File.expand_path('../../../templates', __FILE__)
11
5
  class_option :template_engine
12
6
 
13
7
  if ::Rails::VERSION::MAJOR == 3 && ::Rails::VERSION::MINOR >= 1
14
- # Rails 3.1 has the asset pipeline, no need to copy CSS files any more
8
+
15
9
  desc "Copies a config initializer to config/initializers/formtastic.rb"
16
10
  def copy_files
17
11
  copy_file 'ruby_captivate.rb', 'config/initializers/ruby_captivate.rb'
18
12
  end
19
13
  else
20
- # Rails 3.0 doesn't have an asset pipeline, so we copy in CSS too
14
+
21
15
  desc "Copies some CSS files to public/stylesheets/ and a config initializer to config/initializers/formtastic.rb"
22
16
 
23
17
  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.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'
@@ -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.12"
5
+ s.version = "1.0.13"
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.13
4
+ version: 1.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -127,6 +127,7 @@ files:
127
127
  - ruby_captivate-1.0.10.gem
128
128
  - ruby_captivate-1.0.11.gem
129
129
  - ruby_captivate-1.0.12.gem
130
+ - ruby_captivate-1.0.13.gem
130
131
  - ruby_captivate-1.0.8.gem
131
132
  - ruby_captivate-1.0.9.gem
132
133
  - ruby_captivate.gemspec