syoboemon 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 25ffba3bbe818ad92855d8e567d2c3e2e8c0fb08
4
- data.tar.gz: d0d2e5c90ae1966bd67b928a59fce333f1b3d2cc
3
+ metadata.gz: e7e11ab74d759f4191d3a45c837bd81213deae5a
4
+ data.tar.gz: 30ffb953398228335fe802b62b2e23dc71aa8d5b
5
5
  SHA512:
6
- metadata.gz: 3e07e666a655c66612ad293734e11d1bd0fc3db807c100c605b1bd30500cac64a3621035636a8988961345bf095618ea33fc18bf06caff8f8e80f265f89f5ac5
7
- data.tar.gz: 48ba986541bff2ab77b0694af724cf89f141643635a9cdfd7bca796dabc1cfca013b907861388acf82aa3cf22917e605a88ef27e167f8cff4c3bcb955695aa61
6
+ metadata.gz: ced55f5397653dcecb62a667ebe2e013148eef52ffd16199dc3ced78f00ff96ec7b6bc85f07d6e12bd8d0df0b1cc91579a28014a0eb08aa14ff84055d9d54901
7
+ data.tar.gz: bd2ac61e53b5beb4c8571b60fdbb20f266d35afa5d5b75fc0ae78093f67fdde734a35d22753754387dd018dbcfbe700e7bf09c12012650e3f6d42b00b130b7fb
@@ -4,6 +4,9 @@
4
4
 
5
5
  # しょぼいカレンダーAPIを利用するためのモジュール
6
6
 
7
+ require "rubygems"
8
+ require "faraday"
9
+
7
10
  module Syoboemon
8
11
  module APIConnector
9
12
  URL = "http://cal.syoboi.jp"
@@ -50,11 +53,9 @@ module Syoboemon
50
53
 
51
54
  private
52
55
  def connector
53
- connector ||= Faraday::Connection.new(url: url) do |c|
54
- c.request :url_encoded
55
- c.adapter :net_http
56
- # c.response :logger
57
- c.response :raise_error
56
+ connector ||= Faraday::Connection.new(url: url) do |faraday|
57
+ faraday.request :url_encoded
58
+ faraday.adapter :net_http
58
59
  end
59
60
  end
60
61
 
@@ -1,3 +1,3 @@
1
1
  module Syoboemon
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/syoboemon.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.require_paths = ["lib"]
28
28
 
29
29
  spec.add_runtime_dependency "happymapper"
30
- spec.add_runtime_dependency "faraday", "~> 0.9.1"
30
+ spec.add_runtime_dependency "faraday", "~> 0.9.0"
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 1.9"
33
33
  spec.add_development_dependency "rake", "~> 10.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syoboemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshiemon18
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.1
33
+ version: 0.9.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.9.1
40
+ version: 0.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement