ruby_captivate 1.0.16 → 1.0.17
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,8 +1,21 @@
|
|
|
1
1
|
module RubyCaptivateInstaller
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
|
|
6
20
|
end
|
|
7
|
-
end
|
|
8
21
|
end
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
module RubyCaptivateInstaller
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
3
|
+
class InitializerGenerator < Rails::Generators::Base
|
|
4
|
+
def create_initializer_file
|
|
5
|
+
create_file "config/initializers/initializer.rb", "# Add initialization content here"
|
|
20
6
|
end
|
|
7
|
+
end
|
|
21
8
|
end
|
|
Binary file
|
data/ruby_captivate.gemspec
CHANGED
data/ruby_captivate.gemspec~
CHANGED
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.
|
|
4
|
+
version: 1.0.17
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -130,6 +130,7 @@ files:
|
|
|
130
130
|
- ruby_captivate-1.0.13.gem
|
|
131
131
|
- ruby_captivate-1.0.14.gem
|
|
132
132
|
- ruby_captivate-1.0.15.gem
|
|
133
|
+
- ruby_captivate-1.0.16.gem
|
|
133
134
|
- ruby_captivate-1.0.8.gem
|
|
134
135
|
- ruby_captivate-1.0.9.gem
|
|
135
136
|
- ruby_captivate.gemspec
|