vnews 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/vnews/sql.rb +1 -1
- data/lib/vnews/version.rb +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
|
@@ -24,7 +24,7 @@ task :bump do
|
|
|
24
24
|
puts "Bumping version: #{oldver} => #{newver}"
|
|
25
25
|
newfile = file.gsub("VERSION = '#{oldver}'", "VERSION = '#{newver}'")
|
|
26
26
|
File.open(basefile, 'w') {|f| f.write newfile}
|
|
27
|
-
`git commit -am 'Bump'`
|
|
27
|
+
# `git commit -am 'Bump'`
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
desc "build and push website"
|
data/lib/vnews/sql.rb
CHANGED
|
@@ -11,7 +11,7 @@ class Vnews
|
|
|
11
11
|
def self.create_db(config)
|
|
12
12
|
config = symbolize_config(config)
|
|
13
13
|
create_sql = File.join(File.dirname(__FILE__), '..', 'create.sql')
|
|
14
|
-
passwordarg = config[:password] ? ("-p #{shell_escape(config[:password])}") : ''
|
|
14
|
+
passwordarg = config[:password] ? ("-p '#{shell_escape(config[:password])}'") : ''
|
|
15
15
|
puts `mysqladmin -h #{shell_escape config[:host]} -u #{shell_escape config[:username]} #{passwordarg} create #{shell_escape config[:database]}`
|
|
16
16
|
puts `mysql -h #{shell_escape config[:host]} -D #{shell_escape config[:database]} -u #{shell_escape config[:username]} #{passwordarg} < #{create_sql}`
|
|
17
17
|
end
|
data/lib/vnews/version.rb
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 3
|
|
8
|
-
-
|
|
9
|
-
version: 0.3.
|
|
8
|
+
- 9
|
|
9
|
+
version: 0.3.9
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Daniel Choi
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-02-
|
|
17
|
+
date: 2011-02-28 00:00:00 -05:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|