phper 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/phper/commands.rb +3 -2
- data/phper.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
data/lib/phper/commands.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'phper'
|
4
4
|
require "parsedate"
|
5
5
|
require "time"
|
6
|
+
require 'base64'
|
6
7
|
|
7
8
|
class Phper::Commands < CommandLineUtils::Commands
|
8
9
|
include Phper
|
@@ -397,7 +398,7 @@ class Phper::Commands < CommandLineUtils::Commands
|
|
397
398
|
@summery = "dump file."
|
398
399
|
return files_get_one if @help
|
399
400
|
file = files_get_one
|
400
|
-
puts file["file"]["contents"]
|
401
|
+
puts Base64.decode(file["file"]["contents"])
|
401
402
|
end
|
402
403
|
|
403
404
|
def files_modified
|
@@ -447,7 +448,7 @@ class Phper::Commands < CommandLineUtils::Commands
|
|
447
448
|
name = File.join(git_root,name)
|
448
449
|
FileUtils.mkdir_p(File.dirname(name))
|
449
450
|
File.open(name,"w"){ |f|
|
450
|
-
f.write file["file"]["contents"]
|
451
|
+
f.write Base64.decode(file["file"]["contents"])
|
451
452
|
}
|
452
453
|
puts "--> " + file["file"]["name"]
|
453
454
|
end
|
data/phper.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{phper}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Yoshihiro TAKAHARA"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-03-01}
|
13
13
|
s.default_executable = %q{phper}
|
14
14
|
s.description = %q{phper}
|
15
15
|
s.email = %q{y.takahara@gmail.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-01 00:00:00 +09:00
|
19
19
|
default_executable: phper
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|