iron-term-ansicolor 0.0.3-universal-.net → 0.0.4-universal-.net

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -30,6 +30,7 @@ PKG_VERSION = if File.exist?('VERSION.yml')
30
30
  else
31
31
  version = IronTermAnsiColor::Version::STRING
32
32
  end
33
+ PKG_PLATFORM = Gem::Platform.new(["universal", ".net"])
33
34
  AUTHORS = ['Will Green', 'David Blackmon', 'Ivan Porto Carrero', 'Danny Coates']
34
35
  EMAIL = "will@hotgazpacho.org"
35
36
  HOMEPAGE = "http://github.com/hotgazpacho/iron-term-ansicolor"
@@ -44,8 +45,7 @@ RDOC_OPTIONS = [
44
45
  "--quiet",
45
46
  "--title", SUMMARY,
46
47
  "--main", "README.rdoc",
47
- "--line-numbers",
48
- "--format","darkfish"
48
+ "--line-numbers"
49
49
  ]
50
50
 
51
51
  # Extra files outside of the lib dir that should be included with the rdocs.
@@ -85,133 +85,6 @@ Rake::RDocTask.new do |rd|
85
85
 
86
86
  end
87
87
 
88
- ##############################################################################
89
- # PACKAGING & INSTALLATION
90
- ##############################################################################
91
-
92
- # What files/dirs should 'rake clean' remove?
93
- #CLEAN.include ["*.gem", "pkg", "rdoc", "coverage"]
94
-
95
- begin
96
- require 'rake/gempackagetask'
97
-
98
- spec = Gem::Specification.new do |s|
99
- s.name = PKG_NAME
100
- s.version = PKG_VERSION
101
- s.authors = AUTHORS
102
- s.email = EMAIL
103
- s.homepage = HOMEPAGE
104
- s.rubyforge_project = PKG_NAME
105
- s.summary = SUMMARY
106
- s.description = s.summary
107
- s.platform = "universal-.net"#Gem::Platform::CURRENT #Gem::Platform::RUBY
108
- s.require_path = 'lib'
109
- s.executables = []
110
- s.files = PKG_FILES
111
- s.test_files = TEST_FILES
112
- s.has_rdoc = true
113
- s.extra_rdoc_files = RDOC_FILES
114
- s.rdoc_options = RDOC_OPTIONS
115
- s.required_ruby_version = ">= 1.8.6"
116
- s.add_dependency 'term-ansicolor', ">= 1.0.4"
117
- s.add_development_dependency 'rspec'
118
- end
119
-
120
- Rake::GemPackageTask.new(spec) do |pkg|
121
- pkg.gem_spec = spec
122
- pkg.need_tar = true
123
- pkg.need_zip = true
124
- end
125
-
126
- namespace :gem do
127
-
128
- desc "Run :package and install the .gem locally"
129
- task :install => [:update_gemspec, :package] do
130
- sh %{sudo gem install --local pkg/#{PKG_NAME}-#{PKG_VERSION}.gem}
131
- end
132
-
133
- desc "Like gem:install but without ri or rdocs"
134
- task :install_fast => [:update_gemspec, :package] do
135
- sh %{sudo gem install --local pkg/#{PKG_NAME}-#{PKG_VERSION}.gem --no-rdoc --no-ri}
136
- end
137
-
138
- desc "Run :clean and uninstall the .gem"
139
- task :uninstall => :clean do
140
- sh %{sudo gem uninstall #{PKG_NAME}}
141
- end
142
-
143
- # Thanks to the Merb project for this code.
144
- desc "Update Github Gemspec"
145
- task :update_gemspec do
146
- skip_fields = %w(new_platform original_platform date)
147
-
148
- result = "# WARNING : RAKE AUTO-GENERATED FILE. DO NOT MANUALLY EDIT!\n"
149
- result << "# RUN : 'rake gem:update_gemspec'\n\n"
150
- result << "Gem::Specification.new do |s|\n"
151
- spec.instance_variables.sort.each do |ivar|
152
- value = spec.instance_variable_get(ivar)
153
- name = ivar.to_s.split("@").last
154
- next if skip_fields.include?(name) || value.nil? || value == "" || (value.respond_to?(:empty?) && value.empty?)
155
- if name == "dependencies"
156
- value.each do |d|
157
- dep, *ver = d.to_s.split(" ")
158
- result << " s.add_dependency #{dep.inspect}, #{ver.join(" ").inspect.gsub(/[()]/, "")}\n"
159
- end
160
- else
161
- case value
162
- when Array
163
- value = name != "files" ? value.inspect : value.sort.uniq.inspect.split(",").join(",\n")
164
- when String, Fixnum, true, false
165
- value = value.inspect
166
- else
167
- value = value.to_s.inspect
168
- end
169
- result << " s.#{name} = #{value}\n"
170
- end
171
- end
172
- result << "end"
173
- File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w"){|f| f << result}
174
- end
175
-
176
- end # namespace :gem
177
-
178
- # also keep the gemspec up to date each time we package a tarball or gem
179
- task :package => ['gem:update_gemspec']
180
- task :gem => ['gem:update_gemspec']
181
-
182
- rescue LoadError
183
- puts <<EOF
184
- ###
185
- Packaging Warning : RubyGems is apparently not installed on this
186
- system and any file add/remove/rename will not
187
- be auto-updated in the 'iron-term-ansicolor.gemspec' when you run any
188
- package tasks. All such file changes are recommended
189
- to be packaged on a system with RubyGems installed
190
- if you intend to push commits to the Git repo so the
191
- gemspec will also stay in sync for others.
192
- ###
193
- EOF
194
- end
195
-
196
- # we are apparently on a system that does not have RubyGems installed.
197
- # Lets try to provide only the basic tarball package tasks as a fallback.
198
- unless defined? Gem
199
- begin
200
- require 'rake/packagetask'
201
- Rake::PackageTask.new(PKG_NAME, PKG_VERSION) do |p|
202
- p.package_files = PKG_FILES
203
- p.need_tar = true
204
- p.need_zip = true
205
- end
206
- rescue LoadError
207
- puts <<EOF
208
- ###
209
- Warning : Unable to require the 'rake/packagetask'. Is Rake installed?
210
- ###
211
- EOF
212
- end
213
- end
214
-
215
88
  begin
216
89
  require 'jeweler'
217
90
  Jeweler::Tasks.new do |gem|
@@ -221,7 +94,7 @@ begin
221
94
  gem.email = EMAIL
222
95
  gem.homepage = HOMEPAGE
223
96
  gem.authors = AUTHORS
224
- gem.platform = "universal-.net"#Gem::Platform::CURRENT
97
+ gem.platform = PKG_PLATFORM
225
98
  gem.required_ruby_version = ">= 1.8.6"
226
99
  gem.add_dependency 'term-ansicolor', ">= 1.0.4"
227
100
  gem.add_development_dependency 'rspec'
@@ -232,7 +105,7 @@ begin
232
105
  gem.rdoc_options = RDOC_OPTIONS
233
106
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
234
107
  end
235
-
108
+ Jeweler::GemcutterTasks.new
236
109
  rescue LoadError
237
110
  puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
238
111
  end
@@ -1,34 +1,56 @@
1
- # WARNING : RAKE AUTO-GENERATED FILE. DO NOT MANUALLY EDIT!
2
- # RUN : 'rake gem:update_gemspec'
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
3
5
 
4
6
  Gem::Specification.new do |s|
7
+ s.name = %q{iron-term-ansicolor}
8
+ s.version = "0.0.4"
9
+ s.platform = Gem::Platform.new(["universal", ".net", nil])
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
5
12
  s.authors = ["Will Green", "David Blackmon", "Ivan Porto Carrero", "Danny Coates"]
6
- s.bindir = "bin"
7
- s.add_dependency "term-ansicolor", ">= 1.0.4, runtime"
8
- s.add_dependency "rspec", ">= 0, development"
9
- s.description = "iron-term-ansicolor brings color output to IronRuby on Windows"
10
- s.email = "will@hotgazpacho.org"
11
- s.extra_rdoc_files = ["README.rdoc"]
12
- s.files = ["README.rdoc",
13
- "Rakefile",
14
- "iron-term-ansicolor.gemspec",
15
- "lib/iron-term-ansicolor.rb",
16
- "spec/iron-term-ansicolor_simple_background_spec.rb",
17
- "spec/iron-term-ansicolor_simple_foreground_spec.rb",
18
- "spec/spec_helper.rb"]
19
- s.has_rdoc = true
20
- s.homepage = "http://github.com/hotgazpacho/iron-term-ansicolor"
21
- s.loaded = false
22
- s.name = "iron-term-ansicolor"
23
- s.platform = "universal-.net-2.0"
24
- s.rdoc_options = ["--quiet", "--title", "iron-term-ansicolor brings color output to IronRuby on Windows", "--main", "README.rdoc", "--line-numbers", "--format", "darkfish"]
13
+ s.date = %q{2010-03-08}
14
+ s.description = %q{iron-term-ansicolor brings color output to IronRuby on Windows}
15
+ s.email = %q{will@hotgazpacho.org}
16
+ s.extra_rdoc_files = [
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "iron-term-ansicolor.gemspec",
23
+ "lib/iron-term-ansicolor.rb",
24
+ "spec/iron-term-ansicolor_simple_background_spec.rb",
25
+ "spec/iron-term-ansicolor_simple_foreground_spec.rb",
26
+ "spec/spec_helper.rb"
27
+ ]
28
+ s.homepage = %q{http://github.com/hotgazpacho/iron-term-ansicolor}
29
+ s.rdoc_options = ["--quiet", "--title", "iron-term-ansicolor brings color output to IronRuby on Windows", "--main", "README.rdoc", "--line-numbers"]
25
30
  s.require_paths = ["lib"]
26
- s.required_ruby_version = ">= 1.8.6"
27
- s.required_rubygems_version = ">= 0"
28
- s.rubyforge_project = "iron-term-ansicolor"
29
- s.rubygems_version = "1.3.5"
30
- s.specification_version = 3
31
- s.summary = "iron-term-ansicolor brings color output to IronRuby on Windows"
32
- s.test_files = ["spec/iron-term-ansicolor_simple_background_spec.rb", "spec/iron-term-ansicolor_simple_foreground_spec.rb", "spec/spec_helper.rb"]
33
- s.version = "0.0.3"
34
- end
31
+ s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
32
+ s.rubygems_version = %q{1.3.5}
33
+ s.summary = %q{iron-term-ansicolor brings color output to IronRuby on Windows}
34
+ s.test_files = [
35
+ "spec/iron-term-ansicolor_simple_background_spec.rb",
36
+ "spec/iron-term-ansicolor_simple_foreground_spec.rb",
37
+ "spec/spec_helper.rb"
38
+ ]
39
+
40
+ if s.respond_to? :specification_version then
41
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
42
+ s.specification_version = 3
43
+
44
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ s.add_runtime_dependency(%q<term-ansicolor>, [">= 1.0.4"])
46
+ s.add_development_dependency(%q<rspec>, [">= 0"])
47
+ else
48
+ s.add_dependency(%q<term-ansicolor>, [">= 1.0.4"])
49
+ s.add_dependency(%q<rspec>, [">= 0"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<term-ansicolor>, [">= 1.0.4"])
53
+ s.add_dependency(%q<rspec>, [">= 0"])
54
+ end
55
+ end
56
+
@@ -1,8 +1,4 @@
1
- begin
2
- require 'mscorlib'
3
- rescue LoadError
4
- print "iron-term-ansicolor will only work on IronRuby"
5
- end
1
+ require 'mscorlib'
6
2
  require 'term/ansicolor'
7
3
 
8
4
  class String
@@ -11,12 +7,12 @@ end
11
7
 
12
8
  module IronTermAnsiColor
13
9
  include System
14
- module Version
15
- MAJOR=0
16
- MINOR=0
17
- PATCH=3
18
- STRING="#{MAJOR}.#{MINOR}.#{PATCH}"
19
- end
10
+ #module Version
11
+ # MAJOR=0
12
+ # MINOR=0
13
+ # PATCH=4
14
+ # STRING="#{MAJOR}.#{MINOR}.#{PATCH}"
15
+ #end
20
16
 
21
17
  ANSI_REGEXP = /\e\[([1349][0-7][0-7]?|[01])m/
22
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron-term-ansicolor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: universal-.net
6
6
  authors:
7
7
  - Will Green
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2010-03-07 00:00:00 -05:00
14
+ date: 2010-03-08 00:00:00 -05:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -59,8 +59,6 @@ rdoc_options:
59
59
  - --main
60
60
  - README.rdoc
61
61
  - --line-numbers
62
- - --format
63
- - darkfish
64
62
  require_paths:
65
63
  - lib
66
64
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -76,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
74
  version: "0"
77
75
  version:
78
76
  requirements: []
79
- rubyforge_project: iron-term-ansicolor
77
+ rubyforge_project:
80
78
  rubygems_version: 1.3.5
81
79
  signing_key:
82
80
  specification_version: 3