lazy_ant 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1b920aece23accb3dd365d64d0383c12a1995384
4
+ data.tar.gz: 02d0d1d9077ab34d6d87ab1c213cfb68d04d76df
5
+ SHA512:
6
+ metadata.gz: fec66069b5dec1fb5f5d187d3ab1d36f90342994fb37b6f6a4a265d8726f70b93aa9fbf1316f55e6939304e38e46856ec1a9bbbaabf36f74ffc951afdca76477
7
+ data.tar.gz: 312facf15baae2b9809f412b8fe94ba16eccea714e7651d528dc3301ad331c530bc58f9ab55e32c1f56703eeab16d91e1d9b999cacf19b84b31e242a4d3f2a2a
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ Metrics/LineLength:
2
+ Exclude:
3
+ - 'spec/**/*'
4
+ - '*.gemspec'
5
+ Style/Documentation:
6
+ Exclude:
7
+ - 'lib/lazy_ant/config.rb'
8
+ - 'lib/lazy_ant/dsl.rb'
9
+ - 'lib/lazy_ant/dsl/configurable.rb'
10
+ - 'lib/lazy_ant/dsl/connection.rb'
11
+ - 'lib/lazy_ant/dsl/endpoint.rb'
12
+ - 'lib/lazy_ant/dsl/grouping.rb'
13
+ - 'lib/lazy_ant/group.rb'
14
+ - 'lib/lazy_ant/version.rb'
15
+ - 'spec/lazy_ant/dsl/endpoint_spec.rb'
16
+ - 'spec/lazy_ant/dsl_spec.rb'
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.5
4
+ - 2.2.2
5
+ cache: bundler
6
+ before_install: gem install bundler -v 1.10.5
7
+ script:
8
+ - bundle exec rubocop
9
+ - bundle exec rake spec
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in lazy_ant.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,21 @@
1
+ guard :rspec, cmd: 'bundle exec rspec' do
2
+ require 'guard/rspec/dsl'
3
+ dsl = Guard::RSpec::Dsl.new(self)
4
+
5
+ # Feel free to open issues for suggestions and improvements
6
+
7
+ # RSpec files
8
+ rspec = dsl.rspec
9
+ watch(rspec.spec_helper) { rspec.spec_dir }
10
+ watch(rspec.spec_support) { rspec.spec_dir }
11
+ watch(rspec.spec_files)
12
+
13
+ # Ruby files
14
+ ruby = dsl.ruby
15
+ dsl.watch_spec_files_for(ruby.lib_files)
16
+ end
17
+
18
+ guard :rubocop, cli: '--auto-correct' do
19
+ watch(/.+\.rb$/)
20
+ watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
21
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 masarakki
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,96 @@
1
+ # LazyAnt
2
+
3
+ LazyAnt is a generator of client for any apis.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'lazy_ant'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install lazy_ant
20
+
21
+ ## Usage
22
+
23
+ define your api client:
24
+
25
+ ```ruby
26
+ require 'my_api_client/user'
27
+
28
+ class MyApiClient
29
+ include LazyAnt::DSL
30
+
31
+ # specify configurable
32
+ configurable :client_token, default: ''
33
+ configurable :client_secret, default: ''
34
+ configurable :dev?, default: false
35
+
36
+ base_url 'https://myapi.example.com'
37
+ # or
38
+ base_url { config.dev? ? 'http://devapi.example.com' : 'https://myapi.example.com' }
39
+
40
+ # setup faraday connection
41
+ connection do |con|
42
+ con.headers['X-client-token'] = config.client_token
43
+ con.user_agent = 'my-api-client ver. 0.1'
44
+ end
45
+
46
+ group :user do
47
+ api :find, get: '/users/:id.json', entity: :User
48
+ api :search, get: '/users/search.json', multi: true, entity: :User
49
+ end
50
+ end
51
+ ```
52
+
53
+ and use it:
54
+
55
+ ```ruby
56
+ client = MyApiClient.new do |config|
57
+ config.client_token = 'hello'
58
+ config.client_secret = 'world'
59
+ end
60
+
61
+ client.user.find(1)
62
+ # => MyApiClient::User
63
+
64
+ client.user.search(q: 'hello')
65
+ # => [MyApiClient::User, MyApiClient::User, ...]
66
+ ```
67
+
68
+ you can configure with class methods:
69
+
70
+ ```ruby
71
+ # such as in config/initializers/my_api_client.rb
72
+ MyApiClient.setup do |config|
73
+ config.client_token = 'hello'
74
+ config.client_secret = 'world'
75
+ end
76
+
77
+ # use in other file
78
+ client = MyApiClient.new
79
+ client.user.get(1)
80
+ ```
81
+
82
+
83
+ ## Development
84
+
85
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
86
+
87
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
88
+
89
+ ## Contributing
90
+
91
+ Bug reports and pull requests are welcome on GitHub at https://github.com/masarakki/lazy_ant. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
92
+
93
+
94
+ ## License
95
+
96
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'an/api/client'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/lazy_ant.gemspec ADDED
@@ -0,0 +1,46 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'lazy_ant/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'lazy_ant'
8
+ spec.version = LazyAnt::VERSION
9
+ spec.authors = ['masarakki']
10
+ spec.email = ['masaki@hisme.net']
11
+
12
+ spec.summary = 'Generate an api client easily.'
13
+ spec.description = 'Generate an api client easily.'
14
+ spec.homepage = 'https://github.com/masarakki/lazy_ant'
15
+ spec.license = 'MIT'
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
+ else
22
+ fail 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_dependency 'activesupport'
31
+ spec.add_dependency 'faraday'
32
+ spec.add_dependency 'faraday_middleware'
33
+
34
+ spec.add_development_dependency 'bundler', '~> 1.10'
35
+ spec.add_development_dependency 'rake', '~> 10.0'
36
+ spec.add_development_dependency 'rspec'
37
+ spec.add_development_dependency 'rspec-its'
38
+ spec.add_development_dependency 'rubocop'
39
+ spec.add_development_dependency 'guard'
40
+ spec.add_development_dependency 'guard-rspec'
41
+ spec.add_development_dependency 'guard-rubocop'
42
+ spec.add_development_dependency 'pry'
43
+ spec.add_development_dependency 'pry-doc'
44
+ spec.add_development_dependency 'webmock'
45
+ spec.add_development_dependency 'activemodel'
46
+ end
@@ -0,0 +1,33 @@
1
+ module LazyAnt
2
+ class Config
3
+ def initialize
4
+ self.class.keys.each do |var, options|
5
+ instance_variable_set(var, options[:default])
6
+ end
7
+ end
8
+
9
+ def self.key(name, options = {})
10
+ writer, reader, var, question = accessor_methods(name)
11
+ keys[var] = options
12
+
13
+ define_method writer do |val|
14
+ fail ArgumentError unless !question || val == false || val == true
15
+ instance_variable_set(var, val)
16
+ end
17
+
18
+ define_method reader do
19
+ instance_variable_get(var)
20
+ end
21
+ end
22
+
23
+ def self.keys
24
+ @keys ||= {}
25
+ end
26
+
27
+ def self.accessor_methods(name)
28
+ attr = name.to_s.gsub(/[!\?]$/, '')
29
+ var = "@#{attr}".to_sym
30
+ ["#{attr}=".to_sym, name.to_sym, var, name[-1] == '?']
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,27 @@
1
+ module LazyAnt
2
+ module DSL
3
+ module Configurable
4
+ extend ActiveSupport::Concern
5
+
6
+ def config
7
+ @config ||= self.class.global_config.dup
8
+ end
9
+
10
+ module ClassMethods
11
+ def global_config
12
+ @global_config ||= config_class.new
13
+ end
14
+
15
+ protected
16
+
17
+ def configurable(name, options)
18
+ config_class.key name, options
19
+ end
20
+
21
+ def config_class
22
+ @config_class ||= const_set('Config', Class.new(LazyAnt::Config))
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,43 @@
1
+ require 'faraday'
2
+ require 'faraday_middleware'
3
+
4
+ module LazyAnt
5
+ module DSL
6
+ module Connection
7
+ extend ActiveSupport::Concern
8
+
9
+ def connection
10
+ @connection ||= Faraday.new(base_url) do |con|
11
+ con.request :url_encoded
12
+ con.request :json
13
+ con.response :json
14
+ con.response :raise_error
15
+ con.adapter Faraday.default_adapter
16
+ instance_exec(con, &default_callback) if default_callback
17
+ end
18
+ end
19
+
20
+ def default_callback
21
+ self.class.instance_variable_get(:@default_callback)
22
+ end
23
+
24
+ module ClassMethods
25
+ def base_url(url = nil, &block)
26
+ if block_given?
27
+ define_method :base_url do
28
+ @base_url ||= instance_eval(&block)
29
+ end
30
+ else
31
+ define_method :base_url do
32
+ url
33
+ end
34
+ end
35
+ end
36
+
37
+ def connection(&block)
38
+ @default_callback = block
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,51 @@
1
+ require 'lazy_ant/dsl/grouping'
2
+ require 'lazy_ant/dsl/connection'
3
+
4
+ module LazyAnt
5
+ module DSL
6
+ module Endpoint
7
+ extend ActiveSupport::Concern
8
+ include DSL::Connection
9
+ include Grouping
10
+
11
+ module ClassMethods
12
+ def api(name, options = {})
13
+ method, path = endpoint(options)
14
+ conv = converter(options)
15
+ define_method name do |*args|
16
+ params = args.extract_options!
17
+ path = generate_url(path, args)
18
+ response = connection.send(method, path, params)
19
+ conv.call(response.body)
20
+ end
21
+ end
22
+
23
+ protected
24
+
25
+ def endpoint(options)
26
+ method = [:get, :post, :put, :delete].find { |k| options[k] }
27
+ fail 'Request url not given' unless method
28
+ path = options.delete(method)
29
+ [method, path]
30
+ end
31
+
32
+ def converter(entity: nil, multi: false)
33
+ conv = entity ? ->(x) { entity.new(x) } : ->(x) { x }
34
+ multi ? -> (x) { x.map(&conv) } : -> (x) { conv.call(x) }
35
+ end
36
+ end
37
+
38
+ protected
39
+
40
+ def generate_url(path, args)
41
+ arg_names = path.scan(/:([\w_]+)/).map(&:first)
42
+ arg_names.each do |k|
43
+ arg = args.shift
44
+ fail ArgumentError, "missing required key :#{k}" unless arg
45
+ path = path.gsub(/:#{k}/, arg.to_s)
46
+ end
47
+ path
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,21 @@
1
+ module LazyAnt
2
+ module DSL
3
+ module Grouping
4
+ extend ActiveSupport::Concern
5
+
6
+ module ClassMethods
7
+ def group(name, &block)
8
+ base = self.respond_to?(:name) ? self.name : nil
9
+ group_name = [base, name].compact.join('.')
10
+ group_class = Class.new(LazyAnt::Group) do
11
+ self.name = group_name
12
+ instance_eval(&block) if block
13
+ end
14
+ define_method name do
15
+ group_class.new
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,24 @@
1
+ require 'lazy_ant/dsl/configurable'
2
+ require 'lazy_ant/dsl/endpoint'
3
+ require 'lazy_ant/dsl/connection'
4
+
5
+ module LazyAnt
6
+ module DSL
7
+ extend ActiveSupport::Concern
8
+ include Configurable
9
+ include Endpoint
10
+ include Connection
11
+
12
+ def initialize(&_block)
13
+ yield config if block_given?
14
+ config.freeze
15
+ end
16
+
17
+ module ClassMethods
18
+ def setup
19
+ yield global_config
20
+ global_config.freeze
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,21 @@
1
+ module LazyAnt
2
+ class Group
3
+ mattr_accessor :name, instance_writer: false, instance_reader: false
4
+ def inspect
5
+ "<LazyAnt::Group #{name}>"
6
+ end
7
+ include LazyAnt::DSL::Endpoint
8
+
9
+ def name
10
+ self.class.name
11
+ end
12
+
13
+ def self.name=(name)
14
+ @name = name.to_s
15
+ end
16
+
17
+ class << self
18
+ attr_reader :name
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,3 @@
1
+ module LazyAnt
2
+ VERSION = '0.1.0'
3
+ end
data/lib/lazy_ant.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'active_support'
2
+ require 'lazy_ant/version'
3
+ require 'lazy_ant/dsl'
4
+ require 'lazy_ant/config'
5
+ require 'lazy_ant/group'
metadata ADDED
@@ -0,0 +1,278 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lazy_ant
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - masarakki
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday_middleware
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-its
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: guard-rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: guard-rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: pry-doc
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: webmock
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: activemodel
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: Generate an api client easily.
224
+ email:
225
+ - masaki@hisme.net
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - ".gitignore"
231
+ - ".rspec"
232
+ - ".rubocop.yml"
233
+ - ".travis.yml"
234
+ - CODE_OF_CONDUCT.md
235
+ - Gemfile
236
+ - Guardfile
237
+ - LICENSE.txt
238
+ - README.md
239
+ - Rakefile
240
+ - bin/console
241
+ - bin/setup
242
+ - lazy_ant.gemspec
243
+ - lib/lazy_ant.rb
244
+ - lib/lazy_ant/config.rb
245
+ - lib/lazy_ant/dsl.rb
246
+ - lib/lazy_ant/dsl/configurable.rb
247
+ - lib/lazy_ant/dsl/connection.rb
248
+ - lib/lazy_ant/dsl/endpoint.rb
249
+ - lib/lazy_ant/dsl/grouping.rb
250
+ - lib/lazy_ant/group.rb
251
+ - lib/lazy_ant/version.rb
252
+ homepage: https://github.com/masarakki/lazy_ant
253
+ licenses:
254
+ - MIT
255
+ metadata:
256
+ allowed_push_host: https://rubygems.org
257
+ post_install_message:
258
+ rdoc_options: []
259
+ require_paths:
260
+ - lib
261
+ required_ruby_version: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ">="
264
+ - !ruby/object:Gem::Version
265
+ version: '0'
266
+ required_rubygems_version: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ">="
269
+ - !ruby/object:Gem::Version
270
+ version: '0'
271
+ requirements: []
272
+ rubyforge_project:
273
+ rubygems_version: 2.4.8
274
+ signing_key:
275
+ specification_version: 4
276
+ summary: Generate an api client easily.
277
+ test_files: []
278
+ has_rdoc: