Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Copy changes and more for the RubyGems.org move

  • Loading branch information...
commit 2b10076b4dba0319aa3d0fce635d9518e0485518 1 parent 0f3a968
@qrush qrush authored
Showing with 108 additions and 178 deletions.
  1. +2 −2 app/controllers/application_controller.rb
  2. +1 −9 app/helpers/application_helper.rb
  3. +1 −1  app/metal/hostess.rb
  4. +1 −1  app/models/rubygem.rb
  5. +4 −4 app/views/home/index.html.erb
  6. +2 −2 app/views/layouts/_feeds.html.erb
  7. +5 −5 app/views/layouts/application.html.erb
  8. +8 −8 app/views/pages/about.html.erb
  9. +21 −21 app/views/pages/api_docs.html.erb
  10. +4 −4 app/views/pages/download.html.erb
  11. +1 −1  app/views/pages/faq.html.erb
  12. +6 −10 app/views/pages/gem_docs.html.erb
  13. +1 −1  app/views/pages/migrate.html.erb
  14. +1 −1  config/environments/production.rb
  15. +1 −1  config/initializers/clearance.rb
  16. +8 −4 config/locales/en.yml
  17. +3 −3 gem/Rakefile
  18. +2 −2 gem/lib/rubygems/commands/migrate.rb
  19. +4 −4 public/404.html
  20. +4 −4 public/422.html
  21. +5 −5 public/500.html
  22. +0 −62 public/design.html
  23. +4 −4 public/maintenance/index.html
  24. +4 −4 public/opensearch.xml
  25. +3 −3 public/stylesheets/screen.css
  26. +6 −6 test/factories/linkset.rb
  27. +2 −2 test/shoulda_macros/security.rb
  28. +2 −2 test/unit/rubygem_test.rb
  29. +2 −2 test/unit/web_hook_test.rb
