hydroponics 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # hydroponics 0.3.2
2
+
3
+ * Fixed require statements so other machines can run the gem
4
+
1
5
  # hydroponics 0.3.1
2
6
 
3
7
  * Added loading graphic
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/bin/hydro CHANGED
@@ -2,8 +2,8 @@
2
2
  require 'rack'
3
3
  require 'optparse'
4
4
  require 'ap'
5
- require './lib/hydroponics'
6
- require './config/hydro_app'
5
+ require 'hydroponics'
6
+ require File.join(File.dirname(__FILE__), '../config/hydro_app')
7
7
  include Hydroponics::Setup
8
8
 
9
9
  @options = {}
data/config/hydro_app.rb CHANGED
@@ -3,7 +3,7 @@ require 'fileutils'
3
3
  require 'json'
4
4
  require 'sequel'
5
5
  require 'sinatra'
6
- require './lib/hydroponics'
6
+ require 'hydroponics'
7
7
 
8
8
  class HydroApp < Sinatra::Base
9
9
  include Hydroponics::Actions
@@ -15,9 +15,9 @@ class HydroApp < Sinatra::Base
15
15
  super
16
16
  end
17
17
 
18
- set :root, File.join(FileUtils.pwd, "app")
19
- set :public, File.join(FileUtils.pwd, "static")
20
- set :version, File.read(File.join(FileUtils.pwd, "VERSION")).chomp
18
+ set :root, File.join(File.dirname(__FILE__), "../app")
19
+ set :public, File.join(File.dirname(__FILE__), "../static")
20
+ set :version, File.read(File.join(File.dirname(__FILE__), "../VERSION")).chomp
21
21
 
22
22
  post '/dupe/:table' do |table|
23
23
  data = JSON.parse(request.body.read)
data/hydroponics.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hydroponics}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Boyd"]
data/lib/hydroponics.rb CHANGED
@@ -1,2 +1,2 @@
1
- require './lib/hydroponics/setup.rb'
2
- Dir['./app/actions/*.rb'].each { |f| require f; }
1
+ require 'hydroponics/setup'
2
+ Dir[File.join(File.dirname(__FILE__), '../app/actions/*.rb')].each { |f| require f; }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydroponics
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Boyd