slack_resources 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ffb20cc223c9f559cfe74b4c0b8f928d66789e4438f3449121fb34315285f6a
4
- data.tar.gz: 57a866d85aea935b30484d7736ae3f681590c0c2714f2125e50a7375d815ea1d
3
+ metadata.gz: '095e2639500695887fb13a21b9355453841a12acb866d3ce2e5b4b885ce74a6b'
4
+ data.tar.gz: '030924abc983456ca173ade00ddea1275db889f08ad22021ecc690d6bd1a60c2'
5
5
  SHA512:
6
- metadata.gz: 94b2e5c4062e75c93c7c894c6b9bde841c1759eb59e5dc705226c49d5942568c4d71fd7ac9ceff99bd449ff14a1dda351c847b1c808c8bd4355ba180d58f18d0
7
- data.tar.gz: b9c5c863cc774652bd1d38c404a218c9cd7c85f84aaad139486d3c4e75a005c87105cd1afee05ea43b5581c631152eff57ea6673297675638a8c7d16e40c1304
6
+ metadata.gz: 384ecaf1d21659ea079ac7079b73f5d5ff4ec683ef3073398d918e2813dcd43f7493782ee92d8f122f4f30031d060d823b101d6ea1c7083e750d21f6049fa04f
7
+ data.tar.gz: 7102e66dfd3b0d0b210c778dc656e5f31b43eedfc1e37ad6d76c6151c2def555b02483320dca7179eb03e8cf63f0de3d783708a83544131dd774ec0aec8f57c0
@@ -1,4 +1,5 @@
1
1
  require 'pathname'
2
+ require 'json'
2
3
 
3
4
  module SlackResources
4
5
  module Resources
@@ -11,7 +12,7 @@ module SlackResources
11
12
  SCHEMAS_PATH = BASE_PATH.join('schemas')
12
13
 
13
14
  class << self
14
- def details(name)
15
+ def detail(name)
15
16
  File.read(DETAILS_PATH.join("#{name}.json"))
16
17
  end
17
18
 
@@ -19,7 +20,7 @@ module SlackResources
19
20
  File.read(EXAMPLES_PATH.join("#{name}.json"))
20
21
  end
21
22
 
22
- def schemas(name)
23
+ def schema(name)
23
24
  File.read(SCHEMAS_PATH.join("#{name}.json"))
24
25
  end
25
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmmpa