cooking_spoon 0.1.0 → 0.1.1

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: eaa027d791d92f36b6899cb185885cfd94ca232b
4
- data.tar.gz: 7d103e1fd034e31c96a1a996819fc3c4f27c97d8
3
+ metadata.gz: b2f8d98f8b9d8e0f4b0ed861fa41694258ef38aa
4
+ data.tar.gz: 0ee9a473eb145b455b12afd891e832510a532034
5
5
  SHA512:
6
- metadata.gz: 261d38a818258fddba5a4ea916d9fe69b92d631e35a5ca72d61db2905aa3c0b2f8001618fc2d02e546c3c6762176d3ba26431ab47acba3b69a01b4c1bf9d0913
7
- data.tar.gz: c6d34459d9d232f0bdc92b70206b6f1ed37e16e97ebb9542784ed579462452efe7576a7d818c49cab281566be36c68b0ef0b383e3e51b3cadfe3b5b3717bb06f
6
+ metadata.gz: 5f53cea3b87dab6e2216e1c0db3ce5148ab78892c90c300c55ef15a3daf5d6e8d4d80305ddf854eddf25597f1abd416c7fa1f9dca13b4b54d8bceaaa02ff3226
7
+ data.tar.gz: 2424aa089c284e9439ce290d944db8954e596e50844ec90bbca239d5e781213ae21a7431d34178729fc9472e8979133cf5fbbdc86843d1a8cb417c37807d7fa7
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # CookingSpoon
2
+ cooking_spoon gem is usefull for showing cooking spoon unit in recipe.
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cooking_spoon`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ [![Gem Version](https://badge.fury.io/rb/cooking_spoon.svg)](https://badge.fury.io/rb/cooking_spoon)
6
5
 
7
6
  ## Installation
8
7
 
@@ -24,15 +23,15 @@ Or install it yourself as:
24
23
 
25
24
  ```ruby
26
25
  # Float
27
- CookingSpoon::quantity_and_unit(1.5, unit) # => "小さじ1と1/2"
26
+ CookingSpoon::quantity_and_unit(1.5, :big_spoon) # => "大さじ1と1/2"
28
27
 
29
28
  # String
30
- CookingSpoon::quantity_and_unit("5/2", unit) # => "小さじ2と1/2"
29
+ CookingSpoon::quantity_and_unit("5/2", :small_spoon) # => "小さじ2と1/2"
31
30
 
32
31
  # Rational
33
- CookingSpoon::quantity_and_unit(Rational(1, 2) # => "小さじ1/2"
34
- CookingSpoon::quantity_and_unit(Rational(3, 2) # => "小さじ1と1/2"
35
- CookingSpoon::quantity_and_unit(Rational(5, 2) # => "小さじ2と1/2"
32
+ CookingSpoon::quantity_and_unit(Rational(1, 2), :small_spoon) # => "小さじ1/2"
33
+ CookingSpoon::quantity_and_unit(Rational(3, 2), :small_spoon) # => "小さじ1と1/2"
34
+ CookingSpoon::quantity_and_unit(Rational(5, 2), :small_spoon) # => "小さじ2と1/2"
36
35
  ```
37
36
 
38
37
  ## Development
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{cooking_spoon gem is usefull for showing cooking spoon unit in recipe.}
13
13
  spec.description = %q{cooking_spoon gem create string from Rational number.}
14
- spec.homepage = "http://u16suzu.hatenablog.com/"
14
+ spec.homepage = "https://github.com/u16suzu/cooking_spoon"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -1,3 +1,3 @@
1
1
  module CookingSpoon
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cooking_spoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - u16suzu
@@ -73,7 +73,7 @@ files:
73
73
  - lib/cooking_spoon/config.rb
74
74
  - lib/cooking_spoon/unit.rb
75
75
  - lib/cooking_spoon/version.rb
76
- homepage: http://u16suzu.hatenablog.com/
76
+ homepage: https://github.com/u16suzu/cooking_spoon
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: {}