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 +4 -4
- data/lib/resas/api/_base.rb +41 -0
- data/lib/resas/api/version.rb +1 -1
- data/lib/resas/api.rb +2 -43
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d8facef482f75cb283056a4265cc539aeb3b4cc
|
4
|
+
data.tar.gz: 1d461da23bd290777b27139b959bf40cb21f57fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/resas/api/version.rb
CHANGED
data/lib/resas/api.rb
CHANGED
@@ -1,45 +1,4 @@
|
|
1
|
-
|
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 = :
|
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
|
+
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-
|
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
|