Coder Social home page Coder Social logo

cocoapods.org's Introduction

cocoapods.org

Setup

Ideally this website should be run through a sub-folder of Strata.

  1. Clone a copy of Strata and run rake clone. Or if you just want this website rake clone["cocoapods.org"].
  2. Run rake db:migrate in Strata to update the database to the latest version.
  3. Add a .env file with in CocoaPods.org ENVIRONMENT variables, see sample.env.

Alternatively, direct set up:

  1. git clone [email protected]:CocoaPods/cocoapods.org.git && cd cocoapods.org
  2. rake bootstrap

Running

  1. bundle exec rake serve

The server will run on http://localhost:3000

Things to note

  • Large scale design changes should be discussed in a new issue first.
  • By default the server will use the production search database in a development environment. This is so you don't have to run your own instance of search.

What is this?

This app is a Sinatra app. We use slim as a templating language, and flounder as our ORM against the trunk database.

A lot of the logic around search is based on work from @floere in picky. All of the CocoaPods-specific parts of search are in search.config.js.

cocoapods.org's People

Contributors

4brunu avatar alisoftware avatar alloy avatar amorde avatar arr00 avatar ashfurrow avatar bbodenmiller avatar charliewilliams avatar clayallsopp avatar drazisil avatar endocrimes avatar esttorhe avatar fabiopelosin avatar floere avatar getaaron avatar haroenv avatar igor-makarov avatar joshkalpin avatar kleinlieu avatar kylef avatar modocache avatar mrackwitz avatar neonichu avatar nwest avatar orta avatar schukin avatar segiddins avatar taveras avatar tomdiggle avatar yas375 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocoapods.org's Issues

Platform selector should not disappear when selecting a platform that has no results

This creates a very poor user experience if a visitor selects a platform that has no search results for the chosen platform, but did for the previous one.

I suggest we keep the platform selector above the search results as all times.

Another suggestion in relation to this is to display the number of pods found for each of the platforms inside the actual platform selector. Could improve usability.

SEARCH text field on cocoa pods.org not always obvious that it's a text field

This is from someone who has not been to the cocoapods.org page before.

I looked around the page and I must have clicked somewhere because then when I wanted to do a search of cocoa pods I scrolled back up to the top of the page and there was no visual clue that the red "SEARCH_" text was actually an edit text field. After looking around for an editable search field I tried clicking on the red "SEARCH_" text.

I think there needs to be an extra visual clue that the search field is an editable text field. Is cocoa pods trying to mimic iOS 7 because if so that could be my problem as I don't have a device with iOS 7.

[Search] Inserting : only works at the end of a string

If you insert a : before the end of a string it won't be included and you have to hit enter before it is.

Step's to reproduce:

  1. Go to http://cocoapods.org.
  2. Enter OPENSSL into the search.
  3. Move your cursor to the start and type PODS:.

Expected behaviour:

My search should be for PODS:OPENSSL showing just OpenSSL's result.

Actual Behaviour

SORRY. NO PODS FOUND.

Example:

2014-03-16 18_54_42

Darker search background doesn't load sometimes

Sometimes the darker background doesn't load and there is un-readable text:

screen shot 2014-03-16 at 16 54 47

I cannot reproduce it all the time. Looks like some kind of timing issue. Perhaps the results loads before the style? Is that possible?

Buggy search behavior when search term includes a plus

Try searching for "Parse+NSCoding". As soon as you enter the plus key it removes it from the query, causing it to fail. Also, searching for "NSCoding" alone should return this spec, but it does not.

Able to replicate on:
Safari 6.1.1 on OSX 10.8.5
Chrome 32.0.1700 on Windows 7 SP1
IE 11.0.9600 on Windows 7 SP1

Suggested dependency should not lock minor version

The suggested dependency locks the minor version:

pod 'AFNetworking', '~> 2.2.0'

This is not desirable because, according to SemVer, the minor version should be backwards compatible. Therefore it would be more appropriate to lock only the major version.

pod 'AFNetworking', '~> 2.2'

Keep labels to filter

When I select a label to filter a category (name, author, summary...), all the labels get lost.

Wonder if it could be like the OS labels, just highlighting the clicked label.

beta.cocoapods.org

