Skip to content

Instantly share code, notes, and snippets.

@dgoldie
Created May 20, 2013 17:20
Show Gist options
  • Save dgoldie/5613705 to your computer and use it in GitHub Desktop.
Save dgoldie/5613705 to your computer and use it in GitHub Desktop.
git pull old repo of ruby-science
doug@apollo: ~/code/2012/books/ruby-science (master)
$ git pull
remote: Counting objects: 731, done.
remote: Compressing objects: 100% (424/424), done.
remote: Total 610 (delta 379), reused 389 (delta 175)
Receiving objects: 100% (610/610), 2.94 MiB | 1.25 MiB/s, done.
Resolving deltas: 100% (379/379), completed with 77 local objects.
From https://github.com/thoughtbot/ruby-science
c43b2c1..6a66cc9 master -> origin/master
+ 4e55f10...7070c40 dc-introduction-edits -> origin/dc-introduction-edits (forced update)
* [new branch] hw-tell-dont-ask -> origin/hw-tell-dont-ask
* [new branch] jf-add-extract-method-examples -> origin/jf-add-extract-method-examples
Updating c43b2c1..6a66cc9
Fast-forward
.gitignore | 3 +
CONTRIBUTING.md | 112 +
Gemfile | 2 +-
Gemfile.lock | 28 +-
LICENSE | 14 +-
README.md | 74 +-
Rakefile | 36 +-
bin/review | 3 -
book/book.md | 4 +-
book/code_smells/callback.md | 2 +
book/code_smells/case_statement.md | 2 +
book/code_smells/comments.md | 2 -
book/code_smells/divergent_change.md | 2 +
book/code_smells/feature_envy.md | 1 +
book/code_smells/large_class.md | 6 -
book/code_smells/long_parameter_list.md | 2 +
book/code_smells/mixin.md | 61 +-
book/code_smells/shotgun_surgery.md | 4 +-
book/code_smells/uncommunicative_name.md | 46 +-
book/images/cover.pdf | Bin 80383 -> 80649 bytes
book/principles/composition_over_inheritance.md | 204 +-
book/principles/dependency_inversion_principle.md | 152 +-
book/principles/dry.md | 93 +-
book/principles/law_of_demeter.md | 188 +-
book/principles/open_closed_principle.md | 213 +-
book/principles/single_responsibility_principle.md | 235 +-
book/solutions/extract_class.md | 223 +-
book/solutions/extract_decorator.md | 212 +-
book/solutions/extract_method.md | 6 +-
book/solutions/extract_partial.md | 2 -
book/solutions/extract_service_object.md | 3 -
book/solutions/extract_validator.md | 6 +-
book/solutions/extract_value_object.md | 44 +-
book/solutions/inject_dependencies.md | 158 +-
book/solutions/inline_class.md | 92 +-
book/solutions/introduce_form_object.md | 4 +-
book/solutions/introduce_parameter_object.md | 6 +
book/solutions/rename_method.md | 92 +
book/solutions/replace_conditional_with_null_object.md | 6 +-
book/solutions/replace_conditional_with_polymorphism.md | 12 +-
book/solutions/replace_mixin_with_composition.md | 72 +-
book/solutions/replace_subclasses_with_strategies.md | 18 +-
book/solutions/use_class_as_factory.md | 151 +-
book/solutions/use_convention_over_configuration.md | 40 +-
example_app/Gemfile | 2 +
example_app/Gemfile.lock | 10 +
example_app/Procfile | 1 +
example_app/app/controllers/completions_controller.rb | 6 +-
example_app/app/controllers/summaries_controller.rb | 14 +-
example_app/app/controllers/unsubscribes_controller.rb | 13 +
example_app/app/mailers/mailer.rb | 7 +-
example_app/app/mailers/unsubscribeable_mailer.rb | 20 +
example_app/app/models/answer.rb | 2 -
example_app/app/models/completion.rb | 5 +
example_app/app/models/invitation.rb | 5 +-
example_app/app/models/invitation_message.rb | 15 +
example_app/app/models/question.rb | 10 +-
example_app/app/models/survey.rb | 4 +-
example_app/app/models/survey_inviter.rb | 4 +-
example_app/app/models/unanswered_question_hider.rb | 22 +
example_app/app/models/unsubscribe.rb | 3 +
example_app/app/views/completions/_completion.html.erb | 12 +
example_app/app/views/completions/index.html.erb | 14 +-
example_app/app/views/completions/show.html.erb | 7 +
example_app/app/views/invitations/message.html.erb | 9 +
example_app/app/views/mailer/invitation_notification.html.erb | 3 -
example_app/app/views/summaries/_summary.html.erb | 4 +
example_app/app/views/summaries/show.html.erb | 9 +-
example_app/app/views/unsubscribes/new.html.erb | 4 +
example_app/config/routes.rb | 4 +
example_app/db/migrate/20130306194800_create_messages.rb | 11 +
example_app/db/migrate/20130425182110_create_unsubscribes.rb | 15 +
example_app/db/schema.rb | 18 +-
example_app/sample.env | 1 +
example_app/spec/factories/application.rb | 4 +
example_app/spec/features/user_sends_invitation_spec.rb | 9 -
example_app/spec/features/user_unsubscribes_spec.rb | 28 +
example_app/spec/features/user_views_survey_results_spec.rb | 6 +-
example_app/spec/features/user_views_survey_summary_spec.rb | 31 +-
example_app/spec/mailers/mailer_spec.rb | 11 +-
example_app/spec/mailers/unsubscribeable_mailer_spec.rb | 24 +
example_app/spec/models/answer_spec.rb | 2 -
example_app/spec/models/completion_spec.rb | 16 +
example_app/spec/models/invitation_message_spec.rb | 15 +
example_app/spec/models/invitation_spec.rb | 26 +-
example_app/spec/models/question_spec.rb | 28 +-
example_app/spec/models/survey_spec.rb | 10 +-
example_app/spec/models/unanswered_question_hider_spec.rb | 37 +
example_app/spec/models/unsubscribe_spec.rb | 5 +
example_app/spec/support/answer_creator.rb | 2 +-
example_app/spec/support/features/session_support.rb | 20 +-
example_app/spec/support/features/survey_support.rb | 15 +-
release/images/cover.pdf | Bin 80383 -> 80649 bytes
release/images/cover.png | Bin 212309 -> 135390 bytes
release/ruby-science-sample.epub | Bin 0 -> 89906 bytes
release/ruby-science-sample.html | 582 +++++
release/{sample.md => ruby-science-sample.md} | 22 +-
release/ruby-science-sample.pdf | Bin 153254 -> 73777 bytes
release/ruby-science.epub | Bin 177037 -> 185297 bytes
release/ruby-science.html | 4399 +++++++++++++++++++++++++--------
release/{book.md => ruby-science.md} | 6145 ++++++++++++++++++++++++++++++++++++----------
release/ruby-science.mobi | Bin 530269 -> 718681 bytes
release/ruby-science.pdf | Bin 320592 -> 418259 bytes
release/toc.html | 65 -
templates/pdf.latex | 16 +-
105 files changed, 11672 insertions(+), 2736 deletions(-)
create mode 100644 CONTRIBUTING.md
delete mode 100755 bin/review
delete mode 100644 book/solutions/extract_service_object.md
create mode 100644 book/solutions/rename_method.md
create mode 100644 example_app/Procfile
create mode 100644 example_app/app/controllers/unsubscribes_controller.rb
create mode 100644 example_app/app/mailers/unsubscribeable_mailer.rb
create mode 100644 example_app/app/models/invitation_message.rb
create mode 100644 example_app/app/models/unanswered_question_hider.rb
create mode 100644 example_app/app/models/unsubscribe.rb
create mode 100644 example_app/app/views/completions/_completion.html.erb
create mode 100644 example_app/app/views/completions/show.html.erb
create mode 100644 example_app/app/views/invitations/message.html.erb
delete mode 100644 example_app/app/views/mailer/invitation_notification.html.erb
create mode 100644 example_app/app/views/summaries/_summary.html.erb
create mode 100644 example_app/app/views/unsubscribes/new.html.erb
create mode 100644 example_app/db/migrate/20130306194800_create_messages.rb
create mode 100644 example_app/db/migrate/20130425182110_create_unsubscribes.rb
create mode 100644 example_app/sample.env
create mode 100644 example_app/spec/features/user_unsubscribes_spec.rb
create mode 100644 example_app/spec/mailers/unsubscribeable_mailer_spec.rb
create mode 100644 example_app/spec/models/invitation_message_spec.rb
create mode 100644 example_app/spec/models/unanswered_question_hider_spec.rb
create mode 100644 example_app/spec/models/unsubscribe_spec.rb
create mode 100644 release/ruby-science-sample.epub
create mode 100644 release/ruby-science-sample.html
rename release/{sample.md => ruby-science-sample.md} (99%)
rename release/{book.md => ruby-science.md} (51%)
delete mode 100644 release/toc.html
doug@apollo: ~/code/2012/books/ruby-science (master)
$ git remote show -n origin
* remote origin
Fetch URL: https://github.com/thoughtbot/ruby-science.git
Push URL: https://github.com/thoughtbot/ruby-science.git
HEAD branch: (not queried)
Remote branches: (status not queried)
dc-introduction-edits
hw-tell-dont-ask
jf-add-extract-method-examples
master
to-extract-book-generation-infrastructure-from
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push' (status not queried):
(matching) pushes to (matching)
doug@apollo: ~/code/2012/books/ruby-science (master)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment