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 +4 -4
- data/lib/syoboemon/api_connector.rb +6 -5
- data/lib/syoboemon/version.rb +1 -1
- data/syoboemon.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7e11ab74d759f4191d3a45c837bd81213deae5a
|
4
|
+
data.tar.gz: 30ffb953398228335fe802b62b2e23dc71aa8d5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 |
|
54
|
-
|
55
|
-
|
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
|
|
data/lib/syoboemon/version.rb
CHANGED
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.
|
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.
|
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.
|
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.
|
40
|
+
version: 0.9.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|