fxkeb 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41d595a4221ae3381e88721c8d37a1a5b19952e7
4
- data.tar.gz: 83d5675da46d3cd041d4e94bb070994a6c47bb78
3
+ metadata.gz: 2791730ffb6944b2b501a65929f632632b24f22b
4
+ data.tar.gz: 113b1319d842e2a7e3a0d956fc274978ea7c70a0
5
5
  SHA512:
6
- metadata.gz: 9d0dc3f584c96d19a05a6e43811bfa1cfed43d7eb6133fa5944e1bb44d07479950f420ce38ee222db1ab05ec27bfe7a764a2ee70bc1eedcdae878f8f7b282993
7
- data.tar.gz: 471b76b60b86d15cffbb0f847631e3012ebb918abbd0affd900de6db744dee30005342600f4382c7c95f66778d254111b0cbe01e5b16142e81ddaa7dec2b7026
6
+ metadata.gz: 701e7069e7d23a4407a7afd9d119d680b44d8bf0c86227653353dfb745da4a4a80c39dd355a615f2c8fd42771b0e22a7530b3a27f98789a79b333b45fbb0c913
7
+ data.tar.gz: d463a62d6053bcd2cdb5f29fadf32e9190eda567d88244ae45c3c768f1788dab396e50959fc3e1b0acf489e7e7cc2471fe8b6560af32af238bc3903527adabb6
data/README.md CHANGED
@@ -1,14 +1,16 @@
1
1
  # Fxkeb
2
2
 
3
- Get USD from KRW based on fx rate infomation from fxkeb.
3
+ Get USD from KRW based on fx rate infomation from fxkeb.
4
+
5
+ 외환은행 사이트에서 환율정보를 구해서, 지정한 원화에 대한 USD를 구합니다.
4
6
 
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- # gem 'fxkeb'
11
- gem 'fxkeb', git: 'git://github.com/jinto/fxkeb.git'
12
+ gem 'fxkeb'
13
+ gem 'fxkeb', git: 'git://github.com/jinto/fxkeb.git' # lastest version
12
14
  ```
13
15
 
14
16
  And then execute:
@@ -19,18 +21,24 @@ Or install it yourself as:
19
21
 
20
22
  $ gem install fxkeb
21
23
 
22
- ## Usage
23
24
 
24
- Fxkeb.to_usd(1000) # => 0.9
25
+ # fxkeb
25
26
 
26
- ## License
27
+ ## Get USD from KRW
28
+ ```
29
+ Fxkeb.fx_krw2usd(krw)
30
+ ```
31
+
32
+ * 만일 fxkeb.com 사이트가 동작하지 않으면, "usd=krw/1000"으로 동작합니다.
33
+ * If fxkeb.com is not up, fixed rate "krw/1000" is applied.
27
34
 
28
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
29
35
 
30
- # fxkeb
31
36
 
32
- Fxkeb.to_usd(krw)
33
37
 
34
38
  # 참고
35
39
  http://blog.remotty.com/blog/2015/12/14/rubygem-create-guide/
36
- # fxkeb
40
+
41
+ ## License
42
+
43
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
44
+
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["jay park"]
10
10
  spec.email = ["jaypark@gmail.com"]
11
11
 
12
- spec.summary = 'currency conversion from krw to usd'
12
+ spec.summary = 'Currency conversion from krw to usd'
13
13
  spec.description = 'currency conversion from krw to usd'
14
14
  spec.homepage = "http://github.com/jinto/fxkeb"
15
15
  spec.license = "MIT"
@@ -2,7 +2,7 @@ require "fxkeb/version"
2
2
  require "nokogiri"
3
3
 
4
4
  module Fxkeb
5
- FIXED_RATE=1000
5
+ FIXED_RATE=1200
6
6
  FXURL="http://community.fxkeb.com/fxportal/jsp/RS/DEPLOY_EXRATE/2533_0.html"
7
7
 
8
8
  def self.fx_krw2usd(krw)
@@ -1,3 +1,3 @@
1
1
  module Fxkeb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fxkeb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jay park
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-17 00:00:00.000000000 Z
11
+ date: 2015-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -108,5 +108,5 @@ rubyforge_project:
108
108
  rubygems_version: 2.4.5.1
109
109
  signing_key:
110
110
  specification_version: 4
111
- summary: currency conversion from krw to usd
111
+ summary: Currency conversion from krw to usd
112
112
  test_files: []