glynn 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +14 -0
- data/Rakefile +0 -1
- data/VERSION +1 -0
- data/bin/autospec +3 -0
- data/bin/jekyll +3 -0
- data/bin/maruku +3 -0
- data/bin/marutex +3 -0
- data/bin/rake +3 -0
- data/bin/redcloth +3 -0
- data/bin/spec +3 -0
- data/glynn.gemspec +15 -11
- data/lib/glynn/file.rb +10 -0
- data/spec/lib/file.rb +20 -0
- metadata +19 -7
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "http://gemcutter.org"
|
2
|
+
#
|
3
|
+
# Required on every environment
|
4
|
+
#
|
5
|
+
gem "jekyll"
|
6
|
+
gem "sdoc"
|
7
|
+
gem "sdoc-helpers"
|
8
|
+
|
9
|
+
#
|
10
|
+
# Required only for tests
|
11
|
+
#
|
12
|
+
gem "rspec", :only => :testing
|
13
|
+
gem "mocha", :only => :testing
|
14
|
+
gem "fakefs", :only => :testing
|
data/Rakefile
CHANGED
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.2
|
data/bin/autospec
ADDED
data/bin/jekyll
ADDED
data/bin/maruku
ADDED
data/bin/marutex
ADDED
data/bin/rake
ADDED
data/bin/redcloth
ADDED
data/bin/spec
ADDED
data/glynn.gemspec
CHANGED
@@ -1,52 +1,57 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{glynn}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Damien MATHIEU"]
|
12
|
-
s.date = %q{
|
13
|
-
s.default_executable = %q{glynn}
|
12
|
+
s.date = %q{2010-01-12}
|
14
13
|
s.description = %q{Deploy a jekyll weblog through ftp}
|
15
14
|
s.email = %q{42@dmathieu.com}
|
16
|
-
s.executables = ["glynn"]
|
15
|
+
s.executables = ["autospec", "glynn", "jekyll", "maruku", "marutex", "rake", "redcloth", "spec"]
|
17
16
|
s.extra_rdoc_files = [
|
18
17
|
"LICENSE",
|
19
18
|
"README.md"
|
20
19
|
]
|
21
20
|
s.files = [
|
22
21
|
".gitignore",
|
22
|
+
"Gemfile",
|
23
23
|
"LICENSE",
|
24
24
|
"README.md",
|
25
25
|
"Rakefile",
|
26
|
+
"VERSION",
|
26
27
|
"bin/glynn",
|
27
28
|
"glynn.gemspec",
|
28
29
|
"lib/glynn.rb",
|
30
|
+
"lib/glynn/file.rb",
|
29
31
|
"lib/glynn/ftp.rb",
|
30
32
|
"lib/glynn/jekyll.rb",
|
33
|
+
"spec/lib/file.rb",
|
31
34
|
"spec/lib/ftp.rb",
|
32
35
|
"spec/lib/jekyll.rb",
|
33
36
|
"spec/spec.opts",
|
34
37
|
"spec/spec_helper.rb"
|
35
38
|
]
|
39
|
+
s.has_rdoc = true
|
36
40
|
s.homepage = %q{http://github.com/dmathieu/glynn}
|
37
41
|
s.rdoc_options = ["--charset=UTF-8"]
|
38
42
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = %q{1.3.
|
43
|
+
s.rubygems_version = %q{1.3.1}
|
40
44
|
s.summary = %q{Deploy a jekyll weblog through ftp}
|
41
45
|
s.test_files = [
|
42
|
-
"spec/
|
46
|
+
"spec/lib/file.rb",
|
47
|
+
"spec/lib/ftp.rb",
|
43
48
|
"spec/lib/jekyll.rb",
|
44
|
-
"spec/
|
49
|
+
"spec/spec_helper.rb"
|
45
50
|
]
|
46
51
|
|
47
52
|
if s.respond_to? :specification_version then
|
48
53
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
|
-
s.specification_version =
|
54
|
+
s.specification_version = 2
|
50
55
|
|
51
56
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
52
57
|
s.add_runtime_dependency(%q<jekyll>, [">= 0.5.4"])
|
@@ -57,4 +62,3 @@ Gem::Specification.new do |s|
|
|
57
62
|
s.add_dependency(%q<jekyll>, [">= 0.5.4"])
|
58
63
|
end
|
59
64
|
end
|
60
|
-
|
data/lib/glynn/file.rb
ADDED
data/spec/lib/file.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper'
|
2
|
+
|
3
|
+
describe "File module" do
|
4
|
+
before(:all) do
|
5
|
+
FakeFS.activate!
|
6
|
+
end
|
7
|
+
after(:all) do
|
8
|
+
FakeFS.deactivate!
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should return file is text" do
|
12
|
+
File.open('/test/README', 'w') { |f| f.write 'N/A' }
|
13
|
+
Glynn::File.is_bin?('/test/README').should eql(true)
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should return file is binary" do
|
17
|
+
File.open('/test/README', 'w') { |f| f.write ['0', '1', '2', '3'].pack('A3A3A3') }
|
18
|
+
Glynn::File.is_bin?('/test/README').should eql(true)
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glynn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damien MATHIEU
|
@@ -9,8 +9,8 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2010-01-12 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jekyll
|
@@ -25,7 +25,14 @@ dependencies:
|
|
25
25
|
description: Deploy a jekyll weblog through ftp
|
26
26
|
email: 42@dmathieu.com
|
27
27
|
executables:
|
28
|
+
- autospec
|
28
29
|
- glynn
|
30
|
+
- jekyll
|
31
|
+
- maruku
|
32
|
+
- marutex
|
33
|
+
- rake
|
34
|
+
- redcloth
|
35
|
+
- spec
|
29
36
|
extensions: []
|
30
37
|
|
31
38
|
extra_rdoc_files:
|
@@ -33,19 +40,23 @@ extra_rdoc_files:
|
|
33
40
|
- README.md
|
34
41
|
files:
|
35
42
|
- .gitignore
|
43
|
+
- Gemfile
|
36
44
|
- LICENSE
|
37
45
|
- README.md
|
38
46
|
- Rakefile
|
47
|
+
- VERSION
|
39
48
|
- bin/glynn
|
40
49
|
- glynn.gemspec
|
41
50
|
- lib/glynn.rb
|
51
|
+
- lib/glynn/file.rb
|
42
52
|
- lib/glynn/ftp.rb
|
43
53
|
- lib/glynn/jekyll.rb
|
54
|
+
- spec/lib/file.rb
|
44
55
|
- spec/lib/ftp.rb
|
45
56
|
- spec/lib/jekyll.rb
|
46
57
|
- spec/spec.opts
|
47
58
|
- spec/spec_helper.rb
|
48
|
-
has_rdoc:
|
59
|
+
has_rdoc: true
|
49
60
|
homepage: http://github.com/dmathieu/glynn
|
50
61
|
post_install_message:
|
51
62
|
rdoc_options:
|
@@ -69,9 +80,10 @@ requirements: []
|
|
69
80
|
rubyforge_project:
|
70
81
|
rubygems_version: 1.3.1
|
71
82
|
signing_key:
|
72
|
-
specification_version:
|
83
|
+
specification_version: 2
|
73
84
|
summary: Deploy a jekyll weblog through ftp
|
74
85
|
test_files:
|
75
|
-
- spec/
|
76
|
-
- spec/lib/jekyll.rb
|
86
|
+
- spec/lib/file.rb
|
77
87
|
- spec/lib/ftp.rb
|
88
|
+
- spec/lib/jekyll.rb
|
89
|
+
- spec/spec_helper.rb
|