• Stars
    star
    125
  • Rank 280,636 (Top 6 %)
  • Language
    Ruby
  • Created over 15 years ago
  • Updated over 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Common refactorings for Ruby code, written in Ruby. This project aims to be integrated with several editors (mainly TextMate), to provide simple refactorings

rfactor¶ ↑

wiki.github.com/fabiokung/rfactor

Issue Tracking¶ ↑

fabiokung.lighthouseapp.com/projects/27963-rfactor

DESCRIPTION:¶ ↑

Common refactorings for Ruby code, written in Ruby. This project aims to be integrated with several editors (mainly TextMate), to provide simple refactorings, such as:

  • extract method – only one available for now

  • extract variable

  • extract Class

  • extract Module

  • rename using ack

  • move using ack

FEATURES/PROBLEMS:¶ ↑

SYNOPSIS:¶ ↑

code = Rfactor::Code.new(CODE)
new_code = code.extract_method :name => 'common_behavior',
    :start => 10,
    :end => 15
# new_code should contain the changed code. The content between
# lines 10 and 15 are extracted to the new method called common_behavior

See the features (Cucumber) directory for more examples.

REQUIREMENTS:¶ ↑

INSTALL:¶ ↑

All you need is installed automatically by rubygems:

sudo gem install fabiokung-rfactor -s http://gems.github.com

But, if you need, here are the required gems individually:

gem install ParseTree
gem install newgem
gem install fabiokung-sexp_processor -s http://gems.github.com
gem install fabiokung-ruby_parser -s http://gems.github.com
gem install fabiokung-rfactor -s http://gems.github.com

RDoc¶ ↑

fabiokung.github.com/rfactor

LICENSE:¶ ↑

(The MIT License)

Copyright © 2008 Fabio Kung <[email protected]> and Hugo Corbucci <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

cqueue

Lock-free, non-blocking, concurrent queue on shared memory for Go
Go
79
star
2

rfactor-tmbundle

Ruby Refactoring for TextMate, using rfactor
Ruby
75
star
3

jetty-rails

use jetty to run rails projects
Ruby
66
star
4

shm

Golang POSIX shared memory library
Go
64
star
5

heroku-buildpack-fakesu

rootless chroot jails inside dynos
Perl
30
star
6

apt-heroku

Ubuntu repositories as heroku apps
Shell
30
star
7

clustered-jruby

Cluster Configuration for JRuby, using Terracotta.
Java
25
star
8

procg

Custom procfs that exports a cgroup-aware /proc/meminfo
C
25
star
9

heroku-ssh

heroku cli plugin to ssh into dynos
Ruby
24
star
10

go-dynamodb

Go client package for DynamoDB
Go
13
star
11

kdevbox

Ultra lightweight linux kernel development toolkit
Shell
12
star
12

ruby_parser

RubyParser fork, from Ryan Davis: http://rubyforge.org/projects/parsetree/
Ruby
9
star
13

sexp_processor

from Ryan Davis: http://rubyforge.org/projects/parsetree/
Ruby
8
star
14

railssummit-ruby-internal-dsls

Live coding session at Rails Summit Latin America 2009, slides at:
Ruby
7
star
15

kungpiler

Simple PL/0 Compiler that generates Java Bytecode, written in Ruby
Java
6
star
16

foreman-upstart-scaling

upstart configuration exporter for upstart, that uses ENV vars to control concurrency
HTML
6
star
17

scheme-dsl-for-automata

DSL for defining sequence recognition Automata
Scheme
4
star
18

passenger-debian

Debian packaging for Passenger
C++
2
star
19

kunjs

my javascript compiler playground
C++
2
star
20

lein-herokujetty

Simple leiningen plugin to lauch Jetty instances that can run any java WAR package inside Heroku.
Clojure
2
star
21

sshable

SSH-able dynos support for Heroku applications
Go
1
star
22

chef-repo-sandbox

My Chef Experiments
Ruby
1
star
23

lein-mvn

Leiningen plugin that serves as a bridge to Maven. It can be used to run any mvn goal on a maven-enabled project.
Clojure
1
star