random_text 1.0.2 → 1.0.2.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.
data/.tmignore ADDED
@@ -0,0 +1 @@
1
+ /*.gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Ivan Kuchin
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown ADDED
@@ -0,0 +1,47 @@
1
+ # random_text
2
+
3
+ http://github.com/toy/random_text/tree/master
4
+
5
+ ## DESCRIPTION:
6
+
7
+ Class to make usage of http://vesna.yandex.ru/ and http://lipsum.com/ easier
8
+
9
+ ## SYNOPSIS:
10
+
11
+ include RandomText
12
+
13
+ Lorem.word
14
+ Lorem.words(5)
15
+
16
+ Lorem.uniq_words(10)
17
+
18
+ Lorem.sentence
19
+ Lorem.sentences(5)
20
+
21
+ Lorem.paragraph
22
+ Lorem.paragraphs(5)
23
+
24
+ Same can be done for Vesna
25
+
26
+ Vesna.word
27
+
28
+
29
+ Also there are binaries `lorem` and `vesna`
30
+
31
+ lorem word
32
+ lorem 10 words
33
+ lorem 20 uniq_words
34
+ lorem 7 sentensec
35
+ lorem 3 paragraphs
36
+
37
+ ## REQUIREMENTS:
38
+
39
+ ruby :)
40
+
41
+ ## INSTALL:
42
+
43
+ sudo gem install random_text
44
+
45
+ ## Copyright
46
+
47
+ Copyright (c) 2010 Ivan Kuchin. See LICENSE.txt for details.
data/Rakefile CHANGED
@@ -1,28 +1,25 @@
1
- begin
2
- require 'jeweler'
1
+ require 'rake'
2
+ require 'jeweler'
3
+ require 'rake/gem_ghost_task'
4
+ require 'rspec/core/rake_task'
3
5
 
4
- name = 'random_text'
5
- summary = 'Library to generate random strings'
6
+ name = 'random_text'
6
7
 
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
8
+ Jeweler::Tasks.new do |gem|
9
+ gem.name = name
10
+ gem.summary = %Q{Library to generate random strings}
11
+ gem.homepage = "http://github.com/toy/#{name}"
12
+ gem.license = 'MIT'
13
+ gem.authors = ['Ivan Kuchin']
14
+ gem.add_development_dependency 'jeweler', '~> 1.5.1'
15
+ gem.add_development_dependency 'rake-gem-ghost'
16
+ gem.add_development_dependency 'rspec'
17
+ end
18
+ Jeweler::RubygemsDotOrgTasks.new
19
+ Rake::GemGhostTask.new
25
20
 
26
- rescue LoadError
27
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
21
+ RSpec::Core::RakeTask.new(:spec) do |spec|
22
+ spec.rspec_opts = ['--colour --format progress']
23
+ spec.pattern = 'spec/**/*_spec.rb'
28
24
  end
25
+ task :default => :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.2.1
data/random_text.gemspec CHANGED
@@ -1,59 +1,69 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{random_text}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.2.1"
9
9
 
10
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}
13
- s.executables = ["lorem", "vesna"]
11
+ s.authors = ["Ivan Kuchin"]
12
+ s.date = %q{2010-12-15}
13
+ s.executables = ["vesna", "lorem"]
14
14
  s.extra_rdoc_files = [
15
- "README.rdoc"
15
+ "LICENSE.txt",
16
+ "README.markdown"
16
17
  ]
17
18
  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"
19
+ ".tmignore",
20
+ "LICENSE.txt",
21
+ "README.markdown",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "bin/lorem",
25
+ "bin/vesna",
26
+ "lib/random_text.rb",
27
+ "lib/random_text/dictionary.rb",
28
+ "lib/random_text/random_strings.rb",
29
+ "random_text.gemspec",
30
+ "resources/lorem.txt",
31
+ "resources/vesna.txt",
32
+ "spec/random_text/dictionary_spec.rb",
33
+ "spec/random_text/random_string_spec.rb",
34
+ "spec/random_text_spec.rb",
35
+ "spec/spec.opts",
36
+ "spec/spec_helper.rb"
36
37
  ]
37
38
  s.homepage = %q{http://github.com/toy/random_text}
38
- s.rdoc_options = ["--charset=UTF-8"]
39
+ s.licenses = ["MIT"]
39
40
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.5}
41
+ s.rubygems_version = %q{1.3.7}
41
42
  s.summary = %q{Library to generate random strings}
42
43
  s.test_files = [
43
44
  "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"
45
+ "spec/random_text/random_string_spec.rb",
46
+ "spec/random_text_spec.rb",
47
+ "spec/spec_helper.rb"
47
48
  ]
48
49
 
49
50
  if s.respond_to? :specification_version then
50
51
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
52
  s.specification_version = 3
52
53
 
53
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
54
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
55
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
56
+ s.add_development_dependency(%q<rake-gem-ghost>, [">= 0"])
57
+ s.add_development_dependency(%q<rspec>, [">= 0"])
54
58
  else
59
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
60
+ s.add_dependency(%q<rake-gem-ghost>, [">= 0"])
61
+ s.add_dependency(%q<rspec>, [">= 0"])
55
62
  end
56
63
  else
