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
| .toggle_button | |
| display: inline-block | |
| +sprite("newsreader_icons", "check_off") | |
| width: auto | |
| padding-bottom: 4px | |
| margin: 0 5px | |
| &.on | |
| +sprite("newsreader_icons", "check_on") | |
| width: auto | |
| &.news_toggle_button |
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
| merb-core requires extlib (>= 0.9.13, runtime) | |
| merb-core requires erubis (>= 2.6.2, runtime) | |
| merb-core requires rake (>= 0, runtime) | |
| merb-core requires rack (>= 0, runtime) | |
| merb-core requires mime-types (>= 1.16, runtime) | |
| merb-action-args requires ruby2ruby (>= 1.1.9, runtime) | |
| merb-action-args requires ParseTree (>= 2.1.1, runtime) | |
| merb-mailer requires mailfactory (>= 1.2.3, runtime) | |
| merb-gen requires templater (>= 1.0.0, runtime) | |
| merb-haml requires haml (>= 2.0.3, runtime) |
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
| # ==== Examples | |
| # | |
| # r.resource :account # will result in the typical RESTful CRUD | |
| # # shows new resource form | |
| # # GET /account/new :action => "new" | |
| # | |
| # # creates resource | |
| # # POST /account/?(\.:format)?, :action => "create" | |
| # | |
| # # shows resource |
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
| # configure via dsl | |
| user_admin = MerbAdmin::ModelConfig.configure(User) do | |
| display_name "Users" | |
| search_fields "name", "description" | |
| radio_field :name, :style => :vertical | |
| after :update do |
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
| p_term :: Parser Term | |
| p_term = t <* spaces | |
| where | |
| t = IntTerm <$> p_num (readSigned readDec) | |
| <|> FloatTerm <$> p_num (readSigned readFloat) | |
| <|> AtomTerm <$> p_atom | |
| <|> TupleTerm <$> p_tuple | |
| <|> BytelistTerm . C.pack <$> p_string | |
| <|> ListTerm <$> p_list | |
| <|> BinaryTerm . B.pack <$> p_binary |
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
| # bundle gems | |
| run "cd #{release_path}; gem bundle --cached" | |
| # slices install | |
| run "cd #{release_path}; bin/rake MERB_ENV=#{ENV['MERB_ENV']} slices:install:all" |
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 Rake | |
| class Task | |
| attr_accessor :plugin | |
| alias :old_comment :comment | |
| def comment | |
| "%-#{$plugin_max}s # %s" % [plugin, old_comment] if old_comment | |
| end | |
| end | |
| module TaskManager |
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 File.join(File.dirname(__FILE__), "spec_helper") | |
| startup_merb(:session_stores => ["cookie", "memory", "memcache"], :session_secret_key => "session-secret-key-here") | |
| require File.join(File.dirname(__FILE__), "controllers", "sessions") | |
| require 'memcache' | |
| Merb::MemcacheSession.store = MemCache.new('127.0.0.1:11211', { :namespace => 'my_app' }) | |
| describe "An app with multiple session stores configured" do | |
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
| 1) | |
| 'Merb::MemcacheSession mixed into Merb::Controller should retrieve session data' FAILED | |
| expected: "memcache", | |
| got: nil (using ==) | |
| /mnt/repos/merbjedi/merb/merb-core/spec/public/session/session_shared.rb:61: | |
| /mnt/repos/merbjedi/merb/merb-core/spec/public/session/session_shared.rb:58: | |
| /mnt/repos/merbjedi/merb/merb-core/Rakefile:199:in `setup_specs' | |
| /home/build/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call' | |
| /home/build/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute' | |
| /home/build/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each' |
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 File.join(File.dirname(__FILE__), "spec_helper") | |
| startup_merb(:session_store => "memcache") | |
| require File.join(File.dirname(__FILE__), "controllers", "sessions") | |
| require 'memcache' | |
| Merb::MemcacheSession.store = MemCache.new('127.0.0.1:11211', { :namespace => 'my_app' }) | |
| begin | |
| Merb::MemcacheSession.store.stats |