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 +4 -4
- data/bin/pushnoted +3 -1
- data/lib/pushnote/configuration.rb +3 -1
- data/lib/pushnote/version.rb +1 -1
- data/pushnote.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44c3e58822dfc8454ea3758f2a0489d7077a3b8f
|
4
|
+
data.tar.gz: 5848961d16b8b9fbadf01719059860751d040561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a601915ce74cbf7a8b1401b4766f8df90b356c6ea4662c50ee4ba64c44cf7fb8d112c8cec337bdc0faca5574ad612b9726c60898c4ad54cc6f95bc4264f6aae
|
7
|
+
data.tar.gz: 199094c870f79bdb7e1be8663abe9b2951482a8cab1926280b2a9e4e27005510345cdad8e5c27148e317685884286dcee3b02f1af6792b4dba07d813cb0ecdff
|
data/bin/pushnoted
CHANGED
@@ -22,7 +22,9 @@ end
|
|
22
22
|
|
23
23
|
def start_server
|
24
24
|
in_server_directory do
|
25
|
-
system("
|
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.
|
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
|
data/lib/pushnote/version.rb
CHANGED
data/pushnote.gemspec
CHANGED
@@ -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 =
|
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
|
|