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 +4 -4
- data/README.md +7 -8
- data/cooking_spoon.gemspec +1 -1
- data/lib/cooking_spoon/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2f8d98f8b9d8e0f4b0ed861fa41694258ef38aa
|
|
4
|
+
data.tar.gz: 0ee9a473eb145b455b12afd891e832510a532034
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
4
|
+
[](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,
|
|
26
|
+
CookingSpoon::quantity_and_unit(1.5, :big_spoon) # => "大さじ1と1/2"
|
|
28
27
|
|
|
29
28
|
# String
|
|
30
|
-
CookingSpoon::quantity_and_unit("5/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
|
data/cooking_spoon.gemspec
CHANGED
|
@@ -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 = "
|
|
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|
|
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.
|
|
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:
|
|
76
|
+
homepage: https://github.com/u16suzu/cooking_spoon
|
|
77
77
|
licenses:
|
|
78
78
|
- MIT
|
|
79
79
|
metadata: {}
|