From bee8d10d2b02433387685d301a0ebb5b226c00d9 Mon Sep 17 00:00:00 2001 From: "Md. Tauhidul Islam" Date: Sun, 10 Jan 2016 01:47:38 +0600 Subject: [PATCH] Gem rename location to bd_location --- README.md | 10 +++++----- location.gemspec => bd_location.gemspec | 6 +++--- lib/{location.rb => bd_location.rb} | 4 ++-- lib/{location => bd_location}/version.rb | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) rename location.gemspec => bd_location.gemspec (86%) rename lib/{location.rb => bd_location.rb} (92%) rename lib/{location => bd_location}/version.rb (57%) diff --git a/README.md b/README.md index 19cd42f..a297a9a 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# Location +# BD Location -TODO: Write a gem description +No gem dependency! ## Installation Add this line to your application's Gemfile: ```ruby -gem 'location' +gem 'bd_location' ``` And then execute: @@ -16,7 +16,7 @@ And then execute: Or install it yourself as: - $ gem install location + $ gem install bd_location ## Usage @@ -24,7 +24,7 @@ TODO: Write usage instructions here ## Contributing -1. Fork it ( https://github.com/[my-github-username]/location/fork ) +1. Fork it ( https://github.com/[my-github-username]/bd_location/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) diff --git a/location.gemspec b/bd_location.gemspec similarity index 86% rename from location.gemspec rename to bd_location.gemspec index e649cda..ecfe350 100644 --- a/location.gemspec +++ b/bd_location.gemspec @@ -1,11 +1,11 @@ # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'location/version' +require 'bd_location/version' Gem::Specification.new do |spec| - spec.name = 'location' - spec.version = Location::VERSION + spec.name = 'bd_location' + spec.version = BDLocation::VERSION spec.authors = ['Md. Tauhidul Islam'] spec.email = ['tauhidul35@gmail.com'] spec.summary = %q{BD location} diff --git a/lib/location.rb b/lib/bd_location.rb similarity index 92% rename from lib/location.rb rename to lib/bd_location.rb index 6d5a1ec..2a3d619 100644 --- a/lib/location.rb +++ b/lib/bd_location.rb @@ -1,7 +1,7 @@ -require 'location/version' +require 'bd_location/version' require 'yaml' -module Location +module BDLocation locale = :en file_path = File.join(File.dirname(__FILE__), "../locales/#{locale.to_s}.yaml") data = YAML.load_file file_path diff --git a/lib/location/version.rb b/lib/bd_location/version.rb similarity index 57% rename from lib/location/version.rb rename to lib/bd_location/version.rb index 92d76b6..5dff990 100644 --- a/lib/location/version.rb +++ b/lib/bd_location/version.rb @@ -1,3 +1,3 @@ -module Location +module BDLocation VERSION = '0.0.1' end