nard-appi 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5a0449059f4b1b024b1488f738b18baebd205c94
4
+ data.tar.gz: 3588a2662ee2906816c9ae59fb92e8dc22a8c3f0
5
+ SHA512:
6
+ metadata.gz: 3a16da1cf7edd7c74a706b5b3f29e830a75f55fcf39aca5324f5e3714dff39c4ed6c8c656da51893e73952163b940d5756e9000db6aece31639995f48d6a4514
7
+ data.tar.gz: a8a8e1951b0607f735ee69f44e855a7ea5bfd27ab594d10568478ca232c94de82a21133b253b6f74851d7b1fc4bd9b8c46b69b19d85b571bd7968048561cc856
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/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.13.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at osorubeki.fujita@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in nard-appi.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Shu Fujita
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,41 @@
1
+ # Nard::Appi
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/nard/appi`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'nard-appi'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install nard-appi
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ 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).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/nard-appi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
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 "nard/appi"
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,26 @@
1
+ require 'active_support'
2
+ require 'active_support/concern'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ module ApiExt
9
+
10
+ module Client
11
+
12
+ extend ActiveSupport::Concern
13
+
14
+ module ClassMethods
15
+
16
+ def client( gem_top_namespace, options = {} )
17
+ gem_top_namespace::Client.new( options )
18
+ end
19
+
20
+ end
21
+
22
+ end
23
+
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,57 @@
1
+ require 'active_support'
2
+ require 'active_support/concern'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ module ApiExt
9
+
10
+ module Configuration
11
+
12
+ extend ActiveSupport::Concern
13
+
14
+ module ClassMethods
15
+
16
+ # 設定を行うメソッド
17
+ # @return [Hash]
18
+ def configure
19
+ yield( self )
20
+ return options
21
+ end
22
+
23
+ # 設定内容を返すメソッド
24
+ # @return [Hash]
25
+ def options
26
+ option_keys = self::OPTIONS_KEYS
27
+ option_keys.inject( {} ) do | option, key |
28
+ option.merge!( key => send( key ) )
29
+ end
30
+ end
31
+
32
+ # デフォルトの設定
33
+ # @return [Hash]
34
+ def default_options
35
+ option_keys = self::OPTIONS_KEYS
36
+ option_keys.inject( {} ) do | option, key |
37
+ option.merge!( key => self.const_get( "DEFAULT_#{ key.upcase }") )
38
+ end
39
+ end
40
+
41
+ # 設定内容をデフォルトの状態にするメソッド
42
+ # @return [Hash]
43
+ def reset
44
+ configure do | config |
45
+ default_options.each do | key, value |
46
+ config.send( "#{ key }=", value )
47
+ end
48
+ end
49
+ end
50
+
51
+ end
52
+
53
+ end
54
+
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,34 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+
4
+ module Nard
5
+ module Appi
6
+
7
+ module ApiExt
8
+
9
+ module DefaultConfiguration
10
+
11
+ extend ActiveSupport::Concern
12
+
13
+ module ClassMethods
14
+
15
+ def default( options = {} )
16
+ raise TypeError unless options.kind_of?( Hash )
17
+
18
+ self.class_eval do
19
+ const_set( :OPTIONS_KEYS, options.keys.freeze )
20
+
21
+ options.each do | k, v |
22
+ v_frozen = ( v.frozen? ? v : v.freeze )
23
+ const_set( "DEFAULT_#{ k.upcase }", v_frozen )
24
+ end
25
+ end
26
+ end
27
+
28
+ end
29
+
30
+ end
31
+
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,37 @@
1
+ require 'active_support'
2
+ require 'active_support/concern'
3
+
4
+ # @note 確定
5
+ module Nard
6
+
7
+ module Appi
8
+
9
+ module ApiExt
10
+
11
+ module Initializer
12
+
13
+ extend ActiveSupport::Concern
14
+
15
+ included do
16
+ # puts "#{ self } - Nard::Appi::ApiExt::Initializer.#default (OPTIONS_KEYS: #{ self::OPTIONS_KEYS.to_s })"
17
+
18
+ # attr_accessor *( self::OPTIONS_KEYS )
19
+ self.class_eval do
20
+ # puts self
21
+ # puts "#{ self } - Nard::Appi::ApiExt::Initializer.#default (OPTIONS_KEYS: #{ self::OPTIONS_KEYS.to_s })"
22
+
23
+ mattr_accessor *self::OPTIONS_KEYS
24
+
25
+ # puts self.methods.sort.to_s
26
+ end
27
+
28
+ # 設定内容をデフォルトの状態にする。
29
+ # @return [Hash]
30
+ reset
31
+ end
32
+
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,29 @@
1
+ require 'active_support'
2
+ require 'active_support/concern'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ module ApiExt
9
+
10
+ module Version
11
+
12
+ extend ActiveSupport::Concern
13
+
14
+ module ClassMethods
15
+
16
+ # この Gem のバージョン(Xxxx:VERSION を返す)
17
+ # @note 利用する API のバージョンではない! 利用する API のバージョンは、Xxxx.api_version で取得する。
18
+ # @return [String]
19
+ def gem_version
20
+ self::VERSION
21
+ end
22
+
23
+ end
24
+
25
+ end
26
+
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,60 @@
1
+ require_relative './module/args_normalizer'
2
+ require_relative './module/path_normalizer'
3
+ require_relative './module/options_normalizer'
4
+ require_relative './module/boolean_normalizer'
5
+
6
+ module Nard
7
+
8
+ module Appi
9
+
10
+ class Client
11
+
12
+ # Nard::Appi::Client の補助的な機能を格納する名前空間
13
+ module Util
14
+
15
+ # API へ送る情報を処理するクラス(基底クラス)
16
+ class BaseNormalizer
17
+
18
+ include Module::ArgsNormalizer
19
+ include Module::PathNormalizer
20
+ include Module::OptionsNormalizer
21
+ include Module::BooleanNormalizer
22
+
23
+ def self.process( *args )
24
+ new( *args ).to_a
25
+ end
26
+
27
+ def initialize( *args )
28
+ args, options = normalize_args( args )
29
+
30
+ @path = normalize_path( args )
31
+
32
+ options = normalize_keys_of_options( options )
33
+ set_special_options( options )
34
+
35
+ @options = normalize_values_of_options( options )
36
+ end
37
+
38
+ attr_reader :path, :options
39
+
40
+ # @return [Array]
41
+ def to_a
42
+ [ @path, @options, special_options ].flatten
43
+ end
44
+
45
+ private
46
+
47
+ def set_special_options( options )
48
+ nil
49
+ end
50
+
51
+ def special_options
52
+ []
53
+ end
54
+
55
+ end
56
+
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,31 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ class Client
9
+
10
+ # Nard::Appi::Client の補助的な機能を格納する名前空間
11
+ module Util
12
+
13
+ module Module
14
+
15
+ module ArgsNormalizer
16
+
17
+ private
18
+
19
+ def normalize_args( args )
20
+ args = [ args ].flatten
21
+ options = args.extract_options!
22
+ [ args, options.with_indifferent_access ]
23
+ end
24
+
25
+ end
26
+
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,55 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ class Client
9
+
10
+ # Nard::Appi::Client の補助的な機能を格納する名前空間
11
+ module Util
12
+
13
+ module Module
14
+
15
+ module BooleanNormalizer
16
+
17
+ private
18
+
19
+ def normalize_boolean_option( options, key, default: nil )
20
+ v = nil
21
+
22
+ if options.has_key?( key )
23
+ v = options.delete( key )
24
+ v = normalize_boolean_value(v)
25
+ elsif options.has_key?( normalize_key( key ) )
26
+ v = options.delete( normalize_key( key ) )
27
+ v = normalize_boolean_value(v)
28
+ end
29
+
30
+ v.nil? ? normalize_boolean_value( default ) : v
31
+ end
32
+
33
+ def normalize_boolean_value(v)
34
+ if v.instance_of?( String ) or v.instance_of?( Symbol )
35
+ if v.to_s.in?( 't', 'true', 'True', 'TRUE' )
36
+ true
37
+ elsif v.to_s.in?( 'f', 'false', 'False', 'FALSE' )
38
+ false
39
+ else
40
+ nil
41
+ end
42
+ elsif v == true or v == false
43
+ v
44
+ else
45
+ nil
46
+ end
47
+ end
48
+
49
+ end
50
+
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,53 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ class Client
9
+
10
+ # Nard::Appi::Client の補助的な機能を格納する名前空間
11
+ module Util
12
+
13
+ module Module
14
+
15
+ module OptionsNormalizer
16
+
17
+ private
18
+
19
+ def normalize_keys_of_options( options )
20
+ h = {}
21
+
22
+ options.each do | k, v |
23
+ h[ normalize_key(k) ] = v
24
+ end
25
+
26
+ return h
27
+ end
28
+
29
+ def normalize_values_of_options( options )
30
+ h = {}
31
+
32
+ options.each do | k, v |
33
+ h[k] = normalize_value(v)
34
+ end
35
+
36
+ return h
37
+ end
38
+
39
+ def normalize_key( key )
40
+ raise NotImplementedError
41
+ end
42
+
43
+ def normalize_value( value )
44
+ raise NotImplementedError
45
+ end
46
+
47
+ end
48
+
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,32 @@
1
+ require 'active_support'
2
+ require 'active_support/core_ext'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ class Client
9
+
10
+ # Nard::Appi::Client の補助的な機能を格納する名前空間
11
+ module Util
12
+
13
+ module Module
14
+
15
+ module PathNormalizer
16
+
17
+ private
18
+
19
+ def normalize_path( args )
20
+ namespaces = args.map( &:to_s ).map { | namespace |
21
+ namespace.split( '/' ).map { | str | str.camelize( :lower ) }
22
+ }.flatten
23
+ namespaces.join( '/' )
24
+ end
25
+
26
+ end
27
+
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,28 @@
1
+ require_relative './client_ext/request'
2
+ require 'faraday'
3
+
4
+ module Nard
5
+
6
+ module Appi
7
+
8
+ class Client
9
+
10
+ include Nard::Appi::ClientExt::Request
11
+
12
+ def initialize( gem_top_namespace, options = {} )
13
+ options_keys = gem_top_namespace::OPTIONS_KEYS
14
+
15
+ self.class.class_eval do
16
+ attr_accessor *options_keys
17
+ end
18
+
19
+ options = gem_top_namespace.options.merge( options ).with_indifferent_access
20
+
21
+ options_keys.each do | key |
22
+ send( "#{ key }=", options[ key ] )
23
+ end
24
+ end
25
+
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,42 @@
1
+ module Nard
2
+
3
+ module Appi
4
+
5
+ module ClientExt
6
+
7
+ module Request
8
+
9
+ # GET メソッドで API へアクセスするメソッド
10
+ def get( *args )
11
+ request( :get, *args )
12
+ end
13
+
14
+ # POST メソッドで API へアクセスするメソッド
15
+ def post( *args )
16
+ request( :post, *args )
17
+ end
18
+
19
+ # @raise [NotImplementedError]
20
+ def path( *args )
21
+ raise NotImplementedError
22
+ end
23
+
24
+ private
25
+
26
+ def __request__( con, method, _path, options )
27
+ con.send( method ) do | req |
28
+ case method
29
+ when :get, :delete
30
+ req.url( _path, options )
31
+ when :post, :put
32
+ req.path = _path
33
+ req.body = options unless options.empty?
34
+ end
35
+ end
36
+ end
37
+
38
+ end
39
+
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,5 @@
1
+ module Nard
2
+ module Appi
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
data/lib/nard/appi.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'nard/appi/version'
2
+
3
+ require 'nard/appi/api_ext/client'
4
+ require 'nard/appi/api_ext/version'
5
+ require 'nard/appi/api_ext/configuration'
6
+ require 'nard/appi/api_ext/initializer'
7
+
8
+ require 'nard/appi/api_ext/default_configuration'
9
+
10
+
11
+ require 'nard/appi/client'
12
+ require 'nard/appi/client/util/base_normalizer'
data/nard-appi.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'nard/appi/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'nard-appi'
8
+ spec.version = Nard::Appi::VERSION
9
+ spec.authors = [ 'Shu Fujita' ]
10
+ spec.email = [ 's.fujita@nard.tech' ]
11
+
12
+ spec.summary = 'This gem \'nard-appi\' enables you to access to APIs more easily.'
13
+ spec.description = 'This gem \'nard-appi\' enables you to access to APIs more easily. You can make API wrapper by using classes and modules contained in this gem.'
14
+ spec.homepage = 'https://github.com/nard-tech/nard-appi'
15
+ spec.license = 'MIT'
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = 'exe'
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = [ 'lib' ]
32
+
33
+ spec.add_runtime_dependency 'activesupport', '~> 5.0', '>= 5.0.0.1'
34
+ spec.add_runtime_dependency 'faraday', '= 0.10'
35
+
36
+ spec.add_development_dependency 'bundler', '~> 1.13'
37
+ spec.add_development_dependency 'rake', '~> 10.0'
38
+ spec.add_development_dependency 'rspec', '~> 3.0'
39
+ end
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nard-appi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Shu Fujita
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-11-30 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: '5.0'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.0.1
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '5.0'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.0.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '='
38
+ - !ruby/object:Gem::Version
39
+ version: '0.10'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '='
45
+ - !ruby/object:Gem::Version
46
+ version: '0.10'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.13'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.13'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '10.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '10.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '3.0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '3.0'
89
+ description: This gem 'nard-appi' enables you to access to APIs more easily. You can
90
+ make API wrapper by using classes and modules contained in this gem.
91
+ email:
92
+ - s.fujita@nard.tech
93
+ executables: []
94
+ extensions: []
95
+ extra_rdoc_files: []
96
+ files:
97
+ - ".gitignore"
98
+ - ".rspec"
99
+ - ".travis.yml"
100
+ - CODE_OF_CONDUCT.md
101
+ - Gemfile
102
+ - LICENSE.txt
103
+ - README.md
104
+ - Rakefile
105
+ - bin/console
106
+ - bin/setup
107
+ - lib/nard/appi.rb
108
+ - lib/nard/appi/api_ext/client.rb
109
+ - lib/nard/appi/api_ext/configuration.rb
110
+ - lib/nard/appi/api_ext/default_configuration.rb
111
+ - lib/nard/appi/api_ext/initializer.rb
112
+ - lib/nard/appi/api_ext/version.rb
113
+ - lib/nard/appi/client.rb
114
+ - lib/nard/appi/client/util/base_normalizer.rb
115
+ - lib/nard/appi/client/util/module/args_normalizer.rb
116
+ - lib/nard/appi/client/util/module/boolean_normalizer.rb
117
+ - lib/nard/appi/client/util/module/options_normalizer.rb
118
+ - lib/nard/appi/client/util/module/path_normalizer.rb
119
+ - lib/nard/appi/client_ext/request.rb
120
+ - lib/nard/appi/version.rb
121
+ - nard-appi.gemspec
122
+ homepage: https://github.com/nard-tech/nard-appi
123
+ licenses:
124
+ - MIT
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 2.5.1
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: This gem 'nard-appi' enables you to access to APIs more easily.
146
+ test_files: []