link_header 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: adc78a3f184a82143041180683a14ec9a1679b17
4
+ metadata.gz: d68bb7bcff0df3868a7d9b4227ddacc9e29dbcc7
5
+ SHA512:
6
+ data.tar.gz: eae8074cdf69fc79c47ef9283d13a104d3ef2212b09b1381d508dd704f0d2451f786b27c73c6c065cf72e4a2e8a2ba9d10cf3449c5b9e88d6d115596d6aee053
7
+ metadata.gz: c4787acbc5575bbb94d0d90c7fbe7ca7fa5daf6ca16bf3a52787e1e3dfa94cae4f435ae933927c384d53beadc83f71814e1117a5db828c8203965f101afce5b0
@@ -0,0 +1 @@
1
+ Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in link_header.gemspec
4
+ gemspec
@@ -1,3 +1,8 @@
1
+ == 0.0.6 2013-03-11
2
+
3
+ * Switch to bundler gem setup (mloughran)
4
+ * Run tests with rake (mloughran)
5
+
1
6
  == 0.0.5 2009-07-30
2
7
 
3
8
  * Add #to_html methods
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- link_header, Copyright (c) 2009 Mike Burrows
1
+ link_header, Copyright (c) 2009-2013 Mike Burrows
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,36 +1,8 @@
1
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
- $:.push File.dirname(__FILE__) + '/lib'
3
- require 'link_header'
4
- require 'hoe'
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
5
3
 
