farmstead 0.0.24 → 0.0.25

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: 6fd1dbd1f319bc28e650d0165d76fd7bb3cd6660
4
- data.tar.gz: 0e0117475910940107d1290ebd8eb28a0740054a
3
+ metadata.gz: 58f90b180e87b38d3e1a60c2f1dd6fe0bc87f532
4
+ data.tar.gz: efaf40f625d22e621a19428c2974146c2361d548
5
5
  SHA512:
6
- metadata.gz: 109c1c4cbf24a1a3350f535b69882bc7933c53aacc176336d903021c7dca99020ae892c1b0d8b3199b8658b79f821c88d3f82db6a68e986e3138c498dbcaa7c2
7
- data.tar.gz: bd5d1a6848937f80bea4ef5a8d1e0cbb7b4261715295b0247fe5f52238e1f0c90294eb9921f66e49474b9054b582493387f06f2728e1f291fd8f68f896fded93
6
+ metadata.gz: dca630ef121689375419943e262b3d70345f46652eb3d25e3139730a3ecd232a6759ef64c464768ff5058cdd5ef9b85481bafb552de0bf9e996c42e0b09fe7c8
7
+ data.tar.gz: 44307351604301affb2182eb789b8c4c64f09833d4d96fcb72e8b0ad22fa53b189ad37cdf7c0195da74f86de496d8d7cf7a8dee3e8f7116283e69cd5dd6a7ef4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- farmstead (0.0.24)
4
+ farmstead (0.0.25)
5
5
  httparty (~> 0.15.6)
6
6
  mechanize (~> 2.7)
7
7
  mysql2 (~> 0.4.10)
data/lib/farmstead.rb CHANGED
@@ -43,6 +43,7 @@ require "farmstead/pipeline/load"
43
43
 
44
44
  require "farmstead/api/defaultroutes.rb"
45
45
  require "farmstead/api/helpers.rb"
46
+ require "farmstead/api"
46
47
 
47
48
  module Farmstead
48
49
  # Your code goes here...
@@ -0,0 +1,7 @@
1
+ module Farmstead
2
+ class API < Sinatra::Base
3
+ register Sinatra::DefaultRoutes
4
+ set :port, 3000
5
+ set :bind, "0.0.0.0"
6
+ end
7
+ end
@@ -1,9 +1,9 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Extracter
3
3
  include Farmstead::Extract
4
- class API < Sinatra::Base
5
- register Sinatra::DefaultRoutes
6
- set :port, 3000
4
+
5
+ # Sinatra API - Customize here
6
+ class API < Farmstead::API
7
7
  end
8
8
  end
9
9
  end
@@ -1,9 +1,9 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Loader
3
3
  include Farmstead::Load
4
- class API < Sinatra::Base
5
- register Sinatra::DefaultRoutes
6
- set :port, 3000
4
+
5
+ # Sinatra API - Customize here
6
+ class API < Farmstead::API
7
7
  end
8
8
  end
9
9
  end
@@ -1,9 +1,9 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Manager
3
3
  include Farmstead::Manage
4
- class API < Sinatra::Base
5
- register Sinatra::DefaultRoutes
6
- set :port, 3000
4
+
5
+ # Sinatra API - Customize here
6
+ class API < Farmstead::API
7
7
  end
8
8
  end
9
9
  end
@@ -1,9 +1,9 @@
1
1
  module <%= @name.capitalize %>
2
2
  module Transformer
3
3
  include Farmstead::Transform
4
- class API < Sinatra::Base
5
- register Sinatra::DefaultRoutes
6
- set :port, 3000
4
+
5
+ # Sinatra API - Customize here
6
+ class API < Farmstead::API
7
7
  end
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Farmstead
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
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.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Jenney
@@ -216,6 +216,7 @@ files:
216
216
  - bin/farmstead
217
217
  - farmstead.gemspec
218
218
  - lib/farmstead.rb
219
+ - lib/farmstead/api.rb
219
220
  - lib/farmstead/api/defaultroutes.rb
220
221
  - lib/farmstead/api/helpers.rb
221
222
  - lib/farmstead/cli.rb