stamp 0.1.3 → 0.1.4
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.
- data/Gemfile.lock +1 -1
- data/README.md +9 -0
- data/features/stamp.feature +9 -0
- data/features/step_definitions/stamp_steps.rb +4 -0
- data/lib/stamp.rb +2 -0
- data/lib/stamp/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -62,6 +62,15 @@ January 2009. More explicit examples include "12/31", "31/12", and "12/99".
|
|
62
62
|
Using unambiguous values will also help people who read the code in the
|
63
63
|
future understand your intent.
|
64
64
|
|
65
|
+
### Aliases
|
66
|
+
|
67
|
+
You might be concerned that the method name "stamp" isn't descriptive enough
|
68
|
+
for developers reading your code who aren't familiar with this gem. If that's
|
69
|
+
the case, the following aliases are available:
|
70
|
+
|
71
|
+
* `stamp_like`
|
72
|
+
* `format_like`
|
73
|
+
|
65
74
|
### Limitations
|
66
75
|
|
67
76
|
* Time zone support hasn't been implemented. Patches welcome!
|
data/features/stamp.feature
CHANGED
@@ -65,6 +65,15 @@ Feature: Stamping a date
|
|
65
65
|
When I stamp the example "Marilyn Monroe was born on January 1, 1999."
|
66
66
|
Then I produce "Marilyn Monroe was born on June 1, 1926."
|
67
67
|
|
68
|
+
Scenario Outline: Aliases for the stamp method
|
69
|
+
Given the date December 9, 2011
|
70
|
+
When I call "<alias>" with "1999-01-31"
|
71
|
+
Then I produce "2011-12-09"
|
72
|
+
|
73
|
+
Examples:
|
74
|
+
| alias |
|
75
|
+
| stamp_like |
|
76
|
+
| format_like |
|
68
77
|
|
69
78
|
@wip
|
70
79
|
Scenario Outline: Examples that aren't supported yet
|
data/lib/stamp.rb
CHANGED
data/lib/stamp/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Weiskotten
|