<commit_before>= AppStore

== DESCRIPTION
AppStore is an unofficial implementation of the Apple AppStore API.
It provides way to search for applications, navigate through categories.

== SYNOPSIS
=== Examples
* Simple search
   @applications = AppStore::Application.search('upnp')
   @applications.class            # => Array
   @applications.length           # => 8
   @applications.first.title      # => "PlugPlayer"
   @applications.first.price      # => 4.99

* Find an application by its id
   @fontpicker = AppStore::Application.find_by_id(327076783)
   @fontpicker.class             # => AppStore::Application
   @fontpicker.title             # => "FontPicker"
   @fontpicker.price             # => 0.0
   @fontpicker.company.title     # => "<NAME>"

* User reviews
   @remote = AppStore::Application.find_by_id(284417350)
   @remote.title                # => "Remote"
   @remote.user_reviews.length  # => 10

   @review = @remote.user_reviews.first

   @review.user_name            # => "Ebolavoodoo on Aug 27, 2009"
   @review.average_user_rating  # => 1.0
   @review.text                 # => "Simply amazing. My new favorite app. Instantly responds. Easy to navigate and control. For those who say it doesn't work. Stinks to be you."

* Categories
   # Fetch featured categories
   @categories = AppStore::Category.featured
   @categories.class              # => Array
   @categories.length             # => 20
   
   # Use category
   @category = @categories.first
   @category.title                # => "Games"
   @category.item_count           # => 1573
   
   # Go through subcategories and applications
   @subcategory = @category.items.last
   @subcategory.class             # => AppStore::Category
   @subcategory.title             # => "Word"
   @subcategory.items.length      # => 26
   @subcategory.items.first.class # => AppStore::Application
   @subcategory.items.last.class  # => AppStore::Category
   @subcategory.items.last.title  # => "Twenty Five More..."

== REQUIREMENTS

* mechanize gem
* plist gem

== INSTALL
  gem install app_store

== TODO
* handle medias (screenshots, icons, ...)
* optimize navigation through lists
* handle 'links' to avoid calling AppStore API for each items in a list
* use FakeMechanize to unit test each calls

== LICENSE

(The MIT License)

Copyright (c) 2009, <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all<commit_msg>updated TODO<commit_after>= AppStore

== DESCRIPTION
AppStore is an unofficial implementation of the Apple AppStore API.
It provides way to search for applications, navigate through categories.

== SYNOPSIS
=== Examples
* Simple search
   @applications = AppStore::Application.search('upnp')
   @applications.class            # => Array
   @applications.length           # => 8
   @applications.first.title      # => "PlugPlayer"
   @applications.first.price      # => 4.99

* Find an application by its id
   @fontpicker = AppStore::Application.find_by_id(327076783)
   @fontpicker.class             # => AppStore::Application
   @fontpicker.title             # => "FontPicker"
   @fontpicker.price             # => 0.0
   @fontpicker.company.title     # => "Etienne Segonzac"

* User reviews
   @remote = AppStore::Application.find_by_id(284417350)
   @remote.title                # => "Remote"
   @remote.user_reviews.length  # => 10

   @review = @remote.user_reviews.first

   @review.user_name            # => "Ebolavoodoo on Aug 27, 2009"
   @review.average_user_rating  # => 1.0
   @review.text                 # => "Simply amazing. My new favorite app. Instantly responds. Easy to navigate and control. For those who say it doesn't work. Stinks to be you."

* Categories
   # Fetch featured categories
   @categories = AppStore::Category.featured
   @categories.class              # => Array
   @categories.length             # => 20
   
   # Use category
   @category = @categories.first
   @category.title                # => "Games"
   @category.item_count           # => 1573
   
   # Go through subcategories and applications
   @subcategory = @category.items.last
   @subcategory.class             # => AppStore::Category
   @subcategory.title             # => "Word"
   @subcategory.items.length      # => 26
   @subcategory.items.first.class # => AppStore::Application
   @subcategory.items.last.class  # => AppStore::Category
   @subcategory.items.last.title  # => "Twenty Five More..."

== REQUIREMENTS

* mechanize gem
* plist gem

== INSTALL
  gem install app_store

== TODO
* handle medias (screenshots, icons, ...)
* optimize navigation through lists
* handle 'links' to avoid calling AppStore API for each items in a list
* use FakeMechanize to unit test each calls
* handle multiple store/language

== LICENSE

(The MIT License)

Copyright (c) 2009, <NAME> <<EMAIL>>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
{'fraction_non_alphanumeric': 0.09847434119278779, 'fraction_numerical': 0.0159500693481276, 'mean_word_length': 3.00625, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 56, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '44261', 'n_tokens_mistral': 1695, 'n_tokens_neox': 1578, 'n_words': 526}