research_topicgen 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/bin/research_topicgen +1 -3
- data/lib/research_topicgen.rb +7 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84111c151b90a4e75a4e292efedaab56cabfcf70
|
4
|
+
data.tar.gz: a0bcb4d50214a3de193ac177a7ff88cac517fbef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0eab2a9102bcc9e7dda44ab6e0d4de566fd6fe8369568d3835d48f3d7bc565a7c4eeb8e8144432b06086578be8e2246749387a5b6665722b9ea34a2eaca25e
|
7
|
+
data.tar.gz: e884ac640e7c8a12fc5ece4bf64413bfdd77ea900adda517df462b735ce66faaf3f1b227912a31244de1cabd42c2d51fad0808c487a9b9498a1d19dce770c8e2
|
data/bin/research_topicgen
CHANGED
data/lib/research_topicgen.rb
CHANGED
@@ -41,7 +41,7 @@ module ResearchTopicGen
|
|
41
41
|
# System Research Topic Generatorg
|
42
42
|
def self.system
|
43
43
|
connectives_file, system_file = self.load_file('system')
|
44
|
-
connectives = *connectives_file[:common_connectives], connectives_file[:extra_connectives][0]
|
44
|
+
connectives = *connectives_file[:common_connectives], *connectives_file[:extra_connectives][0]
|
45
45
|
connectives.flatten!
|
46
46
|
word1, word2, word3, word4 = system_file[:buzz1].sample, system_file[:buzz2].sample, system_file[:buzz3].sample, system_file[:buzz2].sample
|
47
47
|
name, ingword = system_file[:names].sample, system_file[:ings].sample
|
@@ -95,15 +95,15 @@ module ResearchTopicGen
|
|
95
95
|
# Logic here needs a change.
|
96
96
|
def self.random_word(file, checks, *col)
|
97
97
|
if checks == 2
|
98
|
-
col[2] = file[:buzz3].sample until col[0] != col[2]
|
98
|
+
col[2] = file[:buzz3].sample until col[0] != col[2] || col[1] != col[2]
|
99
99
|
col[1..checks]
|
100
100
|
elsif checks == 3
|
101
|
-
col[3] = file[:buzz2].sample until col[3] != col[1]
|
101
|
+
col[3] = file[:buzz2].sample until col[3] != col[1] || col[3] != col[2] || col[3] != col[0]
|
102
102
|
col[1..checks]
|
103
103
|
elsif checks == 4
|
104
|
-
col[4] = file[:buzz2].sample until col[3] != col[4]
|
104
|
+
col[4] = file[:buzz2].sample until col[3] != col[4] || col[3] != col[2] || col[3] != col[1] || col[3] != col[0]
|
105
105
|
elsif checks == 5
|
106
|
-
col[5] = file[:buzz3].sample until col[5] != col[3]
|
106
|
+
col[5] = file[:buzz3].sample until col[5] != col[3] || col[5] != col[4] || col[5] != col[2] || col[5] != col[1]
|
107
107
|
else
|
108
108
|
col[1] = file[:buzz2].sample until col[0] != col[1]
|
109
109
|
col[1]
|
@@ -120,3 +120,5 @@ module ResearchTopicGen
|
|
120
120
|
caps ? article.capitalize : article
|
121
121
|
end
|
122
122
|
end
|
123
|
+
|
124
|
+
puts ResearchTopicGen.system
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: research_topicgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- slackr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A simple gem to generate worthy Research Topics.
|
14
14
|
email: slackErEhth77@openmailbox.org
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
version: '0'
|
44
44
|
requirements: []
|
45
45
|
rubyforge_project:
|
46
|
-
rubygems_version: 2.
|
46
|
+
rubygems_version: 2.5.1
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: research_topicgen - A Research Topic Generator
|