farmstead 0.0.36 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b886be3de8d8b2ae363bb67d091dec57dc47aadd
4
- data.tar.gz: 984a8d34cff2a7c6ac224c41224f4a8157086fac
3
+ metadata.gz: 12bca81d9e4c1e843b2efa1cca901bdaaa8012a9
4
+ data.tar.gz: 36a180d9762d75668f75751990caaa8cf3c5121c
5
5
  SHA512:
6
- metadata.gz: fbbfb81bca59de4195776115ab6022d40c69cc870e8aea25d5fd86519e4431e554045b10ec082b9e87d6355963f223515987e67a972998dd2cd433c3a9fc4364
7
- data.tar.gz: 81ff948d67b098c724ede73a46c6dd90c84eb9230c30cbb63e1f71d9ce1dcdbc377ce2500d69b0b7fbec3f18b8cd797fa07227399a7bd2d40901fd8ca0bd5988
6
+ metadata.gz: e406eac126b744fe31fce0224e8366c417595ccb81f8c39ba238c760c116f5a9bcb171e2939031027b13f33675bc90eac0d89e2d91fb953f7dfe42075b3862b7
7
+ data.tar.gz: 965c7cc043e0084d5702abb0b540f5bcdc390d46cb5ba7eab94c7a2a00be49c02d2aec8e17d2d42e219ccc0c1e72766cec0f8bc6e61b1c48d836604ff2463ce7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.36)
4
+ farmstead (0.0.37)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
@@ -1,7 +1,6 @@
1
1
  module Sinatra
2
2
  module DefaultRoutes
3
3
  def self.registered(app)
4
- app.set :views, Dir.pwd + '/api/views'
5
4
  app.get "/" do
6
5
  "Welcome to our API"
7
6
  end
data/lib/farmstead/api.rb CHANGED
@@ -1,8 +1,10 @@
1
1
  module Farmstead
2
2
  class API < Sinatra::Base
3
- register Sinatra::V1
4
- register Sinatra::DefaultRoutes
3
+ set :views, settings.root + '/api/views'
5
4
  set :port, 3000
6
5
  set :bind, "0.0.0.0"
6
+
7
+ register Sinatra::V1
8
+ register Sinatra::DefaultRoutes
7
9
  end
8
10
  end
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.36"
2
+ VERSION = "0.0.37"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farmstead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney