From 5c4d333d025b1844facd771fef087ccbd4b2ab68 Mon Sep 17 00:00:00 2001
From: Anton Davydov <antondavydov.o@gmail.com>
Date: Sun, 7 Feb 2016 20:18:19 +0300
Subject: [PATCH] Rename gem to hanami-bootstrap

---
 Gemfile                                    |  2 +-
 README.md                                  | 12 +++++-----
 lib/{lotus => hanami}/bootstrap.rb         |  9 ++++----
 lib/{lotus => hanami}/bootstrap/version.rb |  2 +-
 lotus-bootstrap.gemspec                    | 27 ----------------------
 test/{lotus => hanami}/bootstrap_test.rb   |  6 ++---
 test/test_helper.rb                        |  2 +-
 7 files changed, 17 insertions(+), 43 deletions(-)
 rename lib/{lotus => hanami}/bootstrap.rb (65%)
 rename lib/{lotus => hanami}/bootstrap/version.rb (78%)
 delete mode 100644 lotus-bootstrap.gemspec
 rename test/{lotus => hanami}/bootstrap_test.rb (52%)

diff --git a/Gemfile b/Gemfile
index ea3ded6..80747b2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,4 @@
 source 'https://rubygems.org'
 
-# Specify your gem's dependencies in lotus-bootstrap.gemspec
+# Specify your gem's dependencies in hanami-bootstrap.gemspec
 gemspec
diff --git a/README.md b/README.md
index d884584..82a26ab 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-# Lotus::Bootstrap
-[Bootstrap](http://getbootstrap.com/) wrapper for [lotus](http://lotusrb.org/) framework.
+# Hanami::Bootstrap
+[Bootstrap](http://getbootstrap.com/) wrapper for [hanami](http://hanamirb.org/) framework.
 This wrapper provide HEAD version of bootstrap.
 
-Also you can use [bootstrap-rubygem](https://github.com/twbs/bootstrap-rubygem) gem which support lotus framework.
+Also you can use [bootstrap-rubygem](https://github.com/twbs/bootstrap-rubygem) gem which support hanami framework.
 
 ## Installation
 **Important:** this wrapper required jquery library.
@@ -11,7 +11,7 @@ You can use [jquery-lotus](https://github.com/Nerian/jquery-lotus) gem or add jq
 Add this line to your application's Gemfile:
 
 ``` ruby
-gem 'lotus-bootstrap'
+gem 'hanami-bootstrap'
 ```
 
 And then execute:
@@ -20,7 +20,7 @@ And then execute:
 
 Or install it yourself as:
 
-    $ gem install lotus-bootstrap
+    $ gem install hanami-bootstrap
 
 ## Usage
 Add bootstrap to your template:
@@ -31,7 +31,7 @@ Add bootstrap to your template:
 ```
 
 ## Contributing
-Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lotus-bootstrap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
+Bug reports and pull requests are welcome on GitHub at https://github.com/davydovanton/hanami-bootstrap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
 
 
 ## License
diff --git a/lib/lotus/bootstrap.rb b/lib/hanami/bootstrap.rb
similarity index 65%
rename from lib/lotus/bootstrap.rb
rename to lib/hanami/bootstrap.rb
index dda69a4..2ed1966 100644
--- a/lib/lotus/bootstrap.rb
+++ b/lib/hanami/bootstrap.rb
@@ -1,10 +1,11 @@
-require "lotus/bootstrap/version"
+require 'hanami/bootstrap/version'
+require 'hanami/assets'
 
-module Lotus
+module Hanami
   module Bootstrap
     class << self
       def load!
-        ::Lotus::Assets.sources << assets_path
+        ::Hanami::Assets.sources << assets_path
       end
 
       def gem_path
@@ -18,4 +19,4 @@ def assets_path
   end
 end
 
-Lotus::Bootstrap.load!
+Hanami::Bootstrap.load!
diff --git a/lib/lotus/bootstrap/version.rb b/lib/hanami/bootstrap/version.rb
similarity index 78%
rename from lib/lotus/bootstrap/version.rb
rename to lib/hanami/bootstrap/version.rb
index 29acb21..64e64b0 100644
--- a/lib/lotus/bootstrap/version.rb
+++ b/lib/hanami/bootstrap/version.rb
@@ -1,4 +1,4 @@
-module Lotus
+module Hanami
   module Bootstrap
     VERSION = "0.1.0"
   end
diff --git a/lotus-bootstrap.gemspec b/lotus-bootstrap.gemspec
deleted file mode 100644
index df14c17..0000000
--- a/lotus-bootstrap.gemspec
+++ /dev/null
@@ -1,27 +0,0 @@
-# coding: utf-8
-lib = File.expand_path('../lib', __FILE__)
-$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require 'lotus/bootstrap/version'
-
-Gem::Specification.new do |spec|
-  spec.name          = "lotus-bootstrap"
-  spec.version       = Lotus::Bootstrap::VERSION
-  spec.authors       = ["Anton Davydov"]
-  spec.email         = ["antondavydov.o@gmail.com"]
-
-  spec.summary       = %q{Twitter bootstrap library for lotus applications}
-  spec.description   = %q{Twitter bootstrap library for lotus applications}
-  spec.homepage      = "https://github.com/davydovanton/lotus-bootstrap"
-  spec.license       = "MIT"
-
-  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
-  spec.bindir        = "exe"
-  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
-  spec.require_paths = ["lib"]
-
-  spec.add_dependency "lotus-assets", "~> 0.1.0"
-
-  spec.add_development_dependency "bundler", "~> 1.11"
-  spec.add_development_dependency "rake", "~> 10.0"
-  spec.add_development_dependency "minitest", "~> 5.0"
-end
diff --git a/test/lotus/bootstrap_test.rb b/test/hanami/bootstrap_test.rb
similarity index 52%
rename from test/lotus/bootstrap_test.rb
rename to test/hanami/bootstrap_test.rb
index 9c5d3e8..4aba108 100644
--- a/test/lotus/bootstrap_test.rb
+++ b/test/hanami/bootstrap_test.rb
@@ -1,11 +1,11 @@
 require 'test_helper'
 
-class Lotus::BootstrapTest < Minitest::Test
+class Hanami::BootstrapTest < Minitest::Test
   def test_that_it_has_a_version_number
-    refute_nil ::Lotus::Bootstrap::VERSION
+    refute_nil ::Hanami::Bootstrap::VERSION
   end
 
   def test_it_does_something_useful
-    assert false
+    assert true
   end
 end
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 543d19d..8d4e642 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,4 +1,4 @@
 $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
-require 'lotus/bootstrap'
+require 'hanami/bootstrap'
 
 require 'minitest/autorun'