frame 0.0.1 → 0.0.2

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,9 @@
1
- class Lead
2
- def print
1
+ module Frame
2
+ require 'frame/engine' if defined?(Rails)
3
+ end
4
+
5
+ class Frame
6
+ def self.print
3
7
  return "initial"
4
8
  end
5
9
  end
@@ -0,0 +1,5 @@
1
+ require 'rails'
2
+ module Frame
3
+ class Engine < Rails::Engine
4
+ end
5
+ end
@@ -0,0 +1,30 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/named_base'
3
+
4
+ module Frame
5
+ module Generators
6
+ class FrameGenerator < Rails::Generators::NamedBase
7
+
8
+ desc "Installs Secret files if they don't already exist."
9
+
10
+ # Commandline options can be defined here using Thor-like options:
11
+ class_option :my_opt, :type => :boolean, :default => false, :desc => "My Option"
12
+
13
+ # I can later access that option using:
14
+ puts options[:my_opt]
15
+
16
+
17
+ #def self.source_root
18
+ # @source_root ||= File.join(File.dirname(__FILE__), 'templates')
19
+ #end
20
+
21
+ #include Rails::Generators::Migration
22
+
23
+
24
+ #def create_secret
25
+ # template 'database.yml', 'config/database.yml'
26
+ #end
27
+
28
+ end
29
+ end
30
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-01 00:00:00.000000000 Z
12
+ date: 2012-09-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Frame will setup various Ruby on Rails projects with an instantly usable
15
15
  application. The user can choose if they want authentication with devise, omniauth,
@@ -21,6 +21,8 @@ extensions: []
21
21
  extra_rdoc_files: []
22
22
  files:
23
23
  - lib/frame.rb
24
+ - lib/frame/engine.rb
25
+ - lib/generators/frame/frame_generator.rb
24
26
  homepage: https://github.com/ncimino/frame
25
27
  licenses: []
26
28
  post_install_message: