softbank-healthcare-client 0.0.1 → 0.0.2

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: 084ef237f3bbc2bc6bb2a40853ad33252d0c3d81
4
- data.tar.gz: 5c923928653e8db2d13c878f43c6ac381b9bb3b7
3
+ metadata.gz: cb45006e64cfa4683d156ab652092a927e31806f
4
+ data.tar.gz: 41ad81341cb8ab3ae5c8457ec745b3f0896ba453
5
5
  SHA512:
6
- metadata.gz: 45e49589da18dd5b417f65079205be7228cfa3612a733e928706da47f548f4052bb5df657fddecd8920e0056c4a88ec6a06f5a3adf3341e953e1b8620b5522ed
7
- data.tar.gz: c5fe730869bbe8402f49ea6cee445337190e3e0a74f6f8ec3ae0df3fdc9eca4826e8921c6a222f0debba6717716c31cd17cef1d2df4ee40bbc73efae249c1652
6
+ metadata.gz: 147f60d139b8197afb98777bcd51fb5e518c685277efca7ca5013390832572e72c98bb6fd57b231a495a0224156040a5da5ef52fd09d31be1256f80cbeec4f30
7
+ data.tar.gz: 5818ab3141b378ac4c03abc873094090a385ac308ff0df3ed77cc4276b2dfa1a39d248d5c762ef598b205b7121b20890cd1823feaefb3e707f04902b93a3f692
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'healthcare'
9
+ gem 'softbank-healthcare-client'
10
10
 
11
11
  And then execute:
12
12
 
@@ -14,20 +14,20 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install healthcare
17
+ $ gem install softbank-healthcare-client
18
18
 
19
19
  ## Usage
20
20
 
21
- Require `healthcare` library.
21
+ Require `softbank_healthcare` library.
22
22
 
23
23
  ```ruby
24
- require 'healthcare'
24
+ require 'softbank_healthcare'
25
25
  ```
26
26
 
27
- Login to healthcare web service. You can use 301SI tel number and password.
27
+ Login to SoftBank HealthCare web service. You can use 301SI tel number and password.
28
28
 
29
29
  ```ruby
30
- client = HealthCare::Client.new telno: '09012345678', password: '1234'
30
+ client = SoftBankHealthCare::Client.new telno: '09012345678', password: '1234'
31
31
  ```
32
32
 
33
33
  Fetch and show your health data.
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'healthcare/version'
4
+ require 'softbank_healthcare/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "softbank-healthcare-client"
8
- spec.version = HealthCare::VERSION
8
+ spec.version = SoftBankHealthCare::VERSION
9
9
  spec.authors = ["shunirr"]
10
10
  spec.email = ["m@s5r.jp"]
11
11
  spec.summary = %q{Softbank HealthCare Client for Ruby}
@@ -0,0 +1,9 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ require "softbank_healthcare/version"
4
+
5
+ module SoftBankHealthCare
6
+ autoload :Client, 'softbank_healthcare/client'
7
+ autoload :ApiClient, 'softbank_healthcare/api_client'
8
+ autoload :Bodycomp, 'softbank_healthcare/bodycomp'
9
+ end
@@ -4,7 +4,7 @@ require 'faraday'
4
4
  require 'json'
5
5
  require 'date'
6
6
 
7
- module HealthCare
7
+ module SoftBankHealthCare
8
8
  class ApiClient
9
9
  def initialize
10
10
  @conn = Faraday.new(:url => 'https://healthcare.mb.softbank.jp') do |faraday|
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- module HealthCare
3
+ module SoftBankHealthCare
4
4
  class Bodycomp
5
5
  attr_accessor :weight, :bodyfat, :number, :value, :level
6
6
 
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- module HealthCare
3
+ module SoftBankHealthCare
4
4
  class Client
5
5
  def initialize(params)
6
6
  @api = ApiClient.new
@@ -0,0 +1,5 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ module SoftBankHealthCare
4
+ VERSION = "0.0.2"
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softbank-healthcare-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shunirr
@@ -65,11 +65,11 @@ files:
65
65
  - README.md
66
66
  - Rakefile
67
67
  - healthcare.gemspec
68
- - lib/healthcare.rb
69
- - lib/healthcare/api_client.rb
70
- - lib/healthcare/bodycomp.rb
71
- - lib/healthcare/client.rb
72
- - lib/healthcare/version.rb
68
+ - lib/softbank_healthcare.rb
69
+ - lib/softbank_healthcare/api_client.rb
70
+ - lib/softbank_healthcare/bodycomp.rb
71
+ - lib/softbank_healthcare/client.rb
72
+ - lib/softbank_healthcare/version.rb
73
73
  homepage: https://github.com/shunirr/softbank-healthcare-client-ruby
74
74
  licenses:
75
75
  - MIT
@@ -1,9 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- require "healthcare/version"
4
-
5
- module HealthCare
6
- autoload :Client, 'healthcare/client'
7
- autoload :ApiClient, 'healthcare/api_client'
8
- autoload :Bodycomp, 'healthcare/bodycomp'
9
- end
@@ -1,5 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- module HealthCare
4
- VERSION = "0.0.1"
5
- end