Skip to content

Commit c553081

Browse files
committed
we want to renamespace to Onebox
1 parent 07890c4 commit c553081

File tree

14 files changed

+87
-120
lines changed

14 files changed

+87
-120
lines changed

.ruby-gemset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
oneboxer
1+
onebox

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
source 'https://rubygems.org'
22

3-
# Specify your gem's dependencies in discourse-oneboxer.gemspec
3+
# Specify your gem's dependencies in discourse-onebox.gemspec
44
gemspec

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
discourse-oneboxer
1+
discourse-onebox
22
----------
33

44
- TODO: register to rubygems.org
5-
- [![Code Climate](https://codeclimate.com/github/dysania/discourse-oneboxer.png)](https://codeclimate.com/github/dysania/discourse-oneboxer)
6-
- [![Build Status](https://travis-ci.org/dysania/discourse-oneboxer.png)](https://travis-ci.org/dysania/discourse-oneboxer)
7-
- [![Dependency Status](https://gemnasium.com/dysania/discourse-oneboxer.png)](https://gemnasium.com/dysania/discourse-oneboxer)
8-
- [![Coverage Status](https://coveralls.io/repos/dysania/discourse-oneboxer/badge.png)](https://coveralls.io/r/dysania/discourse-oneboxer)
5+
- [![Code Climate](https://codeclimate.com/github/dysania/discourse-onebox.png)](https://codeclimate.com/github/dysania/discourse-onebox)
6+
- [![Build Status](https://travis-ci.org/dysania/discourse-onebox.png)](https://travis-ci.org/dysania/discourse-onebox)
7+
- [![Dependency Status](https://gemnasium.com/dysania/discourse-onebox.png)](https://gemnasium.com/dysania/discourse-onebox)
8+
- [![Coverage Status](https://coveralls.io/repos/dysania/discourse-onebox/badge.png)](https://coveralls.io/r/dysania/discourse-onebox)
99

1010

11-
Oneboxer is a library for turning media URLs into previews.
11+
Onebox is a library for turning media URLs into previews.
1212

13-
Oneboxer currently has support for page, image, and video URLs from these sites:
13+
Onebox currently has support for page, image, and video URLs from these sites:
1414
- Amazon
1515
- Android App Store
1616
- Apple Store
@@ -44,13 +44,13 @@ Oneboxer currently has support for page, image, and video URLs from these sites:
4444
- yFrog
4545

4646

47-
Using discourse-oneboxer
47+
Using discourse-onebox
4848
===============
4949

50-
You can include discourse-oneboxer modules into a class like so:
50+
You can include discourse-onebox modules into a class like so:
5151

5252
``` ruby
53-
require "discourse-oneboxer"
53+
require "discourse-onebox"
5454
```
5555
TODO: write example
5656

@@ -62,24 +62,24 @@ The `Gemfile` file would look like this:
6262
# source/Gemfile
6363
source "https://rubygems.org"
6464

65-
gem "discourse-oneboxer", "~> <%= version %>"
65+
gem "discourse-onebox", "~> <%= version %>"
6666
```
6767

6868

69-
Installing discourse-oneboxer
69+
Installing discourse-onebox
7070
==================
7171

7272
Add this line to your application's Gemfile:
7373

74-
gem 'discourse-oneboxer'
74+
gem 'discourse-onebox'
7575

7676
And then execute:
7777

7878
$ bundle
7979

8080
Or install it yourself as:
8181

82-
$ gem install discourse-oneboxer
82+
$ gem install discourse-onebox
8383

8484

8585
Contributing

lib/oneboxer/preview.rb renamed to lib/onebox/preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require_relative "preview/amazon"
33

44

5-
module Oneboxer
5+
module Onebox
66
class Preview
77
def initialize(link)
88
@url = link

lib/oneboxer/preview/amazon.rb renamed to lib/onebox/preview/amazon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Oneboxer
1+
module Onebox
22
class Preview
33
class Amazon
44
TEMPLATE = File.read(File.join("templates", "amazon.handlebars"))

lib/oneboxer/preview/example.rb renamed to lib/onebox/preview/example.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Oneboxer
1+
module Onebox
22
class Preview
33
class Example
44
TEMPLATE = %|<div class="onebox">{{{header}}}</div>|
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module Oneboxer
1+
module Onebox
22
VERSION = "1.0.0"
33
end

lib/oneboxer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
require "nokogiri"
44
require "mustache"
55

6-
require_relative "oneboxer/version"
7-
require_relative "oneboxer/preview"
6+
require_relative "onebox/version"
7+
require_relative "onebox/preview"
88

99

10-
module Oneboxer
10+
module Onebox
1111
def self.preview(url, args={})
1212
Preview.new(url, args)
1313
end

oneboxer.gemspec renamed to onebox.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# coding: utf-8
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require 'oneboxer/version'
4+
require 'onebox/version'
55

66
Gem::Specification.new do |spec|
7-
spec.name = "oneboxer"
8-
spec.version = Oneboxer::VERSION
7+
spec.name = "onebox"
8+
spec.version = Onebox::VERSION
99
spec.authors = ["Joanna Zeta", "Vyki Englert"]
1010
1111
spec.description = %q{A gem for turning URLs into previews.}
1212
spec.summary = spec.description
13-
spec.homepage = "http://github.com/dysania/discourse-oneboxer"
13+
spec.homepage = "http://github.com/dysania/discourse-onebox"
1414
spec.license = "MIT"
1515

1616
spec.files = `git ls-files`.split($/)

spec/fixtures/github_pullrequest.response

Lines changed: 56 additions & 56 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)