Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rubygems/rubygems.org
...
head fork: rubygems/rubygems.org
  • 17 commits
  • 28 files changed
  • 0 commit comments
  • 2 contributors
Showing with 21 additions and 22 deletions.
  1. +14 −15 Gemfile.lock
  2. +7 −7 app/helpers/chart_helper.rb
  3. BIN  vendor/cache/factory_girl-3.4.0.gem
  4. BIN  vendor/cache/factory_girl-3.5.0.gem
  5. BIN  vendor/cache/factory_girl_rails-3.4.0.gem
  6. BIN  vendor/cache/factory_girl_rails-3.5.0.gem
  7. BIN  vendor/cache/gherkin-2.11.0.gem
  8. BIN  vendor/cache/gherkin-2.11.1.gem
  9. BIN  vendor/cache/guard-1.1.1.gem
  10. BIN  vendor/cache/guard-1.2.1.gem
  11. BIN  vendor/cache/guard-cucumber-1.1.0.gem
  12. BIN  vendor/cache/guard-cucumber-1.2.0.gem
  13. BIN  vendor/cache/journey-1.0.3.gem
  14. BIN  vendor/cache/journey-1.0.4.gem
  15. BIN  vendor/cache/listen-0.4.5.gem
  16. BIN  vendor/cache/listen-0.4.6.gem
  17. BIN  vendor/cache/mime-types-1.18.gem
  18. BIN  vendor/cache/mime-types-1.19.gem
  19. BIN  vendor/cache/nokogiri-1.5.4.gem
  20. BIN  vendor/cache/nokogiri-1.5.5.gem
  21. BIN  vendor/cache/pg-0.13.2.gem
  22. BIN  vendor/cache/pg-0.14.0.gem
  23. BIN  vendor/cache/rubyzip-0.9.8.gem
  24. BIN  vendor/cache/rubyzip-0.9.9.gem
  25. BIN  vendor/cache/selenium-webdriver-2.22.2.gem
  26. BIN  vendor/cache/selenium-webdriver-2.24.0.gem
  27. BIN  vendor/cache/thor-0.15.2.gem
  28. BIN  vendor/cache/thor-0.15.3.gem