6
- # Generate all the Rake tasks
7
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
8
- $hoe = Hoe.spec 'link_header' do
9
- developer('Mike Burrows', 'mjb@asplake.co.uk')
10
- self.version = LinkHeader::VERSION
11
- self.readme_file = "README.rdoc"
12
- self.changes = paragraphs_of("History.txt", 0..1).join("\n\n")
13
- self.rubyforge_name = 'link-header'
14
- self.url = 'http://github.com/asplake/link_header/tree'
15
- self.extra_deps = [
16
- ]
17
- self.extra_dev_deps = [
18
- ['newgem', ">= #{::Newgem::VERSION}"]
19
- ]
20
-
21
- self.clean_globs |= %w[**/.DS_Store tmp *.log]
22
- path = (rubyforge_name == name) ? rubyforge_name : "\#{rubyforge_name}/\#{name}"
23
- self.remote_rdoc_dir = File.join(path.gsub(/^#{rubyforge_name}\/?/,''), 'rdoc')
24
- self.rsync_args = '-av --delete --ignore-errors'
25
- end
4
+ task :default => :test
26
5
 
27
- task :info do
28
- puts "version=#{LinkHeader::VERSION}"
29
- [:description, :summary, :changes, :author, :url].each do |attr|
30
- puts "#{attr}=#{$hoe.send(attr)}\n"
31
- end
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.test_files = FileList['test/test_*.rb']
32
8
  end
33
-
34
- require 'newgem/tasks' # load /tasks/*.rake
35
- Dir['tasks/**/*.rake'].each { |t| load t }
36
-
@@ -1,3 +1,4 @@
1
+ require "link_header/version"
1
2
  require "strscan"
2
3
 
3
4
  #
@@ -5,9 +6,6 @@ require "strscan"
5
6
  # It is simply a list of LinkHeader::Link objects and some conversion functions.
6
7
  #
7
8
  class LinkHeader
8
- # rubygem version
9
- VERSION = "0.0.5"
10
-
11
9
  # An array of Link objects
12
10
  attr_reader :links
13
11
 
@@ -0,0 +1,3 @@
1
+ class LinkHeader
2
+ VERSION = "0.0.6"
3
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'link_header/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "link_header"
8
+ spec.version = LinkHeader::VERSION
9
+ spec.authors = ["Mike Burrows"]
10
+ spec.email = ["mjb@asplake.co.uk"]
11
+ spec.description = %q{Converts conforming link headers to and from text, LinkHeader objects and corresponding (JSON-friendly) Array representations, also HTML link elements.}
12
+ spec.summary = spec.description
13
+ spec.homepage = "https://github.com/asplake/link_header"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: link_header
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Burrows
@@ -9,29 +9,29 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-30 00:00:00 +01:00
13
- default_executable:
12
+ date: 2013-03-11 00:00:00 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: newgem
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
15
+ name: bundler
16
+ prerelease: false
17
+ requirement: &id001 !ruby/object:Gem::Requirement
20
18
  requirements:
21
- - - ">="
19
+ - - ~>
22
20
  - !ruby/object:Gem::Version
23
- version: 1.5.1
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: hoe
21
+ version: "1.3"
27
22
  type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
25
+ name: rake
26
+ prerelease: false
27
+ requirement: &id002 !ruby/object:Gem::Requirement
30
28
  requirements:
31
- - - ">="
29
+ - &id003
30
+ - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: 2.3.2
34
- version:
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id002
35
35
  description: Converts conforming link headers to and from text, LinkHeader objects and corresponding (JSON-friendly) Array representations, also HTML link elements.
36
36
  email:
37
37
  - mjb@asplake.co.uk
@@ -39,52 +39,43 @@ executables: []
39
39
 
40
40
  extensions: []
41
41
 
42
- extra_rdoc_files:
43
- - History.txt
44
- - Manifest.txt
45
- - PostInstall.txt
42
+ extra_rdoc_files: []
43
+
46
44
  files:
45
+ - .gitignore
46
+ - Gemfile
47
47
  - History.txt
48
48
  - LICENSE
49
- - Manifest.txt
50
- - PostInstall.txt
51
49
  - README.rdoc
52
50
  - Rakefile
53
51
  - example.rb
54
52
  - lib/link_header.rb
55
- - script/console
56
- - script/destroy
57
- - script/generate
53
+ - lib/link_header/version.rb
54
+ - link_header.gemspec
58
55
  - test/test_helper.rb
59
56
  - test/test_link_header.rb
60
- has_rdoc: true
61
- homepage: http://github.com/asplake/link_header/tree
62
- licenses: []
57
+ homepage: https://github.com/asplake/link_header
58
+ licenses:
59
+ - MIT
60
+ metadata: {}
63
61
 
64
62
  post_install_message:
65
- rdoc_options:
66
- - --main
67
- - README.rdoc
63
+ rdoc_options: []
64
+
68
65
  require_paths:
69
66
  - lib
70
67
  required_ruby_version: !ruby/object:Gem::Requirement
71
68
  requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: "0"
75
- version:
69
+ - *id003
76
70
  required_rubygems_version: !ruby/object:Gem::Requirement
77
71
  requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: "0"
81
- version:
72
+ - *id003
82
73
  requirements: []
83
74
 
84
- rubyforge_project: link-header
85
- rubygems_version: 1.3.5
75
+ rubyforge_project:
76
+ rubygems_version: 2.0.2
86
77
  signing_key:
87
- specification_version: 3
78
+ specification_version: 4
88
79
  summary: Converts conforming link headers to and from text, LinkHeader objects and corresponding (JSON-friendly) Array representations, also HTML link elements.
89
80
  test_files:
90
81
  - test/test_helper.rb
@@ -1,13 +0,0 @@
1
- History.txt
2
- LICENSE
3
- Manifest.txt
4
- PostInstall.txt
5
- README.rdoc
6
- Rakefile
7
- example.rb
8
- lib/link_header.rb
9
- script/console
10
- script/destroy
11
- script/generate
12
- test/test_helper.rb
13
- test/test_link_header.rb
@@ -1 +0,0 @@
1
- link-header gem installed. See README.rdoc in the installation directory or at http://github.com/asplake/link_header.
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/link_header.rb'}"
9
- puts "Loading link_header gem"
10
- exec "#{irb} #{libs} --simple-prompt"
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)