This file contains 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
In the last two weeks things here have continued to roll ahead. | |
The 0.0.3 Tag has been pushed github and here's a short summary of what's changed in the last couple of weeks. | |
First we've extracted "activesupport-slices":https://github.com/svenfuchs/activesupport-slices into a gem. We've also extracted has_one_default from the Page.article associations and ActiveRecord::Base.categorizable. | |
In terms of what's been refactoring, we've changed the blog_post route so that we no longer need a fake route. polymorphic url_for has also been reworked a bit. It's not yet complete, but it does already support multiple compinations of sti models. For example, url_for([blog, post]) will check blog_post_path, blog_content_path, section_post_path and section_content_path and use the first one that the view responds to. | |
Other things that got some attention in the past couple of weeks are the Section#path method and the blog pages. Posts that are assigned to a category's sub-categories are now included in their |
This file contains 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
[chris@turnstile sk_b2c]$ pg_config | |
BINDIR = /usr/bin | |
DOCDIR = /usr/share/doc/postgresql | |
HTMLDIR = /usr/share/doc/postgresql | |
INCLUDEDIR = /usr/include | |
PKGINCLUDEDIR = /usr/include/postgresql | |
INCLUDEDIR-SERVER = /usr/include/postgresql/server | |
LIBDIR = /usr/lib | |
PKGLIBDIR = /usr/lib/postgresql | |
LOCALEDIR = /usr/share/locale |
This file contains 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
Uncategorized | |
* bump to 0.0.4 | |
* bump simple_nested_set | |
* Merge branch 'rails-3.0.3' into develop | |
* bump simple_nested_set | |
Highlights: | |
* make BaseController#category a helper method | |
* add category to base controller | |
Minor changes: |
This file contains 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
Scenario: Successful login # adva-user/features/session.feature:15 | |
Given a confirmed user with email "bob@domain.com" and password "bobpass" # adva-user/lib/testing/step_definitions.rb:15 | |
super called outside of method (NoMethodError) | |
./adva-core/lib/core_ext/rails/active_record/skip_callbacks.rb:38:in `call' | |
./adva-core/lib/core_ext/rails/active_record/skip_callbacks.rb:38:in `_run_save_callbacks' | |
./adva-core/lib/core_ext/rails/active_record/skip_callbacks.rb:16:in `send' | |
./adva-core/lib/core_ext/rails/active_record/skip_callbacks.rb:16:in `method_missing' | |
./adva-core/lib/core_ext/rails/active_record/skip_callbacks.rb:28:in `skip_callbacks' | |
./adva-core/lib/core_ext/rails/active_record/skip_callbacks.rb:15:in `method_missing' | |
./adva-user/lib/testing/step_definitions.rb:16:in `/a confirmed user with email "([^"]+)" and password "([^"]+)"/' |
This file contains 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
#!/usr/bin/env bash | |
# update the local repositories if needed | |
if [ $REPOSITORIES ]; then | |
echo "Updating local repositories" | |
for REPOSITORY in `ls ${REPOSITORIES}`; do | |
echo "${REPOSITORY}: " | |
( cd ${REPOSITORIES}/$REPOSITORY; git clean -fdx; git pull; git reset --hard HEAD ) | |
done | |
echo "Done updating `ls ${REPOSITORIES} | wc -l` local repositories" | |
else |
This file contains 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
try speeding up tests a little using a plain encryptor for devise (i.e. don't encrypt passwords in tests), see http://oinopa.com/2011/02/05/want-a-faster-test-suite.html | |
refactor adva:static:setup task to use overloadable methods, so we can configure git user.name and user.email in unit tests for running builds on systems that don't have git configured properly | |
fix test_helper inclusion in adva:static unit tests | |
fix tables_differ_message |
This file contains 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
$ cat app/assets/javascripts/posts.js.coffee | |
... | |
$('h1').click -> | |
$(@).addClass 'clicked' | |
... | |
$ |
This file contains 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
$ rails new blog | |
$ cd rails | |
$ rails g scaffold Post title:string content:text |
This file contains 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 RedisSupport | |
after_save :load_into_redis | |
before_destroy :remove_from_redis | |
def self.included(base) | |
unless base.respond_to? :load_into_redis | |
raise(Exception.new, "Please define the methods \"load_into_redis\" before including this module") | |
end | |
end |