git-style-binaries 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,21 +3,21 @@ require 'rake'
3
3
 
4
4
  begin
5
5
  require 'jeweler'
6
- Jeweler::Tasks.new do |gemspec|
7
- gemspec.name = "git-style-binaries"
8
- gemspec.description = %Q{Ridiculously easy git-style binaries}
9
- gemspec.summary =<<-EOF
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "git-style-binaries"
8
+ gem.description = %Q{Ridiculously easy git-style binaries}
9
+ gem.summary =<<-EOF
10
10
  Add git-style binaries to your project easily.
11
11
  EOF
12
- gemspec.email = "nate@natemurray.com"
13
- gemspec.homepage = "http://github.com/jashmenn/git-style-binaries"
14
- gemspec.authors = ["Nate Murray"]
15
- gemspec.add_dependency 'trollop'
16
- gemspec.add_dependency 'shoulda' # for running the tests
12
+ gem.email = "nate@natemurray.com"
13
+ gem.homepage = "http://github.com/jashmenn/git-style-binaries"
14
+ gem.authors = ["Nate Murray"]
15
+ gem.add_dependency 'trollop'
16
+ gem.add_dependency 'shoulda' # for running the tests
17
17
 
18
18
  excludes = /(README\.html)/
19
- gemspec.files = (FileList["[A-Z]*.*", "{bin,examples,generators,lib,rails,spec,test,vendor}/**/*", 'Rakefile', 'LICENSE*']).delete_if{|f| f =~ excludes}
20
- gemspec.extra_rdoc_files = FileList["README*", "ChangeLog*", "LICENSE*"].delete_if{|f| f =~ excludes}
19
+ gem.files = (FileList["[A-Z]*.*", "{bin,examples,generators,lib,rails,spec,test,vendor}/**/*", 'Rakefile', 'LICENSE*']).delete_if{|f| f =~ excludes}
20
+ gem.extra_rdoc_files = FileList["README*", "ChangeLog*", "LICENSE*"].delete_if{|f| f =~ excludes}
21
21
  end
22
22
  rescue LoadError
23
23
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
@@ -47,6 +47,7 @@ end
47
47
  task :default => :test
48
48
 
49
49
  require 'rake/rdoctask'
50
+ require 'yaml'
50
51
  Rake::RDocTask.new do |rdoc|
51
52
  if File.exist?('VERSION.yml')
52
53
  config = YAML.load(File.read('VERSION.yml'))
@@ -86,7 +86,7 @@ class String
86
86
  return self if ENV['NO_COLOR']
87
87
 
88
88
  begin
89
- require 'Win32/Console/ANSI' if PLATFORM =~ /win32/
89
+ require 'Win32/Console/ANSI' if RUBY_PLATFORM =~ /win32/
90
90
  rescue LoadError
91
91
  raise 'You must gem install win32console to use color on Windows'
92
92
  end
@@ -10,7 +10,7 @@ $:.unshift(File.dirname(__FILE__) + "/../vendor/gems")
10
10
  begin
11
11
  require 'trollop'
12
12
  rescue LoadError
13
- puts "There was an error loading #{library}. Try running git submodule init && git submodule update to correct the problem"
13
+ puts "There was an error loading #{library}. Try running 'gem install #{library}' to correct the problem"
14
14
  end
15
15
  end
16
16
  end
@@ -9,7 +9,7 @@ module GitStyleBinary
9
9
  # this is slightly ugly b/c it has to muck around in the internals to
10
10
  # get information about commands other than itself. This isn't a
11
11
  # typical case
12
- def educate_about_command(name)
12
+ self.class.send :define_method, :educate_about_command do |name|
13
13
  load_all_commands
14
14
  if GitStyleBinary.known_commands.has_key?(name)
15
15
  cmd = GitStyleBinary.known_commands[name]
@@ -4,7 +4,7 @@ module GitStyleBinary
4
4
 
5
5
  # by Nathan Weizenbaum - http://nex-3.com/posts/73-git-style-automatic-paging-in-ruby
6
6
  def run_pager
7
- return if PLATFORM =~ /win32/
7
+ return if RUBY_PLATFORM =~ /win32/
8
8
  return unless STDOUT.tty?
9
9
  STDOUT.use_color = true
10
10
 
@@ -206,7 +206,7 @@ class RunningBinariesTest < Test::Unit::TestCase
206
206
  end
207
207
 
208
208
  should "have a local (not default) version string" do
209
- output_matches /0\.0\.2 \(c\) 2009/
209
+ output_matches /0\.0\.2 \(c\) #{Time.now.year}/
210
210
  end
211
211
  end
212
212
  end
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-style-binaries
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 10
9
- version: 0.1.10
4
+ version: 0.1.11
10
5
  platform: ruby
11
6
  authors:
12
7
  - Nate Murray
@@ -14,33 +9,29 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-03-07 00:00:00 -08:00
12
+ date: 2010-02-04 00:00:00 -08:00
18
13
  default_executable:
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: trollop
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
23
  version: "0"
30
- type: :runtime
31
- version_requirements: *id001
24
+ version:
32
25
  - !ruby/object:Gem::Dependency
33
26
  name: shoulda
34
- prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
- segments:
40
- - 0
41
33
  version: "0"
42
- type: :runtime
43
- version_requirements: *id002
34
+ version:
44
35
  description: Ridiculously easy git-style binaries
45
36
  email: nate@natemurray.com
46
37
  executables: []
@@ -86,20 +77,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
77
  requirements:
87
78
  - - ">="
88
79
  - !ruby/object:Gem::Version
89
- segments:
90
- - 0
91
80
  version: "0"
81
+ version:
92
82
  required_rubygems_version: !ruby/object:Gem::Requirement
93
83
  requirements:
94
84
  - - ">="
95
85
  - !ruby/object:Gem::Version
96
- segments:
97
- - 0
98
86
  version: "0"
87
+ version:
99
88
  requirements: []
100
89
 
101
90
  rubyforge_project:
102
- rubygems_version: 1.3.6
91
+ rubygems_version: 1.3.5
103
92
  signing_key:
104
93
  specification_version: 3
105
94
  summary: Add git-style binaries to your project easily.