random_text 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/.gitignore +5 -0
  2. data/Rakefile +24 -19
  3. data/VERSION +1 -0
  4. data/random_text.gemspec +40 -12
  5. metadata +18 -24
  6. data/VERSION.yml +0 -1
@@ -0,0 +1,5 @@
1
+ .DS_Store
2
+ pkg
3
+ doc
4
+ *.gem
5
+ *.swp
data/Rakefile CHANGED
@@ -1,23 +1,28 @@
1
- require 'pathname'
2
- require 'rubygems'
3
- require 'rake'
4
- require 'rake/clean'
5
- require 'fileutils'
6
- require 'echoe'
1
+ begin
2
+ require 'jeweler'
7
3
 
8
- version = YAML.load_file(Pathname(__FILE__).dirname + 'VERSION.yml').join('.') rescue nil
4
+ name = 'random_text'
5
+ summary = 'Library to generate random strings'
9
6
 
10
- echoe = Echoe.new('random_text', version) do |p|
11
- p.author = 'toy'
12
- p.summary = 'A library to generate random strings.'
13
- p.project = 'toytoy'
14
- end
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
- desc "Replace system gem with symlink to this folder"
17
- task 'ghost' do
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
@@ -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.1"
8
+ s.version = "1.0.2"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["toy"]
9
- s.date = %q{2009-11-06}
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 = ["README.rdoc", "bin/lorem", "bin/vesna", "lib/random_text.rb", "lib/random_text/dictionary.rb", "lib/random_text/random_strings.rb"]
14
- s.files = ["Manifest", "README.rdoc", "Rakefile", "VERSION.yml", "bin/lorem", "bin/vesna", "lib/random_text.rb", "lib/random_text/dictionary.rb", "lib/random_text/random_strings.rb", "resources/lorem.txt", "resources/vesna.txt", "spec/random_text/dictionary_spec.rb", "spec/random_text/random_string_spec.rb", "spec/random_text_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "random_text.gemspec"]
15
- s.homepage = %q{}
16
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Random_text", "--main", "README.rdoc"]
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{A library to generate random strings.}
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
- - toy
7
+ - Boba Fat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-06 00:00:00 +03:00
12
+ date: 2009-12-30 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: A library to generate random strings.
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.yml
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
- - --line-numbers
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: "1.2"
63
+ version: "0"
73
64
  version:
74
65
  requirements: []
75
66
 
76
- rubyforge_project: toytoy
67
+ rubyforge_project:
77
68
  rubygems_version: 1.3.5
78
69
  signing_key:
79
70
  specification_version: 3
80
- summary: A library to generate random strings.
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
@@ -1 +0,0 @@
1
- [1, 0, 1]