Skip to content

Instantly share code, notes, and snippets.

umbra:www.portionator.dev ted$ merb-gen app ./
Generating with app generator:
[IDENTICAL] spec
[ADDED] tasks/merb.thor
[CONFLICT] .gitignore
1. skip
2. overwrite
3. render
4. diff
5. abort
[CONFLICT] config/dependencies.rb
1. skip
2. overwrite
3. render
4. diff
5. abort
How do you wish to proceed with this file?
4
Showing differences for config/dependencies.rb
>> content = "a string with 'single' quotes in it"
=> "a string with 'single' quotes in it"
>> content.gsub("'","\'")
=> "a string with 'single' quotes in it"
>> content.gsub("'","\\'")
=> "a string with single' quotes in itsingle quotes in it quotes in it"
>> content.gsub("'","\\\'")
=> "a string with single' quotes in itsingle quotes in it quotes in it"
>> content.gsub("'","\\\\'")
=> "a string with \\'single\\' quotes in it"
umbra:Sites ted$ merb-gen app test
Generating with app generator:
[ADDED] tasks/merb.thor
[ADDED] .gitignore
[ADDED] public/.htaccess
[ADDED] tasks/doc.thor
[ADDED] public/javascripts/jquery.js
[ADDED] doc/rdoc/generators/merb_generator.rb
[ADDED] doc/rdoc/generators/template/merb/api_grease.js
[ADDED] doc/rdoc/generators/template/merb/index.html.erb
umbra:code-nice ted$ spec spec/requests/posts_spec.rb # 10.of { Post.generate(:self_authored) }
FF..*FFFF.F
Pending:
resource(:posts) GET has a list of posts (TODO)
Called from ./spec/requests/posts_spec.rb:51
1)
Merb::Router::GenerationError in 'url(:post_category, 'category') responds successfully'
Named route post_category could not be generated with {}
Lucem ted$ irb
>> module Mod
>> def test
>>
>> puts "test"
>> end
>> end
=> nil
>> Mod.test
NoMethodError: private method `test' called for Mod:Module
Lucem:code ted$ thor -T
cnf
---
cnf:hello Say Hello
Lucem:code ted$ thor hello
The thor:runner namespace doesn't have a `hello' task
Lucem:code ted$ thor cnf:hello
There was no available namespace `cnf'.
17:09:25 <+RichOnRails> here is my merb gems
17:09:28 <+RichOnRails> merb (1.0.7.1)
17:09:28 <+RichOnRails> merb-action-args (1.0.7.1)
17:09:28 <+RichOnRails> merb-assets (1.0.7.1)
17:09:29 <+RichOnRails> merb-auth (1.0.7.1)
17:09:29 <+RichOnRails> merb-auth-core (1.0.7.1)
17:09:30 <+RichOnRails> merb-auth-more (1.0.7.1)
17:09:32 <+RichOnRails> merb-auth-slice-password (1.0.7.1)
17:09:34 <+RichOnRails> merb-cache (1.0.7.1)
17:09:36 <+RichOnRails> merb-core (1.0.7.1)
@knowtheory
knowtheory / gist:44402
Created January 7, 2009 20:23
1st Draft for a Merb Wiki Proposal
## Homepage and Information Routing
### What's Merb?
### Who's using Merb?
## Philosophy
### Public/Private API
### Agnosticism and Componentized Architecture
### Ruby is awesome, use Ruby.
### Principled Development
## Design Principles
### MVC
module Memoizer
def method_added(meth)
@_methods_to_memoize ||= []
@_methods_to_memoize << meth
end
def methods_to_memoize
@_methods_to_memoize
end
end