64
+ s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
65
+ s.add_dependency(%q<rake-gem-ghost>, [">= 0"])
66
+ s.add_dependency(%q<rspec>, [">= 0"])
57
67
  end
58
68
  end
59
69
 
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,3 @@
1
- $:.unshift(File.dirname(__FILE__) + '/../lib')
1
+ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
2
+ require 'rspec'
2
3
  require 'random_text'
3
-
4
- begin
5
- require 'spec'
6
- rescue LoadError
7
- require 'rubygems'
8
- gem 'rspec'
9
- require 'spec'
10
- end
metadata CHANGED
@@ -1,31 +1,82 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: random_text
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ hash: 85
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 2
10
+ - 1
11
+ version: 1.0.2.1
5
12
  platform: ruby
6
13
  authors:
7
- - Boba Fat
14
+ - Ivan Kuchin
8
15
  autorequire:
9
16
  bindir: bin
10
17
  cert_chain: []
11
18
 
12
- date: 2009-12-30 00:00:00 +03:00
19
+ date: 2010-12-15 00:00:00 +03:00
13
20
  default_executable:
14
- dependencies: []
15
-
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
23
+ name: jeweler
24
+ prerelease: false
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ hash: 1
31
+ segments:
32
+ - 1
33
+ - 5
34
+ - 1
35
+ version: 1.5.1
36
+ type: :development
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: rake-gem-ghost
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 0
49
+ version: "0"
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: rspec
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
16
66
  description:
17
67
  email:
18
68
  executables:
19
- - lorem
20
69
  - vesna
70
+ - lorem
21
71
  extensions: []
22
72
 
23
73
  extra_rdoc_files:
24
- - README.rdoc
74
+ - LICENSE.txt
75
+ - README.markdown
25
76
  files:
26
- - .gitignore
27
- - Manifest
28
- - README.rdoc
77
+ - .tmignore
78
+ - LICENSE.txt
79
+ - README.markdown
29
80
  - Rakefile
30
81
  - VERSION
31
82
  - bin/lorem
@@ -43,29 +94,35 @@ files:
43
94
  - spec/spec_helper.rb
44
95
  has_rdoc: true
45
96
  homepage: http://github.com/toy/random_text
46
- licenses: []
47
-
97
+ licenses:
98
+ - MIT
48
99
  post_install_message:
49
- rdoc_options:
50
- - --charset=UTF-8
100
+ rdoc_options: []
101
+
51
102
  require_paths:
52
103
  - lib
53
104
  required_ruby_version: !ruby/object:Gem::Requirement
105
+ none: false
54
106
  requirements:
55
107
  - - ">="
56
108
  - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
57
112
  version: "0"
58
- version:
59
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
+ none: false
60
115
  requirements:
61
116
  - - ">="
62
117
  - !ruby/object:Gem::Version
118
+ hash: 3
119
+ segments:
120
+ - 0
63
121
  version: "0"
64
- version:
65
122
  requirements: []
66
123
 
67
124
  rubyforge_project:
68
- rubygems_version: 1.3.5
125
+ rubygems_version: 1.3.7
69
126
  signing_key:
70
127
  specification_version: 3
71
128
  summary: Library to generate random strings
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- pkg
3
- doc
4
- *.gem
5
- *.swp
data/Manifest DELETED
@@ -1,16 +0,0 @@
1
- Manifest
2
- README.rdoc
3
- Rakefile
4
- VERSION.yml
5
- bin/lorem
6
- bin/vesna
7
- lib/random_text.rb
8
- lib/random_text/dictionary.rb
9
- lib/random_text/random_strings.rb
10
- resources/lorem.txt
11
- resources/vesna.txt
12
- spec/random_text/dictionary_spec.rb
13
- spec/random_text/random_string_spec.rb
14
- spec/random_text_spec.rb
15
- spec/spec.opts
16
- spec/spec_helper.rb
data/README.rdoc DELETED
@@ -1,48 +0,0 @@
1
- = random_text
2
-
3
- * http://github.com/toy/random_text/tree/master
4
-
5
- == DESCRIPTION:
6
-
7
- Class to make usage of http://vesna.yandex.ru/ and http://lipsum.com/ easier
8
-
9
- == FEATURES/PROBLEMS:
10
-
11
- * random words and sentences
12
-
13
- == SYNOPSIS:
14
-
15
- RandomText::Lorem.word
16
-
17
- == REQUIREMENTS:
18
-
19
- * Ruby :)
20
-
21
- == INSTALL:
22
-
23
- * sudo gem install random_text
24
-
25
- == LICENSE:
26
-
27
- (The MIT License)
28
-
29
- Copyright (c) 2008 FIXME full name
30
-
31
- Permission is hereby granted, free of charge, to any person obtaining
32
- a copy of this software and associated documentation files (the
33
- 'Software'), to deal in the Software without restriction, including
34
- without limitation the rights to use, copy, modify, merge, publish,
35
- distribute, sublicense, and/or sell copies of the Software, and to
36
- permit persons to whom the Software is furnished to do so, subject to
37
- the following conditions:
38
-
39
- The above copyright notice and this permission notice shall be
40
- included in all copies or substantial portions of the Software.
41
-
42
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
43
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
44
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
45
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
46
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
47
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
48
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.