htty 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +5 -0
- data/Rakefile +23 -26
- data/htty.gemspec +2 -4
- data/lib/htty/cli/body_open_command.rb +6 -1
- data/lib/htty/version.rb +1 -1
- metadata +15 -37
data/History.markdown
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Version history for the _htty_ project
|
2
2
|
======================================
|
3
3
|
|
4
|
+
<a name="v1.3.2"></a>v1.3.2, Fri 3/04/2011
|
5
|
+
-------------------------------------------
|
6
|
+
|
7
|
+
* Fixed configuration issues related to [rubygems-test](http://rubygems.org/gems/rubygems-test) gem support
|
8
|
+
|
4
9
|
<a name="v1.3.1"></a>v1.3.1, Fri 2/25/2011
|
5
10
|
-------------------------------------------
|
6
11
|
|
data/Rakefile
CHANGED
@@ -1,18 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
begin
|
2
|
+
require 'bundler'
|
3
|
+
rescue LoadError
|
4
|
+
else
|
5
|
+
Bundler::GemHelper.install_tasks
|
6
|
+
end
|
5
7
|
|
6
8
|
namespace :build do
|
7
9
|
begin
|
8
10
|
require 'yard'
|
9
11
|
rescue LoadError
|
10
|
-
desc
|
12
|
+
desc "(Not available -- try 'gem install yard')"
|
11
13
|
task :doc do
|
12
|
-
STDERR.puts
|
14
|
+
STDERR.puts "*** 'gem install yard' in order to build documentation"
|
13
15
|
end
|
14
16
|
else
|
15
|
-
yard = true
|
16
17
|
YARD::Rake::YardocTask.new :doc
|
17
18
|
end
|
18
19
|
end
|
@@ -42,20 +43,21 @@ end
|
|
42
43
|
begin
|
43
44
|
require 'rspec/core/rake_task'
|
44
45
|
rescue LoadError
|
45
|
-
desc
|
46
|
+
desc "(Not available -- try 'gem install rspec')"
|
46
47
|
task :spec do
|
47
|
-
STDERR.puts
|
48
|
+
STDERR.puts "*** 'gem install rspec' in order to run specs"
|
48
49
|
end
|
49
50
|
else
|
50
|
-
|
51
|
-
|
52
|
-
def define_spec_task(name, as_subdirectory=true)
|
51
|
+
def define_spec_task(name, options={})
|
53
52
|
RSpec::Core::RakeTask.new name do |t|
|
54
53
|
t.rspec_opts = ['--color']
|
55
|
-
|
56
|
-
|
54
|
+
t.skip_bundler = options[:skip_bundler]
|
55
|
+
unless options[:debug] == false
|
56
|
+
# TODO: Change '-d' to '--debug' when that `rspec` bug is fixed
|
57
|
+
t.rspec_opts << '-d'
|
58
|
+
end
|
57
59
|
|
58
|
-
directory = as_subdirectory ? "spec/#{name}" : 'spec'
|
60
|
+
directory = options[:as_subdirectory] ? "spec/#{name}" : 'spec'
|
59
61
|
t.pattern = "#{directory}/**/*_spec.rb"
|
60
62
|
end
|
61
63
|
end
|
@@ -63,23 +65,18 @@ else
|
|
63
65
|
namespace :spec do |n|
|
64
66
|
%w(unit integration system).each do |type_of_spec|
|
65
67
|
desc "Run #{type_of_spec} specs"
|
66
|
-
define_spec_task type_of_spec
|
68
|
+
define_spec_task type_of_spec, :as_subdirectory => true
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
70
72
|
desc 'Run all specs'
|
71
|
-
define_spec_task :spec
|
72
|
-
end
|
73
|
+
define_spec_task :spec
|
73
74
|
|
74
|
-
if yard && !rspec
|
75
|
-
desc 'Generate YARD documentation'
|
76
|
-
task '' => :doc
|
77
|
-
task :default => :doc
|
78
|
-
else
|
79
75
|
desc 'Run all specs'
|
80
76
|
task '' => :spec
|
81
77
|
task :default => :spec
|
82
|
-
end
|
83
78
|
|
84
|
-
# Support the 'gem test' command.
|
85
|
-
|
79
|
+
# Support the 'gem test' command.
|
80
|
+
desc ''
|
81
|
+
define_spec_task :test, :debug => false, :skip_bundler => true
|
82
|
+
end
|
data/htty.gemspec
CHANGED
@@ -19,10 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.add_dependency 'mime-types', '~> 1.0'
|
21
21
|
|
22
|
-
s.add_development_dependency '
|
23
|
-
s.add_development_dependency '
|
24
|
-
s.add_development_dependency 'rspec', '~> 2.0'
|
25
|
-
s.add_development_dependency 'yard', '~> 0.2'
|
22
|
+
s.add_development_dependency 'rake', '~> 0.8'
|
23
|
+
s.add_development_dependency 'rspec', '~> 2.0'
|
26
24
|
|
27
25
|
s.rubyforge_project = 'htty'
|
28
26
|
s.has_rdoc = true
|
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'mime/types'
|
3
|
+
rescue LoadError
|
4
|
+
require 'rubygems'
|
5
|
+
retry
|
6
|
+
end
|
2
7
|
require File.expand_path("#{File.dirname __FILE__}/../platform")
|
3
8
|
require File.expand_path("#{File.dirname __FILE__}/../tempfile_preserving_extname")
|
4
9
|
require File.expand_path("#{File.dirname __FILE__}/display")
|
data/lib/htty/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
9
|
+
- 2
|
10
|
+
version: 1.3.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Nils Jonsson
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-
|
18
|
+
date: 2011-03-04 00:00:00 -06:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -25,68 +26,43 @@ dependencies:
|
|
25
26
|
requirements:
|
26
27
|
- - ~>
|
27
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
28
30
|
segments:
|
29
31
|
- 1
|
30
32
|
- 0
|
31
33
|
version: "1.0"
|
32
34
|
type: :runtime
|
33
35
|
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: bluecloth
|
36
|
-
prerelease: false
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
|
-
requirements:
|
40
|
-
- - ~>
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 2
|
44
|
-
- 0
|
45
|
-
version: "2.0"
|
46
|
-
type: :development
|
47
|
-
version_requirements: *id002
|
48
36
|
- !ruby/object:Gem::Dependency
|
49
37
|
name: rake
|
50
38
|
prerelease: false
|
51
|
-
requirement: &
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
52
40
|
none: false
|
53
41
|
requirements:
|
54
42
|
- - ~>
|
55
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 27
|
56
45
|
segments:
|
57
46
|
- 0
|
58
47
|
- 8
|
59
48
|
version: "0.8"
|
60
49
|
type: :development
|
61
|
-
version_requirements: *
|
50
|
+
version_requirements: *id002
|
62
51
|
- !ruby/object:Gem::Dependency
|
63
52
|
name: rspec
|
64
53
|
prerelease: false
|
65
|
-
requirement: &
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
66
55
|
none: false
|
67
56
|
requirements:
|
68
57
|
- - ~>
|
69
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
70
60
|
segments:
|
71
61
|
- 2
|
72
62
|
- 0
|
73
63
|
version: "2.0"
|
74
64
|
type: :development
|
75
|
-
version_requirements: *
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: yard
|
78
|
-
prerelease: false
|
79
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
|
-
requirements:
|
82
|
-
- - ~>
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
- 2
|
87
|
-
version: "0.2"
|
88
|
-
type: :development
|
89
|
-
version_requirements: *id005
|
65
|
+
version_requirements: *id003
|
90
66
|
description: htty is a console application for interacting with web servers. It's a fun way to explore web APIs and to learn the ins and outs of HTTP.
|
91
67
|
email:
|
92
68
|
- htty@nilsjonsson.com
|
@@ -296,6 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
296
272
|
requirements:
|
297
273
|
- - ">="
|
298
274
|
- !ruby/object:Gem::Version
|
275
|
+
hash: 57
|
299
276
|
segments:
|
300
277
|
- 1
|
301
278
|
- 8
|
@@ -306,13 +283,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
283
|
requirements:
|
307
284
|
- - ">="
|
308
285
|
- !ruby/object:Gem::Version
|
286
|
+
hash: 3
|
309
287
|
segments:
|
310
288
|
- 0
|
311
289
|
version: "0"
|
312
290
|
requirements: []
|
313
291
|
|
314
292
|
rubyforge_project: htty
|
315
|
-
rubygems_version: 1.
|
293
|
+
rubygems_version: 1.6.1
|
316
294
|
signing_key:
|
317
295
|
specification_version: 3
|
318
296
|
summary: The HTTP TTY
|