]> gitweb.michael.orlitzky.com - mailshears.git/commitdiff
Move the install-fixtures.sh script to a harmless location.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Nov 2015 02:56:40 +0000 (21:56 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 9 Nov 2015 02:56:40 +0000 (21:56 -0500)
mailshears.gemspec
test/bin/install-fixtures.sh [moved from bin/install-fixtures.sh with 84% similarity]

index 6af744f0486d29ac836dec338591166f3445d705..3d7239b89692e596d44f4eb9557929a61f9ac3f9 100644 (file)
@@ -1,7 +1,7 @@
 Gem::Specification.new do |s|
 
   s.name              = 'mailshears'
-  s.version           = '0.0.1'
+  s.version           = '0.0.2'
   s.platform          = Gem::Platform::RUBY
   s.authors           = ['Michael Orlitzky']
   s.email             = ['michael@orlitzky.com']
@@ -30,9 +30,12 @@ Gem::Specification.new do |s|
   # If you have runtime dependencies, add them here
   s.add_runtime_dependency 'pg', '~> 0.11'
 
-  # The list of files to be contained in the gem
-  s.files         = `git ls-files`.split("\n")
-  s.executables   = ['mailshears']
+  # The list of files to be contained in the gem. We can obtain it
+  # from git as long as we remember that this magic will happen and we
+  # don't add any files in weird locations or build the gem before
+  # running `git add`.
+  s.files       = `git ls-files`.split("\n")
+  s.executables = ['mailshears']
 
   s.require_path = 'lib'
 
similarity index 84%
rename from bin/install-fixtures.sh
rename to test/bin/install-fixtures.sh
index da052e6d2e5286747be7241085391d8afff8257e..88e444174bbc52d0df5abde38d5b9556847bb028 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/sh
-
+#
+# This script installs the test fixtures into the default databases on
+# localhost assuming everything is configured just right. Don't worry
+# about this, go play with something else.
+#
 rm -rf /tmp/mailshears-test
 mkdir -p /tmp/mailshears-test/example.com/alice
 mkdir -p /tmp/mailshears-test/example.com/booger