filename 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -4
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/filename.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
-
|
1
|
+
# filename
|
2
2
|
|
3
|
-
|
3
|
+
The class to create filename that is not duplicated.
|
4
|
+
We select type of additional part of filename: number or time.
|
4
5
|
|
5
|
-
|
6
|
+
## Example
|
7
|
+
|
8
|
+
basename = 'base.txt'
|
9
|
+
filename = FileName.new(basename)
|
10
|
+
p filename.create(:add => :always) # => "/path/to/base.txt.00"
|
11
|
+
p filename.create(:add => :always) # => "/path/to/base.txt.01"
|
12
|
+
p filename.create(:add => :always) # => "/path/to/base.txt.02"
|
13
|
+
|
14
|
+
## Contributing to filename
|
6
15
|
|
7
16
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
8
17
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
|
@@ -12,7 +21,7 @@ Description goes here.
|
|
12
21
|
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
22
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
23
|
|
15
|
-
|
24
|
+
## Copyright
|
16
25
|
|
17
26
|
Copyright (c) 2011 Takayuki YAMAGUCHI. See LICENSE.txt for
|
18
27
|
further details.
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gem|
|
|
16
16
|
gem.homepage = "http://github.com/ytaka/filename"
|
17
17
|
gem.license = "GPLv3"
|
18
18
|
gem.summary = "Filename generator"
|
19
|
-
gem.description = "Create
|
19
|
+
gem.description = "Create filename with sequential number or time string that is not duplicated."
|
20
20
|
gem.email = "d@ytak.info"
|
21
21
|
gem.authors = ["Takayuki YAMAGUCHI"]
|
22
22
|
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/filename.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{filename}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Takayuki YAMAGUCHI"]
|
12
12
|
s.date = %q{2011-03-25}
|
13
|
-
s.description = %q{Create
|
13
|
+
s.description = %q{Create filename with sequential number or time string that is not duplicated.}
|
14
14
|
s.email = %q{d@ytak.info}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: filename
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Takayuki YAMAGUCHI
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: *id004
|
60
|
-
description: Create
|
60
|
+
description: Create filename with sequential number or time string that is not duplicated.
|
61
61
|
email: d@ytak.info
|
62
62
|
executables: []
|
63
63
|
|
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
hash: -
|
96
|
+
hash: -1320718372192769364
|
97
97
|
segments:
|
98
98
|
- 0
|
99
99
|
version: "0"
|