Browse files

Prepare for 1.0.2

  • Loading branch information...
1 parent 0b78aa7 commit 540b750c916f818c79f935c930d44bdead16c5ad @iain committed Sep 11, 2011
Showing with 28 additions and 65 deletions.
  1. +5 −1 .gitignore
  2. +4 −0 Gemfile
  3. +6 −5 README.rdoc
  4. +2 −17 Rakefile
  5. +0 −1 VERSION
  6. +11 −41 http_accept_language.gemspec
View
6 .gitignore
@@ -1 +1,5 @@
-pkg
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
+.rvmrc
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in http_accept_language.gemspec
+gemspec
View
11 README.rdoc
@@ -16,14 +16,14 @@ See also: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
class SomeController < ApplicationController
def some_action
-
+
request.user_preferred_languages
# => [ 'nl-NL', 'nl-BE', 'nl', 'en-US', 'en' ]
-
+
available = %w{en en-US nl-BE}
request.preferred_language_from(available)
# => 'nl-BE'
-
+
request.user_preferred_languages
# => [ 'en-GB']
available = %w{en-US}
@@ -34,11 +34,12 @@ See also: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
== Installation
-Install the gem <tt>http_accept_language</tt>, require it in your Rails app.
+Install the gem +http_accept_language+, require it in your Rails app.
== Changelog
+* 2011-09-11: 1.0.2 release, still works appearantly
* 2010-01-05: Gem release
* 2009-03-12: Rails 2.3 compatible
-Copyright (c) 2008-2010 Iain Hecker, released under the MIT license
+Copyright (c) 2008-2011 Iain Hecker, released under the MIT license
View
19 Rakefile
@@ -1,19 +1,4 @@
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "http_accept_language"
- gem.summary = %Q{Parse the HTTP Accept Language Header}
- gem.description = %Q{Find out which locale the user preferes by reading the languages they specified in their browser}
- gem.email = "iain@iain.nl"
- gem.homepage = "http://github.com/iain/http_accept_language"
- gem.authors = ["Iain Hecker"]
- end
- Jeweler::GemcutterTasks.new
-rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
-end
+require "bundler/gem_tasks"
require 'rake/testtask'
desc 'Test the http_accept_language plugin.'
@@ -32,6 +17,6 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'HttpAcceptLanguage'
rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
View
1 VERSION
@@ -1 +0,0 @@
-1.0.1
View
52 http_accept_language.gemspec
@@ -1,47 +1,17 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
-
Gem::Specification.new do |s|
- s.name = %q{http_accept_language}
- s.version = "1.0.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Iain Hecker"]
- s.date = %q{2010-02-25}
+ s.name = "http_accept_language"
+ s.version = '1.0.2'
+ s.authors = ["iain"]
+ s.email = ["iain@iain.nl"]
+ s.homepage = "https://github.com/iain/http_accept_language"
+ s.summary = %q{Find out which locale the user preferes by reading the languages they specified in their browser}
s.description = %q{Find out which locale the user preferes by reading the languages they specified in their browser}
- s.email = %q{iain@iain.nl}
- s.extra_rdoc_files = [
- "README.rdoc"
- ]
- s.files = [
- ".gitignore",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "http_accept_language.gemspec",
- "lib/http_accept_language.rb",
- "rails/init.rb",
- "test/http_accept_language_test.rb"
- ]
- s.homepage = %q{http://github.com/iain/http_accept_language}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
- s.summary = %q{Parse the HTTP Accept Language Header}
- s.test_files = [
- "test/http_accept_language_test.rb"
- ]
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ s.rubyforge_project = "http_accept_language"
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
end
-

0 comments on commit 540b750

Please sign in to comment.