answers-core 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +6 -0
- data/answers-core.gemspec +30 -0
- data/app/assets/fonts/answers/League_Gothic-webfont.eot +0 -0
- data/app/assets/fonts/answers/League_Gothic-webfont.svg +230 -0
- data/app/assets/fonts/answers/League_Gothic-webfont.ttf +0 -0
- data/app/assets/fonts/answers/League_Gothic-webfont.woff +0 -0
- data/app/assets/images/OaklandCityTree.png +0 -0
- data/app/assets/images/background_image.jpg +0 -0
- data/app/assets/images/background_pattern.png +0 -0
- data/app/assets/images/beta.png +0 -0
- data/app/assets/images/bg_transparent.png +0 -0
- data/app/assets/images/border.png +0 -0
- data/app/assets/images/brigade.png +0 -0
- data/app/assets/images/cfa.png +0 -0
- data/app/assets/images/cfa_logo.png +0 -0
- data/app/assets/images/cfa_logo_footer.png +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/forest.jpeg +0 -0
- data/app/assets/images/getting_started_btn.png +0 -0
- data/app/assets/images/govuk.png +0 -0
- data/app/assets/images/openoaklandlogo.png +0 -0
- data/app/assets/images/quick_answers_icon.png +0 -0
- data/app/assets/images/quick_answers_icon_small.png +0 -0
- data/app/assets/images/searchIcon.png +0 -0
- data/app/assets/images/wmd-buttons.png +0 -0
- data/app/assets/images/yellow_bg.png +0 -0
- data/app/assets/javascripts/answers.js +19 -0
- data/app/assets/javascripts/answers/Markdown.Extra.js +304 -0
- data/app/assets/javascripts/answers/active_admin.js +62 -0
- data/app/assets/javascripts/answers/pagedown/LICENSE.txt +32 -0
- data/app/assets/javascripts/answers/pagedown/Markdown.Converter.js +1332 -0
- data/app/assets/javascripts/answers/pagedown/Markdown.Editor.js +2212 -0
- data/app/assets/javascripts/answers/pagedown/Markdown.Sanitizer.js +108 -0
- data/app/assets/javascripts/answers/pagedown/README.txt +0 -0
- data/app/assets/javascripts/answers/pagedown/demo/browser/demo.css +120 -0
- data/app/assets/javascripts/answers/pagedown/demo/browser/demo.html +83 -0
- data/app/assets/javascripts/answers/pagedown/demo/node/demo.js +44 -0
- data/app/assets/javascripts/answers/pagedown/local/Markdown.local.fr.js +43 -0
- data/app/assets/javascripts/answers/pagedown/node-pagedown.js +2 -0
- data/app/assets/javascripts/answers/pagedown/package.json +12 -0
- data/app/assets/javascripts/answers/pagedown/resources/wmd-buttons.psd +0 -0
- data/app/assets/javascripts/answers/pagedown/wmd-buttons.png +0 -0
- data/app/assets/javascripts/answers/skip_nav.js +8 -0
- data/app/assets/stylesheets/answers/active_admin.css.scss +17 -0
- data/app/assets/stylesheets/answers/active_admin_custom.css.scss +35 -0
- data/app/assets/stylesheets/answers/formatting.css +82 -0
- data/app/assets/stylesheets/answers/mobile.css +149 -0
- data/app/assets/stylesheets/answers/tags.css.scss +3 -0
- data/app/assets/stylesheets/answers/theme.css +916 -0
- data/app/controllers/answers/answers_controller.rb +26 -0
- data/app/controllers/answers/api/v1/answers_controller.rb +38 -0
- data/app/controllers/answers/api/v1/api_controller.rb +13 -0
- data/app/controllers/answers/api/v1/questions_controller.rb +39 -0
- data/app/controllers/answers/api/v1/taggings_controller.rb +46 -0
- data/app/controllers/answers/api/v1/tags_controller.rb +38 -0
- data/app/controllers/answers/application_controller.rb +27 -0
- data/app/controllers/answers/home_controller.rb +17 -0
- data/app/controllers/answers/questions_controller.rb +33 -0
- data/app/controllers/answers/search_controller.rb +22 -0
- data/app/controllers/answers/tags_controller.rb +36 -0
- data/app/helpers/answers/tags_helper.rb +7 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/answers/ability.rb +28 -0
- data/app/models/answers/administrator.rb +5 -0
- data/app/models/answers/answer.rb +6 -0
- data/app/models/answers/api/v1/api_user.rb +5 -0
- data/app/models/answers/question.rb +31 -0
- data/app/models/answers/user.rb +30 -0
- data/app/views/answers/admin/contacts/_article.html.erb +0 -0
- data/app/views/answers/admin/dashboard/_dashboard.html.erb +5 -0
- data/app/views/answers/admin/guide_steps/_form.html.erb +17 -0
- data/app/views/answers/api/v1/answers/_answer.json.jbuilder +2 -0
- data/app/views/answers/api/v1/answers/index.json.jbuilder +1 -0
- data/app/views/answers/api/v1/answers/show.json.jbuilder +1 -0
- data/app/views/answers/api/v1/questions/_question.json.jbuilder +2 -0
- data/app/views/answers/api/v1/questions/index.json.jbuilder +1 -0
- data/app/views/answers/api/v1/questions/show.json.jbuilder +1 -0
- data/app/views/answers/api/v1/taggings/_tagging.json.jbuilder +3 -0
- data/app/views/answers/api/v1/taggings/index.json.jbuilder +1 -0
- data/app/views/answers/api/v1/taggings/show.json.jbuilder +1 -0
- data/app/views/answers/api/v1/tags/_tag.json.jbuilder +2 -0
- data/app/views/answers/api/v1/tags/index.json.jbuilder +1 -0
- data/app/views/answers/api/v1/tags/show.json.jbuilder +1 -0
- data/app/views/answers/devise/confirmations/new.html.erb +12 -0
- data/app/views/answers/devise/mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/answers/devise/mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/answers/devise/mailer/unlock_instructions.html.erb +7 -0
- data/app/views/answers/devise/passwords/edit.html.erb +24 -0
- data/app/views/answers/devise/passwords/new.html.erb +20 -0
- data/app/views/answers/devise/registrations/edit.html.erb +25 -0
- data/app/views/answers/devise/registrations/new.html.erb +18 -0
- data/app/views/answers/devise/sessions/new.html.erb +25 -0
- data/app/views/answers/devise/shared/_links.erb +25 -0
- data/app/views/answers/devise/unlocks/new.html.erb +12 -0
- data/app/views/answers/home/_article.html.erb +3 -0
- data/app/views/answers/home/_category.html.erb +8 -0
- data/app/views/answers/home/about.html.erb +72 -0
- data/app/views/answers/home/index.html.erb +44 -0
- data/app/views/answers/questions/index.html.erb +21 -0
- data/app/views/answers/questions/show.html.erb +31 -0
- data/app/views/answers/search/index.html.erb +32 -0
- data/app/views/answers/shared/_articles_sidebar.html.erb +22 -0
- data/app/views/answers/shared/_autocomplete.html.erb +8 -0
- data/app/views/answers/shared/_categories_sidebar.html.erb +12 -0
- data/app/views/answers/shared/_search_form.html.erb +4 -0
- data/app/views/answers/shared/admin/_administration.html.erb +38 -0
- data/app/views/answers/shared/admin/_article_actions.html.erb +86 -0
- data/app/views/answers/shared/admin/_article_content.html.erb +27 -0
- data/app/views/answers/shared/admin/_article_details.html.erb +11 -0
- data/app/views/answers/shared/admin/_article_form.html.erb +20 -0
- data/app/views/answers/shared/admin/_author_pic.html.erb +0 -0
- data/app/views/answers/tags/index.html.erb +34 -0
- data/app/views/answers/tags/show.html.erb +31 -0
- data/app/views/layouts/answers/application.html.erb +97 -0
- data/config.ru +5 -0
- data/config/initializers/active_admin.rb +245 -0
- data/config/initializers/devise.rb +228 -0
- data/config/locales/devise.en.yml +57 -0
- data/config/locales/en.yml +129 -0
- data/config/routes.rb +22 -0
- data/config/secrets.yml +68 -0
- data/db/migrate/20140911060606_answers_up.rb +79 -0
- data/lib/answers-core.rb +1 -0
- data/lib/answers.rb +175 -0
- data/lib/answers/admin/answer.rb +29 -0
- data/lib/answers/admin/dashboard.rb +75 -0
- data/lib/answers/admin/question.rb +57 -0
- data/lib/answers/admin/tag.rb +12 -0
- data/lib/answers/admin/users.rb +65 -0
- data/lib/answers/core.rb +25 -0
- data/lib/answers/core/configuration.rb +90 -0
- data/lib/answers/core/engine.rb +116 -0
- data/lib/answers/engine.rb +62 -0
- data/lib/answers/errors.rb +13 -0
- data/lib/answers/plugin.rb +75 -0
- data/lib/answers/plugins.rb +73 -0
- data/lib/answers/version.rb +16 -0
- data/lib/api_client.rb +20 -0
- data/lib/assets/.gitkeep +0 -0
- data/lib/assets/eng_stop.csv +1 -0
- data/lib/generators/answers/clash_keywords.yml +3 -0
- data/lib/generators/answers/cms/cms_generator.rb +314 -0
- data/lib/generators/answers/cms/templates/.gitignore +91 -0
- data/lib/generators/answers/cms/templates/app/decorators/controllers/answers/.keep +0 -0
- data/lib/generators/answers/cms/templates/app/decorators/models/answers/.keep +0 -0
- data/lib/generators/answers/cms/templates/app/views/sitemap/index.xml.builder +15 -0
- data/lib/generators/answers/cms/templates/config/database.yml.mysql +20 -0
- data/lib/generators/answers/cms/templates/config/database.yml.postgresql +58 -0
- data/lib/generators/answers/cms/templates/config/database.yml.sqlite3 +18 -0
- data/lib/generators/answers/core/core_generator.rb +10 -0
- data/lib/generators/answers/core/templates/config/initializers/answers/core.rb.erb +35 -0
- data/lib/generators/answers/dummy/dummy_generator.rb +86 -0
- data/lib/generators/answers/dummy/templates/rails/Rakefile +7 -0
- data/lib/generators/answers/dummy/templates/rails/application.js +3 -0
- data/lib/generators/answers/dummy/templates/rails/application.rb.erb +12 -0
- data/lib/generators/answers/dummy/templates/rails/boot.rb.erb +6 -0
- data/lib/generators/answers/dummy/templates/rails/database.yml +34 -0
- data/lib/generators/answers/dummy/templates/rails/routes.rb +3 -0
- data/lib/generators/answers/engine/USAGE +24 -0
- data/lib/generators/answers/engine/engine_generator.rb +44 -0
- data/lib/generators/answers/engine/templates/.gitignore +2 -0
- data/lib/generators/answers/engine/templates/Gemfile +42 -0
- data/lib/generators/answers/engine/templates/Rakefile +19 -0
- data/lib/generators/answers/engine/templates/answers-extension_plural_name.gemspec +19 -0
- data/lib/generators/answers/engine/templates/app/controllers/answers/namespace/admin/plural_name_controller.rb.erb +14 -0
- data/lib/generators/answers/engine/templates/app/controllers/answers/namespace/plural_name_controller.rb.erb +34 -0
- data/lib/generators/answers/engine/templates/app/models/answers/namespace/singular_name.rb.erb +37 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/_actions.html.erb +25 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/_form.html.erb +65 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/_plural_name.html.erb +2 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/_records.html.erb +16 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/_singular_name.html.erb +33 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/_sortable_list.html.erb +5 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/edit.html.erb +1 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/index.html.erb +7 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/admin/plural_name/new.html.erb +1 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/plural_name/index.html.erb +11 -0
- data/lib/generators/answers/engine/templates/app/views/answers/namespace/plural_name/show.html.erb +39 -0
- data/lib/generators/answers/engine/templates/config/locales/cs.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/en.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/es.yml +29 -0
- data/lib/generators/answers/engine/templates/config/locales/fr.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/it.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/nb.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/nl.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/sk.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/tr.yml +28 -0
- data/lib/generators/answers/engine/templates/config/locales/zh-CN.yml +30 -0
- data/lib/generators/answers/engine/templates/config/routes.rb.erb +19 -0
- data/lib/generators/answers/engine/templates/db/migrate/1_create_namespace_plural_name.rb.erb +39 -0
- data/lib/generators/answers/engine/templates/db/seeds.rb.erb +21 -0
- data/lib/generators/answers/engine/templates/lib/answers-extension_plural_name.rb.erb +1 -0
- data/lib/generators/answers/engine/templates/lib/answers/plural_name.rb.erb +21 -0
- data/lib/generators/answers/engine/templates/lib/answers/plural_name/engine.rb.erb +23 -0
- data/lib/generators/answers/engine/templates/lib/generators/answers/extension_plural_name_generator.rb.erb +19 -0
- data/lib/generators/answers/engine/templates/lib/tasks/answers/extension_plural_name.rake +13 -0
- data/lib/generators/answers/engine/templates/readme.md +10 -0
- data/lib/generators/answers/engine/templates/script/rails +10 -0
- data/lib/generators/answers/engine/templates/spec/features/answers/namespace/admin/plural_name_spec.rb.erb +200 -0
- data/lib/generators/answers/engine/templates/spec/models/answers/namespace/singular_name_spec.rb.erb +20 -0
- data/lib/generators/answers/engine/templates/spec/spec_helper.rb +31 -0
- data/lib/generators/answers/engine/templates/spec/support/factories/answers/plural_name.rb.erb +7 -0
- data/lib/generators/answers/engine/templates/tasks/rspec.rake +6 -0
- data/lib/generators/answers/engine/templates/tasks/testing.rake +8 -0
- data/lib/generators/answers/generator.rb +292 -0
- data/lib/markdownifier.rb +11 -0
- data/log/.gitkeep +0 -0
- data/log/development.log +12870 -0
- data/log/newrelic_agent.log +1339 -0
- data/log/test.log +233181 -0
- data/public/404.html +25 -0
- data/public/422.html +25 -0
- data/public/500.html +24 -0
- data/public/favicon.ico +0 -0
- data/public/robots.txt +5 -0
- data/script/delayed_job +5 -0
- data/spec/controllers/answers_controller_spec.rb +55 -0
- data/spec/controllers/api/v1/answers_controller_spec.rb +144 -0
- data/spec/controllers/api/v1/questions_controller_spec.rb +144 -0
- data/spec/controllers/api/v1/taggings_controller_spec.rb +126 -0
- data/spec/controllers/api/v1/tags_controller_spec.rb +126 -0
- data/spec/controllers/home_controller_spec.rb +60 -0
- data/spec/controllers/questions_controller_spec.rb +55 -0
- data/spec/controllers/tags_controller_spec.rb +42 -0
- data/spec/factories/answers.rb +10 -0
- data/spec/factories/questions.rb +8 -0
- data/spec/factories/tags.rb +8 -0
- data/spec/factories/user.rb +32 -0
- data/spec/features/admin_dashboard_spec.rb +53 -0
- data/spec/features/admin_user_spec.rb +61 -0
- data/spec/features/searches_spec.rb +101 -0
- data/spec/fixtures/Article/_before_validation/sets_access_count_if_nil.yml +223 -0
- data/spec/fixtures/Article/_delete_orphaned_keywords/updating_an_article/destroys_orphaned_keywords_associated.yml +223 -0
- data/spec/fixtures/Article/_delete_orphaned_keywords/when_deleting_an_article/destroys_all_keywords_associated.yml +223 -0
- data/spec/fixtures/Article/_find_by_friendly_id/when_an_article_does_not_exist/does_not_raise_an_exception.yml +223 -0
- data/spec/fixtures/Article/_find_by_friendly_id/when_an_article_exists/returns_the_corresponding_article.yml +223 -0
- data/spec/fixtures/Article/_find_by_type/excludes_articles_not_matching_specified_type.yml +223 -0
- data/spec/fixtures/Article/_find_by_type/returns_articles_matching_type.yml +223 -0
- data/spec/fixtures/Article/_hits/before_an_article_has_been_viewed/has_zero_hits.yml +223 -0
- data/spec/fixtures/Article/_hits/returns_number_of_views/has_seven_views.yml +223 -0
- data/spec/fixtures/Article/_indexable_/returns_false_if_article_is_not_published.yml +223 -0
- data/spec/fixtures/Article/_indexable_/returns_true_if_article_is_published.yml +223 -0
- data/spec/fixtures/Article/_legacy_/returns_true_if_render_markdown_is_false.yml +223 -0
- data/spec/fixtures/Article/_qm_after_create/creates_wordcounts_for_relevant_keywords.yml +223 -0
- data/spec/fixtures/Article/_record_hit/viewing_an_article/increases_hit_by_one.yml +223 -0
- data/spec/fixtures/Article/_related/has_no_related_articles/.yml +223 -0
- data/spec/fixtures/Article/_related/has_related_articles/.yml +223 -0
- data/spec/fixtures/Article/_remove_stop_words/removes_common_english_words_from_the_string.yml +223 -0
- data/spec/fixtures/Article/_search/_search_titles/query_is_present_in_the_title/.yml +223 -0
- data/spec/fixtures/Article/_search/_search_titles/returns_an_empty_array_when_the_search_term_is_present_in_an_article_but_not_the_title.yml +223 -0
- data/spec/fixtures/Article/_search/matches_articles_in_the_database.yml +223 -0
- data/spec/fixtures/Article/_search/query_does_not_match_anything_in_the_database/returns_an_empty_array.yml +223 -0
- data/spec/fixtures/Article/_search/query_is_a_single_space/.yml +223 -0
- data/spec/fixtures/Article/_search/query_is_an_empty_string/.yml +223 -0
- data/spec/fixtures/Article/_to_s/when_an_article_has_a_category/returns_a_string_containing_title_id_and_category.yml +223 -0
- data/spec/fixtures/Article/can_be_published/an_unpublished_article/is_published.yml +223 -0
- data/spec/fixtures/Article/can_be_published/an_unpublished_article/returns_status_Published.yml +223 -0
- data/spec/fixtures/Article/has_a_friendly_url.yml +223 -0
- data/spec/fixtures/Article/is_valid_with_a_title.yml +223 -0
- data/spec/fixtures/Searches/search_results/1_result_found/.yml +22047 -0
- data/spec/fixtures/Searches/search_results/no_results_found/.yml +393 -0
- data/spec/fixtures/Searches/search_results/several_results_found/should_contain_the_title_and_preview_of_both_articles.yml +223 -0
- data/spec/fixtures/Searches/search_results/several_results_found/show_the_query.yml +277 -0
- data/spec/fixtures/articles.yml +428 -0
- data/spec/fixtures/categories.yml +17 -0
- data/spec/fixtures/contacts.yml +11 -0
- data/spec/fixtures/dragon_keyword_cassette.yml +77 -0
- data/spec/fixtures/oakland_answers.yml +2379 -0
- data/spec/helpers/tags_helper_spec.rb +15 -0
- data/spec/lib/markdownifier_spec.rb +12 -0
- data/spec/models/ability_spec.rb +36 -0
- data/spec/models/answer_spec.rb +5 -0
- data/spec/models/question_spec.rb +70 -0
- data/spec/models/user_spec.rb +55 -0
- data/spec/routing/answers_routing_spec.rb +19 -0
- data/spec/routing/questions_routing_spec.rb +19 -0
- data/spec/routing/routes_spec.rb +13 -0
- data/spec/security/brakeman_spec.rb +37 -0
- data/spec/spec_helper.rb +61 -0
- data/spec/support/login_helpers.rb +10 -0
- data/spec/support/wait_for_ajax_helper.rb +7 -0
- data/spec/support/wait_for_dom_helper.rb +12 -0
- data/spec/views/questions/index.html.erb_spec.rb +16 -0
- data/spec/views/questions/show.html.erb_spec.rb +14 -0
- data/spec/views/tags/index.html.erb_spec.rb +5 -0
- data/spec/views/tags/show.html.erb_spec.rb +5 -0
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/assets/stylesheets/bootstrap.css +3990 -0
- data/vendor/crudgen/lib/generators/crudgen/install_generator.rb +23 -0
- data/vendor/plugins/.gitkeep +0 -0
- metadata +484 -0
@@ -0,0 +1,277 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:9200/_aliases
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=UTF-8
|
23
|
+
Content-Length:
|
24
|
+
- '523'
|
25
|
+
body:
|
26
|
+
encoding: UTF-8
|
27
|
+
string: '{"articles_test_20140728144954496":{"aliases":{}},"articles_development_20140702140018077":{"aliases":{"articles_development":{}}},"products_test_20140702123124089":{"aliases":{"products_test":{}}},"stores_test_20140702123122214":{"aliases":{"stores_test":{}}},"articles_test_20140728144954643":{"aliases":{}},"fbopen":{"aliases":{"fbopen":{}}},"items_test_20130801000000000":{"aliases":{}},"articles_test_20140728144954360":{"aliases":{"articles_test":{}}},"animals-2014_20140702123205314":{"aliases":{"animals-2014":{}}}}'
|
28
|
+
http_version:
|
29
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
30
|
+
- request:
|
31
|
+
method: delete
|
32
|
+
uri: http://localhost:9200/articles_test_20140728144954496
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ''
|
36
|
+
headers:
|
37
|
+
User-Agent:
|
38
|
+
- Faraday v0.9.0
|
39
|
+
Accept-Encoding:
|
40
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
41
|
+
Accept:
|
42
|
+
- "*/*"
|
43
|
+
response:
|
44
|
+
status:
|
45
|
+
code: 200
|
46
|
+
message: OK
|
47
|
+
headers:
|
48
|
+
Content-Type:
|
49
|
+
- application/json; charset=UTF-8
|
50
|
+
Content-Length:
|
51
|
+
- '21'
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '{"acknowledged":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
57
|
+
- request:
|
58
|
+
method: delete
|
59
|
+
uri: http://localhost:9200/articles_test_20140728144954643
|
60
|
+
body:
|
61
|
+
encoding: US-ASCII
|
62
|
+
string: ''
|
63
|
+
headers:
|
64
|
+
User-Agent:
|
65
|
+
- Faraday v0.9.0
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
+
Accept:
|
69
|
+
- "*/*"
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Content-Type:
|
76
|
+
- application/json; charset=UTF-8
|
77
|
+
Content-Length:
|
78
|
+
- '21'
|
79
|
+
body:
|
80
|
+
encoding: UTF-8
|
81
|
+
string: '{"acknowledged":true}'
|
82
|
+
http_version:
|
83
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
84
|
+
- request:
|
85
|
+
method: put
|
86
|
+
uri: http://localhost:9200/articles_test_20140728144954779
|
87
|
+
body:
|
88
|
+
encoding: UTF-8
|
89
|
+
string: '{"settings":{"analysis":{"analyzer":{"searchkick_keyword":{"type":"custom","tokenizer":"keyword","filter":["lowercase","searchkick_stemmer"]},"default_index":{"type":"custom","tokenizer":"standard","filter":["standard","lowercase","asciifolding","searchkick_index_shingle","searchkick_stemmer"]},"searchkick_search":{"type":"custom","tokenizer":"standard","filter":["standard","lowercase","asciifolding","searchkick_search_shingle","searchkick_stemmer"]},"searchkick_search2":{"type":"custom","tokenizer":"standard","filter":["standard","lowercase","asciifolding","searchkick_stemmer"]},"searchkick_autocomplete_index":{"type":"custom","tokenizer":"searchkick_autocomplete_ngram","filter":["lowercase","asciifolding"]},"searchkick_autocomplete_search":{"type":"custom","tokenizer":"keyword","filter":["lowercase","asciifolding"]},"searchkick_word_search":{"type":"custom","tokenizer":"standard","filter":["lowercase","asciifolding"]},"searchkick_suggest_index":{"type":"custom","tokenizer":"standard","filter":["lowercase","asciifolding","searchkick_suggest_shingle"]},"searchkick_text_start_index":{"type":"custom","tokenizer":"keyword","filter":["lowercase","asciifolding","searchkick_edge_ngram"]},"searchkick_text_middle_index":{"type":"custom","tokenizer":"keyword","filter":["lowercase","asciifolding","searchkick_ngram"]},"searchkick_text_end_index":{"type":"custom","tokenizer":"keyword","filter":["lowercase","asciifolding","reverse","searchkick_edge_ngram","reverse"]},"searchkick_word_start_index":{"type":"custom","tokenizer":"standard","filter":["lowercase","asciifolding","searchkick_edge_ngram"]},"searchkick_word_middle_index":{"type":"custom","tokenizer":"standard","filter":["lowercase","asciifolding","searchkick_ngram"]},"searchkick_word_end_index":{"type":"custom","tokenizer":"standard","filter":["lowercase","asciifolding","reverse","searchkick_edge_ngram","reverse"]}},"filter":{"searchkick_index_shingle":{"type":"shingle","token_separator":""},"searchkick_search_shingle":{"type":"shingle","token_separator":"","output_unigrams":false,"output_unigrams_if_no_shingles":true},"searchkick_suggest_shingle":{"type":"shingle","max_shingle_size":5},"searchkick_edge_ngram":{"type":"edgeNGram","min_gram":1,"max_gram":50},"searchkick_ngram":{"type":"nGram","min_gram":1,"max_gram":50},"searchkick_stemmer":{"type":"snowball","language":"English"}},"tokenizer":{"searchkick_autocomplete_ngram":{"type":"edgeNGram","min_gram":1,"max_gram":50}}},"number_of_shards":1,"number_of_replicas":0},"mappings":{"_default_":{"properties":{},"dynamic_templates":[{"string_template":{"match":"*","match_mapping_type":"string","mapping":{"type":"multi_field","fields":{"{name}":{"type":"string","index":"not_analyzed"},"analyzed":{"type":"string","index":"analyzed"}}}}}]}}}'
|
90
|
+
headers:
|
91
|
+
User-Agent:
|
92
|
+
- Faraday v0.9.0
|
93
|
+
Content-Type:
|
94
|
+
- application/x-www-form-urlencoded
|
95
|
+
Accept-Encoding:
|
96
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
97
|
+
Accept:
|
98
|
+
- "*/*"
|
99
|
+
response:
|
100
|
+
status:
|
101
|
+
code: 200
|
102
|
+
message: OK
|
103
|
+
headers:
|
104
|
+
Content-Type:
|
105
|
+
- application/json; charset=UTF-8
|
106
|
+
Content-Length:
|
107
|
+
- '21'
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: '{"acknowledged":true}'
|
111
|
+
http_version:
|
112
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
113
|
+
- request:
|
114
|
+
method: head
|
115
|
+
uri: http://localhost:9200/_alias/articles_test
|
116
|
+
body:
|
117
|
+
encoding: US-ASCII
|
118
|
+
string: ''
|
119
|
+
headers:
|
120
|
+
User-Agent:
|
121
|
+
- Faraday v0.9.0
|
122
|
+
Accept:
|
123
|
+
- "*/*"
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 200
|
127
|
+
message: OK
|
128
|
+
headers:
|
129
|
+
Content-Type:
|
130
|
+
- text/plain; charset=UTF-8
|
131
|
+
Content-Length:
|
132
|
+
- '0'
|
133
|
+
body:
|
134
|
+
encoding: UTF-8
|
135
|
+
string: ''
|
136
|
+
http_version:
|
137
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
138
|
+
- request:
|
139
|
+
method: get
|
140
|
+
uri: http://localhost:9200/_alias/articles_test
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: ''
|
144
|
+
headers:
|
145
|
+
User-Agent:
|
146
|
+
- Faraday v0.9.0
|
147
|
+
Accept-Encoding:
|
148
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
149
|
+
Accept:
|
150
|
+
- "*/*"
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Content-Type:
|
157
|
+
- application/json; charset=UTF-8
|
158
|
+
Content-Length:
|
159
|
+
- '68'
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: '{"articles_test_20140728144954360":{"aliases":{"articles_test":{}}}}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
165
|
+
- request:
|
166
|
+
method: post
|
167
|
+
uri: http://localhost:9200/_aliases
|
168
|
+
body:
|
169
|
+
encoding: UTF-8
|
170
|
+
string: '{"actions":[{"remove":{"index":"articles_test_20140728144954360","alias":"articles_test"}},{"add":{"index":"articles_test_20140728144954779","alias":"articles_test"}}]}'
|
171
|
+
headers:
|
172
|
+
User-Agent:
|
173
|
+
- Faraday v0.9.0
|
174
|
+
Content-Type:
|
175
|
+
- application/x-www-form-urlencoded
|
176
|
+
Accept-Encoding:
|
177
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
|
+
Accept:
|
179
|
+
- "*/*"
|
180
|
+
response:
|
181
|
+
status:
|
182
|
+
code: 200
|
183
|
+
message: OK
|
184
|
+
headers:
|
185
|
+
Content-Type:
|
186
|
+
- application/json; charset=UTF-8
|
187
|
+
Content-Length:
|
188
|
+
- '21'
|
189
|
+
body:
|
190
|
+
encoding: UTF-8
|
191
|
+
string: '{"acknowledged":true}'
|
192
|
+
http_version:
|
193
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
194
|
+
- request:
|
195
|
+
method: get
|
196
|
+
uri: http://localhost:9200/_aliases
|
197
|
+
body:
|
198
|
+
encoding: US-ASCII
|
199
|
+
string: ''
|
200
|
+
headers:
|
201
|
+
User-Agent:
|
202
|
+
- Faraday v0.9.0
|
203
|
+
Accept-Encoding:
|
204
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
205
|
+
Accept:
|
206
|
+
- "*/*"
|
207
|
+
response:
|
208
|
+
status:
|
209
|
+
code: 200
|
210
|
+
message: OK
|
211
|
+
headers:
|
212
|
+
Content-Type:
|
213
|
+
- application/json; charset=UTF-8
|
214
|
+
Content-Length:
|
215
|
+
- '474'
|
216
|
+
body:
|
217
|
+
encoding: UTF-8
|
218
|
+
string: '{"articles_development_20140702140018077":{"aliases":{"articles_development":{}}},"products_test_20140702123124089":{"aliases":{"products_test":{}}},"stores_test_20140702123122214":{"aliases":{"stores_test":{}}},"fbopen":{"aliases":{"fbopen":{}}},"items_test_20130801000000000":{"aliases":{}},"articles_test_20140728144954360":{"aliases":{}},"articles_test_20140728144954779":{"aliases":{"articles_test":{}}},"animals-2014_20140702123205314":{"aliases":{"animals-2014":{}}}}'
|
219
|
+
http_version:
|
220
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
221
|
+
- request:
|
222
|
+
method: delete
|
223
|
+
uri: http://localhost:9200/articles_test_20140728144954360
|
224
|
+
body:
|
225
|
+
encoding: US-ASCII
|
226
|
+
string: ''
|
227
|
+
headers:
|
228
|
+
User-Agent:
|
229
|
+
- Faraday v0.9.0
|
230
|
+
Accept-Encoding:
|
231
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
232
|
+
Accept:
|
233
|
+
- "*/*"
|
234
|
+
response:
|
235
|
+
status:
|
236
|
+
code: 200
|
237
|
+
message: OK
|
238
|
+
headers:
|
239
|
+
Content-Type:
|
240
|
+
- application/json; charset=UTF-8
|
241
|
+
Content-Length:
|
242
|
+
- '21'
|
243
|
+
body:
|
244
|
+
encoding: UTF-8
|
245
|
+
string: '{"acknowledged":true}'
|
246
|
+
http_version:
|
247
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
248
|
+
- request:
|
249
|
+
method: post
|
250
|
+
uri: http://localhost:9200/articles_test_20140728144954779/_refresh
|
251
|
+
body:
|
252
|
+
encoding: UTF-8
|
253
|
+
string: ''
|
254
|
+
headers:
|
255
|
+
User-Agent:
|
256
|
+
- Faraday v0.9.0
|
257
|
+
Content-Length:
|
258
|
+
- '0'
|
259
|
+
Accept-Encoding:
|
260
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
261
|
+
Accept:
|
262
|
+
- "*/*"
|
263
|
+
response:
|
264
|
+
status:
|
265
|
+
code: 200
|
266
|
+
message: OK
|
267
|
+
headers:
|
268
|
+
Content-Type:
|
269
|
+
- application/json; charset=UTF-8
|
270
|
+
Content-Length:
|
271
|
+
- '49'
|
272
|
+
body:
|
273
|
+
encoding: UTF-8
|
274
|
+
string: '{"_shards":{"total":1,"successful":1,"failed":0}}'
|
275
|
+
http_version:
|
276
|
+
recorded_at: Mon, 28 Jul 2014 18:49:54 GMT
|
277
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,428 @@
|
|
1
|
+
one:
|
2
|
+
title: How do I become a U.S. citizen?
|
3
|
+
slug: how-do-i-become-a-us-citizen
|
4
|
+
preview: >
|
5
|
+
In most cases, you must first be a permanent resident.
|
6
|
+
category_id: 1
|
7
|
+
type: QuickAnswer
|
8
|
+
tags: >
|
9
|
+
U.S. citizen, naturalization, Armed Forces, Army, Navy, Air Force
|
10
|
+
content_main: >
|
11
|
+
In most cases, you must first be a permanent resident. The process to apply to become a U.S. citizen is known as naturalization.
|
12
|
+
content_need_to_know: |
|
13
|
+
To be eligible for naturalization, you must first show that you:
|
14
|
+
|
15
|
+
* are age 18 or older; and
|
16
|
+
* have been a permanent resident for a certain amount of time; and
|
17
|
+
* are a person of good moral character; and
|
18
|
+
* Have basic knowledge of U.S. government
|
19
|
+
* have a period of continuous residence and physical presence in the United States; and
|
20
|
+
* are able to read, write and speak basic English.
|
21
|
+
user_id: 1
|
22
|
+
|
23
|
+
|
24
|
+
two:
|
25
|
+
title: What types of citizenship are there?
|
26
|
+
slug: what-types-of-citizenship-are-there
|
27
|
+
preview: >
|
28
|
+
There are two types of citizenship: Natural born and Naturalized
|
29
|
+
category_id: 2
|
30
|
+
type: QuickAnswer
|
31
|
+
tags: >
|
32
|
+
acquired, derivative, derived, jus solis, jus sanguinis, birth, naturalized
|
33
|
+
content_main: |
|
34
|
+
There are two types of citizenship:
|
35
|
+
|
36
|
+
1. Natural born
|
37
|
+
2. Naturalized
|
38
|
+
content_need_to_know: |
|
39
|
+
**Natural born citizenship** is the acquirement of citizenship at the moment of birth.
|
40
|
+
|
41
|
+
There are only two types of natural born citizen:
|
42
|
+
|
43
|
+
1. Native-born is being born within the territory of the state or commonwealth under the principle of jus soli,
|
44
|
+
|
45
|
+
2. Attaining citizenship through the parents’ citizenship status under the principle of jus sanguinis.
|
46
|
+
user_id: 1
|
47
|
+
|
48
|
+
|
49
|
+
three:
|
50
|
+
title: What is naturalization?
|
51
|
+
slug: what-is-naturalization
|
52
|
+
preview: Naturalization is the process of becoming a U.S. citizen.
|
53
|
+
category_id: 1
|
54
|
+
type: QuickAnswer
|
55
|
+
content_main: Naturalization is the process of becoming a U.S. citizen.
|
56
|
+
content_need_to_know: Normally you would be a green card holder and not born as a U.S. citizen nor would you have U.S. parents.
|
57
|
+
user_id: 1
|
58
|
+
|
59
|
+
|
60
|
+
four:
|
61
|
+
title: How do I know if I'm eligible for naturalization?
|
62
|
+
slug: how-do-i-know-if-im-eligible-for-naturalization
|
63
|
+
preview: You must first meet certain requirements required by U.S. immigration law in order to be eligible for naturalization.
|
64
|
+
category_id: 1
|
65
|
+
type: QuickAnswer
|
66
|
+
tags: >
|
67
|
+
Naturalization, Eligibility
|
68
|
+
content_main: >
|
69
|
+
You must first meet certain requirements required by U.S. immigration law in order to be eligible for naturalization.
|
70
|
+
content_need_to_know: |
|
71
|
+
Generally, to be eligible for naturalization you must:
|
72
|
+
|
73
|
+
* Be age 18 or older; and
|
74
|
+
* Be a permanent resident for a certain amount of time (usually 5 years or 3 years, depending on how you obtained status); and
|
75
|
+
* Be a person of good moral character; and
|
76
|
+
* Have a basic knowledge of U.S. government (this, too, can be excepted due to permanent physical or mental impairment); and
|
77
|
+
* Have a period of continuous residence and physical presence in the United States; and
|
78
|
+
* Be able to read, write, and speak basic English.
|
79
|
+
|
80
|
+
Please visit [www.uscis.gov/howdoi](http://www.uscis.gov/howdoi) to find out "How Do I..."
|
81
|
+
user_id: 1
|
82
|
+
|
83
|
+
|
84
|
+
five:
|
85
|
+
title: How do I apply for naturalization?
|
86
|
+
slug: how-do-i-apply-for-naturalization
|
87
|
+
preview: >
|
88
|
+
You must complete and submit the Form N-400, Application for Naturalization.
|
89
|
+
category_id: 1
|
90
|
+
type: QuickAnswer
|
91
|
+
tags: >
|
92
|
+
Naturalization, Eligibility, Apply
|
93
|
+
content_main: >
|
94
|
+
You must complete and submit the Form N-400, Application for Naturalization.
|
95
|
+
content_need_to_know: >
|
96
|
+
For more information on the naturalization process, please see our manual, M-476, A Guide to Naturalization.
|
97
|
+
user_id: 1
|
98
|
+
|
99
|
+
|
100
|
+
six:
|
101
|
+
title: How do I become a U.S. citizen if I'm in the army?
|
102
|
+
slug: how-do-i-become-a-us-citizen-if-im-in-the-army
|
103
|
+
preview: >
|
104
|
+
You can apply for naturalization at a U.S. Consulate or Embassy abroad - or in the usual way in the U.S. - if you enlisted in the U.S. Army after October 1, 2004.
|
105
|
+
category_id: 1
|
106
|
+
type: QuickAnswer
|
107
|
+
tags: >
|
108
|
+
Naturalization, Eligibility, Apply, U.S. Armed Forces, Army
|
109
|
+
content_main: >
|
110
|
+
You can apply for naturalization at a U.S. Consulate or Embassy abroad - or in the usual way in the U.S. - if you enlisted in the U.S. Army after October 1, 2004.
|
111
|
+
content_need_to_know: |
|
112
|
+
You will need the Forms N-400 and N-426 with your DD Form 214 or NGB Form 22 to apply. USCIS will make every effort to expedite the naturalization process for active members of the U.S. military.
|
113
|
+
|
114
|
+
You can call our Military Helpline at 1-877-CIS-4MIL (1-877-247-4645) and listen to the menu of services available to assist U.S. Armed Forces members and their families. If you are a military member deployed overseas, access your Defense Switched Network (DSN) Domestic Base Operator for assistance. N-400 live assistance is available between 8 a.m. and 4:30 p.m. CST.
|
115
|
+
user_id: 1
|
116
|
+
|
117
|
+
|
118
|
+
seven:
|
119
|
+
title: How do I know if I'm a U.S. citizen?
|
120
|
+
slug: how-do-i-know-if-im-a-us-citizen
|
121
|
+
preview: >
|
122
|
+
If you were born in the United States, you do not need to apply to USCIS for any evidence of citizenship. If you were born outside the United States, but one or both of your parents were U.S. citizens when you were born, you may still be a U.S. citizen.
|
123
|
+
category_id: 2
|
124
|
+
type: QuickAnswer
|
125
|
+
content_main: |
|
126
|
+
If you were born in the United States, you do not need to apply to USCIS for any evidence of citizenship. Your birth certificate issued where you were born is proof of your citizenship.
|
127
|
+
|
128
|
+
If you were born outside the United States, but one or both of your parents were U.S. citizens when you were born, you may still be a U.S. citizen. This is called citizenship through derivation.
|
129
|
+
content_need_to_know: |
|
130
|
+
Please visit [www.uscis.gov/howdoi](http://www.uscis.gov/howdoi) to find out "How Do I..."
|
131
|
+
|
132
|
+
You can also visit www.uscis.gov to download forms, e-file some applications, check the status of an application, and more.
|
133
|
+
It’s a great place to start!
|
134
|
+
user_id: 1
|
135
|
+
|
136
|
+
|
137
|
+
eight:
|
138
|
+
title: Where can I get a copy of my United States birth certificate?
|
139
|
+
slug: where-can-i-get-a-copy-of-my-us-birth-certificate
|
140
|
+
preview: Check with the Department of Health (Vital Records) in the U.S. State in which you were born.
|
141
|
+
category_id: 2
|
142
|
+
contact_id: 2
|
143
|
+
type: QuickAnswer
|
144
|
+
tags:
|
145
|
+
content_main: Check with the Department of Health (Vital Records) in the U.S. State in which you were born.
|
146
|
+
content_need_to_know: >
|
147
|
+
For more information, visit the National Center for Health Statistics web page at [www.cdc.gov/nchs/births.htm](http://www.cdc.gov/nchs/births.htm).
|
148
|
+
user_id: 1
|
149
|
+
|
150
|
+
|
151
|
+
nine:
|
152
|
+
title: What documents can I show as proof of U.S. citizenship?
|
153
|
+
slug: what-documents-can-i-provide-as-proof-of-us-citizenship
|
154
|
+
preview: >
|
155
|
+
The most common documents that prove you are a U.S. citizen are: Birth Certificate, Passport, Certificate of Citizenship, or Naturalization Certificate
|
156
|
+
category_id: 2
|
157
|
+
type: QuickAnswer
|
158
|
+
content_main: |
|
159
|
+
The most common documents that prove you are a U.S. citizen are:
|
160
|
+
|
161
|
+
* Birth Certificate
|
162
|
+
* Passport
|
163
|
+
* Certificate of Citizenship
|
164
|
+
* Naturalization Certificate, issued to a person who became a U.S. citizen after 18 years of age through the naturalization process.
|
165
|
+
user_id: 1
|
166
|
+
|
167
|
+
|
168
|
+
ten:
|
169
|
+
title: Do I need to be in the United States when I file an N-400 application?
|
170
|
+
slug: do-i-need-to-be-in-the-us-when-i-file-an-n400-application
|
171
|
+
preview: You do not necessarily need to be in the U.S. when filing Form N-400 and you may be able to file overseas.
|
172
|
+
category_id: 1
|
173
|
+
type: QuickAnswer
|
174
|
+
tags: >
|
175
|
+
Naturalization, Eligibility, Apply
|
176
|
+
content_main: >
|
177
|
+
You do not necessarily need to be in the U.S. when filing Form N-400 and you may be able to file overseas. The Guide to Naturalization (M-476) provides for more information about filing from overseas.
|
178
|
+
content_need_to_know: |
|
179
|
+
USCIS has educational materials and resources to help you prepare for the citizenship test (English and Civics portions). Visit the Citizenship and Resource Center at [www.USCIS.gov/citizenship](http://www.USCIS.gov/citizenship), to find information on how to find English and citizenship preparation classes in your area, learn about free citizenship information sessions offered by USCIS in your area, and download study materials for the English and Civics portions of the citizenship test. You can also visit [www.uscis.gov](http://www.uscis.gov) to download forms, e-file some applications, check the status of an application, and more.
|
180
|
+
It’s a great place to start!
|
181
|
+
user_id: 1
|
182
|
+
|
183
|
+
|
184
|
+
eleven:
|
185
|
+
title: How do I get a replacement naturalization certificate?
|
186
|
+
slug: how-do-i-get-a-replacement-naturalization-certificate
|
187
|
+
preview: You must file the Form N-565 to apply for a replacement naturalization certificate.
|
188
|
+
category_id: 1
|
189
|
+
contact_id: 1
|
190
|
+
type: QuickAnswer
|
191
|
+
tags: >
|
192
|
+
naturalization, certificate
|
193
|
+
content_main: You must file the Form N-565 to apply for a replacement naturalization certificate.
|
194
|
+
content_need_to_know: |
|
195
|
+
Please visit [www.uscis.gov/howdoi](http://www.uscis.gov/howdoi) to find out "How Do I..."
|
196
|
+
|
197
|
+
You can also visit [www.uscis.gov](http://www.uscis.gov) to download forms, e-file some applications, check the status of an application, and more.
|
198
|
+
It’s a great place to start!
|
199
|
+
user_id: 1
|
200
|
+
|
201
|
+
|
202
|
+
twelve:
|
203
|
+
title: Do I have to take a test?
|
204
|
+
slug: do-i-have-to-take-a-test
|
205
|
+
preview: >
|
206
|
+
Most naturalization applicants are required to take a test on: English and Civics (U.S. history and government)
|
207
|
+
category_id: 1
|
208
|
+
type: QuickAnswer
|
209
|
+
tags: >
|
210
|
+
Naturalization Exam, Test, Questions
|
211
|
+
content_main: >
|
212
|
+
Most naturalization applicants are required to take a test on:
|
213
|
+
|
214
|
+
* English
|
215
|
+
* Civics (U.S. history and government)
|
216
|
+
content_need_to_know: >
|
217
|
+
We provide resources to help you prepare. For more information, visit our Naturalization Test page. You can also get study materials from the Citizenship Resource Center.
|
218
|
+
user_id: 1
|
219
|
+
|
220
|
+
|
221
|
+
thirteen:
|
222
|
+
title: What type of questions are asked on the test?
|
223
|
+
slug: what-type-of-questions-are-asked-on-the-test
|
224
|
+
preview: >
|
225
|
+
There is a speaking test, reading test, writing test and civics test.
|
226
|
+
category_id: 1
|
227
|
+
type: QuickAnswer
|
228
|
+
tags: >
|
229
|
+
Naturalization Exam, Test, Questions
|
230
|
+
content_main: >
|
231
|
+
There is a speaking test, reading test, writing test and civics test.
|
232
|
+
content_need_to_know: >
|
233
|
+
You have two opportunities to take the English and civics tests per application. If you fail any portion of the test during your first interview, you will be retested on the portion of the test that you failed between 60 and 90 days from the date of your initial interview.
|
234
|
+
user_id: 1
|
235
|
+
|
236
|
+
|
237
|
+
fourteen:
|
238
|
+
title: Is there a speaking test?
|
239
|
+
slug: is-there-a-speaking-test
|
240
|
+
preview: Yes.
|
241
|
+
category_id: 1
|
242
|
+
type: QuickAnswer
|
243
|
+
tags: >
|
244
|
+
Naturalization Exam, Test
|
245
|
+
content_main: Yes.
|
246
|
+
content_need_to_know: >
|
247
|
+
Your ability to speak English will be determined by a USCIS Officer during your eligibility interview on Form N-400, Application for Naturalization.
|
248
|
+
user_id: 1
|
249
|
+
|
250
|
+
|
251
|
+
fifteen:
|
252
|
+
title: Is there a reading test?
|
253
|
+
slug: is-there-a-reading-test
|
254
|
+
preview: Yes.
|
255
|
+
category_id: 1
|
256
|
+
type: QuickAnswer
|
257
|
+
tags: >
|
258
|
+
Naturalization Exam, Test, Reading
|
259
|
+
content_main: Yes.
|
260
|
+
content_need_to_know: >
|
261
|
+
You must write one out of three sentences correctly to demonstrate an ability to write in English. The Writing Test Vocabulary List will help you study for the English writing portion of the naturalization test. The content focuses on civics and history topics.
|
262
|
+
user_id: 1
|
263
|
+
|
264
|
+
|
265
|
+
sixteen:
|
266
|
+
title: Is there a writing test?
|
267
|
+
slug: is-there-a-writing-test
|
268
|
+
preview: Yes.
|
269
|
+
category_id: 1
|
270
|
+
type: QuickAnswer
|
271
|
+
tags: >
|
272
|
+
Naturalization Exam, Test, Writing
|
273
|
+
content_main: Yes.
|
274
|
+
content_need_to_know: >
|
275
|
+
You must write one out of three sentences correctly to demonstrate an ability to write in English. The Writing Test Vocabulary List will help you study for the English writing portion of the naturalization test. The content focuses on civics and history topics.
|
276
|
+
user_id: 1
|
277
|
+
|
278
|
+
|
279
|
+
seventeen:
|
280
|
+
title: Is there a civics test?
|
281
|
+
slug: is-there-a-civics-test
|
282
|
+
preview: Yes.
|
283
|
+
category_id: 1
|
284
|
+
type: QuickAnswer
|
285
|
+
tags: >
|
286
|
+
Naturalization Exam, Test
|
287
|
+
content_main: Yes.
|
288
|
+
content_need_to_know: >
|
289
|
+
There are 100 civics questions on the naturalization test. During your naturalization interview, you will be asked up to 10 questions from the list of 100 questions. You must answer correctly six (6) of the 10 questions to pass the civics test.
|
290
|
+
user_id: 1
|
291
|
+
|
292
|
+
|
293
|
+
eighteen:
|
294
|
+
title: How do I study for the test?
|
295
|
+
slug: how-do-i-study-for-the-test
|
296
|
+
preview: There are many study materials available.
|
297
|
+
category_id: 1
|
298
|
+
type: QuickAnswer
|
299
|
+
tags: >
|
300
|
+
Naturalization Exam, Test, Questions
|
301
|
+
content_main: >
|
302
|
+
There are many study materials available. You can get materials from the website or you can visit the U.S. Government Bookstore to purchase USCIS products and publications.
|
303
|
+
content_need_to_know: <http://www.uscis.gov/citizenship/learners/study-test/study-materials-civics-test>
|
304
|
+
user_id: 1
|
305
|
+
|
306
|
+
|
307
|
+
nineteen:
|
308
|
+
title: Why should I become a citizen?
|
309
|
+
slug: why-should-i-become-a-citizen
|
310
|
+
preview: >
|
311
|
+
Citizenship offers new rights and privileges.
|
312
|
+
category_id: 1
|
313
|
+
type: QuickAnswer
|
314
|
+
tags: >
|
315
|
+
U.S. citizen, jury, passport, family, sponsor, jobs, benefits
|
316
|
+
content_main: >
|
317
|
+
As a permanent resident, you have most of the rights of U.S. citizens. However, there are many important reasons to consider U.S. citizenship. Citizenship offers new rights and privileges, but comes with equally important responsibilities.
|
318
|
+
content_need_to_know: |
|
319
|
+
Only citizens can:
|
320
|
+
|
321
|
+
* vote in federal elections;
|
322
|
+
* serve on a federal jury;
|
323
|
+
* travel with a U.S. passport;
|
324
|
+
* sponsor family members to come to the U.S.;
|
325
|
+
* obtain citizenship for children born abroad automatically when the child is under 18 years of age;
|
326
|
+
* apply for federal jobs;
|
327
|
+
* become an elected official;
|
328
|
+
* keep your residency;
|
329
|
+
* become eligible for federal grants and scholarships; and
|
330
|
+
* obtain government benefits.
|
331
|
+
user_id: 1
|
332
|
+
|
333
|
+
|
334
|
+
twenty:
|
335
|
+
title: What are the benefits of citizenship?
|
336
|
+
slug: what-are-the-benefits-of-citizenship
|
337
|
+
preview: Citizenship offers new rights and privileges; such as...
|
338
|
+
category_id: 3
|
339
|
+
type: QuickAnswer
|
340
|
+
tags: >
|
341
|
+
U.S. citizen, jury, passport, family, sponsor, jobs, benefits
|
342
|
+
content_main: |
|
343
|
+
Citizenship offers new rights and privileges, such as:
|
344
|
+
|
345
|
+
* Voting
|
346
|
+
* Bringing family members to the US
|
347
|
+
* Obtaining citizenship for children born abroad
|
348
|
+
* Traveling with a U.S. passport
|
349
|
+
* Becoming eligible for Federal jobs
|
350
|
+
* Becoming an elected official
|
351
|
+
* Showing your patriotism
|
352
|
+
user_id: 1
|
353
|
+
|
354
|
+
|
355
|
+
twenty_one:
|
356
|
+
title: What is good moral character?
|
357
|
+
slug: what-is-good-moral-character
|
358
|
+
preview: >
|
359
|
+
You must show that you have been, and continue to be, a person of good moral character in order to be eligible for naturalization.
|
360
|
+
category_id: 1
|
361
|
+
type: QuickAnswer
|
362
|
+
tags: >
|
363
|
+
Policy, Good Moral Character, Naturalization, INA 101(f)
|
364
|
+
content_main: >
|
365
|
+
You must show that you have been, and continue to be, a person of good moral character in order to be eligible for naturalization.
|
366
|
+
content_need_to_know: |
|
367
|
+
In general, an applicant must show that he or she has been and continues to be a person of GMC during the statutory period prior to filing and up to the time of the Oath of Allegiance.
|
368
|
+
|
369
|
+
The applicable naturalization provision under which the applicant files determines the period during which the applicant must demonstrate GMC. The applicant’s conduct outside the GMC period may also impact whether he or she meets the GMC requirement.
|
370
|
+
|
371
|
+
While USCIS determines whether an applicant has met the GMC requirement on a case-by-case basis, certain types of criminal conduct automatically preclude applicants from establishing GMC and may make the applicant subject to removal proceedings.[5] An applicant may also be found to lack GMC for other types of criminal conduct (or unlawful acts).
|
372
|
+
user_id: 1
|
373
|
+
|
374
|
+
|
375
|
+
twenty_two:
|
376
|
+
title: What is physical presence?
|
377
|
+
slug: what-is-physical-presence
|
378
|
+
preview: >
|
379
|
+
Physical presence is the amount of time you have been physically present in the U.S. before applying for naturalization.
|
380
|
+
category_id: 1
|
381
|
+
type: QuickAnswer
|
382
|
+
tags: >
|
383
|
+
Naturalization, Citizen, Naturalizing, Physical Presence, Reside
|
384
|
+
content_main: >
|
385
|
+
Physical presence is the amount of time you have been physically present in the U.S. before applying for naturalization.
|
386
|
+
content_need_to_know: |
|
387
|
+
You must show that you were:
|
388
|
+
|
389
|
+
* Physically present in the U.S. for 30 months within the five year period before applying, or
|
390
|
+
* Physically present in the U.S. for 18 months within the three year period before applying in the case of qualified spouses of U.S. citizens
|
391
|
+
user_id: 1
|
392
|
+
|
393
|
+
|
394
|
+
twenty_three:
|
395
|
+
title: What is continuous residence?
|
396
|
+
slug: what-is-continuous-residence
|
397
|
+
preview: >
|
398
|
+
"Continuous residence" means that the applicant has maintained residence within the United States for a required period of time.
|
399
|
+
category_id: 1
|
400
|
+
type: QuickAnswer
|
401
|
+
tags: >
|
402
|
+
Naturalization, Citizen, Naturalizing, Continuous Presence, Reside
|
403
|
+
content_main: >
|
404
|
+
“Continuous residence” means that the applicant has maintained residence within the United States for a required period of time.
|
405
|
+
content_need_to_know: |
|
406
|
+
Applicants are required to show that they have:
|
407
|
+
|
408
|
+
* Resided continuously in the U.S. for five years before applying, or
|
409
|
+
* Resided continuously in the U.S. for three years in the case of qualified spouses of U.S. citizens
|
410
|
+
user_id: 1
|
411
|
+
|
412
|
+
|
413
|
+
twenty_four:
|
414
|
+
title: How do I preserve my continuous residence?
|
415
|
+
slug: how-do-i-preserve-my-continuous-residence
|
416
|
+
preview: >
|
417
|
+
You can seek to preserve your continuous residence for naturalization purposes while working overseas.
|
418
|
+
category_id: 1
|
419
|
+
type: QuickAnswer
|
420
|
+
tags: >
|
421
|
+
Naturalization, Citizen, Naturalizing, Continuous Presence, Reside
|
422
|
+
content_main: >
|
423
|
+
You can seek to preserve your continuous residence for naturalization purposes while working overseas.
|
424
|
+
content_need_to_know: |
|
425
|
+
If you want to preserve your continuous residence while working overseas for a recognized institution, you must file Form N-470, Application to Preserve Residence for Naturalization Purposes with USCIS.
|
426
|
+
|
427
|
+
An organization may obtain USCIS recognition as an American institution of research for the purpose of preserving the continuous residence status of its employees who are, or will be, naturalization applicants assigned abroad for an extended period of time. The requesting organization should follow the instructions found on the Requesting Recognition as an American Institution of Research page.
|
428
|
+
user_id: 1
|