Seedr 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 00c716da72a1fdd49a5634cd5d6cd617320c3d36
4
+ data.tar.gz: 928445880f622c94f268a8a1906be5eedbe7908d
5
+ SHA512:
6
+ metadata.gz: 35aabdff58dfa60a8b2881435e5fd9137ddb9e77ad4afc6fef52799cd87bcdaf34e6a1e1c47e553bf0128bc774c07bbb3c27c4cd1e98273497ec38aae988f43b
7
+ data.tar.gz: ba13eb649595e349526e67ea00880655edb4113a451fd5c6464cad6b56fe26098af66da02cf3496c866c6accb776b3c0eca687398cf498ae54cc07f5bd970784
data/README.md CHANGED
@@ -41,6 +41,7 @@ Seedr can naturally be used outside of a Rails context. Example:
41
41
 
42
42
  Seedr.random_string(length=1)
43
43
  Seedr.random_integer(length=1)
44
+ Seedr.random_word
44
45
 
45
46
  ### Dates/Times
46
47
 
@@ -1,13 +1,12 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'Seedr/version'
5
4
 
6
5
  Gem::Specification.new do |gem|
7
6
  gem.name = "Seedr"
8
- gem.version = Seedr::VERSION
7
+ gem.version = "1.0.1"
9
8
  gem.authors = ["Ashe Avenue -- Tim Boisvert and Rob Farrell"]
10
- gem.email = ["tboisvert@asheavenue.com"]
9
+ gem.email = ["tboisvert@asheavenue.com", "rfarrell@asheavenue.com"]
11
10
  gem.description = 'A friendly Rails seeding assistant'
12
11
  gem.summary = 'A friendly Rails seeding assistant'
13
12
  gem.homepage = 'http://github.com/AsheAvenue/Seedr'
@@ -1,4 +1,4 @@
1
- require "Seedr/version"
1
+ #require "Seedr/version"
2
2
  require "titleize"
3
3
  require 'time'
4
4
 
@@ -20,6 +20,19 @@ module Seedr
20
20
  ['sed', 'posuere', 'consectetur', 'est', 'at' 'lobortis', 'lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipiscing' 'elit', 'nullam', 'id', 'dolor', 'id', 'nibh', 'ultricies', 'vehicula', 'ut', 'id', 'elit', 'maecenas', 'sed', 'diam', 'eget', 'risus', 'varius', 'blandit', 'sit', 'amet', 'non', 'magna'].sample
21
21
  end
22
22
 
23
+ def self.random_sentences
24
+ [
25
+ "This here's a story all about how my life got flipped, turned upside down. Now I'd like to take a minute, just sit right there. I'll tell you how I became the prince of a town called Bel Air.",
26
+ "How much wood could a woodchuck chuck if a woodchuck could Chuck Norris.",
27
+ "You smell that? Do you smell that? Napalm, son. Nothing else in the world smells like that. I love the smell of napalm in the morning.",
28
+ "You know the thing about a shark, he’s got lifeless eyes. Black eyes like a doll’s eyes. When he comes at ya, he doesn’t seem to be living until he bites ya and those black eyes roll over and white and then, ah, then you hear that terrible high-pitch screaming. The ocean turns red and despite all the pounding and hollering, they all come in and they rip you to pieces.",
29
+ "In the name of God, do your duty. In the name of God, believe Tom Robinson.",
30
+ "I am recognizing that the voices in my head are urging me to be myself and never follow someone else. Opinions are like voices we all have a different kind, so just clean out all of your ears these are my views and you will find that we're revolutionizing with the kick and the snare.",
31
+ "The good thing about science is it's true, whether or not you believe in it.",
32
+ "Never trust a cat."
33
+ ].sample
34
+ end
35
+
23
36
  #DATES/TIMES
24
37
 
25
38
  def self.date(start=0.0,stop=Time.now)
@@ -53,11 +66,20 @@ module Seedr
53
66
  "#{self.first_name} #{self.middle_initial}. #{self.last_name}"
54
67
  end
55
68
 