View
4 app/controllers/application_controller.rb
@@ -12,9 +12,9 @@ def authenticate_with_api_key
def verify_authenticated_user
if current_user.nil?
- render :text => "Access Denied. Please sign up for an account at http://gemcutter.org", :status => 401
+ render :text => t(:please_sign_up), :status => 401
elsif !current_user.email_confirmed
- render :text => "Access Denied. Please confirm your Gemcutter account.", :status => 403
+ render :text => t(:please_confirm), :status => 403
end
end
View
10 app/helpers/application_helper.rb
@@ -5,16 +5,8 @@ def content_for?(name)
instance_variable_get("@content_for_#{name}").present?
end
- def title
- "gemcutter"
- end
-
- def subtitle
- "awesome gem hosting"
- end
-
def page_title
- combo = "#{title} | #{subtitle}"
+ combo = "#{t :title} | #{t :subtitle}"
if @title
"#{@title} | #{combo}"
else
View
2  app/metal/hostess.rb
@@ -58,7 +58,7 @@ def serve_via_cf
/quick/latest_index
].each do |old_index|
head old_index do
- "Please upgrade your RubyGems, it's quite old: http://gemcutter.org/pages/download"
+ t(:please_upgrade)
end
get old_index do
View
2  app/models/rubygem.rb
@@ -73,7 +73,7 @@ def owned_by?(user)
def metrics_link(project_path)
project_url = CGI.escape(project_path)
- "http://devver.net/caliper/project?repo=#{project_url}"
+ "http://getcaliper.com/caliper/project?repo=#{project_url}"
end
def to_s
View
8 app/views/home/index.html.erb
@@ -14,7 +14,7 @@
<div class="learn">
<h3>learn</h3>
<dl>
- <dt><%= link_to "Install RubyGems 1.3.5", page_url("download") %></dt>
+ <dt><%= link_to "Install RubyGems 1.3.6", page_url("download") %></dt>
<dd>Ruby's premier packaging system</dd>
<dt><%= link_to "Browse the Docs", "http://docs.rubygems.org" %></dt>
<dd>The comprehensive guide on RubyGems</dd>
@@ -25,8 +25,8 @@
<div class="share">
<h3>share</h3>
<dl>
- <dt><code>gem install gemcutter</code></dt>
- <dd>Provides plugins to share your code</dd>
+ <dt><code>gem update --system</code></dt>
+ <dd>Update to the latest RubyGems version</dd>
<dt><code>gem build foo.gemspec</code></dt>
<dd>Build your gem</dd>
<dt><code>gem push foo-1.0.0.gem</code></dt>
@@ -37,7 +37,7 @@
</div>
<p class="pitch">
- <strong><%= link_to "Gemcutter", page_url("about") %></strong> is the Ruby community's gem hosting service.
+ <strong><%= link_to t(:title), page_url("about") %></strong> is the Ruby community's gem hosting service.
<strong><%= link_to "Instantly publish", page_url("gem_docs"), :anchor => "push" %></strong> your gems and install them.
<strong><%= link_to "Use the API", page_url("api_docs") %></strong> to interact and find out more information about available gems.
<strong><%= link_to "Become a contributor", "http://github.com/qrush/gemcutter" %></strong> and enhance the site with your own changes.
View
4 app/views/layouts/_feeds.html.erb
@@ -1,5 +1,5 @@
<% if signed_in? %>
- <%= atom_feed_link 'Gemcutter | Subscribed Gems', dashboard_url(:api_key => current_user.api_key, :format => :atom) %>
+ <%= atom_feed_link t(:feed_subscribed), dashboard_url(:api_key => current_user.api_key, :format => :atom) %>
<% end %>
-<%= atom_feed_link 'Gemcutter | Latest Gems', 'http://feeds.feedburner.com/gemcutter-latest' %>
+<%= atom_feed_link t(:feed_latest), 'http://feeds.feedburner.com/gemcutter-latest' %>
View
10 app/views/layouts/application.html.erb
@@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="fluid-icon" href="/apple-touch-icon.png"/>
- <link rel="search" type="application/opensearchdescription+xml" title="gemcutter" href="/opensearch.xml">
+ <link rel="search" type="application/opensearchdescription+xml" title="<%=t :title %>" href="/opensearch.xml">
<%= stylesheet_link_tag "reset", "960", "screen", "humanmsg", :cache => true %>
<!--[if IE 7]>
<%= stylesheet_link_tag "ie7" %>
@@ -17,10 +17,10 @@
<div id="flash_<%= name %>"><%= msg %></div>
<% end %>
<div class="container_12">
- <div class="prefix_1 grid_3 header">
- <h1><%= link_to "Gemcutter", root_url, :title => "Home" %></h1>
+ <div class="prefix_1 grid_4 header">
+ <h1><%= link_to t(:title), root_url, :title => "Home" %></h1>
</div>
- <div class="grid_7 suffix_1 nav">
+ <div class="grid_6 suffix_1 nav">
<ul>
<% if signed_in? %>
<li><%= link_to(image_tag(current_user.gravatar_url(:size => 24)), profile_url, :id => "user_gravatar") %></li>
@@ -65,7 +65,7 @@
<%= link_to "About", page_url("about") %>
<%= link_to "Blog", "http://update.gemcutter.org" %>
<%= link_to "Docs", page_url("docs") %>
- <%= link_to "Help", "http://help.rubygems.org" %>
+ <%= link_to "Help", t(:help_url) %>
<%= link_to "Status", "http://twitter.com/gemcutter" %>
<%= link_to "Code", "http://github.com/qrush/gemcutter" %>
<%= link_to "Discuss", "http://groups.google.com/group/gemcutter" %>
View
16 app/views/pages/about.html.erb
@@ -1,18 +1,18 @@
<% @title = "About" %>
<% @subtitle = "what this is" %>
<p>
- Welcome to Gemcutter, the Ruby community's new way to host gems. The purpose of this project is three-fold:
+ Welcome to <%=t :title %>, the Ruby community's gem hosting service. The purpose of this project is three-fold:
</p>
- <ol class="manual">
- <li>Provide a better API for dealing with gems</li>
- <li>Create more transparent and accessible project pages</li>
- <li>Enable the community to improve and enhance the site</li>
- </ol>
+<ol class="manual">
+ <li>Provide a better API for dealing with gems</li>
+ <li>Create more transparent and accessible project pages</li>
+ <li>Enable the community to improve and enhance the site</li>
+</ol>
<p>
-The project was started in April 2009 by <%= link_to "Nick Quaranto", "http://twitter.com/qrush" %>, and has since grown to include the contributions of over 15 Rubyists and thousands of gem downloads.
+The project was started in April 2009 by <%= link_to "Nick Quaranto", "http://twitter.com/qrush" %>, and has since grown to include the contributions of over <%= link_to "45 Rubyists", "http://twitter.com/gemcutter/contributors" %> and <%= link_to "millions of gem downloads", stats_url %>. As of the RubyGems 1.3.6 release, the site has been renamed to <%=t :title %> from Gemcutter to solidify the site's central role in the Ruby community.
</p>
<p>
-Although Gemcutter is not run by one specific company, plenty have helped us out so far. The current design of the site was sponsored by <%= link_to "Thoughtbot", "http://thoughtbot.com" %>. <%= link_to "GitHub", "http://github.com" %> has also been invaluable for helping us collaborate and share code easily.
+Although Gemcutter is not run by one specific company, plenty have helped us out so far. The current design of the site was sponsored by <%= link_to "Thoughtbot", "http://thoughtbot.com" %>. <%= link_to "GitHub", "http://github.com" %> has also been invaluable for helping us collaborate and share code easily. The site started on <%= link_to "Heroku", "http://heroku.com" %>, whose great service helped prove Gemcutter as a viable solution that the whole community could rely on.
</p>
<p>
Some insights into the technical aspects of the site: It's 100% Ruby. The main site is a <%= link_to "Rails", "http://rubyonrails.org" %> application, and the RubyGem serving is done through <%= link_to "Sinatra", "http://www.sinatrarb.com" %>. Gems are hosted on <%= link_to "Amazon S3", "http://aws.amazon.com/s3/" %>, and the time between publishing a new gem and having it ready for installation is minimal. For more info, <%= link_to "please check out the code", "http://github.com/qrush/gemcutter" %>, which is <%= link_to "MIT licensed", "http://www.opensource.org/licenses/mit-license.php" %> over at GitHub.
View
42 app/views/pages/api_docs.html.erb
@@ -1,7 +1,7 @@
<% @title = "API Docs" %>
<% @subtitle = "get your code on" %>
<p>
-The API is a work in progress, and <%= link_to "can use your help!", "http://github.com/qrush/gemcutter" %> The <%= link_to "gemcutter gem", rubygem_url("gemcutter") %> uses the API to push gems, add owners, and more. Check out all of the gem commands <%= link_to "here", page_url("gem_docs") %>.
+The API is a work in progress, and <%= link_to "can use your help!", "http://github.com/qrush/gemcutter" %> RubyGems itself and <%= link_to "gemcutter gem", rubygem_url("gemcutter") %> uses the API to push gems, add owners, and more. Check out all of the gem commands <%= link_to "here", page_url("gem_docs") %>.
</p>
<h4>API Methods</h4>
@@ -17,7 +17,7 @@ The API is a work in progress, and <%= link_to "can use your help!", "http://git
<h5 class="api">GET - /api/v1/gems/[name].(json|xml)</h5>
<p>
Returns some basic information about the given gem. For example, here's Rails:
- <pre><code>$ curl http://gemcutter.org/api/v1/gems/rails.json
+ <pre><code>$ curl <%=t :url %>/api/v1/gems/rails.json
{
"name": "rails",
@@ -28,8 +28,8 @@ The API is a work in progress, and <%= link_to "can use your help!", "http://git
"version_downloads": 2451,
"authors": "David Heinemeier Hansson",
"downloads": 134451,
- "project_uri": "http://gemcutter.org/gems/rails",
- "gem_uri": "http://gemcutter.org/gems/rails-2.3.5.gem",
+ "project_uri": "<%=t :url %>/gems/rails",
+ "gem_uri": "<%=t :url %>/gems/rails-2.3.5.gem",
"dependencies": {
"runtime": [
{
@@ -41,7 +41,7 @@ The API is a work in progress, and <%= link_to "can use your help!", "http://git
}
}
-$ curl http://gemcutter.org/api/v1/gems/rails.xml
+$ curl <%=t :url %>/api/v1/gems/rails.xml
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;rubygem&gt;
@@ -51,8 +51,8 @@ $ curl http://gemcutter.org/api/v1/gems/rails.xml
Rails is a framework for building web-application using CGI, FCGI, mod_ruby, or WEBrick
on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates.
&lt;/info&gt;
- &lt;gem-uri&gt;http://gemcutter.org/gems/rails-2.3.5.gem&lt;/gem-uri&gt;
- &lt;project-uri&gt;http://gemcutter.org/gems/rails&lt;/project-uri&gt;
+ &lt;gem-uri&gt;<%=t :url %>/gems/rails-2.3.5.gem&lt;/gem-uri&gt;
+ &lt;project-uri&gt;<%=t :url %>/gems/rails&lt;/project-uri&gt;
&lt;version&gt;2.3.5&lt;/version&gt;
&lt;authors&gt;David Heinemeier Hansson&lt;/authors&gt;
&lt;version-downloads type="integer"&gt;141363&lt;/version-downloads&gt;
@@ -71,9 +71,9 @@ $ curl http://gemcutter.org/api/v1/gems/rails.xml
<h5 class="api">GET - /api/v1/search.(json|xml)?query=[YOUR QUERY]</h5>
<p>
Submit a search to Gemcutter for active gems, just like a search query on the site. Returns an array of the XML or JSON representation of gems that match.
-<pre><code>$ curl 'http://gemcutter.org/api/v1/search.json?query=cucumber'
+<pre><code>$ curl '<%=t :url %>/api/v1/search.json?query=cucumber'
-$ curl 'http://gemcutter.org/api/v1/search.xml?query=cucumber'</code></pre>
+$ curl '<%=t :url %>/api/v1/search.xml?query=cucumber'</code></pre>
</p>
<h5 class="api">POST - /api/v1/gems</h5>
@@ -81,7 +81,7 @@ $ curl 'http://gemcutter.org/api/v1/search.xml?query=cucumber'</code></pre>
Submit a gem to Gemcutter. Must have your API key supplied and give a built RubyGem in the body of the request.
<pre><code>$ curl --data-binary @gemcutter-0.2.1.gem \
-H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
- http://gemcutter.org/api/v1/gems
+ <%=t :url %>/api/v1/gems
Successfully registered gem: gemcutter (0.2.1)</code></pre>
</p>
@@ -92,7 +92,7 @@ Successfully registered gem: gemcutter (0.2.1)</code></pre>
<p>
View all owners of a gem that you own. These users can all push to this gem.
<pre><code>$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
- http://gemcutter.org/api/v1/gems/gemcutter/owners.json
+ <%=t :url %>/api/v1/gems/gemcutter/owners.json
[
{
@@ -110,7 +110,7 @@ Successfully registered gem: gemcutter (0.2.1)</code></pre>
Add an owner to a RubyGem you own, giving that user permission to manage it.
<pre><code>$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-F 'email=josh@technicalpickles.com' \
- http://gemcutter.org/api/v1/gems/gemcutter/owners
+ <%=t :url %>/api/v1/gems/gemcutter/owners
Owner added successfully.
</code></pre>
@@ -121,7 +121,7 @@ Owner added successfully.
Remove a user's permission to manage a RubyGem you own.
<pre><code>$ curl -X DELETE -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-d "email=josh@technicalpickles.com" \
- http://gemcutter.org/api/v1/gems/gemcutter/owners
+ <%=t :url %>/api/v1/gems/gemcutter/owners
Owner removed successfully.
</code></pre>
@@ -133,7 +133,7 @@ Owner removed successfully.
<p>
List the webhooks registered under your account.
<pre><code>$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
- http://gemcutter.org/api/v1/web_hooks.json
+ <%=t :url %>/api/v1/web_hooks.json
{
"all gems": [
@@ -157,13 +157,13 @@ Owner removed successfully.
Create a webhook. Requires two parameters: <code>gem_name</code> and <code>url</code>. Specify <code>*</code> for the <code>gem_name</code> parameter to apply the hook globally to all gems.
<pre><code>$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-F 'gem_name=rails' -F 'url=http://example.com' \
- http://gemcutter.org/api/v1/web_hooks
+ <%=t :url %>/api/v1/web_hooks
Successfully created webhook for rails to http://example.com
$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-F 'gem_name=*' -F 'url=http://example.com' \
- http://gemcutter.org/api/v1/web_hooks
+ <%=t :url %>/api/v1/web_hooks
Successfully created webhook for all gems to http://example.com</code></pre>
</p>
@@ -173,13 +173,13 @@ Successfully created webhook for all gems to http://example.com</code></pre>
Remove a webhook. Requires two parameters: <code>gem_name</code> and <code>url</code>. Specify <code>*</code> for the <code>gem_name</code> parameter to apply the hook globally to all gems.
<pre><code>$ curl -X DELETE -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-d 'gem_name=rails' -d 'url=http://example.com' \
- http://gemcutter.org/api/v1/web_hooks/remove
+ <%=t :url %>/api/v1/web_hooks/remove
Successfully removed webhook for rails to http://example.com
$ curl -X DELETE -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-d 'gem_name=*' -d 'url=http://example.com' \
- http://gemcutter.org/api/v1/web_hooks/remove
+ <%=t :url %>/api/v1/web_hooks/remove
Successfully removed webhook for all gems to http://example.com</code></pre>
</p>
@@ -189,13 +189,13 @@ Successfully removed webhook for all gems to http://example.com</code></pre>
Test fire a webhook. This can be used to test out an endpoint at any time, for example when you're developing your application. Requires two parameters: <code>gem_name</code> and <code>url</code>. Specify <code>*</code> for the <code>gem_name</code> parameter to apply the hook globally to all gems.
<pre><code>$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-F 'gem_name=rails' -F 'url=http://example.com' \
- http://gemcutter.org/api/v1/web_hooks/fire
+ <%=t :url %>/api/v1/web_hooks/fire
Successfully deployed webhook for rails to http://example.com
$ curl -H 'Authorization:701243f217cdf23b1370c7b66b65ca97' \
-F 'gem_name=*' -F 'url=http://example.com' \
- http://gemcutter.org/api/v1/web_hooks/fire
+ <%=t :url %>/api/v1/web_hooks/fire
Successfully deployed webhook for all gems to http://example.com</code></pre>
</p>
@@ -206,7 +206,7 @@ Successfully deployed webhook for all gems to http://example.com</code></pre>
<p>
Retrieve your API key using HTTP basic auth.
<pre><code>$ curl -u "nick@gemcutter.org:schwwwwing" \
- http://gemcutter.org/api/v1/api_key
+ <%=t :url %>/api/v1/api_key
701243f217cdf23b1370c7b66b65ca97
</code></pre>
View
8 app/views/pages/download.html.erb
@@ -1,12 +1,12 @@
<% @title = "Download RubyGems" %>
-<% @subtitle = "v1.3.5" %>
+<% @subtitle = "v1.3.6" %>
<p>
RubyGems is a package management framework for Ruby. Download the latest version here:
</p>
<ol class="formats" id="formats">
- <li><%= link_to "tgz", "http://gemcutter-production.s3.amazonaws.com/rubygems/rubygems-1.3.5.tgz" %></li>
- <li><%= link_to "zip", "http://gemcutter-production.s3.amazonaws.com/rubygems/rubygems-1.3.5.zip" %></li>
- <li><%= link_to "gem", "http://gemcutter-production.s3.amazonaws.com/rubygems/rubygems-update-1.3.5.gem" %></li>
+ <li><%= link_to "tgz", "http://production.cf.rubygems.org/rubygems/rubygems-1.3.5.tgz" %></li>
+ <li><%= link_to "zip", "http://production.cf.rubygems.org/rubygems/rubygems-1.3.5.zip" %></li>
+ <li><%= link_to "gem", "http://production.cf.rubygems.org/rubygems/rubygems-update-1.3.5.gem" %></li>
</ol>
<p>
Or, to upgrade to the latest RubyGems:
View
2  app/views/pages/faq.html.erb
@@ -1,3 +1,3 @@
<% @title = "FAQ" %>
-<%= link_to "This page has been moved onto Gemcutter's new support site.", "http://help.rubygems.org/faqs/gemcutter/faq" %>
+<%= link_to "This page has been moved onto #{t(:title)}'s new support site.", "http://help.rubygems.org/faqs/gemcutter/faq" %>
View
16 app/views/pages/gem_docs.html.erb
@@ -1,22 +1,18 @@
<% @title = "Gem Docs" %>
-<% @subtitle = "how to use gemcutter" %>
+<% @subtitle = "how to use #{t(:title)}" %>
<p>
-For gem publishers, you'll want to install the gemcutter gem to get started: <code>gem install gemcutter</code> Once the gem is installed, several new <code>gem</code> commands are available to you, and they are explained in detail below.
+For gem publishers, you'll want to <%= link_to "first upgrade to the latest RubyGems version", page_url("download") %>. <strong>As of RubyGems 1.3.6, <code>gem push</code> and <code>gem owner</code> have been merged in, so you will only need to install the gemcutter gem for new commands like <code>gem webhook</code>.</strong>
</p>
-<p>
-The Gemcutter gem requires at least RubyGems 1.3.3 in order to work. Please upgrade by running <code>gem update --system</code> if you haven't already!
-</p>
-
<h4 id="push">gem push</h4>
<p>
-Publish your gems to the world with one command. All that's required is your very own Gemcutter account. The first time you push, you'll be asked to log in, and then Gemcutter will save your API key to <code>~/.gem/credentials</code>. Once your gem is pushed, it is processed, indexed, and uploaded to Amazon S3 behind the scenes and should be available for download within moments.
+Publish your gems to the world with one command. All that's required is your very own <%=t :title %> account. The first time you push, you'll be asked to log in, and then it will save your API key to <code>~/.gem/credentials</code>. Once your gem is pushed, it is processed, indexed, and uploaded to Amazon S3 behind the scenes and should be available for download within moments.
<pre><code>$ gem push pkg/gemcutter-0.1.3.gem
-Enter your Gemcutter credentials. Don't have an account yet? Create one at http://gemcutter.org/sign_up
+Enter your <%=t :title %> credentials. Don't have an account yet? Create one at <%=t :url %>/sign_up
Email: nick@quaran.to
Password:
Signed in. Your api key has been stored in ~/.gem/credentials
-Pushing gem to Gemcutter...
+Pushing gem to <%=t :title %>...
Successfully registered gem: gemcutter (0.1.3)</code></pre>
</p>
@@ -75,7 +71,7 @@ Successfully deployed webhook for rack to http://example.com</code></pre>
<h4 id="tumble">gem tumble</h4>
<p>
-This command has been deprecated since <%= link_to "Gemcutter is now the official gem source.", "http://update.gemcutter.org/2009/10/26/transition.html" %>
+This command has been deprecated since <%= link_to "#{t(:title)} is now the official gem source.", "http://update.gemcutter.org/2009/10/26/transition.html" %>
</p>
<h4 id="migrate">gem migrate</h4>
View
2  app/views/pages/migrate.html.erb
@@ -5,5 +5,5 @@
<code>gem migrate</code> has been deprecated, all of the RubyForge accounts and ownerships have been transferred over to Gemcutter.
</p>
<p>
- If you're having problems with your gems and pushing, feel free to email <code>nick@gemcutter.org</code> about it.
+If you're having problems with your gems and pushing, <%= link_to "please open a support request", t(:help_url) %>
</p>
View
2  config/environments/production.rb
@@ -6,4 +6,4 @@
require Rails.root.join("config", "secret") if Rails.root.join("config", "secret.rb").file?
-HOST = "gemcutter.org"
+HOST = "rubygems.org"
View
2  config/initializers/clearance.rb
@@ -3,4 +3,4 @@
require 'clearance/sessions_controller'
require 'clearance/users_controller'
-ClearanceMailer::DO_NOT_REPLY = "donotreply@gemcutter.org"
+ClearanceMailer::DO_NOT_REPLY = "donotreply@rubygems.org"
View
12 config/locales/en.yml
@@ -1,5 +1,9 @@
-# Sample localization file for English. Add more files in this directory for other locales.
-# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
-
en:
- hello: "Hello world"
+ title: "RubyGems.org"
+ subtitle: "your community gem host"
+ url: "http://rubygems.org"
+ please_sign_up: "Access Denied. Please sign up for an account at http://rubygems.org"
+ please_confirm: "Access Denied. Please confirm your RubyGems.org account."
+ please_upgrade: "Please upgrade your RubyGems, it's quite old: http://rubygems.org/pages/download"
+ feed_subscribed: "RubyGems.org | Subscribed Gems"
+ feed_latest: "RubyGems.org | Latest Gems"
View
6 gem/Rakefile
@@ -14,10 +14,10 @@ begin
Jeweler::Tasks.new do |gem|
gem.name = "gemcutter"
gem.version = "0.4.0.pre"
- gem.summary = "Commands to interact with gemcutter.org"
- gem.description = "Adds several commands to RubyGems for managing gems and more on Gemcutter.org."
+ gem.summary = "Commands to interact with RubyGems.org"
+ gem.description = "Adds several commands to RubyGems for managing gems and more on RubyGems.org."
gem.email = "nick@quaran.to"
- gem.homepage = "http://gemcutter.org"
+ gem.homepage = "http://rubygems.org"
gem.authors = ["Nick Quaranto"]
gem.files = FileList["lib/rubygems_plugin.rb",
"lib/gemcutter.rb",
View
4 gem/lib/rubygems/commands/migrate.rb
@@ -1,6 +1,6 @@
class Gem::Commands::MigrateCommand < Gem::Command
def description
- 'Deprecate method for migrating a gem you own from Rubyforge to Gemcutter.'
+ 'Deprecated method for migrating a gem you own from Rubyforge to Gemcutter.'
end
def initialize
@@ -9,6 +9,6 @@ def initialize
def execute
say "This command is deprecated, RubyForge accounts/ownerships have been transferred to Gemcutter."
- say "Please see http://gemcutter.org/pages/migrate for more information"
+ say "Please see http://rubygems.org/pages/migrate for more information"
end
end
View
8 public/404.html
@@ -10,15 +10,15 @@
<!--[if IE 7]>
<link href="/stylesheets/ie7.css" media="screen" rel="stylesheet" type="text/css" />
<![endif]-->
- <title>page not found | gemcutter | awesome gem hosting</title>
+ <title>page not found | RubyGems.org</title>
</head>
<body>
<div class="container_12">
- <div class="prefix_1 grid_3 header">
- <h1><a href="/" title="Home">Gemcutter</a></h1>
+ <div class="prefix_1 grid_4 header">
+ <h1><a href="/" title="Home">RubyGems.org</a></h1>
</div>
- <div class="grid_7 suffix_1 nav">
+ <div class="grid_6 suffix_1 nav">
<ul>
<li><a href="/gems">all gems</a></li>
<li><a href="/sign_in">sign in</a></li>
View
8 public/422.html
@@ -10,15 +10,15 @@
<!--[if IE 7]>
<link href="/stylesheets/ie7.css" media="screen" rel="stylesheet" type="text/css" />
<![endif]-->
- <title>change rejected | gemcutter | awesome gem hosting</title>
+ <title>change rejected | RubyGems.org</title>
</head>
<body>
<div class="container_12">
- <div class="prefix_1 grid_3 header">
- <h1><a href="/" title="Home">Gemcutter</a></h1>
+ <div class="prefix_1 grid_4 header">
+ <h1><a href="/" title="Home">RubyGems.org</a></h1>
</div>
- <div class="grid_7 suffix_1 nav">
+ <div class="grid_6 suffix_1 nav">
<ul>
<li><a href="/gems">all gems</a></li>
<li><a href="/sign_in">sign in</a></li>
View
10 public/500.html
@@ -10,15 +10,15 @@
<!--[if IE 7]>
<link href="/stylesheets/ie7.css" media="screen" rel="stylesheet" type="text/css" />
<![endif]-->
- <title>server error | gemcutter | awesome gem hosting</title>
+ <title>server error | RubyGems.org</title>
</head>
<body>
<div class="container_12">
- <div class="prefix_1 grid_3 header">
- <h1><a href="/" title="Home">Gemcutter</a></h1>
+ <div class="prefix_1 grid_4 header">
+ <h1><a href="/" title="Home">RubyGems.org</a></h1>
</div>
- <div class="grid_7 suffix_1 nav">
+ <div class="grid_6 suffix_1 nav">
<ul>
<li><a href="/gems">all gems</a></li>
<li><a href="/sign_in">sign in</a></li>
@@ -37,7 +37,7 @@
<h2>Server error.</h2>
<h3>No Stairway, denied!</h3>
</div>
- <p>Looks like something blew up on our end. We've been alerted of the problem, but feel free to open up an <a href="http://github.com/qrush/gemcutter/issues">issue</a> if you want it fixed faster.</p>
+ <p>Looks like something blew up on our end. We've been alerted of the problem, but feel free to open up an <a href="http://help.rubygems.org">issue</a> if you want it fixed faster.</p>
</div>
</div>
<div class="prefix_1 grid_10 suffix_1 footer">
View
62 public/design.html
@@ -1,62 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" href="/stylesheets/screen.css" type="text/css" media="screen">
- <title>Gemcutter</title>
- </head>
- <body>
- <div class="header">
- <h1><a href="design.html">Gemcutter</a></h1>
- <ul>
- <li>
- <a href="#">
- login
- </a>
- </li>
- <li>
- <a href="#">
- register
- </a>
- </li>
- </ul>
- <form action="design.html">
- <div class="text_field">
- <input type="text" name="search" value="Search gems&hellip;" />
- </div>
- <div class="submit_field">
- <input type="submit" name="submit" value="GO" />
- </div>
- </form>
- </div>
- <div class="section">
- <p>
- <strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</strong> Nulla tellus ante, semper imperdiet accumsan vehicula, euismod ut ligula. Quisque felis velit, lobortis in suscipit sed, suscipit ut sapien. Donec non eros et nisl condimentum iaculis. Fusce ac elementum justo.
- </p>
- <div class="info">
- <ol class="instructions">
- <li>
- <strong>Ready</strong>
- &raquo;
- <span>gem install gemcutter</span>
- </li>
- <li>
- <strong>Set</strong>
- &raquo;
- <span>gem tumble</span>
- </li>
- <li>
- <strong>Go</strong>
- &raquo;
- <span>gem push yourgem-0.0.1.gem</span>
- </li>
- </ol>
- <p>
- <strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</strong> Nulla tellus ante, semper imperdiet accumsan vehicula, euismod ut ligula. Quisque felis velit, lobortis in suscipit sed, suscipit ut sapien. Donec non eros et nisl condimentum iaculis. Fusce ac elementum justo.
- </p>
- </div>
- </div>
- <div class="footer">
- </div>
- </body>
-</html>
View
8 public/maintenance/index.html
@@ -10,14 +10,14 @@
<!--[if IE 7]>
<link href="/stylesheets/ie7.css" media="screen" rel="stylesheet" type="text/css" />
<![endif]-->
- <title>under maintenance | gemcutter | awesome gem hosting</title>
+ <title>under maintenance | RubyGems.org</title>
</head>
<body>
<div class="container_12">
- <div class="prefix_1 grid_3 header">
- <h1><a href="/" title="Home">Gemcutter</a></h1>
+ <div class="prefix_1 grid_4 header">
+ <h1><a href="/" title="Home">RubyGems.org</a></h1>
</div>
- <div class="grid_7 suffix_1 nav">
+ <div class="grid_6 suffix_1 nav">
<br />
<br />
<br />
View
8 public/opensearch.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
- <ShortName>gemcutter</ShortName>
- <Description>gemcutter - awesome gem hosting</Description>
+ <ShortName>RubyGems.org</ShortName>
+ <Description>RubyGems.org - your community gem host</Description>
<InputEncoding>UTF-8</InputEncoding>
- <Image width="16" height="16" type="image/x-icon">http://gemcutter.org/favicon.ico</Image>
- <Url type="text/html" method="get" template="http://gemcutter.org/search?query={searchTerms}"></Url>
+ <Image width="16" height="16" type="image/x-icon">http://rubygems.org/favicon.ico</Image>
+ <Url type="text/html" method="get" template="http://rubygems.org/search?query={searchTerms}"></Url>
</OpenSearchDescription>
View
6 public/stylesheets/screen.css
@@ -88,11 +88,11 @@ body {
.header h1 a {
display: block;
- width: 214px;
- height: 50px;
+ width: 280px;
+ height: 51px;
text-indent: -9999px;
text-decoration: none;
- background: url(/images/logo.png)
+ background: url(/images/rubygems.png)
}
.nav {
View
12 test/factories/linkset.rb
@@ -1,8 +1,8 @@
Factory.define :linkset do |linkset|
- linkset.home { 'http://gemcutter.org' }
- linkset.wiki { 'http://gemcutter.org' }
- linkset.docs { 'http://gemcutter.org' }
- linkset.mail { 'http://gemcutter.org' }
- linkset.code { 'http://gemcutter.org' }
- linkset.bugs { 'http://gemcutter.org' }
+ linkset.home { 'http://example.com' }
+ linkset.wiki { 'http://example.com' }
+ linkset.docs { 'http://example.com' }
+ linkset.mail { 'http://example.com' }
+ linkset.code { 'http://example.com' }
+ linkset.bugs { 'http://example.com' }
end
View
4 test/shoulda_macros/security.rb
@@ -6,7 +6,7 @@ def self.should_forbid_access_when(action, &block)
end
should "deny access" do
assert_response 401
- assert_match "Access Denied. Please sign up for an account at http://gemcutter.org", @response.body
+ assert_match "Access Denied. Please sign up for an account at http://rubygems.org", @response.body
end
end
@@ -18,7 +18,7 @@ def self.should_forbid_access_when(action, &block)
end
should "deny access" do
assert_response 403
- assert_match "Access Denied. Please confirm your Gemcutter account.", @response.body
+ assert_match "Access Denied. Please confirm your RubyGems.org account.", @response.body
end
end
end
View
4 test/unit/rubygem_test.rb
@@ -216,12 +216,12 @@ class RubygemTest < ActiveSupport::TestCase
should "return valid metric URL for #metrics_link" do
@rubygem.save
- assert_match /http:\/\/devver\.net\/caliper\/project\?repo=/, @rubygem.metrics_link('http://gemcutter.org/gems/fake_gem')
+ assert_match /http:\/\/getcaliper\.com\/caliper\/project\?repo=/, @rubygem.metrics_link('http://rubygems.org/gems/fake_gem')
end
should "return CGI escaped metric URL for #metrics_link" do
@rubygem.save
- assert_match /http%3A%2F%2Fgemcutter.org%2Fgems%2Ffake_gem/, @rubygem.metrics_link('http://gemcutter.org/gems/fake_gem')
+ assert_match /http%3A%2F%2Frubygems.org%2Fgems%2Ffake_gem/, @rubygem.metrics_link('http://rubygems.org/gems/fake_gem')
end
should "return name with downloads for #with_downloads" do
View
4 test/unit/web_hook_test.rb
@@ -166,7 +166,7 @@ class WebHookTest < ActiveSupport::TestCase
:url => @url)
stub_request(:post, @url)
- @hook.fire('gemcutter.org', @rubygem, @version, false)
+ @hook.fire('rubygems.org', @rubygem, @version, false)
end
should "POST to URL with payload" do
@@ -204,7 +204,7 @@ class WebHookTest < ActiveSupport::TestCase
Net::ProtocolError].each_with_index do |exception, index|
stub_request(:post, @url).to_raise(exception)
- @hook.fire('gemcutter.org', @rubygem, @version, false)
+ @hook.fire('rubygems.org', @rubygem, @version, false)
assert_equal index + 1, @hook.failure_count
assert @hook.global?
Please sign in to comment.
Something went wrong with that request. Please try again.