crowi-client 0.1.2 → 0.1.3

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: 310285c37c1db2f5953063e99c161c6a1236f66f1ce2f47c31f317d04c04409d
4
- data.tar.gz: eee12e023f1311472a314ed17dc6488cb1c41978f8fe0e2a6693a56bdfb79626
3
+ metadata.gz: eb8de429163b68735051986cd2d5f170432a86cfcad3c3c9f7bd4603eab4c1aa
4
+ data.tar.gz: f3c30c62593640650ea8d0bd205a6eb5a6575989bfd0184bdb4d1e590c841ac3
5
5
  SHA512:
6
- metadata.gz: b5340275410bd45e55f42bdf61da53d1dc54fa81f2cd807a80b94e7112e5ca3141463967db635894e19745a719008c86cbfdf4b07ebf982feffb440bc14b6fea
7
- data.tar.gz: e9dd54e46956a2ef52d9887666cf98f5ef37e00965c7259f279e4536aaea50f72e3e9e6164850156f3596ba1be08054b898d5a7156578d151fce92799e92ee72
6
+ metadata.gz: dc7d6343d24f79765b24e4bc91cde68405c900768042d41a56c27d96db91dd3e0b1777bee59163a980a10085356aaba266286389b7eb1db8bd46d1a8b998e651
7
+ data.tar.gz: 2b0a7733d190acda7830b2fe250cc75d230fbecfb67be3232c58c39e43d2fc1897c6b6c91d9d78f850ecb4af6e4b2cdaff702227206f284bde3745f83af71248
@@ -40,8 +40,7 @@ class CrowiClient
40
40
  # @param [String] path ページパス
41
41
  # @return [true/false] ページの存在
42
42
  def page_exist?(path_exp: nil)
43
- ret = request(CPApiRequestPagesList.new path_exp: path_exp)
44
- return ret&.ok && ret&.data&.find { |p| p.path.match(path_exp) } != nil
43
+ return !page_id(path_exp: path_exp).nil?
45
44
  end
46
45
 
47
46
  # ページに添付ファイルが存在するか調べる
@@ -1,5 +1,5 @@
1
1
  module Crowi
2
2
  module Client
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crowi-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryu Sato