random_text 1.0.1 → 1.0.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.
- data/.gitignore +5 -0
- data/Rakefile +24 -19
- data/VERSION +1 -0
- data/random_text.gemspec +40 -12
- metadata +18 -24
- data/VERSION.yml +0 -1
data/Rakefile
CHANGED
@@ -1,23 +1,28 @@
|
|
1
|
-
|
2
|
-
require '
|
3
|
-
require 'rake'
|
4
|
-
require 'rake/clean'
|
5
|
-
require 'fileutils'
|
6
|
-
require 'echoe'
|
1
|
+
begin
|
2
|
+
require 'jeweler'
|
7
3
|
|
8
|
-
|
4
|
+
name = 'random_text'
|
5
|
+
summary = 'Library to generate random strings'
|
9
6
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
jewel = Jeweler::Tasks.new do |j|
|
8
|
+
j.name = name
|
9
|
+
j.summary = summary
|
10
|
+
j.homepage = "http://github.com/toy/#{name}"
|
11
|
+
j.authors = ["Boba Fat"]
|
12
|
+
end
|
13
|
+
|
14
|
+
Jeweler::GemcutterTasks.new
|
15
|
+
|
16
|
+
require 'pathname'
|
17
|
+
desc "Replace system gem with symlink to this folder"
|
18
|
+
task 'ghost' do
|
19
|
+
gem_path = Pathname(Gem.searcher.find(name).full_gem_path)
|
20
|
+
current_path = Pathname('.').expand_path
|
21
|
+
cmd = gem_path.writable? && gem_path.parent.writable? ? %w() : %w(sudo)
|
22
|
+
system(*cmd + %W[rm -r #{gem_path}])
|
23
|
+
system(*cmd + %W[ln -s #{current_path} #{gem_path}])
|
24
|
+
end
|
15
25
|
|
16
|
-
|
17
|
-
|
18
|
-
gem_path = Pathname(Gem.searcher.find(echoe.name).full_gem_path)
|
19
|
-
current_path = Pathname('.').expand_path
|
20
|
-
cmd = gem_path.writable? && gem_path.parent.writable? ? %w() : %w(sudo)
|
21
|
-
system(*cmd + %W[rm -r #{gem_path}])
|
22
|
-
system(*cmd + %W[ln -s #{current_path} #{gem_path}])
|
26
|
+
rescue LoadError
|
27
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
23
28
|
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.2
|
data/random_text.gemspec
CHANGED
@@ -1,23 +1,50 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{random_text}
|
5
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
6
9
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
8
|
-
s.authors = ["
|
9
|
-
s.date = %q{2009-
|
10
|
-
s.description = %q{A library to generate random strings.}
|
11
|
-
s.email = %q{}
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Boba Fat"]
|
12
|
+
s.date = %q{2009-12-30}
|
12
13
|
s.executables = ["lorem", "vesna"]
|
13
|
-
s.extra_rdoc_files = [
|
14
|
-
|
15
|
-
|
16
|
-
s.
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"README.rdoc"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
".gitignore",
|
19
|
+
"Manifest",
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"bin/lorem",
|
24
|
+
"bin/vesna",
|
25
|
+
"lib/random_text.rb",
|
26
|
+
"lib/random_text/dictionary.rb",
|
27
|
+
"lib/random_text/random_strings.rb",
|
28
|
+
"random_text.gemspec",
|
29
|
+
"resources/lorem.txt",
|
30
|
+
"resources/vesna.txt",
|
31
|
+
"spec/random_text/dictionary_spec.rb",
|
32
|
+
"spec/random_text/random_string_spec.rb",
|
33
|
+
"spec/random_text_spec.rb",
|
34
|
+
"spec/spec.opts",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
37
|
+
s.homepage = %q{http://github.com/toy/random_text}
|
38
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
17
39
|
s.require_paths = ["lib"]
|
18
|
-
s.rubyforge_project = %q{toytoy}
|
19
40
|
s.rubygems_version = %q{1.3.5}
|
20
|
-
s.summary = %q{
|
41
|
+
s.summary = %q{Library to generate random strings}
|
42
|
+
s.test_files = [
|
43
|
+
"spec/random_text/dictionary_spec.rb",
|
44
|
+
"spec/random_text/random_string_spec.rb",
|
45
|
+
"spec/random_text_spec.rb",
|
46
|
+
"spec/spec_helper.rb"
|
47
|
+
]
|
21
48
|
|
22
49
|
if s.respond_to? :specification_version then
|
23
50
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
@@ -29,3 +56,4 @@ Gem::Specification.new do |s|
|
|
29
56
|
else
|
30
57
|
end
|
31
58
|
end
|
59
|
+
|
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: random_text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Boba Fat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-30 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
17
|
-
email:
|
16
|
+
description:
|
17
|
+
email:
|
18
18
|
executables:
|
19
19
|
- lorem
|
20
20
|
- vesna
|
@@ -22,21 +22,18 @@ extensions: []
|
|
22
22
|
|
23
23
|
extra_rdoc_files:
|
24
24
|
- README.rdoc
|
25
|
-
- bin/lorem
|
26
|
-
- bin/vesna
|
27
|
-
- lib/random_text.rb
|
28
|
-
- lib/random_text/dictionary.rb
|
29
|
-
- lib/random_text/random_strings.rb
|
30
25
|
files:
|
26
|
+
- .gitignore
|
31
27
|
- Manifest
|
32
28
|
- README.rdoc
|
33
29
|
- Rakefile
|
34
|
-
- VERSION
|
30
|
+
- VERSION
|
35
31
|
- bin/lorem
|
36
32
|
- bin/vesna
|
37
33
|
- lib/random_text.rb
|
38
34
|
- lib/random_text/dictionary.rb
|
39
35
|
- lib/random_text/random_strings.rb
|
36
|
+
- random_text.gemspec
|
40
37
|
- resources/lorem.txt
|
41
38
|
- resources/vesna.txt
|
42
39
|
- spec/random_text/dictionary_spec.rb
|
@@ -44,19 +41,13 @@ files:
|
|
44
41
|
- spec/random_text_spec.rb
|
45
42
|
- spec/spec.opts
|
46
43
|
- spec/spec_helper.rb
|
47
|
-
- random_text.gemspec
|
48
44
|
has_rdoc: true
|
49
|
-
homepage:
|
45
|
+
homepage: http://github.com/toy/random_text
|
50
46
|
licenses: []
|
51
47
|
|
52
48
|
post_install_message:
|
53
49
|
rdoc_options:
|
54
|
-
- --
|
55
|
-
- --inline-source
|
56
|
-
- --title
|
57
|
-
- Random_text
|
58
|
-
- --main
|
59
|
-
- README.rdoc
|
50
|
+
- --charset=UTF-8
|
60
51
|
require_paths:
|
61
52
|
- lib
|
62
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -69,14 +60,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
60
|
requirements:
|
70
61
|
- - ">="
|
71
62
|
- !ruby/object:Gem::Version
|
72
|
-
version: "
|
63
|
+
version: "0"
|
73
64
|
version:
|
74
65
|
requirements: []
|
75
66
|
|
76
|
-
rubyforge_project:
|
67
|
+
rubyforge_project:
|
77
68
|
rubygems_version: 1.3.5
|
78
69
|
signing_key:
|
79
70
|
specification_version: 3
|
80
|
-
summary:
|
81
|
-
test_files:
|
82
|
-
|
71
|
+
summary: Library to generate random strings
|
72
|
+
test_files:
|
73
|
+
- spec/random_text/dictionary_spec.rb
|
74
|
+
- spec/random_text/random_string_spec.rb
|
75
|
+
- spec/random_text_spec.rb
|
76
|
+
- spec/spec_helper.rb
|
data/VERSION.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
[1, 0, 1]
|