Very good work guys. The new website will be awesome. Only two suggestions while you are developing or in beta:

  • expose the libraries version number on search result
  • expose download number or number of people are using library (if it's possible). This is useful for new people who are looking to decide which lib is best to use.

Don't know if github issue is the right place for these suggestions.
bye
marco

CocoaPods logo is offset when active

The non-active image needs to be offset the same amount.
The edges of the text feels harder too, perhaps an issue with scaling at some point?

Firefox

The search field is slightly broken in Firefox (works but hint is not displayed, and neither is the X to clear the field).

Problems with Chrome

  • The X button when searching doesn't work in Chrome. Just try to search something, then click the X button, and it doesn't work. Works in Safari. There's already an issue with Firefox.
  • Suddenly, links stop working and I have to reset the website. When I do a couple of searches, links stop responding, when I click in any button or link it just doesn't work and I have to reload the website. I know that is a little weird, I'll try to reproduce it with more computers.

The search sections should not display duplicates

The PODS WITH SUMMARY section often displays many of the results included in the PODS NAMED section. This creates noise which doesn’t allow to see easily if there is any pod not matched by the name which might be interesting.

An implementation could be to define an order of importance (the current vertical ordering would do fine) for the various sections and just don’t display a pod if it was already included in a more important section.

New Design Feedback

Just throwing in my 2¢ about the new CocoaPods.org:

In general, I don’t like your new design for the site. I think that the color scheme is too glaring. The current color scheme on Cocoadocs, reminiscent of the old CocoaPods.org, is much better.

In addition, the new logo is horrible. Not only does it not suggest “CocoaPods”, it also looks too small, too blurry, and annoyingly off-balance. I liked the old logo better (as currently visible on the CocoaPods org page). If you want to improve the existing logo instead of changing back to the old one, I would get rid of the bright-red background behind the “Cocoa” part of the logo, leaving everything else as-is.

On the other hand, I really like the design and functionality of the new site’s search box. I couldn’t have come up with anything better myself. Excellent!

GRMustache 7.0.0 documentation won't generate

Hello,

http://cocoadocs.org/docsets/GRMustache/7.0.0 returns a 404 error, even after clicking the regenerate button.

I have myself generated GRMustache reference using the last appledoc installed by homebrew, without any trouble: http://groue.github.io/GRMustache/Reference/

The cocoapods doc for v6.9.2 is online at http://cocoadocs.org/docsets/GRMustache/6.9.2/, so I guess I have introduced changes to the doc that your own appledoc doesn't like. Please ask for further information if you need any.

Search 1.2

search1

Which has a slot machine like cycle through a shuffled hardcoded list of pods ( we once generated a list of the most popular via search results, so we could have the top 15 in there ( plus any of ours cause I'm all into self promotion ) )

search2

Ideally we want to make some more affordances for obviousness, there's a few options:

  • Add blinking underscore
  • always have a blinking bar on the left edge ( right now deselecting gets rid of that entirely )
  • Add a search loupe before the cycling pod names

I have no major preference, and would be open to trying any and then re can try another and get a feel for it.

FWIW the original mockups had a loupe.
screen shot 2014-04-16 at 10 29 32 am

Make changes to highlighted semantic versioning in search results

Eloy D. orta: I’ve been thinking about the ~> 0.0 thing and I’m not sure it’s a good idea.
Because until v1 semver specifically states you cannot expect backward compatibility.
orta If we do '> x.y.z', we might as weel just do 'x.y.z'
Eloy D. No, bugfixes are still bugfixes.
orta so you think 1.0.0+ gets '
> x.y", but otherwise we do 'x.y.z' ?
Eloy D. Ideally we would do ~> x.y.z if the version is < 1.0.0. If the version is >= 1.0.0 then it makes sense to do ~> 1.0.

What does 'Either OS' do?

On the new beta we have four options:

  • Either OS
  • iOS & OSX
  • iOS
  • OSX

What does 'Either OSX' do? I guessed that it meant "Any OS" ? . . 'Either OS' seems redundant with 'iOS & OSX'

Badges

Apparently NPM has some new cool badges, we should catchup. Badges are like emoji and are the foundation of good software.

screen shot 2013-12-15 at 13 32 30

I vote for something along the following lines

cocoapodsbadge

The install and docs button are separated static images were only the link is customized. Install links to a page in cocoapods.org which features with a big font and allows to copy the following line:

pod 'ObjectiveSugar', '~> 1.0.0'

The sketch file used for the preview is available here: http://cl.ly/2l0W1c2s1B2w.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.