This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =f.input :my_input, :label=>"My Label", :as => :string, :hint => "My Hint", :extra_html=>my_extra_content, :extra_html_class=>"extra-content-class", :extra_html_position=>0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Gem::Specification.new do |s| | |
| s.name = %q{my_gem} | |
| s.version = "0.0.0" | |
| s.date = %q{2011-09-17} | |
| s.require_paths = ["lib"] | |
| s.summary = %q{TODO: one-line summary of your gem} | |
| s.files = [ | |
| ".document", | |
| "Gemfile", | |
| "LICENSE.txt", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module MyGem | |
| module VERSION | |
| MAJOR = 3 | |
| MINOR = 1 | |
| TINY = 0 | |
| STRING = [MAJOR, MINOR, TINY].join('.') | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module MyGem | |
| module VERSION | |
| MAJOR = 3 | |
| MINOR = 1 | |
| TINY = 0 | |
| STRING = [MAJOR, MINOR, TINY].join('.') | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "http://www.rubygems.org" | |
| gemspec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rails' | |
| require 'my_gem' | |
| module MyGem | |
| class Railtie < Rails::Railtie | |
| initializer "my_gem.setup!", :before=>"some_initializer" do |app| | |
| MyGem.setup! | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "my_gem" | |
| require "rails" | |
| module MyGem | |
| class Engine < Rails::Engine | |
| initializer 'ar_extension' do |app| | |
| ActiveRecord::Base.extend MyGem::SomeThing | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jeweler::Tasks.new do |gem| | |
| # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options | |
| gem.name = "acts_as_charlie_sheen" | |
| gem.homepage = "http://github.com/johnmcaliley/acts_as_charlie_sheen" | |
| gem.license = "MIT" | |
| gem.summary = %Q{Make your classes act like Charlie Sheen} | |
| gem.description = %Q{Adds functionality to classes to make them act like Charlie Sheen. WINNING!} | |
| gem.email = "john@couponshack.com" | |
| gem.authors = ["John McAliley"] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jeweler::Tasks.new do |gem| | |
| gem.name = "acts_as_charlie_sheen" | |
| gem.homepage = "http://github.com/johnmcaliley/acts_as_charlie_sheen" | |
| gem.license = "MIT" | |
| gem.summary = %Q{Make your classes act like Charlie Sheen} | |
| gem.description = %Q{Adds functionality to classes to make them act like Charlie Sheen. WINNING!} | |
| gem.email = "john.mcaliley@gmail.com" | |
| gem.authors = ["John McAliley"] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'acts_as_charlie_sheen/base' | |
| require 'acts_as_charlie_sheen/railtie' |