flames 0.0.1 → 1.0.0

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/README CHANGED
@@ -1,13 +1,26 @@
1
1
  Flames
2
- ======
2
+ =======
3
+ Do you have a secret crush??
4
+ Want to know the scope of a crush love or a serious relationship??
5
+ The Flames Test is the right tool for you.
6
+ Flames stand for Friendship, Love, Affair, Marriage, Enmity and Sisterhood.
3
7
 
4
- Introduction goes here.
8
+ Installation
9
+ =======
10
+ sudo gem install flames
5
11
 
12
+ Usage
13
+ =======
14
+ Flames.compute("<your_name>", "<your_crushs_name>")
6
15
 
7
16
  Example
8
17
  =======
18
+ require "rubygems"
19
+ require "flames"
20
+ Flames.compute("Brad Pit", "Angelina")
9
21
 
10
- Example goes here.
22
+ This will result in "Marriage"!!!
23
+ Have fun playing!!!
11
24
 
12
25
 
13
- Copyright (c) 2010 [name of plugin creator], released under the MIT license
26
+ Copyright (c) 2010 [bvsatyaram], released under the MIT license
data/Rakefile CHANGED
@@ -34,12 +34,12 @@ PKG_FILES = FileList[
34
34
 
35
35
  spec = Gem::Specification.new do |s|
36
36
  s.name = "flames"
37
- s.version = "0.0.1"
37
+ s.version = "1.0.0"
38
38
  s.author = "B V Satyaram"
39
39
  s.email = "bvsatyaram@gmail.com"
40
40
  s.homepage = "http://bvsatyaram.com/"
41
41
  s.platform = Gem::Platform::RUBY
42
- s.summary = "The FLAMES game"
42
+ s.summary = "The FLAMES love game"
43
43
  s.files = PKG_FILES.to_a
44
44
  s.require_path = "lib"
45
45
  s.has_rdoc = false
@@ -5,7 +5,7 @@
5
5
  ################################################################################
6
6
  class Flames
7
7
  FLAMES_STRING = "FLAMES"
8
- RELATIONS = ["Friends", "Lovers", "Ancestors", "Married", "Enemies", "Sisters"]
8
+ RELATIONS = ["Friendship", "Love", "Affair", "Marriage", "Enmity", "Sisterhood"]
9
9
 
10
10
  def self.compute(name1, name2)
11
11
  compute_flames(name1, name2)
@@ -56,7 +56,7 @@ class Flames
56
56
  end
57
57
 
58
58
  def self.clean_name(name)
59
- return name.downcase.gsub(/( |\.)/, "")
59
+ return name.downcase.gsub(/( |\.,)/, "")
60
60
  end
61
61
 
62
62
  def self.compute_relation_code(name1, name2)
@@ -93,3 +93,29 @@
93
93
  
94
94
  SQL (0.4ms) SELECT version FROM "schema_migrations"
95
95
  FlamesTest::Flame Load (0.3ms) SELECT * FROM "flames" 
96
+ SQL (0.3ms) select sqlite_version(*)
97
+ SQL (0.6ms)  SELECT name
98
+ FROM sqlite_master
99
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
100
+ 
101
+ SQL (1.9ms) DROP TABLE "flames"
102
+ SQL (1.5ms) CREATE TABLE "flames" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name1" varchar(255), "name2" varchar(255), "result" varchar(255)) 
103
+ SQL (0.8ms)  SELECT name
104
+ FROM sqlite_master
105
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
106
+ 
107
+ SQL (0.3ms) SELECT version FROM "schema_migrations"
108
+ FlamesTest::Flame Load (5.5ms) SELECT * FROM "flames" 
109
+ SQL (0.3ms) select sqlite_version(*)
110
+ SQL (0.6ms)  SELECT name
111
+ FROM sqlite_master
112
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
113
+ 
114
+ SQL (1.4ms) DROP TABLE "flames"
115
+ SQL (1.3ms) CREATE TABLE "flames" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name1" varchar(255), "name2" varchar(255), "result" varchar(255)) 
116
+ SQL (0.3ms)  SELECT name
117
+ FROM sqlite_master
118
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
119
+ 
120
+ SQL (0.2ms) SELECT version FROM "schema_migrations"
121
+ FlamesTest::Flame Load (0.3ms) SELECT * FROM "flames" 
@@ -11,7 +11,7 @@ class FlamesTest < Test::Unit::TestCase
11
11
  end
12
12
 
13
13
  def test_flames_compute
14
- assert_equal "Ancestors", Flames.compute("satyaram", "soujanya")
14
+ assert_equal "Affair", Flames.compute("satyaram", "soujanya")
15
15
  end
16
16
 
17
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flames
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 1
10
- version: 0.0.1
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - B V Satyaram
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-01 00:00:00 +05:30
18
+ date: 2010-10-01 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -75,6 +75,6 @@ rubyforge_project:
75
75
  rubygems_version: 1.3.7
76
76
  signing_key:
77
77
  specification_version: 3
78
- summary: The FLAMES game
78
+ summary: The FLAMES love game
79
79
  test_files: []
80
80