postmod 0.0.6 → 0.0.7

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: d27d6be9810d1bedaac3defd784c63692cbb8ad4
4
- data.tar.gz: 7763daeb3aec535f7ec0eb90e03d624e6d2a987b
3
+ metadata.gz: 077f2fa125615c2c7fa2922bf04f6c680c06ee8b
4
+ data.tar.gz: fa01152f83c9a558149e2243e377e84d0a0707f0
5
5
  SHA512:
6
- metadata.gz: 5dde0f6c974ad7f2b9711b2838ce1cd90c7fc2631255899f5dcc7b4b526fffee33cd5f4e9938dcc38d0871dec28439cfa72bf7cac40aa8d668d5a4320ce27250
7
- data.tar.gz: e2b4d647f28e03a8b7a69c1ff7d35a99fe106895c38e249562cd0b513465f0dc92df73bdb920c8de87ca0798a665203e922f8e2d8e62f7f7100131158799c3bf
6
+ metadata.gz: 9cbae8998abff5dba9474aaa9a90172305bc8abc4fb8d91561b93d59a9183eb51eafc39ebd9cf062b053cc59e1920698c24fbe1567ba6f1bc3433cfa3ad2a800
7
+ data.tar.gz: 48dc5ab3620d80e8bd10d8066d563986a07fd7765bd3ca9b87bfb482cdd7a7a8e590c71cd163b5aaa2cde7e33086a741e1068acb953258c29ccd67c15dfe832a
@@ -38,6 +38,7 @@ module Postmod
38
38
  end
39
39
 
40
40
  def create_bin
41
+ FileUtils.mkdir(project_path + '/bin')
41
42
  File.open("#{project_path}/bin/console", 'w') do |console_file|
42
43
  console_file.puts '#!/usr/bin/env ruby'
43
44
  console_file.puts "require 'pry'"
@@ -1,7 +1,7 @@
1
- require 'sinatra/base'
2
- require 'json'
1
+ require 'grape'
3
2
 
4
3
  ActiveRecord::Base.establish_connection
5
4
 
6
- class Api < Sinatra::Application
5
+ class Api < Grape::API
6
+ format :json
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Mours