resas-api 0.2.4 → 0.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 514b6eaebc254164d92d9ce66fc60eb4ad8842c3
4
- data.tar.gz: 2100151208e21d32a68ec0ab73d0e21d24d9c04b
3
+ metadata.gz: 6d8facef482f75cb283056a4265cc539aeb3b4cc
4
+ data.tar.gz: 1d461da23bd290777b27139b959bf40cb21f57fa
5
5
  SHA512:
6
- metadata.gz: 3743fd4ce95ed94cae44bb454f201d1d1dea01dd51a5b72d5f7baa5493e2f7b56d574232b553e7547d56be629eff724aafe2a627b7f6fb52d88f67bb3ba39f69
7
- data.tar.gz: 4dc5f67b48221c8002466c2b89dcf66ea68b6b627507fde5a8a35bd88ed15a484b1f2628056e343c7fed474fd4945673f03d86b05c828d1db273824dbb689991
6
+ metadata.gz: 5ef321f826a88574144987cad10ab4ef21226789a3f90540454688c22ec300dc5f36cf6aa073b4087e7c8e8ac77edba71db711aa9cf584bae5197bb701a79448
7
+ data.tar.gz: 1c483036a673b05e977b63c7ed9c96466c438698fbd6c06eda68b38cbbf1253e26b24397c7c44ae23160933c97e1b401b617d27b3c80b4efc47addd0c9cb560d
@@ -0,0 +1,41 @@
1
+ require 'nard/appi'
2
+
3
+ require_relative 'version'
4
+ require_relative 'api_ext/default_configuration'
5
+
6
+ # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
7
+ # @see {https://resas.go.jp/}
8
+ module Resas
9
+
10
+ # RESAS API を扱うための Gem - トップの名前空間
11
+ # @see {https://opendata.resas-portal.go.jp/}
12
+ # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
13
+ module Api
14
+
15
+ include Nard::Appi::ApiExt::Version
16
+ include Nard::Appi::ApiExt::Client
17
+ include Nard::Appi::ApiExt::Configuration
18
+ include Nard::Appi::ApiExt::Environment
19
+
20
+ include ApiExt::DefaultConfiguration
21
+
22
+ include Nard::Appi::ApiExt::Initializer
23
+
24
+ # クライアントのオブジェクトを返すメソッド
25
+ # @param options [Hash] オプション
26
+ # @return [Resas::Api::Client]
27
+ def self.client( options = {} )
28
+ super( Resas::Api, options )
29
+ end
30
+
31
+ def self.method_missing( method, *args, &block )
32
+ return super unless client.respond_to?( method )
33
+ client.send( method, *args, &block )
34
+ end
35
+
36
+ def self.respond_to?( method, include_all = false )
37
+ return client.respond_to?( method, include_all ) || super
38
+ end
39
+
40
+ end
41
+ end
@@ -9,7 +9,7 @@ module Resas
9
9
 
10
10
  # この Gem のバージョン
11
11
  # @return [String]
12
- VERSION = '0.2.4'.freeze
12
+ VERSION = '0.2.5'.freeze
13
13
 
14
14
  end
15
15
  end
data/lib/resas/api.rb CHANGED
@@ -1,45 +1,4 @@
1
- require 'nard/appi'
2
-
3
- require_relative 'api/version'
4
- require_relative 'api/api_ext/default_configuration'
5
-
6
- # RESAS (Regional Economy Society Analyzing System) に関する機能を格納する名前空間
7
- # @see {https://resas.go.jp/}
8
- module Resas
9
-
10
- # RESAS API を扱うための Gem - トップの名前空間
11
- # @see {https://opendata.resas-portal.go.jp/}
12
- # @see {https://opendata.resas-portal.go.jp/docs/api/v1-rc.1/index.html}
13
- module Api
14
-
15
- include Nard::Appi::ApiExt::Version
16
- include Nard::Appi::ApiExt::Client
17
- include Nard::Appi::ApiExt::Configuration
18
- include Nard::Appi::ApiExt::Environment
19
-
20
- include ApiExt::DefaultConfiguration
21
-
22
- include Nard::Appi::ApiExt::Initializer
23
-
24
- # クライアントのオブジェクトを返すメソッド
25
- # @param options [Hash] オプション
26
- # @return [Resas::Api::Client]
27
- def self.client( options = {} )
28
- super( Resas::Api, options )
29
- end
30
-
31
- def self.method_missing( method, *args, &block )
32
- return super unless client.respond_to?( method )
33
- client.send( method, *args, &block )
34
- end
35
-
36
- def self.respond_to?( method, include_all = false )
37
- return client.respond_to?( method, include_all ) || super
38
- end
39
-
40
- end
41
- end
42
-
1
+ require_relative 'api/_base'
43
2
  require_relative 'api/client'
44
3
 
45
- Resas::Api.env = :development
4
+ Resas::Api.env = :production
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resas-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shu Fujita
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -147,6 +147,7 @@ files:
147
147
  - bin/console
148
148
  - bin/setup
149
149
  - lib/resas/api.rb
150
+ - lib/resas/api/_base.rb
150
151
  - lib/resas/api/api_ext/default_configuration.rb
151
152
  - lib/resas/api/client.rb
152
153
  - lib/resas/api/client/util/base_normalizer.rb