source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/base.rb
Ruby
mit
304
master
585
module Fog module Parsers module AWS module ECS # Base parser for ResponseMetadata, RequestId class Base < Fog::Parsers::Base def reset super @response = {'ResponseMetadata' => {}} end def start_element(name, attrs = []) supe...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/list_task_definition_families.rb
Ruby
mit
304
master
636
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ListTaskDefinitionFamilies < Fog::Parsers::AWS::ECS::Base def reset super @result = 'ListTaskDefinitionFamiliesResult' @response[@result] = {'families' => [...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/list_clusters.rb
Ruby
mit
304
master
614
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ListClusters < Fog::Parsers::AWS::ECS::Base def reset super @result = 'ListClustersResult' @response[@result] = {'clusterArns' => []} end ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/start_task.rb
Ruby
mit
304
master
685
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task' class StartTask < Fog::Parsers::AWS::ECS::Task def reset super @result = 'StartTaskResult' @response[@result] = {'failures' => [], 'tasks' => []} @con...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/stop_task.rb
Ruby
mit
304
master
616
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task' class StopTask < Fog::Parsers::AWS::ECS::Task def reset super @result = 'StopTaskResult' @response[@result] = {'task' => {}} @contexts = %w(task conta...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/list_services.rb
Ruby
mit
304
master
614
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ListServices < Fog::Parsers::AWS::ECS::Base def reset super @result = 'ListServicesResult' @response[@result] = {'serviceArns' => []} end ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/run_task.rb
Ruby
mit
304
master
681
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task' class RunTask < Fog::Parsers::AWS::ECS::Task def reset super @result = 'RunTaskResult' @response[@result] = {'failures' => [], 'tasks' => []} @context...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/describe_task_definition.rb
Ruby
mit
304
master
939
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task_definition' class DescribeTaskDefinition < Fog::Parsers::AWS::ECS::TaskDefinition def reset super @result = 'DescribeTaskDefinitionResult' @definition = 'taskDefin...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/describe_tasks.rb
Ruby
mit
304
master
693
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task' class DescribeTasks < Fog::Parsers::AWS::ECS::Task def reset super @result = 'DescribeTasksResult' @response[@result] = {'failures' => [], 'tasks' => []} ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/describe_services.rb
Ruby
mit
304
master
625
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/service' class DescribeServices < Fog::Parsers::AWS::ECS::Service def reset super @result = 'DescribeServicesResult' @response[@result] = { 'services' => [], 'failures'...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/update_service.rb
Ruby
mit
304
master
755
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/service' class UpdateService < Fog::Parsers::AWS::ECS::Service def reset super @result = 'UpdateServiceResult' @response[@result] = {} @contexts = %w(servic...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/list_container_instances.rb
Ruby
mit
304
master
654
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ListContainerInstances < Fog::Parsers::AWS::ECS::Base def reset super @result = 'ListContainerInstancesResult' @response[@result] = {'containerInstanceArns'...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/describe_clusters.rb
Ruby
mit
304
master
1,487
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class DescribeClusters < Fog::Parsers::AWS::ECS::Base def reset super @result = 'DescribeClustersResult' @response[@result] = {} @contexts = %w(failur...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/task_definition.rb
Ruby
mit
304
master
3,215
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class TaskDefinition < Fog::Parsers::AWS::ECS::Base def start_element(name, attrs = []) super if @contexts.include?(name) @context.push(name) end ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/describe_container_instances.rb
Ruby
mit
304
master
1,085
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/container_instance' class DescribeContainerInstances < Fog::Parsers::AWS::ECS::ContainerInstance def reset super @result = 'DescribeContainerInstancesResult' @response[...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/register_task_definition.rb
Ruby
mit
304
master
939
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task_definition' class RegisterTaskDefinition < Fog::Parsers::AWS::ECS::TaskDefinition def reset super @result = 'RegisterTaskDefinitionResult' @definition = 'taskDefin...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/deregister_task_definition.rb
Ruby
mit
304
master
952
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/task_definition' class DeregisterTaskDefinition < Fog::Parsers::AWS::ECS::TaskDefinition def reset @response = {} @result = 'DeregisterTaskDefinitionResult' @definition...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/create_service.rb
Ruby
mit
304
master
755
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/service' class CreateService < Fog::Parsers::AWS::ECS::Service def reset super @result = 'CreateServiceResult' @response[@result] = {} @contexts = %w(servic...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/delete_cluster.rb
Ruby
mit
304
master
775
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class DeleteCluster < Fog::Parsers::AWS::ECS::Base def reset super @result = 'DeleteClusterResult' @response[@result] = {} @cluster = {} end...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/create_cluster.rb
Ruby
mit
304
master
775
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class CreateCluster < Fog::Parsers::AWS::ECS::Base def reset super @result = 'CreateClusterResult' @response[@result] = {} @cluster = {} end...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/list_tasks.rb
Ruby
mit
304
master
602
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ListTasks < Fog::Parsers::AWS::ECS::Base def reset super @result = 'ListTasksResult' @response[@result] = {'taskArns' => []} end def en...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/delete_service.rb
Ruby
mit
304
master
755
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/service' class DeleteService < Fog::Parsers::AWS::ECS::Service def reset super @result = 'DeleteServiceResult' @response[@result] = {} @contexts = %w(servic...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/container_instance.rb
Ruby
mit
304
master
2,629
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ContainerInstance < Fog::Parsers::AWS::ECS::Base def start_element(name, attrs = []) super if @contexts.include?(name) @context.push(name) end...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/deregister_container_instance.rb
Ruby
mit
304
master
842
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/container_instance' class DeregisterContainerInstance < Fog::Parsers::AWS::ECS::ContainerInstance def reset super @result = 'DeregisterContainerInstanceResult' @respons...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/list_task_definitions.rb
Ruby
mit
304
master
642
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class ListTaskDefinitions < Fog::Parsers::AWS::ECS::Base def reset super @result = 'ListTaskDefinitionsResult' @response[@result] = {'taskDefinitionArns' => []} ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ecs/task.rb
Ruby
mit
304
master
2,458
module Fog module Parsers module AWS module ECS require 'fog/aws/parsers/ecs/base' class Task < Fog::Parsers::AWS::ECS::Base def start_element(name, attrs = []) super if @contexts.include?(name) @context.push(name) end en...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/lambda/base.rb
Ruby
mit
304
master
893
module Fog module AWS module Parsers module Lambda class Base def process(body) body.inject({}) { |h, (k, v)| h[k] = rules(k, v); h } end private def rules(key, value) case value when Hash process(value) ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/elbv2/describe_load_balancers.rb
Ruby
mit
304
master
3,033
module Fog module Parsers module AWS module ELBV2 class DescribeLoadBalancers < Fog::Parsers::Base def reset reset_load_balancer reset_availability_zone @load_balancer_addresses = {} @state = {} @results = { 'LoadBalancers' => [] ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/elbv2/describe_tags.rb
Ruby
mit
304
master
1,506
module Fog module Parsers module AWS module ELBV2 class DescribeTags < Fog::Parsers::Base def reset @this_key = nil @this_value = nil @tags = Hash.new @response = { 'DescribeTagsResult' => { 'TagDescriptions' => [] }, 'ResponseMetad...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/elbv2/create_load_balancer.rb
Ruby
mit
304
master
3,021
module Fog module Parsers module AWS module ELBV2 class CreateLoadBalancer < Fog::Parsers::Base def reset reset_load_balancer reset_availability_zone @load_balancer_addresses = {} @state = {} @results = { 'LoadBalancers' => [] } ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/elbv2/describe_listeners.rb
Ruby
mit
304
master
3,826
module Fog module Parsers module AWS module ELBV2 class DescribeListeners < Fog::Parsers::Base def reset reset_listener @default_action = {} @certificate = {} @config = {} @target_groups = [] @target_group = {} ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/list_verified_email_addresses.rb
Ruby
mit
304
master
538
module Fog module Parsers module AWS module SES class ListVerifiedEmailAddresses < Fog::Parsers::Base def reset @response = { 'VerifiedEmailAddresses' => [], 'ResponseMetadata' => {} } end def end_element(name) case name when 'member...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/send_raw_email.rb
Ruby
mit
304
master
474
module Fog module Parsers module AWS module SES class SendRawEmail < Fog::Parsers::Base def reset @response = { 'ResponseMetadata' => {} } end def end_element(name) case name when 'MessageId' @response[name] = value ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/verify_domain_identity.rb
Ruby
mit
304
master
490
module Fog module Parsers module AWS module SES class VerifyDomainIdentity < Fog::Parsers::Base def reset @response = { 'ResponseMetadata' => {} } end def end_element(name) case name when 'VerificationToken' @response[n...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/delete_verified_email_address.rb
Ruby
mit
304
master
421
module Fog module Parsers module AWS module SES class DeleteVerifiedEmailAddress < Fog::Parsers::Base def reset @response = { 'ResponseMetadata' => {} } end def end_element(name) case name when 'RequestId' @response['Re...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/verify_email_address.rb
Ruby
mit
304
master
413
module Fog module Parsers module AWS module SES class VerifyEmailAddress < Fog::Parsers::Base def reset @response = { 'ResponseMetadata' => {} } end def end_element(name) case name when 'RequestId' @response['ResponseMe...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/get_send_statistics.rb
Ruby
mit
304
master
724
module Fog module Parsers module AWS module SES class GetSendStatistics < Fog::Parsers::Base def reset @response = { 'SendDataPoints' => [], 'ResponseMetadata' => {} } @send_data_point = {} end def end_element(name) case name ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/send_email.rb
Ruby
mit
304
master
471
module Fog module Parsers module AWS module SES class SendEmail < Fog::Parsers::Base def reset @response = { 'ResponseMetadata' => {} } end def end_element(name) case name when 'MessageId' @response[name] = value ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/ses/get_send_quota.rb
Ruby
mit
304
master
512
module Fog module Parsers module AWS module SES class GetSendQuota < Fog::Parsers::Base def reset @response = { 'ResponseMetadata' => {} } end def end_element(name) case name when "Max24HourSend", "MaxSendRate", "SentLast24Hours" ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/login_profile.rb
Ruby
mit
304
master
575
module Fog module Parsers module AWS module IAM class LoginProfile < Fog::Parsers::Base def reset @response = { 'LoginProfile' => {} } end def end_element(name) case name when 'UserName' @response['LoginProfile']['UserN...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_server_certificates.rb
Ruby
mit
304
master
885
module Fog module Parsers module AWS module IAM class ListServerCertificates < Fog::Parsers::Base def reset @response = { 'Certificates' => [] } reset_certificate end def reset_certificate @certificate = {} end d...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/update_user.rb
Ruby
mit
304
master
572
module Fog module Parsers module AWS module IAM class UpdateUser < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateUser.html def reset @response = { 'User' => {} } end def end_element(name) ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_account_password_policy.rb
Ruby
mit
304
master
861
module Fog module Parsers module AWS module IAM class GetAccountPolicyPolicy < Fog::Parsers::Base def reset @response = {'AccountPasswordPolicy' => {}} end def end_element(name) case name when 'MinimumPasswordLength', 'MaxPasswordAge...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/role_parser.rb
Ruby
mit
304
master
1,194
module Fog module Parsers module AWS module IAM class RoleParser < Fog::Parsers::Base def reset @role = {} @stack = [] end def start_element(name,attrs = []) case name when 'Roles' @stack << name ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/create_user.rb
Ruby
mit
304
master
472
module Fog module Parsers module AWS module IAM class CreateUser < Fog::Parsers::Base def reset @response = { 'User' => {} } end def end_element(name) case name when 'Arn', 'UserId', 'UserName', 'Path' @response['User']...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_signing_certificates.rb
Ruby
mit
304
master
788
module Fog module Parsers module AWS module IAM class ListSigningCertificates < Fog::Parsers::Base def reset @signing_certificate = {} @response = { 'SigningCertificates' => [] } end def end_element(name) case name when '...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_account_aliases.rb
Ruby
mit
304
master
560
module Fog module Parsers module AWS module IAM class ListAccountAliases < Fog::Parsers::Base def reset @response = { 'AccountAliases' => [] } end def end_element(name) case name when 'member' @response['AccountAliases'...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_user.rb
Ruby
mit
304
master
643
module Fog module Parsers module AWS module IAM class GetUser < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetUser.html def reset @response = { 'User' => {} } end def end_element(name) case name ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_users.rb
Ruby
mit
304
master
741
module Fog module Parsers module AWS module IAM class ListUsers < Fog::Parsers::Base def reset @user = {} @response = { 'Users' => [] } end def end_element(name) case name when 'Arn', 'UserId', 'UserName', 'Path' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/upload_signing_certificate.rb
Ruby
mit
304
master
521
module Fog module Parsers module AWS module IAM class UploadSigningCertificate < Fog::Parsers::Base def reset @response = { 'Certificate' => {} } end def end_element(name) case name when 'CertificateId', 'UserName', 'CertificateBody'...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_account_summary.rb
Ruby
mit
304
master
983
module Fog module Parsers module AWS module IAM class GetAccountSummary < Fog::Parsers::Base def reset super @stack = [] @response = {'Summary' => {}} end def start_element(name, attrs = []) super case name ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_user_policy.rb
Ruby
mit
304
master
886
module Fog module Parsers module AWS module IAM class GetUserPolicy < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetUserPolicy.html def reset @response = { 'Policy' => {} } end def end_element(name) ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/policy_parser.rb
Ruby
mit
304
master
1,531
module Fog module Parsers module AWS module IAM class PolicyParser < Fog::Parsers::Base def reset @policy = fresh_policy @stack = [] end def start_element(name,attrs = []) case name when 'Policies' @stack <<...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_policies.rb
Ruby
mit
304
master
545
module Fog module Parsers module AWS module IAM class ListPolicies < Fog::Parsers::Base def reset @response = { 'PolicyNames' => [] } end def end_element(name) case name when 'member' @response['PolicyNames'] << value ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/update_group.rb
Ruby
mit
304
master
577
module Fog module Parsers module AWS module IAM class UpdateGroup < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_UpdateGroup.html def reset @response = { 'Group' => {} } end def end_element(name) ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_managed_policies.rb
Ruby
mit
304
master
1,476
require 'fog/aws/parsers/iam/policy_parser' module Fog module Parsers module AWS module IAM class ListManagedPolicies < Fog::Parsers::AWS::IAM::PolicyParser def reset super @response = { 'Policies' => [] , 'Marker' => '', 'IsTruncated' => false} end ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_group_policy.rb
Ruby
mit
304
master
879
module Fog module Parsers module AWS module IAM class GetGroupPolicy < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/API_GetGroupPolicy.html def reset @response = { 'Policy' => {} } end def end_element(name) ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/create_group.rb
Ruby
mit
304
master
477
module Fog module Parsers module AWS module IAM class CreateGroup < Fog::Parsers::Base def reset @response = { 'Group' => {} } end def end_element(name) case name when 'Arn', 'GroupId', 'GroupName', 'Path' @response['Gr...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_policy_versions.rb
Ruby
mit
304
master
1,679
module Fog module Parsers module AWS module IAM class ListPolicyVersions < Fog::Parsers::Base def reset super @stack = [] @response = { 'Versions' => [], 'Marker' => '', 'IsTruncated' => false } end def start_element(name,attrs = [])...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/policy_version.rb
Ruby
mit
304
master
909
module Fog module Parsers module AWS module IAM class PolicyVersion < Fog::Parsers::Base def reset super @version = {} @response = { 'PolicyVersion' => @version } end def end_element(name) case name when 'Requ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_groups.rb
Ruby
mit
304
master
674
module Fog module Parsers module AWS module IAM class ListGroups < Fog::Parsers::Base def reset @group = {} @response = { 'Groups' => [] } end def end_element(name) case name when 'Arn', 'GroupId', 'GroupName', 'Path' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_groups_for_user.rb
Ruby
mit
304
master
731
module Fog module Parsers module AWS module IAM class ListGroupsForUser < Fog::Parsers::Base def reset @group_for_user = {} @response = { 'GroupsForUser' => [] } end def end_element(name) case name when 'Path', 'GroupName...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/upload_server_certificate.rb
Ruby
mit
304
master
659
module Fog module Parsers module AWS module IAM class UploadServerCertificate < Fog::Parsers::Base def reset @response = { 'Certificate' => {} } end def end_element(name) case name when 'Arn', 'Path', 'ServerCertificateId', 'ServerCe...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_mfa_devices.rb
Ruby
mit
304
master
777
module Fog module Parsers module AWS module IAM class ListMFADevices < Fog::Parsers::Base def reset @mfa_device = {} @response = { 'MFADevices' => [] } end def end_element(name) case name when 'SerialNumber', 'UserName' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/single_role.rb
Ruby
mit
304
master
561
module Fog module Parsers module AWS module IAM require 'fog/aws/parsers/iam/role_parser' class SingleRole < Fog::Parsers::AWS::IAM::RoleParser def reset super @response = { 'Role' => {} } end def finished_role(role) @respons...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_role_policy.rb
Ruby
mit
304
master
792
module Fog module Parsers module AWS module IAM class GetRolePolicy < Fog::Parsers::Base def reset @response = {'Policy' => {}} end def end_element(name) case name when 'RoleName', 'PolicyName' @response['Policy'][name]...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/single_policy.rb
Ruby
mit
304
master
577
module Fog module Parsers module AWS module IAM require 'fog/aws/parsers/iam/policy_parser' class SinglePolicy < Fog::Parsers::AWS::IAM::PolicyParser def reset super @response = { 'Policy' => {} } end def finished_policy(policy) ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/basic.rb
Ruby
mit
304
master
292
module Fog module Parsers module AWS module IAM class Basic < Fog::Parsers::Base def end_element(name) case name when 'RequestId' @response[name] = value end end end end end end end
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/base_instance_profile.rb
Ruby
mit
304
master
2,217
module Fog module Parsers module AWS module IAM class BaseInstanceProfile < Fog::Parsers::Base def reset super @stack = [] end def start_element(name,attrs = []) super case name when 'InstanceProfile' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_instance_profiles.rb
Ruby
mit
304
master
722
module Fog module Parsers module AWS module IAM require 'fog/aws/parsers/iam/base_instance_profile' class ListInstanceProfiles < Fog::Parsers::AWS::IAM::BaseInstanceProfile def reset super @response = {'InstanceProfiles' => []} end def f...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/create_access_key.rb
Ruby
mit
304
master
506
module Fog module Parsers module AWS module IAM class CreateAccessKey < Fog::Parsers::Base def reset @response = { 'AccessKey' => {} } end def end_element(name) case name when 'AccessKeyId', 'UserName', 'SecretAccessKey', 'Status' ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/instance_profile.rb
Ruby
mit
304
master
601
module Fog module Parsers module AWS module IAM require 'fog/aws/parsers/iam/base_instance_profile' class InstanceProfile < Fog::Parsers::AWS::IAM::BaseInstanceProfile def reset super @response = {} end def finished_instance_profile(pro...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_access_keys.rb
Ruby
mit
304
master
704
module Fog module Parsers module AWS module IAM class ListAccessKeys < Fog::Parsers::Base def reset @access_key = {} @response = { 'AccessKeys' => [] } end def end_element(name) case name when 'AccessKeyId', 'Status', 'Us...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/get_group.rb
Ruby
mit
304
master
1,384
module Fog module Parsers module AWS module IAM class GetGroup < Fog::Parsers::Base # http://docs.amazonwebservices.com/IAM/latest/APIReference/index.html?API_GetGroup.html def reset @user = {} @response = { 'Group' => {}, 'Users' => [] } end ...
github
fog/fog-aws
https://github.com/fog/fog-aws
lib/fog/aws/parsers/iam/list_roles.rb
Ruby
mit
304
master
654
module Fog module Parsers module AWS module IAM require 'fog/aws/parsers/iam/role_parser' class ListRoles < Fog::Parsers::AWS::IAM::RoleParser def reset super @response = { 'Roles' => [] } end def finished_role(role) @respons...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
query_track.gemspec
Ruby
mit
304
master
1,365
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'query_track/version' Gem::Specification.new do |spec| spec.name = 'query_track' spec.version = QueryTrack::VERSION spec.authors = ['Kirill Shevchenko'] spec.email = ['hello@k...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
spec/spec_helper.rb
Ruby
mit
304
master
367
require 'bundler/setup' require 'query_track' RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = '.rspec_status' # Disable RSpec exposing methods globally on `Module` and `main` config.disable_monkey_patching! config.expect_with ...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
spec/query_track/filters_spec.rb
Ruby
mit
304
master
730
RSpec.describe QueryTrack::Filters do let(:fake_trace) { ['app/admin/user.rb', 'lib/config/query_track.rb'] } context 'has content under filter' do before do QueryTrack::Settings.configure do |config| config.duration = 1.0 config.filters = ['app/admin'] end end it 'should r...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
spec/query_track/trace_spec.rb
Ruby
mit
304
master
789
RSpec.describe QueryTrack::Trace do let(:app_dir_path) { 'app/admin/user.rb' } let(:fake_trace) { [app_dir_path, 'lib/config/query_track.rb'] } before do QueryTrack::Settings.configure do |config| config.duration = 1.0 end end context 'has default app directory' do it 'should return path m...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
spec/query_track/event_processor_spec.rb
Ruby
mit
304
master
1,417
RSpec.describe QueryTrack::EventProcessor do let(:payload) do ['sql.active_record', Time.now, Time.now, '1e07319', { sql: "SET client_min_messages TO 'warning'", name: 'SCHEMA', binds: [], type_casted_binds: []...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
spec/query_track/notifications/slack_spec.rb
Ruby
mit
304
master
985
RSpec.describe QueryTrack::Notifications::Slack do let(:code) { 'COMMIT' } let(:duration) { 5 } let(:slack_stub) { double } subject { described_class.new(code, duration) } context 'slack not specified' do before do QueryTrack::Settings.configure do |config| config.duration = 1.0 end ...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
spec/query_track/notifications/custom_spec.rb
Ruby
mit
304
master
792
RSpec.describe QueryTrack::Notifications::Custom do let(:code) { 'COMMIT' } let(:duration) { 5 } subject { described_class.new(code, duration) } context 'custom handler not specified' do before do QueryTrack::Settings.configure do |config| config.duration = 1.0 end end it 'sho...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/subscriber.rb
Ruby
mit
304
master
203
subscriber = ActiveSupport::Notifications.subscribe('sql.active_record') do |*args| event = ActiveSupport::Notifications::Event.new(*args) QueryTrack::EventProcessor.new(event, subscriber).call end
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track.rb
Ruby
mit
304
master
589
require 'dry-configurable' require 'active_support/notifications' require 'slack_hook' require 'query_track/version' require 'query_track/settings' require 'query_track/trace' require 'query_track/filters' require 'query_track/notifications/custom' require 'query_track/notifications/slack' require 'query_track/notifica...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/filters.rb
Ruby
mit
304
master
288
module QueryTrack class Filters attr_reader :full_trace def initialize(full_trace) @full_trace = full_trace end def call QueryTrack::Settings.config.filters.find do |filter| full_trace.select { |v| v =~ /#{filter}/ }[0] end end end end
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/settings.rb
Ruby
mit
304
master
347
module QueryTrack class Settings extend ::Dry::Configurable setting :duration setting :notifications do setting :slack, default: '' setting :custom_handler end setting :logs, default: false setting :filters, default: [] setting :enabled, default: true setting :app_dir...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/trace.rb
Ruby
mit
304
master
247
module QueryTrack class Trace attr_reader :full_trace def initialize(full_trace) @full_trace = full_trace end def call full_trace.select { |v| v =~ %r{#{QueryTrack::Settings.config.app_dir}/} }[0] end end end
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/event_processor.rb
Ruby
mit
304
master
997
module QueryTrack class EventProcessor attr_reader :event, :subscriber def initialize(event, subscriber) @event = event @subscriber = subscriber end def call unsubscribe return unless QueryTrack::Settings.config.duration && QueryTrack::Settings.config.enabled return if...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/notifications/custom.rb
Ruby
mit
304
master
466
module QueryTrack module Notifications class Custom attr_reader :code, :duration def initialize(code, duration) @code = code.strip @duration = duration end def call return unless QueryTrack::Settings.config.notifications.custom_handler trace = QueryTrack:...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/notifications/slack.rb
Ruby
mit
304
master
1,284
module QueryTrack module Notifications class Slack attr_reader :code, :duration, :webhook_url def initialize(code, duration) @code = code.strip @duration = duration @webhook_url = QueryTrack::Settings.config.notifications.slack end def call return if webho...
github
kirillshevch/query_track
https://github.com/kirillshevch/query_track
lib/query_track/notifications/log.rb
Ruby
mit
304
master
430
module QueryTrack module Notifications class Log attr_reader :code, :duration def initialize(code, duration) @code = code.strip @duration = duration end def call return unless QueryTrack::Settings.config.logs trace = QueryTrack::Trace.new(caller).call ...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
activemerchant_patch_for_china.gemspec
Ruby
mit
304
master
908
lib = File.expand_path('../lib/', __FILE__) $:.unshift lib unless $:.include?(lib) require "activemerchant_patch_for_china/version" Gem::Specification.new do |s| s.name = "activemerchant_patch_for_china" s.version = ActivemerchantPatchForChina::VERSION s.platform = Gem::Platform::RUBY s.authors ...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
Rakefile
Ruby
mit
304
master
1,371
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) require "bundler" Bundler.setup require "rake" require "rdoc/task" require "rake/testtask" desc 'Default: run unit tests.' task :default => :test desc 'Test the activemerchant_patch_for_china plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs ...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/activemerchant_patch_for_china.rb
Ruby
mit
304
master
437
# ActivemerchantPatchForChina require 'activemerchant_patch_for_china/version' require 'integrations_helper' require 'active_merchant/billing/integrations/alipay' require 'active_merchant/billing/integrations/bill99' require 'active_merchant/billing/integrations/bill99_card' require 'active_merchant/billing/integration...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/integrations_helper.rb
Ruby
mit
304
master
281
ActiveMerchant::Billing::Integrations::Helper.class_eval do alias_method :origin_add_field, :add_field def add_field(name, value) if ![Array, Hash].include?(name.class) and value.nil? @fields[name.to_s] else origin_add_field(name, value) end end end
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/active_merchant/billing/integrations/yeepay.rb
Ruby
mit
304
master
884
require File.dirname(__FILE__) + '/yeepay/helper.rb' require File.dirname(__FILE__) + '/yeepay/notification.rb' require File.dirname(__FILE__) + '/yeepay/return.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Yeepay mattr_accessor :test_url se...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/active_merchant/billing/integrations/alipay.rb
Ruby
mit
304
master
594
require File.dirname(__FILE__) + '/alipay/helper.rb' require File.dirname(__FILE__) + '/alipay/notification.rb' require File.dirname(__FILE__) + '/alipay/return.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Alipay mattr_accessor :service_url ...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/active_merchant/billing/integrations/bill99_card.rb
Ruby
mit
304
master
621
require File.dirname(__FILE__) + '/bill99_card/helper.rb' require File.dirname(__FILE__) + '/bill99_card/return.rb' require File.dirname(__FILE__) + '/bill99_card/notification.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Bill99Card mattr_accessor :...
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/active_merchant/billing/integrations/pay19.rb
Ruby
mit
304
master
575
require File.dirname(__FILE__) + '/pay19/helper.rb' require File.dirname(__FILE__) + '/pay19/return.rb' require File.dirname(__FILE__) + '/pay19/notification.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Pay19 mattr_accessor :service_url self....
github
flyerhzm/activemerchant_patch_for_china
https://github.com/flyerhzm/activemerchant_patch_for_china
lib/active_merchant/billing/integrations/tenpay.rb
Ruby
mit
304
master
446
require File.dirname(__FILE__) + '/tenpay/helper.rb' require File.dirname(__FILE__) + '/tenpay/return.rb' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module Tenpay mattr_accessor :service_url self.service_url = 'https://www.tenpay.com/cgi-bin/v1.0/pa...