glynn 1.0.1 → 1.0.2

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/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
@@ -10,7 +10,6 @@ begin
10
10
  gemspec.email = "42@dmathieu.com"
11
11
  gemspec.homepage = "http://github.com/dmathieu/glynn"
12
12
  gemspec.authors = ["Damien MATHIEU"]
13
- gemspec.version = '1.0.1'
14
13
 
15
14
  gemspec.add_dependency('jekyll', '>= 0.5.4')
16
15
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.2
data/bin/autospec ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/rspec-1.3.0/bin/autospec")
data/bin/jekyll ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/jekyll-0.5.6/bin/jekyll")
data/bin/maruku ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/maruku-0.6.0/bin/maruku")
data/bin/marutex ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/maruku-0.6.0/bin/marutex")
data/bin/rake ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/rake-0.8.7/bin/rake")
data/bin/redcloth ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/RedCloth-4.2.2/bin/redcloth")
data/bin/spec ADDED
@@ -0,0 +1,3 @@
1
+ #!/opt/local/bin/ruby
2
+ require File.join(File.dirname(__FILE__), "../vendor/gems/environment")
3
+ load File.join(File.dirname(__FILE__), "../vendor/gems/gems/rspec-1.3.0/bin/spec")
data/glynn.gemspec CHANGED
@@ -1,52 +1,57 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
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.1"
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{2009-12-16}
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.5}
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/spec_helper.rb",
46
+ "spec/lib/file.rb",
47
+ "spec/lib/ftp.rb",
43
48
  "spec/lib/jekyll.rb",
44
- "spec/lib/ftp.rb"
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 = 3
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
@@ -0,0 +1,10 @@
1
+ require 'ftools'
2
+
3
+ module Glynn
4
+ class File
5
+
6
+ def self.is_bin?(f)
7
+ %x(file #{f}) !~ /text/
8
+ end
9
+ end
10
+ end
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.1
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: 2009-12-16 00:00:00 +01:00
13
- default_executable: glynn
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: false
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: 3
83
+ specification_version: 2
73
84
  summary: Deploy a jekyll weblog through ftp
74
85
  test_files:
75
- - spec/spec_helper.rb
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