69
+ def self.email_username
70
+ ['bob', 'horace', 'jimmy', 'info', 'noreply', 'stuff', 'juan', 'daisuke', 'veronica', 'marge', 'inquiries'].sample
71
+ end
72
+
73
+ def self.hostname
74
+ ['gmail', 'hotmail', 'yahoo', 'nytimes', 'runners', 'hotdating', 'cnn', 'maryjanetimes', 'nyc', 'navy', 'asheavenue','seacaptaindate','geocities'].sample
75
+ end
76
+
77
+ def self.tld
78
+ ['com', 'net', 'io', 'gov', 'mil', 'co.uk', 'es', 'biz','info','edu'].sample
79
+ end
80
+
56
81
  def self.email
57
- username = ['bob', 'horace', 'jimmy', 'info', 'noreply', 'stuff', 'juan', 'daisuke', 'veronica', 'marge', 'inquiries']
58
- host = ['gmail', 'hotmail', 'yahoo', 'nytimes', 'runners', 'hotdating', 'cnn', 'maryjanetimes', 'nyc', 'navy']
59
- tld = ['com', 'net', 'io', 'gov', 'mil', 'co.uk', 'es']
60
- "#{username.sample}@#{host.sample}.#{tld.sample}"
82
+ "#{self.email_username}@#{self.hostname}.#{self.tld}"
61
83
  end
62
84
 
63
85
  def self.phone_number(separator='')
@@ -111,6 +133,14 @@ module Seedr
111
133
  end
112
134
  end
113
135
 
136
+ def self.image(width=FALSE,height=FALSE)
137
+ placeToggle = ['','c/','g/']
138
+ sizes = ['199','200','198','201','197']
139
+ width = sizes.sample unless width
140
+ height = sizes.sample unless height
141
+ "http://www.placecage.com/#{placeToggle.sample}#{width}/#{height}"
142
+ end
143
+
114
144
 
115
145
  # EDITORIAL
116
146
 
data/test.rb CHANGED
@@ -1,11 +1,14 @@
1
1
  require "Seedr"
2
2
 
3
3
  puts ""
4
- puts "Randoms:"
4
+ puts "Generic Randoms:"
5
5
  puts "Random integer: #{Seedr.random_integer}"
6
6
  puts "Random character: #{Seedr.random_string}"
7
7
  puts "Random integers (8): #{Seedr.random_integer(8)}"
8
8
  puts "Random characters (8): #{Seedr.random_string(8)}"
9
+ puts "Random word: #{Seedr.random_word}"
10
+ puts ""
11
+ puts "Dates/Times"
9
12
  puts "Random date: #{Seedr.date}"
10
13
  puts "Random datetime: #{Seedr.datetime}"
11
14
  puts ""
metadata CHANGED
@@ -1,35 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Seedr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ashe Avenue -- Tim Boisvert and Rob Farrell
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-29 00:00:00.000000000 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: titleize
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: A friendly Rails seeding assistant
31
28
  email:
32
29
  - tboisvert@asheavenue.com
30
+ - rfarrell@asheavenue.com
33
31
  executables: []
34
32
  extensions: []
35
33
  extra_rdoc_files: []
@@ -42,30 +40,28 @@ files:
42
40
  - Seedr.gemspec
43
41
  - img/logo.png
44
42
  - lib/Seedr.rb
45
- - lib/Seedr/version.rb
46
43
  - test.rb
47
44
  homepage: http://github.com/AsheAvenue/Seedr
48
45
  licenses: []
46
+ metadata: {}
49
47
  post_install_message:
50
48
  rdoc_options: []
51
49
  require_paths:
52
50
  - lib
53
51
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
52
  requirements:
56
- - - ! '>='
53
+ - - '>='
57
54
  - !ruby/object:Gem::Version
58
55
  version: '0'
59
56
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
57
  requirements:
62
- - - ! '>='
58
+ - - '>='
63
59
  - !ruby/object:Gem::Version
64
60
  version: '0'
65
61
  requirements: []
66
62
  rubyforge_project:
67
- rubygems_version: 1.8.24
63
+ rubygems_version: 2.1.11
68
64
  signing_key:
69
- specification_version: 3
65
+ specification_version: 4
70
66
  summary: A friendly Rails seeding assistant
71
67
  test_files: []
@@ -1,3 +0,0 @@
1
- module Seedr
2
- VERSION = "1.0.0"
3
- end