plyom_user 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/plyom_user/version.rb +1 -1
- data/lib/plyom_user.rb +4 -3
- data/vendor/bundle/ruby/2.0.0/bin/httparty +23 -0
- data/vendor/bundle/ruby/2.0.0/bin/rake +23 -0
- data/vendor/bundle/ruby/2.0.0/build_info/httparty-0.11.0.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/multi_json-1.8.2.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/multi_xml-0.5.5.info +1 -0
- data/vendor/bundle/ruby/2.0.0/build_info/rake-10.1.1.info +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/.gitignore +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/.travis.yml +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/Gemfile +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/Guardfile +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/History +303 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/README.md +79 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/Rakefile +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/bin/httparty +114 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/cucumber.yml +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/aaws.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/basic.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/crack.rb +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/custom_parsers.rb +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/delicious.rb +37 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/google.rb +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/headers_and_user_agents.rb +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/nokogiri_html_parser.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/rubyurl.rb +14 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/tripit_sign_in.rb +33 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/twitter.rb +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/examples/whoismyrep.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/basic_authentication.feature +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/command_line.feature +7 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/deals_with_http_error_codes.feature +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/digest_authentication.feature +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/handles_compressed_responses.feature +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/handles_multiple_formats.feature +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/steps/env.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/steps/httparty_response_steps.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/steps/httparty_steps.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/steps/mongrel_helper.rb +94 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/steps/remote_service_steps.rb +69 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_redirection.feature +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/features/supports_timeout_option.feature +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/httparty.gemspec +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/connection_adapter.rb +134 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/cookie_hash.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/core_extensions.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/exceptions.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/hash_conversions.rb +51 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/module_inheritable_attributes.rb +56 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/net_digest_auth.rb +84 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/parser.rb +139 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/request.rb +250 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/response/headers.rb +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/response.rb +67 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty/version.rb +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/lib/httparty.rb +534 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/delicious.xml +23 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/empty.xml +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/google.html +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generate.sh +29 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/1fe462c2.0 +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/bogushost.crt +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/ca.crt +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/ca.key +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/selfsigned.crt +14 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/server.crt +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/generated/server.key +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/ssl/openssl-exts.cnf +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/twitter.json +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/twitter.xml +403 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/connection_adapter_spec.rb +223 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/cookie_hash_spec.rb +76 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/net_digest_auth_spec.rb +115 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/parser_spec.rb +166 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/request_spec.rb +514 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/response_spec.rb +221 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty/ssl_spec.rb +62 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/httparty_spec.rb +733 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/spec.opts +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/spec_helper.rb +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/support/ssl_test_helper.rb +47 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/support/ssl_test_server.rb +80 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/spec/support/stub_response.rb +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/website/css/common.css +47 -0
- data/vendor/bundle/ruby/2.0.0/gems/httparty-0.11.0/website/index.html +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/.document +5 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/.rspec +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/.travis.yml +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/.yardopts +6 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/CHANGELOG.md +185 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/CONTRIBUTING.md +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/Gemfile +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/LICENSE.md +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/README.md +108 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/Rakefile +25 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapter.rb +57 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/gson.rb +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/jr_jackson.rb +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/json_common.rb +25 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/json_gem.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/json_pure.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/oj.rb +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/ok_json.rb +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/adapters/yajl.rb +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/convertible_hash_keys.rb +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/load_error.rb +11 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/options.rb +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/vendor/okjson.rb +606 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json/version.rb +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/lib/multi_json.rb +159 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/multi_json.gemspec +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/gson_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/jr_jackson_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/json_gem_adapter_spec.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/json_pure_adapter_spec.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/multi_json_spec.rb +193 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/nsjsonserialization_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/oj_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/ok_json_adapter_spec.rb +7 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/shared/adapter.rb +230 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/shared/json_common_adapter.rb +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/shared/options.rb +119 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/spec_helper.rb +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_json-1.8.2/spec/yajl_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/.yardopts +8 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/CHANGELOG.md +93 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/CONTRIBUTING.md +49 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/LICENSE.md +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/README.md +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/Rakefile +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb +30 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml2_parser.rb +74 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/nokogiri.rb +32 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/ox.rb +97 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/parsers/rexml.rb +113 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml/version.rb +3 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/lib/multi_xml.rb +296 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/multi_xml.gemspec +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/spec/helper.rb +17 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/spec/multi_xml_spec.rb +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/spec/parser_shared_example.rb +694 -0
- data/vendor/bundle/ruby/2.0.0/gems/multi_xml-0.5.5/spec/speed.rb +63 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/.gemtest +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/CHANGES +530 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/README.rdoc +187 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/Rakefile +374 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/TODO +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/bin/rake +33 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/install.rb +80 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/alt_system.rb +108 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb +728 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/backtrace.rb +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/clean.rb +55 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/cloneable.rb +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/contrib/compositepublisher.rb +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/contrib/ftptools.rb +139 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/contrib/publisher.rb +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/contrib/rubyforgepublisher.rb +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/contrib/sshpublisher.rb +50 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/contrib/sys.rb +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/default_loader.rb +10 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/dsl_definition.rb +157 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/early_time.rb +18 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/ext/core.rb +28 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/ext/module.rb +0 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/ext/string.rb +166 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/ext/time.rb +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/file_creation_task.rb +24 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/file_list.rb +416 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/file_task.rb +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/file_utils.rb +116 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/file_utils_ext.rb +144 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/gempackagetask.rb +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/invocation_chain.rb +57 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/invocation_exception_mixin.rb +16 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/linked_list.rb +103 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/loaders/makefile.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/multi_task.rb +13 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/name_space.rb +25 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/packagetask.rb +190 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/pathmap.rb +1 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/phony.rb +15 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/private_reader.rb +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/promise.rb +99 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/pseudo_status.rb +29 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/rake_module.rb +37 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/rake_test_loader.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/rdoctask.rb +2 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/ruby182_test_unit_fix.rb +27 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/rule_recursion_overflow_error.rb +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/runtest.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/scope.rb +42 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/task.rb +378 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/task_argument_error.rb +7 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/task_arguments.rb +89 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/task_manager.rb +297 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/tasklib.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/testtask.rb +201 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/thread_history_display.rb +48 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/thread_pool.rb +161 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/trace_output.rb +22 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/version.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/win32.rb +56 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake.rb +73 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/file_creation.rb +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/helper.rb +128 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/support/rakefile_definitions.rb +444 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/support/ruby_runner.rb +33 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_private_reader.rb +42 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_application.rb +517 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_application_options.rb +457 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_backtrace.rb +113 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_clean.rb +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_definitions.rb +79 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_directory_task.rb +57 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_dsl.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_early_time.rb +31 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_extension.rb +59 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_file_creation_task.rb +56 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_file_list.rb +627 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_file_list_path_map.rb +8 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_file_task.rb +122 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_file_utils.rb +309 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_ftp_file.rb +74 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_functional.rb +466 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_invocation_chain.rb +64 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_linked_list.rb +84 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_makefile_loader.rb +46 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_multi_task.rb +58 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_name_space.rb +43 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_package_task.rb +79 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_path_map.rb +168 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_path_map_explode.rb +34 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_path_map_partial.rb +18 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_pseudo_status.rb +21 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_rake_test_loader.rb +20 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_reduce_compat.rb +26 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_require.rb +40 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_rules.rb +362 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_scope.rb +44 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task.rb +376 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task_argument_parsing.rb +103 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task_arguments.rb +121 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task_lib.rb +9 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task_manager.rb +158 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task_manager_argument_resolution.rb +19 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_task_with_arguments.rb +171 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_test_task.rb +119 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_thread_pool.rb +142 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_top_level_functions.rb +71 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_rake_win32.rb +72 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_thread_history_display.rb +101 -0
- data/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/test/test_trace_output.rb +52 -0
- data/vendor/bundle/ruby/2.0.0/specifications/httparty-0.11.0.gemspec +34 -0
- data/vendor/bundle/ruby/2.0.0/specifications/multi_json-1.8.2.gemspec +30 -0
- data/vendor/bundle/ruby/2.0.0/specifications/multi_xml-0.5.5.gemspec +30 -0
- data/vendor/bundle/ruby/2.0.0/specifications/rake-10.1.1.gemspec +34 -0
- metadata +262 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47241df0bb32bbaac15aa2d1cb1ba68ebde71e91
|
4
|
+
data.tar.gz: c56d95fcb9679156c80231c086e0bf783bad3a3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09a209827abc8e2642e92c5fb51ed3edd1f17b4135c301a9449869d11ac2c74587162ac523e8bbd41ef2e8b54c63ee8d2e374ffa935bf055268a238a5af48cb4
|
7
|
+
data.tar.gz: 24dfd76fd2e0a762f7cc2ab2771373172f8dd4d75e6067b8e7fc5efb79aae0b0c86d5b9cd54e8f800e2f39d307d78e9bc7e6060f1e45fe5073e8d9ccab2ec5b6
|
data/README.md
CHANGED
data/lib/plyom_user/version.rb
CHANGED
data/lib/plyom_user.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'active_support'
|
1
2
|
require "plyom_user/version"
|
2
3
|
require "httparty"
|
3
4
|
require "json"
|
@@ -5,15 +6,15 @@ require "json"
|
|
5
6
|
module PlyomUser
|
6
7
|
|
7
8
|
def self.included(base)
|
8
|
-
|
9
|
-
|
9
|
+
base.extend ClassMethods
|
10
|
+
end
|
10
11
|
|
11
12
|
module ClassMethods
|
12
13
|
class_attribute :id, :name, :email, :username, :password, :password_confirmation, :password_digest, :status, :token, :created_at, :updated_at
|
13
14
|
|
14
15
|
def initialize(params={})
|
15
16
|
params.each { |var, val| public_send("#{var}=", val) }
|
16
|
-
|
17
|
+
end
|
17
18
|
|
18
19
|
def self.all
|
19
20
|
list = []
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by RubyGems.
|
4
|
+
#
|
5
|
+
# The application 'httparty' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'rubygems'
|
10
|
+
|
11
|
+
version = ">= 0"
|
12
|
+
|
13
|
+
if ARGV.first
|
14
|
+
str = ARGV.first
|
15
|
+
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
|
16
|
+
if str =~ /\A_(.*)_\z/
|
17
|
+
version = $1
|
18
|
+
ARGV.shift
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
gem 'httparty', version
|
23
|
+
load Gem.bin_path('httparty', 'httparty', version)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by RubyGems.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'rubygems'
|
10
|
+
|
11
|
+
version = ">= 0"
|
12
|
+
|
13
|
+
if ARGV.first
|
14
|
+
str = ARGV.first
|
15
|
+
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
|
16
|
+
if str =~ /\A_(.*)_\z/
|
17
|
+
version = $1
|
18
|
+
ARGV.shift
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
gem 'rake', version
|
23
|
+
load Gem.bin_path('rake', 'rake', version)
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
gemspec
|
3
|
+
|
4
|
+
gem 'rake'
|
5
|
+
gem 'cucumber', '~> 0.7'
|
6
|
+
gem 'fakeweb', '~> 1.2'
|
7
|
+
gem 'rspec', '~> 1.3'
|
8
|
+
gem 'mongrel', '1.2.0.pre2'
|
9
|
+
gem 'multi_json', '~> 1.3'
|
10
|
+
|
11
|
+
group :development do
|
12
|
+
gem 'guard'
|
13
|
+
gem 'guard-rspec'
|
14
|
+
gem 'guard-bundler'
|
15
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
rspec_options = {
|
2
|
+
:version => 1,
|
3
|
+
:all_after_pass => false,
|
4
|
+
:all_on_start => false,
|
5
|
+
}
|
6
|
+
|
7
|
+
guard 'rspec', rspec_options do
|
8
|
+
watch(%r{^spec/.+_spec\.rb$})
|
9
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
10
|
+
watch('spec/spec_helper.rb') { "spec" }
|
11
|
+
end
|
12
|
+
|
13
|
+
guard 'bundler' do
|
14
|
+
watch('Gemfile')
|
15
|
+
watch(/^.+\.gemspec/)
|
16
|
+
end
|
@@ -0,0 +1,303 @@
|
|
1
|
+
== 0.10.1 2013-01-26
|
2
|
+
|
3
|
+
* new
|
4
|
+
* [added support for MOVE requests](https://github.com/jnunemaker/httparty/pull/183)
|
5
|
+
* [bump multi xml version](https://github.com/jnunemaker/httparty/pull/181)
|
6
|
+
|
7
|
+
== 0.10.0 2013-01-10
|
8
|
+
* changes
|
9
|
+
* removed yaml support because of security risk (see rails yaml issues)
|
10
|
+
|
11
|
+
== 0.9.0 2012-09-07
|
12
|
+
* new
|
13
|
+
* [support for connection adapters](https://github.com/jnunemaker/httparty/pull/157)
|
14
|
+
* [allow ssl_version on ruby 1.9](https://github.com/jnunemaker/httparty/pull/159)
|
15
|
+
|
16
|
+
* bug fixes
|
17
|
+
* [don't treat port 4430 as ssl](https://github.com/jnunemaker/httparty/commit/a296b1c97f83d7dcc6ef85720a43664c265685ac)
|
18
|
+
* [deep clone default options](https://github.com/jnunemaker/httparty/commit/f74227d30f9389b4b23a888c9af49fb9b8248e1f)
|
19
|
+
* a few net digest auth fixes
|
20
|
+
|
21
|
+
== 0.8.3 2012-04-21
|
22
|
+
* new
|
23
|
+
* [lazy parsing of responses](https://github.com/jnunemaker/httparty/commit/9fd5259c8dab00e426082b66af44ede2c9068f45)
|
24
|
+
* [add support for PATCH requests](https://github.com/jnunemaker/httparty/commit/7ab6641e37a9e31517e46f6124f38c615395d38a)
|
25
|
+
* bug fixes
|
26
|
+
* [subclasses no longer override superclass options](https://github.com/jnunemaker/httparty/commit/682af8fbf672e7b3009e650da776c85cdfe78d39)
|
27
|
+
|
28
|
+
== 0.8.2 2012-04-12
|
29
|
+
* new
|
30
|
+
* add -r to make CLI return failure code if status >= 400
|
31
|
+
* allow blank username from CLI
|
32
|
+
* bug fixes
|
33
|
+
* return nil for null body
|
34
|
+
* automatically deflate responses with a Content-Encoding: x-gzip header
|
35
|
+
* Do not HEAD on POST request with digest authentication
|
36
|
+
* add support for proxy authentication
|
37
|
+
* fix posting data with CLI
|
38
|
+
* require rexml/document if xml format from CLI
|
39
|
+
* support for fragmented responses
|
40
|
+
|
41
|
+
== 0.8.1 2011-10-05
|
42
|
+
* bug fixes
|
43
|
+
* content-encoding header should be removed when automatically inflating the body
|
44
|
+
|
45
|
+
== 0.8.0 2011-09-13
|
46
|
+
* new
|
47
|
+
* switch to multi json/xml for parsing by default
|
48
|
+
* bug fixes
|
49
|
+
* fix redirects to relative uri's
|
50
|
+
|
51
|
+
== 0.7.8 2011-06-06
|
52
|
+
* bug fix
|
53
|
+
* Make response honor respond to
|
54
|
+
* net http timeout can also be a float
|
55
|
+
|
56
|
+
== 0.7.7 2011-04-16
|
57
|
+
* bug fix
|
58
|
+
* Fix NoMethodError when using the NON_RAILS_QUERY_STRING_NORMALIZER with a hash whose key is a symbol and value is nil
|
59
|
+
|
60
|
+
== 0.7.5 2011-04-16
|
61
|
+
* bug fix
|
62
|
+
* caused issue with latest rubygems
|
63
|
+
|
64
|
+
== 0.7.4 2011-02-13
|
65
|
+
* bug fixes
|
66
|
+
* Set VERIFY_NONE when using https. Ruby 1.9.2 no longer sets this for us. gh-67
|
67
|
+
|
68
|
+
== 0.7.3 2011-01-20
|
69
|
+
* bug fixes
|
70
|
+
* Fix digest auth for unspecified quality of protection (bjoernalbers, mtrudel, dwo)
|
71
|
+
|
72
|
+
== 0.7.2 2011-01-20
|
73
|
+
* bug fixes
|
74
|
+
* Fix gem dependencies
|
75
|
+
|
76
|
+
== 0.7.1 2011-01-19
|
77
|
+
* bug fixes
|
78
|
+
* Fix uninitialized constant HTTParty::Response::Net in 1.9.2 (cap10morgan)
|
79
|
+
* Other fixes for 1.9.2, full suite still fails (cap10morgan)
|
80
|
+
|
81
|
+
== 0.7.0 2011-01-18
|
82
|
+
* minor enhancements
|
83
|
+
* Added query methods for HTTP status codes, i.e. response.success?
|
84
|
+
response.created? (thanks citizenparker)
|
85
|
+
* Added support for ssl_ca_file and ssl_ca_path (dlitz)
|
86
|
+
* Allow custom query string normalization. gh-8
|
87
|
+
* Unlock private keys with password (freerange)
|
88
|
+
* Added high level request documentation (phildarnowsky)
|
89
|
+
* Added basic post example (pbuckley)
|
90
|
+
* Response object has access to its corresponding request object
|
91
|
+
* Added example of siginin into tripit.com
|
92
|
+
* Added option to follow redirects (rkj). gh-56
|
93
|
+
* bug fixes
|
94
|
+
* Fixed superclass mismatch exception while running tests
|
95
|
+
(thanks dlitz http://github.com/dlitz/httparty/commit/48224f0615b32133afcff4718ad426df7a4b401b)
|
96
|
+
|
97
|
+
== 0.6.1 2010-07-07
|
98
|
+
* minor enhancements
|
99
|
+
* updated to crack 0.1.8
|
100
|
+
* bug fixes
|
101
|
+
* subclasses always merge into the parent's default_options and
|
102
|
+
default_cookies (l4rk).
|
103
|
+
* subclasses play nicely with grand parents. gh-49
|
104
|
+
|
105
|
+
== 0.6.0 2010-06-13
|
106
|
+
* major enhancements
|
107
|
+
* Digest Auth (bartiaco, sbecker, gilles, and aaronrussell)
|
108
|
+
* Maintain HTTP method across redirects (bartiaco and sbecker)
|
109
|
+
* HTTParty::Response#response returns the Net::HTTPResponse object
|
110
|
+
* HTTParty::Response#headers returns a HTTParty::Response::Headers object
|
111
|
+
which quacks like a Hash + Net::HTTPHeader. The #headers method continues
|
112
|
+
to be backwards-compatible with the old Hash return value but may become
|
113
|
+
deprecated in the future.
|
114
|
+
|
115
|
+
* minor enhancements
|
116
|
+
* Update crack requirement to version 0.1.7
|
117
|
+
You may still get a warning because Crack's version constant is out of date
|
118
|
+
* Timeout option can be set for all requests using HTTParty.default_timeout (taazza)
|
119
|
+
* Closed #38 "headers hash should downcase keys so canonical header name can be used"
|
120
|
+
* Closed #40 "Gzip response" wherein gziped and deflated responses are
|
121
|
+
automatically inflated. (carsonmcdonald)
|
122
|
+
|
123
|
+
== 0.5.2 2010-01-31
|
124
|
+
* minor enhancements
|
125
|
+
* Update crack requirement to version 0.1.6
|
126
|
+
|
127
|
+
== 0.5.1 2010-01-30
|
128
|
+
* bug fixes
|
129
|
+
* Handle 304 response correctly by returning the HTTParty::Response object instead of redirecting (seth and hellvinz)
|
130
|
+
* Only redirect 300 responses if the header contains a Location
|
131
|
+
* Don't append empty query strings to the uri. Closes #31
|
132
|
+
* When no_follow is enabled, only raise the RedirectionTooDeep exception when a response tries redirecting. Closes #28
|
133
|
+
|
134
|
+
* major enhancements
|
135
|
+
* Removed rubygems dependency. I suggest adding rubygems to RUBYOPT if this causes problems for you.
|
136
|
+
$ export RUBYOPT='rubygems'
|
137
|
+
* HTTParty#debug_output prints debugging information for the current request (iwarshak)
|
138
|
+
* HTTParty#no_follow now available as a class-level option. Sets whether or not to follow redirects.
|
139
|
+
|
140
|
+
* minor enhancements
|
141
|
+
* HTTParty::VERSION now available
|
142
|
+
* Update crack requirement to version 0.1.5
|
143
|
+
|
144
|
+
== 0.5.0 2009-12-07
|
145
|
+
* bug fixes
|
146
|
+
* inheritable attributes no longer mutable by subclasses (yyyc514)
|
147
|
+
* namespace BasicObject within HTTParty to avoid class name collisions (eric)
|
148
|
+
|
149
|
+
* major enhancements
|
150
|
+
* Custom Parsers via class or proc
|
151
|
+
* Deprecation warning on HTTParty::AllowedFormats
|
152
|
+
moved to HTTParty::Parser::SupportedFormats
|
153
|
+
|
154
|
+
* minor enhancements
|
155
|
+
* Curl inspired output when using the binary in verbose mode (alexvollmer)
|
156
|
+
* raise UnsupportedURIScheme when scheme is not HTTP or HTTPS (djspinmonkey)
|
157
|
+
* Allow SSL for ports other than 443 when scheme is HTTPS (stefankroes)
|
158
|
+
* Accept PEM certificates via HTTParty#pem (chrislo)
|
159
|
+
* Support HEAD and OPTION verbs (grempe)
|
160
|
+
* Verify SSL certificates when providing a PEM file (collectiveidea/danielmorrison)
|
161
|
+
|
162
|
+
== 0.4.5 2009-09-12
|
163
|
+
* bug fixes
|
164
|
+
* Fixed class-level headers overwritten by cookie management code. Closes #19
|
165
|
+
* Fixed "superclass mismatch for class BlankSlate" error. Closes #20
|
166
|
+
* Fixed reading files as post data from the command line (vesan)
|
167
|
+
|
168
|
+
* minor enhancements
|
169
|
+
* Timeout option added; will raise a Timeout::Error after the timeout has elapsed (attack). Closes #17
|
170
|
+
HTTParty.get "http://github.com", :timeout => 1
|
171
|
+
* Building gem with Jeweler
|
172
|
+
|
173
|
+
== 0.4.4 2009-07-19
|
174
|
+
* 2 minor update
|
175
|
+
* :query no longer sets form data. Use body and set content type to application/x-www-form-urlencoded if you need it. :query was wrong for that.
|
176
|
+
* Fixed a bug in the cookies class method that caused cookies to be forgotten after the first request.
|
177
|
+
* Also, some general cleanup of tests and such.
|
178
|
+
|
179
|
+
== 0.4.3 2009-04-23
|
180
|
+
* 1 minor update
|
181
|
+
* added message to the response object
|
182
|
+
|
183
|
+
== 0.4.2 2009-03-30
|
184
|
+
* 2 minor changes
|
185
|
+
* response code now returns an integer instead of a string (jqr)
|
186
|
+
* rubyforge project setup for crack so i'm now depending on that instead of jnunemaker-crack
|
187
|
+
|
188
|
+
== 0.4.1 2009-03-29
|
189
|
+
* 1 minor fix
|
190
|
+
* gem 'jnunemaker-crack' instead of gem 'crack'
|
191
|
+
|
192
|
+
== 0.4.0 2009-03-29
|
193
|
+
* 1 minor change
|
194
|
+
* Switched xml and json parsing to crack (same code as before just moved to gem for easier reuse in other projects)
|
195
|
+
|
196
|
+
== 0.3.1 2009-02-10
|
197
|
+
* 1 minor fix, 1 minor enhancement
|
198
|
+
* Fixed unescaping umlauts (siebertm)
|
199
|
+
* Added yaml response parsing (Miha Filej)
|
200
|
+
|
201
|
+
== 0.3.0 2009-01-31
|
202
|
+
* 1 major enhancement, 1 bug fix
|
203
|
+
* JSON gem no longer a requirement. It was conflicting with rails json stuff so I just stole ActiveSupport's json decoding and bundled it with HTTParty.
|
204
|
+
* Fixed bug where query strings were being duplicated on redirects
|
205
|
+
* Added a bunch of specs and moved some code around.
|
206
|
+
|
207
|
+
== 0.2.10 2009-01-29
|
208
|
+
* 1 minor enhancement
|
209
|
+
* Made encoding on query parameters treat everything except URI::PATTERN::UNRESERVED as UNSAFE to force encoding of '+' character (Julian Russell)
|
210
|
+
|
211
|
+
== 0.2.9 2009-01-29
|
212
|
+
* 3 minor enhancements
|
213
|
+
* Added a 'headers' accessor to the response with a hash of any HTTP headers. (Don Peterson)
|
214
|
+
* Add support for a ":cookies" option to be used at the class level, or as an option on any individual call. It should be passed a hash, which will be converted to the proper format and added to the request headers when the call is made. (Don Peterson)
|
215
|
+
* Refactored several specs and added a full suite of cucumber features (Don Peterson)
|
216
|
+
|
217
|
+
== 0.2.8 2009-01-28
|
218
|
+
* 1 major fix
|
219
|
+
* fixed major bug with response where it wouldn't iterate or really work at all with parsed responses
|
220
|
+
|
221
|
+
== 0.2.7 2009-01-28
|
222
|
+
* 2 minor fixes, 2 minor enhancements, 2 major enhancements
|
223
|
+
* fixed undefined method add_node for nil class error that occasionally happened (juliocesar)
|
224
|
+
* Handle nil or unexpected values better when typecasting. (Brian Landau)
|
225
|
+
* More robust handling of mime types (Alex Vollmer)
|
226
|
+
* Fixed support for specifying headers and added support for basic auth to CLI. (Alex Vollmer)
|
227
|
+
* Added first class response object that includes original body and status code (Alex Vollmer)
|
228
|
+
* Now parsing all response types as some non-200 responses provide important information, this means no more exception raising (Alex Vollmer)
|
229
|
+
|
230
|
+
== 0.2.6 2009-01-05
|
231
|
+
* 1 minor bug fix
|
232
|
+
* added explicit require of time as Time#parse failed outside of rails (willcodeforfoo)
|
233
|
+
|
234
|
+
== 0.2.5 2009-01-05
|
235
|
+
* 1 major enhancement
|
236
|
+
* Add command line interface to HTTParty (Alex Vollmer)
|
237
|
+
|
238
|
+
== 0.2.4 2008-12-23
|
239
|
+
* 1 bug fix
|
240
|
+
* Fixed that mimetype detection was failing if no mimetype was returned from service (skippy)
|
241
|
+
== 0.2.3 2008-12-23
|
242
|
+
* 1 bug fix
|
243
|
+
* Fixed typecasting class variable naming issue
|
244
|
+
|
245
|
+
== 0.2.2 2008-12-08
|
246
|
+
* 1 bug fix
|
247
|
+
* Added the missing core extension hash method to_xml_attributes
|
248
|
+
|
249
|
+
== 0.2.1 2008-12-08
|
250
|
+
* 1 bug fix
|
251
|
+
* Fixed that HTTParty was borking ActiveSupport and as such Rails (thanks to Rob Sanheim)
|
252
|
+
|
253
|
+
== 0.2.0 2008-12-07
|
254
|
+
* 1 major enhancement
|
255
|
+
* Removed ActiveSupport as a dependency. Now requires json gem for json deserialization and uses an included class to do the xml parsing.
|
256
|
+
|
257
|
+
== 0.1.8 2008-11-30
|
258
|
+
* 3 major enhancements
|
259
|
+
* Moved base_uri normalization into request class and out of httparty module, fixing
|
260
|
+
the problem where base_uri was not always being normalized.
|
261
|
+
* Stupid simple support for HTTParty.get/post/put/delete. (jqr)
|
262
|
+
* Switched gem management to Echoe from newgem.
|
263
|
+
|
264
|
+
== 0.1.7 2008-11-30
|
265
|
+
* 1 major enhancement
|
266
|
+
* fixed multiple class definitions overriding each others options
|
267
|
+
|
268
|
+
== 0.1.6 2008-11-26
|
269
|
+
* 1 major enhancement
|
270
|
+
* now passing :query to set_form_data if post request to avoid content length errors
|
271
|
+
|
272
|
+
== 0.1.5 2008-11-14
|
273
|
+
* 2 major enhancements
|
274
|
+
* Refactored send request method out into its own object.
|
275
|
+
* Added :html format if you just want to do that.
|
276
|
+
|
277
|
+
== 0.1.4 2008-11-08
|
278
|
+
* 3 major enhancements:
|
279
|
+
* Removed some cruft
|
280
|
+
* Added ability to follow redirects automatically and turn that off (Alex Vollmer)
|
281
|
+
|
282
|
+
== 0.1.3 2008-08-22
|
283
|
+
|
284
|
+
* 3 major enhancements:
|
285
|
+
* Added http_proxy key for setting proxy server and port (francxk@gmail.com)
|
286
|
+
* Now raises exception when http error occurs (francxk@gmail.com)
|
287
|
+
* Changed auto format detection from file extension to response content type (Jay Pignata)
|
288
|
+
|
289
|
+
== 0.1.2 2008-08-09
|
290
|
+
|
291
|
+
* 1 major enhancement:
|
292
|
+
* default_params were not being appended to query string if option[:query] was blank
|
293
|
+
|
294
|
+
== 0.1.1 2008-07-30
|
295
|
+
|
296
|
+
* 2 major enhancement:
|
297
|
+
* Added :basic_auth key for options when making a request
|
298
|
+
* :query and :body both now work with query string or hash
|
299
|
+
|
300
|
+
== 0.1.0 2008-07-27
|
301
|
+
|
302
|
+
* 1 major enhancement:
|
303
|
+
* Initial release
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008 John Nunemaker
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# httparty
|
2
|
+
|
3
|
+
Makes http fun again!
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
```
|
8
|
+
gem install httparty
|
9
|
+
```
|
10
|
+
|
11
|
+
## Requirements
|
12
|
+
|
13
|
+
* multi_json and multi_xml
|
14
|
+
* You like to party!
|
15
|
+
|
16
|
+
## Examples
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
# Use the class methods to get down to business quickly
|
20
|
+
response = HTTParty.get('http://twitter.com/statuses/public_timeline.json')
|
21
|
+
puts response.body, response.code, response.message, response.headers.inspect
|
22
|
+
|
23
|
+
response.each do |item|
|
24
|
+
puts item['user']['screen_name']
|
25
|
+
end
|
26
|
+
|
27
|
+
# Or wrap things up in your own class
|
28
|
+
class Twitter
|
29
|
+
include HTTParty
|
30
|
+
base_uri 'twitter.com'
|
31
|
+
|
32
|
+
def initialize(u, p)
|
33
|
+
@auth = {:username => u, :password => p}
|
34
|
+
end
|
35
|
+
|
36
|
+
# which can be :friends, :user or :public
|
37
|
+
# options[:query] can be things like since, since_id, count, etc.
|
38
|
+
def timeline(which=:friends, options={})
|
39
|
+
options.merge!({:basic_auth => @auth})
|
40
|
+
self.class.get("/statuses/#{which}_timeline.json", options)
|
41
|
+
end
|
42
|
+
|
43
|
+
def post(text)
|
44
|
+
options = { :body => {:status => text}, :basic_auth => @auth }
|
45
|
+
self.class.post('/statuses/update.json', options)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
twitter = Twitter.new(config['email'], config['password'])
|
50
|
+
pp twitter.timeline
|
51
|
+
```
|
52
|
+
|
53
|
+
See the [examples directory](http://github.com/jnunemaker/httparty/tree/master/examples) for even more goodies.
|
54
|
+
|
55
|
+
## Command Line Interface
|
56
|
+
|
57
|
+
httparty also includes the executable `httparty` which can be
|
58
|
+
used to query web services and examine the resulting output. By default
|
59
|
+
it will output the response as a pretty-printed Ruby object (useful for
|
60
|
+
grokking the structure of output). This can also be overridden to output
|
61
|
+
formatted XML or JSON. Execute `httparty --help` for all the
|
62
|
+
options. Below is an example of how easy it is.
|
63
|
+
|
64
|
+
```
|
65
|
+
httparty "http://twitter.com/statuses/public_timeline.json"
|
66
|
+
```
|
67
|
+
|
68
|
+
## Help and Docs
|
69
|
+
|
70
|
+
* https://groups.google.com/forum/#!forum/httparty-gem
|
71
|
+
* http://rdoc.info/projects/jnunemaker/httparty
|
72
|
+
|
73
|
+
## Contributing
|
74
|
+
|
75
|
+
* Fork the project.
|
76
|
+
* Make your feature addition or bug fix.
|
77
|
+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
78
|
+
* Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
|
79
|
+
* Send me a pull request. Bonus points for topic branches.
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
require 'spec/rake/spectask'
|
5
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
6
|
+
spec.ruby_opts << '-rubygems'
|
7
|
+
spec.libs << 'lib' << 'spec'
|
8
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
9
|
+
spec.spec_opts = ['--options', 'spec/spec.opts']
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'cucumber/rake/task'
|
13
|
+
Cucumber::Rake::Task.new(:features)
|
14
|
+
|
15
|
+
task :default => [:spec, :features]
|