Skip to content

Commit

Permalink
text_bringer/TextBringer -> textbringer/Textbringer.
Browse files Browse the repository at this point in the history
  • Loading branch information
shugo committed Jan 5, 2017
1 parent b693764 commit 8fb8822
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Gemfile
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in text_bringer.gemspec
# Specify your gem's dependencies in textbringer.gemspec
gemspec
4 changes: 2 additions & 2 deletions Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
text_bringer (0.1.0)
textbringer (0.1.0)
curses
unicode-display_width

Expand All @@ -22,7 +22,7 @@ DEPENDENCIES
bundler (~> 1.11)
rake (~> 10.0)
test-unit
text_bringer!
textbringer!

BUNDLED WITH
1.11.2
6 changes: 3 additions & 3 deletions README.md
@@ -1,10 +1,10 @@
# TextBringer
# Textbringer

A text editor.

## Installation

$ gem install text_bringer
$ gem install textbringer

## Usage

Expand All @@ -20,7 +20,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/shugo/text_bringer.
Bug reports and pull requests are welcome on GitHub at https://github.com/shugo/textbringer.


## License
Expand Down
2 changes: 1 addition & 1 deletion bin/console
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "text_bringer"
require "textbringer"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
Expand Down
4 changes: 2 additions & 2 deletions exe/tb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby

require "text_bringer"
require "textbringer"

controller = TextBringer::Controller.new
controller = Textbringer::Controller.new
controller.start(ARGV)
5 changes: 0 additions & 5 deletions lib/text_bringer.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/textbringer.rb
@@ -0,0 +1,5 @@
require "textbringer/version"
require "textbringer/buffer"
require "textbringer/window"
require "textbringer/echo_area"
require "textbringer/controller"
2 changes: 1 addition & 1 deletion lib/text_bringer/buffer.rb → lib/textbringer/buffer.rb
Expand Up @@ -2,7 +2,7 @@

require "unicode/display_width"

module TextBringer
module Textbringer
class Buffer
attr_reader :filename, :file_encoding, :file_format, :point, :marks

Expand Down
12 changes: 6 additions & 6 deletions lib/text_bringer/controller.rb → lib/textbringer/controller.rb
@@ -1,11 +1,11 @@
# frozen_string_literal: true

require "text_bringer/buffer"
require "text_bringer/window"
require "text_bringer/echo_area"
require "textbringer/buffer"
require "textbringer/window"
require "textbringer/echo_area"
require "curses"

module TextBringer
module Textbringer
class Controller
def initialize
@buffer = nil
Expand All @@ -29,8 +29,8 @@ def start(args)
Curses.raw
begin
@current_window = @window =
TextBringer::Window.new(@buffer, Curses.lines - 1, Curses.cols, 0, 0)
@echo_area = TextBringer::EchoArea.new(@minibuffer, 1, Curses.cols,
Textbringer::Window.new(@buffer, Curses.lines - 1, Curses.cols, 0, 0)
@echo_area = Textbringer::EchoArea.new(@minibuffer, 1, Curses.cols,
Curses.lines - 1, 0)
@echo_area.show("Quit by C-x C-c")
@echo_area.redisplay
Expand Down
@@ -1,8 +1,8 @@
# frozen_string_literal: true

require "text_bringer/window"
require "textbringer/window"

module TextBringer
module Textbringer
class EchoArea < Window
attr_accessor :prompt

Expand Down
2 changes: 1 addition & 1 deletion lib/text_bringer/version.rb → lib/textbringer/version.rb
@@ -1,3 +1,3 @@
module TextBringer
module Textbringer
VERSION = "0.1.0"
end
4 changes: 2 additions & 2 deletions lib/text_bringer/window.rb → lib/textbringer/window.rb
@@ -1,10 +1,10 @@
# frozen_string_literal: true

require "text_bringer/buffer"
require "textbringer/buffer"
require "curses"
require "unicode/display_width"

module TextBringer
module Textbringer
class Window
def initialize(buffer, num_lines, num_columns, y, x)
@buffer = buffer
Expand Down
@@ -1,9 +1,9 @@
require "test/unit"
require "tempfile"
require "text_bringer/buffer"
require "textbringer/buffer"

class TestBuffer < Test::Unit::TestCase
include TextBringer
include Textbringer

def test_insert
buffer = Buffer.new("abc")
Expand Down
10 changes: 5 additions & 5 deletions text_bringer.gemspec → textbringer.gemspec
@@ -1,17 +1,17 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'text_bringer/version'
require 'textbringer/version'

Gem::Specification.new do |spec|
spec.name = "text_bringer"
spec.version = TextBringer::VERSION
spec.name = "textbringer"
spec.version = Textbringer::VERSION
spec.authors = ["Shugo Maeda"]
spec.email = ["shugo@ruby-lang.org"]

spec.summary = "A text editor"
spec.description = "text_bringer is a text editor."
spec.homepage = "https://github.com/shugo/text_bringer"
spec.description = "textbringer is a text editor."
spec.homepage = "https://github.com/shugo/textbringer"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
Expand Down

0 comments on commit 8fb8822

Please sign in to comment.