pushnote 1.1.1 → 1.1.2

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: 494e8546c034f3f7eb3f3b4f149a02571bba233e
4
- data.tar.gz: fb23b1edf8f777b93a97e69964717d0847644e3b
3
+ metadata.gz: 44c3e58822dfc8454ea3758f2a0489d7077a3b8f
4
+ data.tar.gz: 5848961d16b8b9fbadf01719059860751d040561
5
5
  SHA512:
6
- metadata.gz: a61d284482add56238ca1c120f42d9355ba3b7515828f607c356305fd9888b6211b62772bf7d28a1a6bd097e27e9c53cfdbc2616f95a10a09211d00a22f82c46
7
- data.tar.gz: affc737a4648502c06af1d789b97cd8802136ca851d86f52f86532cbafcd57ad0a568d5a7aae73ece501356aea869996cdbac8aa705ac922bd2f577136903d96
6
+ metadata.gz: 1a601915ce74cbf7a8b1401b4766f8df90b356c6ea4662c50ee4ba64c44cf7fb8d112c8cec337bdc0faca5574ad612b9726c60898c4ad54cc6f95bc4264f6aae
7
+ data.tar.gz: 199094c870f79bdb7e1be8663abe9b2951482a8cab1926280b2a9e4e27005510345cdad8e5c27148e317685884286dcee3b02f1af6792b4dba07d813cb0ecdff
@@ -22,7 +22,9 @@ end
22
22
 
23
23
  def start_server
24
24
  in_server_directory do
25
- system("rackup -p 9283 -D")
25
+ system("RACK_ENV=local bundle install > /dev/null")
26
+ system("RACK_ENV=local bundle exec rake db:create db:migrate 2> /dev/null")
27
+ system("RACK_ENV=local nohup rackup -p 9283 &> /dev/null &")
26
28
  end
27
29
  end
28
30
 
@@ -1,11 +1,13 @@
1
1
  require 'yaml'
2
+ require 'fileutils'
2
3
 
3
4
  class Configuration < OpenStruct
4
5
  FILE_PATH = File.expand_path('~/.pushnote.yml')
5
6
 
6
7
  def initialize
7
8
  unless File.exist?(FILE_PATH)
8
- File.copy('.pushnote.yml', FILE_PATH)
9
+ template_path = File.expand_path('../../../.pushnote.yml', __FILE__)
10
+ FileUtils.cp(template_path, FILE_PATH)
9
11
  end
10
12
  super(YAML.load_file(FILE_PATH))
11
13
  end
@@ -1,3 +1,3 @@
1
1
  module Pushnote
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.executables = ['pushnote', 'pushnoted']
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushnote
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory Boyd