View
29 Gemfile.lock
@@ -78,10 +78,10 @@ GEM
dynamic_form (1.1.4)
erubis (2.7.0)
excon (0.13.4)
- factory_girl (3.4.0)
+ factory_girl (3.5.0)
activesupport (>= 3.0.0)
- factory_girl_rails (3.4.0)
- factory_girl (~> 3.4.0)
+ factory_girl_rails (3.5.0)
+ factory_girl (~> 3.5.0)
railties (>= 3.0.0)
ffi (1.0.11)
fog (1.3.1)
@@ -96,23 +96,23 @@ GEM
ruby-hmac
formatador (0.2.3)
gchartrb (0.8)
- gherkin (2.11.0)
+ gherkin (2.11.1)
json (>= 1.4.6)
gravtastic (3.2.6)
- guard (1.1.1)
+ guard (1.2.1)
listen (>= 0.4.2)
thor (>= 0.14.6)
guard-bundler (1.0.0)
bundler (~> 1.0)
guard (~> 1.1)
- guard-cucumber (1.1.0)
+ guard-cucumber (1.2.0)
cucumber (>= 1.2.0)
guard (>= 1.1.0)
high_voltage (1.1.1)
highline (1.6.13)
hike (1.2.1)
i18n (0.6.0)
- journey (1.0.3)
+ journey (1.0.4)
jquery-rails (1.0.19)
railties (~> 3.0)
thor (~> 0.14)
@@ -121,7 +121,7 @@ GEM
addressable (~> 2.2.6)
libwebsocket (0.1.3)
addressable
- listen (0.4.5)
+ listen (0.4.6)
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
@@ -130,7 +130,7 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.7.1)
- mime-types (1.18)
+ mime-types (1.19)
multi_json (1.3.6)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
@@ -143,10 +143,10 @@ GEM
newrelic_rpm (~> 3.0)
redis (< 4.0)
newrelic_rpm (3.4.0)
- nokogiri (1.5.4)
+ nokogiri (1.5.5)
paul_revere (1.0)
rails (~> 3.0)
- pg (0.13.2)
+ pg (0.14.0)
polyglot (0.3.3)
pry (0.9.9.6)
coderay (~> 1.0.5)
@@ -196,11 +196,10 @@ GEM
rr (1.0.4)
ruby-graphviz (0.9.21)
ruby-hmac (0.4.0)
- rubyzip (0.9.8)
+ rubyzip (0.9.9)
rvm (1.9.2)
- selenium-webdriver (2.22.2)
+ selenium-webdriver (2.24.0)
childprocess (>= 0.2.5)
- ffi (~> 1.0)
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
@@ -218,7 +217,7 @@ GEM
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
- thor (0.15.2)
+ thor (0.15.3)
tilt (1.3.3)
timecop (0.3.5)
treetop (1.4.10)
View
14 app/helpers/chart_helper.rb
@@ -26,7 +26,7 @@ def downloads_over_time_chart(versions, days_ago = 90)
range = [0, max]
lc.axis :y, :range => range
- lc.axis :x, :labels => downloads_over_time_labels
+ lc.axis :x, :labels => downloads_over_time_labels(days_ago)
lc.grid :x_step => 100.0 / 12.0,
:y_step => 100.0 / 15.0,
:length_segment => 1,
@@ -34,9 +34,9 @@ def downloads_over_time_chart(versions, days_ago = 90)
end
image_tag(chart.to_url(:chf => 'bg,s,FFFFFF00'), :alt => 'title')
end
-
- def downloads_over_time_labels
- [60, 40, 20, 0].map { |t| t.days.ago.to_date }
+
+ def downloads_over_time_labels(days_ago = 90)
+ [days_ago, days_ago*2/3, days_ago/3, 0].map { |t| t.days.ago.to_date }
end
def downloads_over_time(versions, days_ago = 90)
@@ -49,9 +49,9 @@ def downloads_over_time(versions, days_ago = 90)
counts << count
end
{
- :slug => version.slug,
- :counts => counts.reverse,
- :color => color_from_cycle(idx, versions.size)
+ :slug => version.slug,
+ :counts => counts.reverse,
+ :color => color_from_cycle(idx, versions.size)
}
end
end
View
BIN  vendor/cache/factory_girl-3.4.0.gem
Binary file not shown
View
BIN  vendor/cache/factory_girl-3.5.0.gem
Binary file not shown
View
BIN  vendor/cache/factory_girl_rails-3.4.0.gem
Binary file not shown
View
BIN  vendor/cache/factory_girl_rails-3.5.0.gem
Binary file not shown
View
BIN  vendor/cache/gherkin-2.11.0.gem
Binary file not shown
View
BIN  vendor/cache/gherkin-2.11.1.gem
Binary file not shown
View
BIN  vendor/cache/guard-1.1.1.gem
Binary file not shown
View
BIN  vendor/cache/guard-1.2.1.gem
Binary file not shown
View
BIN  vendor/cache/guard-cucumber-1.1.0.gem
Binary file not shown
View
BIN  vendor/cache/guard-cucumber-1.2.0.gem
Binary file not shown
View
BIN  vendor/cache/journey-1.0.3.gem
Binary file not shown
View
BIN  vendor/cache/journey-1.0.4.gem
Binary file not shown
View
BIN  vendor/cache/listen-0.4.5.gem
Binary file not shown
View
BIN  vendor/cache/listen-0.4.6.gem
Binary file not shown
View
BIN  vendor/cache/mime-types-1.18.gem
Binary file not shown
View
BIN  vendor/cache/mime-types-1.19.gem
Binary file not shown
View
BIN  vendor/cache/nokogiri-1.5.4.gem
Binary file not shown
View
BIN  vendor/cache/nokogiri-1.5.5.gem
Binary file not shown
View
BIN  vendor/cache/pg-0.13.2.gem
Binary file not shown
View
BIN  vendor/cache/pg-0.14.0.gem
Binary file not shown
View
BIN  vendor/cache/rubyzip-0.9.8.gem
Binary file not shown
View
BIN  vendor/cache/rubyzip-0.9.9.gem
Binary file not shown
View
BIN  vendor/cache/selenium-webdriver-2.22.2.gem
Binary file not shown
View
BIN  vendor/cache/selenium-webdriver-2.24.0.gem
Binary file not shown
View
BIN  vendor/cache/thor-0.15.2.gem
Binary file not shown
View
BIN  vendor/cache/thor-0.15.3.gem
Binary file not shown

No commit comments for this range

Something went wrong with that request. Please try again.